/* ═══════════════════════════════════
   QASRA — Design System
   Amiri + DM Sans + Noto Naskh Arabic
   ═══════════════════════════════════ */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a18;
  background: #f7f5f0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --ink: #0d1b12;
  --forest: #14291e;
  --emerald: #1e4d35;
  --sage: #3a7d5c;
  --mint: #e6f0ea;
  --gold: #c9a84c;
  --gold-bright: #e2c36a;
  --gold-dim: #a8893a;
  --parchment: #f7f5f0;
  --cream: #ede9df;
  --stone: #d4cec3;
  --ash: #5a5550;
  --charcoal: #2e2b26;
}

.arabic { font-family: 'Noto Naskh Arabic', 'Amiri', serif; direction: rtl; }
.serif { font-family: 'Amiri', Georgia, serif; }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 0;
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Amiri', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--gold);
}
.nav.scrolled .nav-logo { color: var(--ink); }
.nav-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--ash); }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 0.5rem 1.3rem !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--gold) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
}
.nav.scrolled .nav-cta {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
.nav.scrolled .nav-cta:hover {
  background: var(--ink) !important;
  color: var(--parchment) !important;
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative;
  flex-shrink: 0;
}
body.nav-open { overflow: hidden; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold); position: absolute; left: 50%;
  margin-left: -11px;
  transition: all 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { top: 28px; bottom: auto; }

/* ═══ PAGE HERO ═══ */
.page-hero {
  position: relative;
  min-height: 70vh;
  background: var(--ink);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.page-hero--short { min-height: 70vh; }
.page-hero-bg {
  position: absolute; inset: -20%;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  opacity: 0.15;
  filter: contrast(1.1) saturate(0.7);
}
@supports (-webkit-touch-callout: none) {
  .page-hero-bg { background-attachment: scroll; }
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,27,18,0.2) 0%,
    rgba(13,27,18,0.05) 30%,
    rgba(13,27,18,0.7) 70%,
    rgba(13,27,18,1) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  padding-bottom: clamp(4rem, 8vh, 7rem);
  width: 100%;
}
.page-hero-content h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 700; line-height: 0.95;
  color: var(--parchment);
  margin-bottom: 1rem;
}
.page-hero-content p {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-gold {
  background: var(--gold); color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══ SECTIONS ═══ */
.section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}
.section--parchment { background: var(--parchment); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); }

.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before {
  content: ''; width: 2rem; height: 1px; background: var(--gold);
}
.section-label--light { color: var(--gold); }
.section-label--light::before { background: var(--gold); }

.section-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-title--light { color: var(--parchment); }

.section-subtitle {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ash);
  max-width: 600px;
}
.section-subtitle--light { color: rgba(255,255,255,0.75); }

/* ═══ CONTENT GRID ═══ */
.content-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}
.content-grid--2 { grid-template-columns: 1fr 1.5fr; }
.content-grid--2-reverse { grid-template-columns: 1.5fr 1fr; }
.content-grid--center { text-align: center; max-width: 800px; }

/* Full-width story sections — title, then paragraphs 1→2→3 top to bottom only */
.story-block {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.story-block .section-title {
  margin-bottom: 2rem;
}
.story-block .content-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
.story-block .content-text p {
  display: block;
  width: 100%;
  max-width: 100%;
  float: none;
  clear: both;
  margin-bottom: 0;
}

.content-text p {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.content-text--light p { color: rgba(255,255,255,0.75); }

/* Drop cap stays inside its own paragraph — never pulls next paras beside it */
.dropcap::first-letter {
  font-family: 'Amiri', serif;
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 0;
  color: var(--emerald);
  font-weight: 700;
}
.story-block .dropcap::after {
  content: '';
  display: table;
  clear: both;
}

/* ═══ CARDS GRID ═══ */
.cards-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid; gap: 1.5rem;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 2.5rem 2rem;
  background: var(--parchment);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.card h3 {
  font-family: 'Amiri', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.75rem;
  line-height: 1.3;
}
.card p {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--ash);
  margin-bottom: 1rem;
}
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint);
  border-radius: 50%;
}
.card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--emerald); fill: none; stroke-width: 1.5;
}
.card-detail {
  font-size: 0.85rem; color: var(--charcoal);
  padding-top: 0.75rem; border-top: 1px solid var(--stone);
}

/* ═══ SERVICES (numbered) ═══ */
.services-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc {
  padding: 2.5rem 2rem;
  background: var(--parchment);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative; overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc::before {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.svc:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: 'Amiri', serif;
  font-size: 0.75rem; color: var(--gold);
  margin-bottom: 1.5rem; font-weight: 700;
}
.svc h3 {
  font-family: 'Amiri', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.75rem;
  line-height: 1.3;
}
.svc p { font-size: 0.9rem; line-height: 1.7; color: var(--ash); }

/* ═══ VALUES STRIP ═══ */
.values-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.value-item {
  padding: 1.5rem;
  background: var(--cream);
  border-left: 2px solid var(--gold);
}
.value-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.3rem; color: var(--ink);
}
.value-item p {
  font-size: 0.8rem; color: var(--ash); line-height: 1.6;
}

/* ═══ LEGACY CARDS (Khanqah years) ═══ */
.legacy-header {
  max-width: 1400px;
  margin: 0 auto 3.5rem;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.legacy-header .section-subtitle {
  max-width: 720px;
}
.legacy-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  position: relative;
}
/* Vertical gold timeline — centered through number circles */
.legacy-cards::before {
  content: '';
  position: absolute;
  left: calc(clamp(1.5rem, 4vw, 4rem) + 1.75rem);
  top: 1.75rem;
  bottom: 1.75rem;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(201, 168, 76, 0.3);
  pointer-events: none;
}
.legacy-card {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 0 0 3rem 0;
  border: none;
  background: transparent;
  position: relative;
  transition: none;
}
.legacy-card:last-child { padding-bottom: 0; }
.legacy-card:hover {
  background: transparent;
  border-color: transparent;
}
.legacy-num {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--ink);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  letter-spacing: 0.02em;
}
.legacy-body {
  padding-top: 0.55rem;
  min-width: 0;
}
.legacy-card h3,
.legacy-card h4 {
  font-family: 'Amiri', serif;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}
.legacy-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.1rem;
}
.legacy-card p:last-child { margin-bottom: 0; }
.legacy-card em {
  color: var(--gold);
  font-style: italic;
}
.legacy-card strong {
  color: var(--parchment);
  font-weight: 600;
}
/* Light variant (used on parchment sections) */
.legacy-card--light {
  grid-template-columns: 1fr;
  padding: 2rem 2.5rem;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.legacy-card--light h3,
.legacy-card--light h4 {
  color: var(--ink);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.legacy-card--light p {
  color: var(--ash);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
  .legacy-cards::before {
    left: calc(clamp(1.5rem, 4vw, 4rem) + 1.375rem);
    top: 1.375rem;
    bottom: 1.375rem;
  }
  .legacy-card {
    grid-template-columns: 2.75rem 1fr;
    gap: 1.15rem;
    padding-bottom: 2.5rem;
  }
  .legacy-num {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
  }
  .legacy-body { padding-top: 0.35rem; }
  .legacy-card h3,
  .legacy-card h4 { font-size: 1.25rem; }
  .legacy-card p { font-size: 0.95rem; }
}

/* ═══ QUOTE BLOCK ═══ */
.quote-block {
  padding: 2.5rem;
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,0.02);
  margin-top: 2rem;
}
.quote-block p {
  font-family: 'Amiri', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.75rem; line-height: 1.6;
}
.quote-block cite {
  font-style: normal; font-size: 0.8rem;
  color: var(--gold); font-weight: 500;
}
.quote-block--light {
  background: var(--cream);
}
.quote-block--light p { color: var(--charcoal); }

/* ═══ STATS INLINE ═══ */
.stats-inline {
  display: flex; gap: 3rem; margin-top: 2rem;
}
.stat-inline-number {
  font-family: 'Amiri', serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--ink); display: block; line-height: 1;
}
.stat-inline-number--light { color: var(--parchment); }
.stat-inline-label {
  font-size: 0.75rem; font-weight: 500;
  color: var(--ash); letter-spacing: 0.06em;
  text-transform: uppercase; display: block; margin-top: 0.3rem;
}
.stat-inline-label--light { color: rgba(255,255,255,0.65); }

/* ═══ DIRECTORS ═══ */
.directors-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex; flex-direction: column; gap: 3.5rem;
}
.director-card {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3rem; align-items: start;
}
.director-card--reverse { grid-template-columns: 1fr 280px; }
.director-card--reverse .director-photo { order: 2; }
.director-photo {
  position: relative;
  aspect-ratio: 3/4;
  padding: 6px;
  background:
    linear-gradient(var(--parchment), var(--parchment)) padding-box,
    linear-gradient(145deg, var(--gold-bright), var(--gold-dim) 45%, var(--gold) 100%) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.15),
    0 12px 36px rgba(13, 27, 18, 0.08);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.director-photo::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.4s ease;
}
.director-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15);
  transition: filter 0.5s, transform 0.5s ease;
}
.director-card:hover .director-photo {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.35),
    0 18px 48px rgba(13, 27, 18, 0.12);
  transform: translateY(-2px);
}
.director-card:hover .director-photo::before {
  border-color: rgba(201, 168, 76, 0.55);
}
.director-card:hover .director-photo img {
  filter: grayscale(0);
  transform: scale(1.02);
}
.director-photo::after {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(13, 27, 18, 0.28) 0%, transparent 42%);
}
.director-info h3 {
  font-family: 'Amiri', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.3rem;
}
.director-role {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-dim);
  display: block; margin-bottom: 1.5rem;
}
.director-info p {
  font-size: 1rem; line-height: 1.8;
  color: var(--charcoal); margin-bottom: 1rem;
}

/* ═══ FAQ ═══ */
.faq-list {
  max-width: 800px; margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--stone);
  padding: 1.5rem 0;
}
.faq-item summary {
  font-family: 'Amiri', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--ink); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: '+'; font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem; font-weight: 300; color: var(--gold);
  transition: transform 0.3s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--ash); margin-top: 1rem;
  padding-right: 2rem;
}

/* ═══ PROCESS STEPS ═══ */
.process-steps { display: flex; flex-direction: column; gap: 2rem; }
.process-step {
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.process-step-num {
  font-family: 'Amiri', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  flex-shrink: 0; width: 3rem;
}
.process-step h4 {
  font-size: 0.95rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.3rem;
}
.process-step p {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--ash);
}

/* ═══ GALLERY ═══ */
.gallery-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px;
  gap: 1rem;
}
.gallery-item {
  background: var(--mint);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover { transform: scale(0.98); }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-placeholder {
  text-align: center; color: var(--sage);
  font-size: 0.8rem; font-weight: 500; opacity: 0.8;
}
.gallery-placeholder svg { display: block; margin: 0 auto 0.5rem; stroke: var(--sage); }

/* ═══ FOCUS LIST ═══ */
.focus-list { margin-top: 4rem; }
.focus-list h3 {
  font-family: 'Amiri', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--ink); margin-bottom: 1.5rem;
}
.focus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.focus-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.5rem;
  background: var(--cream);
  transition: transform 0.3s;
}
.focus-item:hover { transform: translateX(4px); }
.focus-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.focus-icon svg {
  width: 20px; height: 20px;
  stroke: var(--emerald); fill: none; stroke-width: 1.5;
}
.focus-item span {
  font-size: 0.9rem; font-weight: 500; color: var(--charcoal);
}

/* ═══ CONTACT ═══ */
.contact-grid {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 8rem);
}
.contact-info-list { margin-top: 2rem; }
.contact-item {
  display: flex; gap: 1rem; margin-bottom: 2rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment);
  border: 1px solid var(--stone);
}
.contact-icon svg {
  width: 18px; height: 18px;
  stroke: var(--emerald); fill: none; stroke-width: 1.5;
}
.contact-item h4 {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 0.2rem;
}
.contact-item p { font-size: 1rem; color: var(--ink); font-weight: 500; }

/* ═══ FORM ═══ */
.form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ash); margin-bottom: 0.4rem; display: block;
}
.form input, .form textarea, .form select {
  width: 100%; padding: 0.9rem 1rem;
  background: var(--parchment);
  border: 1px solid var(--stone);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; /* prevent iOS focus zoom */
  color: var(--ink);
  transition: border-color 0.3s; outline: none;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--emerald); }
.form textarea { resize: vertical; min-height: 140px; }

/* ═══ FOOTER ═══ */
.footer {
  background: var(--ink);
  padding: 4.5rem 0 2rem;
}
.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 3rem 2.5rem;
  align-items: start;
}
/* back-compat if any page still uses old wrapper */
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 2rem;
}
.footer-brand {
  font-family: 'Amiri', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--gold); display: flex;
  align-items: center; gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
}
.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-contact a,
.footer-contact li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.75);
  transition: all 0.3s;
}
.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding: 1.75rem clamp(1.5rem, 4vw, 4rem) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
}
@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .footer-tagline { max-width: none; }
}

/* ═══ SCROLL REVEAL ═══ */
.r {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.r.visible { opacity: 1; transform: translateY(0); }
.r-d1 { transition-delay: 0.1s; }
.r-d2 { transition-delay: 0.2s; }
.r-d3 { transition-delay: 0.3s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .content-grid--2, .content-grid--2-reverse { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--2, .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .director-card, .director-card--reverse { grid-template-columns: 1fr; }
  .director-card--reverse .director-photo { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .values-strip { grid-template-columns: repeat(2, 1fr); }

  /* Hamburger from tablet — 10 nav links overflow otherwise */
  .nav { background: rgba(13, 27, 18, 0.92); backdrop-filter: blur(12px); padding: 1rem 0; padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
  .nav.scrolled { background: rgba(13, 27, 18, 0.96); backdrop-filter: blur(16px); box-shadow: none; padding: 0.75rem 0; padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)); }
  .nav.scrolled .nav-logo { color: var(--gold); }
  .nav.scrolled .nav-links a { color: rgba(255,255,255,0.85); }
  .nav.scrolled .nav-toggle span { background: var(--gold); }
  .nav.scrolled .nav-cta { border-color: var(--gold) !important; color: var(--gold) !important; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(13, 27, 18, 0.98);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.95rem;
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links.open .nav-cta {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    margin-top: 0.5rem;
    justify-content: center;
    min-height: 48px;
  }
  .nav-inner { padding: 0 1.25rem; }
  .page-hero-bg { background-attachment: scroll; }
  .page-hero-content { padding: 0 1.25rem; padding-bottom: clamp(3rem, 6vh, 5rem); }
  .page-hero-content h1 { font-size: clamp(2.2rem, 8vw, 4rem); }
}
@media (max-width: 768px) {
  .services-grid, .cards-grid--2, .cards-grid--3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; max-height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .values-strip { grid-template-columns: 1fr; }
  .stats-inline { flex-direction: column; gap: 1.5rem; }
  .footer-main { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-tagline { max-width: none; }
  .page-hero { min-height: 50vh; min-height: 50dvh; }
  .page-hero--short { min-height: 42vh; min-height: 42dvh; }
  .page-hero-content h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.05; }
  .page-hero-content p { font-size: 0.95rem; }
  .section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
  .section-title { font-size: clamp(1.75rem, 7vw, 2.6rem); }
  .btn {
    padding: 0.85rem 1.5rem;
    min-height: 48px;
  }
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
  }
  .form button,
  .form .btn {
    width: 100%;
    justify-content: center;
  }
  .content-grid,
  .story-block {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .footer-bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; max-height: none; }
  .page-hero-content h1 { font-size: clamp(1.85rem, 10vw, 2.4rem); }
}
