/* ==========================================================
   Hani landing page
   Palette drawn from the photography: deep reds, browns, muted golds
   ========================================================== */

:root {
  --red-deep: #6e1d17;      /* primary brand red, dresses and rugs */
  --red: #8f2a1f;
  --brown-dark: #2b1a12;    /* text, footer */
  --brown: #5a3a28;
  --gold: #b8904f;          /* muted gold accents */
  --gold-soft: #d9bf8c;
  --cream: #f7f1e6;         /* page background */
  --sand: #efe4d1;          /* alternate section background */
  --text: #2b1a12;
  --text-muted: #6b5546;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--brown-dark);
}
h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1.25rem; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red-deep); color: var(--cream); }
.btn-primary:hover { background: var(--red); }
.btn-light { background: var(--cream); color: var(--red-deep); }
.btn-light:hover { background: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: rgba(90, 58, 40, 0.15); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--red-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brown);
  transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--red); }
.site-nav .nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--red-deep);
  color: var(--red-deep);
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--red-deep); color: var(--cream); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--brown-dark);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--section-pad); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.5vw, 6.25rem);
  color: var(--red-deep);
  margin-bottom: 1.75rem;
}
.hero h1 span {
  display: block;
  font-size: 0.56em;
  font-style: italic;
  color: var(--brown-dark);
  margin-top: 0.35rem;
}
.hero .lead { max-width: 34rem; margin-bottom: 2.25rem; }

.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 2px;
}

/* ---------- Shared section layout ---------- */
.section { padding: var(--section-pad) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Text beside image */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-image img { width: 100%; border-radius: 2px; }

/* ---------- 2. Vision ---------- */
.vision { background: var(--sand); }
.vision .split-text p:last-child { font-size: 1.1rem; }

/* ---------- 3. Pilot ---------- */
.pilot-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.pilot-tall img { width: 100%; border-radius: 2px; }
.pilot-body > p:first-child { font-size: 1.1rem; }
.pullout {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--red-deep);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2.5rem 0 3rem;
}
.pilot-wide img { width: 100%; border-radius: 2px; }

/* ---------- 4. Why Hani ---------- */
.why { background: var(--brown-dark); color: var(--sand); }
.why h2, .why h3 { color: var(--cream); }
.why .eyebrow { color: var(--gold-soft); }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
  counter-reset: why;
}
.why-list li {
  counter-increment: why;
  border-top: 1px solid rgba(217, 191, 140, 0.35);
  padding-top: 1.75rem;
}
.why-list li::before {
  content: "0" counter(why);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.why-list h3 { margin-bottom: 0.75rem; }
.why-list p { color: rgba(239, 228, 209, 0.8); margin: 0; }

/* ---------- 5. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.gallery-grid figure { display: flex; flex-direction: column; }
.gallery-grid img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
}
/* Overhead spread spans two columns; khash portrait spans two rows */
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-tall { grid-column: 3; grid-row: 1 / 3; }
.gallery-grid .g-tall img { aspect-ratio: auto; }
/* Portrait porch photo cropped to the row: keep the woman and the hanging sausages */
.gallery-grid .g-porch img { object-position: center 45%; }
.gallery-grid figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
}

/* ---------- 6. Get Involved ---------- */
.involved { background: var(--red-deep); color: var(--sand); text-align: center; }
.involved-inner { max-width: 46rem; }
.involved h2 { color: var(--cream); }
.involved .eyebrow { color: var(--gold-soft); }
.involved .lead { color: rgba(239, 228, 209, 0.88); margin-bottom: 2.5rem; }
.involved .secondary { margin: 2rem 0 0; font-size: 0.98rem; }
.involved .secondary a { color: var(--gold-soft); text-underline-offset: 3px; }

/* ---------- 7. Footer ---------- */
.site-footer { background: var(--brown-dark); color: var(--sand); padding: 2.5rem 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.footer-inner p { margin: 0; }
.footer-mark { font-family: var(--font-serif); font-size: 1.4rem; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .hero-inner,
  .split,
  .pilot-grid { grid-template-columns: 1fr; }

  .hero-image img { aspect-ratio: 4 / 3; object-position: center 22%; }

  .pilot-tall img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 70%; }

  .why-list { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .g-wide { grid-column: span 2; }
  .gallery-grid .g-tall { grid-column: auto; grid-row: span 2; grid-row-start: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(90, 58, 40, 0.15);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 0; font-size: 1.05rem; }
  .site-nav .nav-cta { margin-top: 0.5rem; text-align: center; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide,
  .gallery-grid .g-tall { grid-column: auto; grid-row: auto; }
  .gallery-grid .g-tall img { aspect-ratio: 4 / 5; }
}
