/* ==========================================================================
   Hamad Khan Digital — Stylesheet
   Design system: dark charcoal + warm off-white base, restrained orange &
   forest-green accents. Premium, minimal, no clutter.
   ========================================================================== */

:root {
  --charcoal: #1a1d1a;
  --charcoal-soft: #23271f;
  --cream: #f5f2ec;
  --cream-dim: #eae5da;
  --orange: #d97a34;
  --orange-hover: #c66a26;
  --forest: #2f4a3c;
  --forest-light: #3d6350;
  --ink: #1a1d1a;
  --ink-soft: #4a4f49;
  --line: rgba(26, 29, 26, 0.1);
  --line-dark: rgba(245, 242, 236, 0.12);

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(26, 29, 26, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(26, 29, 26, 0.25);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { padding: var(--space-6) 0; }
@media (max-width: 640px) {
  section { padding: var(--space-5) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: var(--space-4); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 0.6rem; }
.section-head p { margin-top: var(--space-2); color: var(--ink-soft); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--cream); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-outline-light { border-color: rgba(245, 242, 236, 0.5); color: var(--cream); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(245, 242, 236, 0.08); }
.btn-outline-dark { border-color: rgba(26, 29, 26, 0.3); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(26, 29, 26, 0.05); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 29, 26, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.brand span { color: var(--orange); }
.nav-links {
  display: flex;
  gap: var(--space-4);
}
.nav-links a {
  color: rgba(245, 242, 236, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--cream); }
.header-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    transform: translateY(-110%);
    transition: transform 0.28s ease;
    height: calc(100vh - 76px);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.2rem; }
  .header-cta .btn-outline-light { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  color: var(--cream);
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(217, 122, 52, 0.5);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-3);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--orange); }
.hero-sub {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: rgba(245, 242, 236, 0.78);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.hero-meta {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-meta div { font-size: 0.88rem; color: rgba(245, 242, 236, 0.6); }
.hero-meta strong { display: block; color: var(--cream); font-family: var(--font-head); font-size: 1rem; }

.hero-portrait {
  position: relative;
  justify-self: center;
}
.hero-portrait .frame {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 1 / 1.06;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-dark);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .ring {
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(217, 122, 52, 0.35);
  border-radius: 32px;
  pointer-events: none;
}
.hero-portrait .tag {
  position: absolute;
  left: -18px;
  bottom: 22px;
  background: var(--forest);
  color: var(--cream);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-portrait .tag { left: 50%; transform: translateX(-50%); bottom: -18px; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--charcoal); color: var(--cream); }
.portfolio .section-head p { color: rgba(245, 242, 236, 0.7); }
.portfolio .eyebrow { color: var(--orange); }
.portfolio .eyebrow::before { background: var(--orange); }

.project-block { margin-bottom: var(--space-5); }
.project-block:last-child { margin-bottom: 0; }
.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.project-head h3 { font-size: 1.4rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-concept { background: var(--forest); color: var(--cream); }
.pill-practice { background: rgba(245, 242, 236, 0.12); color: var(--cream); border: 1px solid rgba(245,242,236,0.25); }

.project-disclaimer {
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(245, 242, 236, 0.62);
  margin-bottom: var(--space-3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.gallery-grid.single { grid-template-columns: 1fr; }
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--charcoal-soft);
}
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: rgba(245, 242, 236, 0.65);
  border-top: 1px solid var(--line-dark);
}

@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }

.portfolio-pdf {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  background: var(--charcoal-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
}
.portfolio-pdf .pdf-info { display: flex; align-items: center; gap: var(--space-2); }
.portfolio-pdf .pdf-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--orange); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.portfolio-pdf .pdf-icon svg { width: 22px; height: 22px; }
.portfolio-pdf h4 { font-size: 1rem; color: var(--cream); margin-bottom: 0.2rem; }
.portfolio-pdf p { font-size: 0.85rem; color: rgba(245, 242, 236, 0.6); }

/* ---------- About ---------- */
.about .container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-5);
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: var(--space-2); }
.about-list { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about-list span {
  background: var(--cream-dim);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}
@media (max-width: 820px) {
  .about .container { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .about-list { justify-content: center; }
}

/* ---------- Process ---------- */
.process { background: var(--cream-dim); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  position: relative;
}
.process-step .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: var(--ink-soft); }

@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-info p { color: var(--ink-soft); margin-top: var(--space-2); font-size: 1.05rem; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--forest);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.contact-note {
  margin-top: var(--space-4);
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--cream-dim);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  border: 1px solid var(--line);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: var(--space-3); }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(26,29,26,0.18);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(47, 74, 60, 0.14);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-status {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.success { display: block; color: var(--forest); }
.form-status.error { display: block; color: #b3452c; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 900px) { .contact .container { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(245, 242, 236, 0.75);
  padding: var(--space-5) 0 var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { display: inline-block; margin-bottom: var(--space-2); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; color: rgba(245,242,236,0.6); }
.footer-col h5 {
  font-family: var(--font-head);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: rgba(245, 242, 236, 0.5);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Simple page (Privacy Policy) ---------- */
.simple-page {
  background: var(--cream);
  padding: var(--space-6) 0;
}
.simple-page .container { max-width: 820px; }
.simple-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-bottom: var(--space-2); }
.simple-page .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: var(--space-4); }
.simple-page h2 { font-size: 1.25rem; margin-top: var(--space-4); margin-bottom: var(--space-2); }
.simple-page p, .simple-page li { color: var(--ink-soft); font-size: 1rem; margin-bottom: var(--space-2); }
.simple-page ul { padding-left: 1.2rem; list-style: disc; }
.simple-page a { color: var(--forest); font-weight: 600; border-bottom: 1px solid var(--orange); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: var(--space-4); font-weight: 600; color: var(--forest); }
