/* ============================================================
   Crystalline Management — styles.css
   Palette : soft ivory / warm cream / deep charcoal / muted gold
   Type    : Fraunces (display)  +  Hanken Grotesk (text/utility)
   ============================================================ */

:root {
  --paper:      #F7F3EA;   /* soft ivory base            */
  --cream:      #EFE8D8;   /* warm cream alt sections    */
  --ink:        #23201A;   /* deep warm charcoal text    */
  --ink-soft:   #5A5347;   /* muted body text            */
  --gold:       #A67F3C;   /* muted gold accent          */
  --gold-soft:  #C9B07A;   /* light gold lines/tints     */
  --espresso:   #262219;   /* dark feature band          */
  --line:       #E0D7C4;   /* hairline on light          */

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; padding: 0; }

/* Offset anchor jumps for the sticky header */
section[id], #top { scroll-margin-top: 88px; }

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 200; border-radius: var(--radius);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--gold-soft); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-title-light { color: var(--paper); }

.section-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .95rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--gold); display: grid; place-items: center; }
.brand-text { font-family: var(--display); font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand-sub {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; font-weight: 600;
}

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--gold); transition: width .25s ease;
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--ink); color: var(--paper); padding: .6rem 1.1rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px;
  position: relative; color: var(--ink);
}
.nav-bars, .nav-bars::before, .nav-bars::after {
  content: ""; position: absolute; left: 9px; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-bars { top: 50%; transform: translateY(-50%); }
.nav-bars::before { top: -7px; }
.nav-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(3rem, 8vw, 6rem); }
.hero-inner { text-align: left; max-width: 60rem; }
.hero-title {
  font-family: var(--display); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(2.6rem, 8vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-figure {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Signature: fluted ravioli-edge divider ---------- */
.flute {
  height: 14px; width: 100%;
  background-image: radial-gradient(circle at 10px -4px, transparent 8px, var(--gold-soft) 8px, var(--gold-soft) 9px, transparent 9px);
  background-size: 20px 14px; background-repeat: repeat-x; opacity: .55;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.flute-top, .flute-bottom { margin: 0; opacity: .9; }
.flute-top {
  background-image: radial-gradient(circle at 10px 18px, var(--espresso) 9px, transparent 9px),
                    radial-gradient(circle at 10px -4px, transparent 8px, var(--gold) 8px, var(--gold) 9px, transparent 9px);
}

/* ============================================================
   LEDE
   ============================================================ */
.lede { padding-block: clamp(4rem, 9vw, 7rem); }
.lede-text {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.15rem); line-height: 1.35; max-width: 26ch + 30ch;
  max-width: 48rem; color: var(--ink);
}

/* ============================================================
   SECTION BANDS
   ============================================================ */
.section-cream { background: var(--cream); }
.services, .about, .waitlist, .gallery, .contact { padding-block: clamp(4.5rem, 10vw, 8rem); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.service { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.service h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin-bottom: .7rem; }
.service p { color: var(--ink-soft); max-width: 44ch; }
.service-list { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.service-list li {
  font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  border: 1px solid var(--gold-soft); padding: .3rem .8rem; border-radius: 999px;
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.about-figure { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: sticky; top: 96px; isolation: isolate; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--ink-soft); margin-top: 1.2rem; max-width: 56ch; }
.about-copy .section-title { margin-bottom: .5rem; }
.signature { font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--ink) !important; margin-top: 1.8rem !important; }

/* ---------- Featured Experiences (dark) ---------- */
.section-dark { background: var(--espresso); color: var(--paper); position: relative; }
.experiences { padding-block: clamp(5rem, 10vw, 8.5rem); }
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.exp-card { background: color-mix(in srgb, var(--paper) 5%, transparent); border-radius: var(--radius); overflow: hidden; transition: transform .35s ease; }
.exp-card:hover { transform: translateY(-6px); }
.exp-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.exp-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.exp-card:hover .exp-media img { transform: scale(1.05); }
.exp-body { padding: 1.4rem 1.3rem 1.6rem; }
.exp-body h3 { font-family: var(--display); font-weight: 500; font-size: 1.35rem; margin-bottom: .4rem; }
.exp-body p { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: .95rem; }

/* ============================================================
   FORMS  (Waitlist + Contact)
   ============================================================ */
.waitlist-inner, .contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.waitlist-copy p, .contact-copy p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 42ch; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.form label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: .45rem; }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.form textarea { resize: vertical; }
.form-submit { justify-self: start; margin-top: .4rem; }
.form-status { font-size: .92rem; color: var(--ink-soft); min-height: 1.2em; }
.form-status.is-error { color: #9b3b2e; }
.form-status.is-ok { color: var(--gold); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-inline: var(--gutter); max-width: 1400px; margin-inline: auto; margin-top: 2.5rem;
}
.g-item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.06); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--espresso); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); }
.footer-name { font-family: var(--display); font-size: 1.5rem; }
.footer-co { color: var(--gold-soft); margin-top: .2rem; }
.footer-loc { color: color-mix(in srgb, var(--paper) 65%, transparent); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-links a { text-decoration: none; font-size: .95rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-legal { padding-top: 1.5rem; }
.footer-legal p { font-size: .82rem; color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* ============================================================
   IMAGE PLACEHOLDERS (graceful before real photos arrive)
   ============================================================ */
.img-ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--gold-soft) 18%, transparent) 14px 15px),
    var(--cream);
  display: grid; place-items: center;
}
.section-dark .img-ph, .exp-media.img-ph { background:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--gold) 22%, transparent) 14px 15px),
    #322c22; }
.img-ph::after {
  content: attr(data-label); font-family: var(--sans); font-size: .78rem; letter-spacing: .04em;
  color: var(--ink-soft); padding: .5rem 1rem; text-align: center;
}
.section-dark .img-ph::after { color: var(--gold-soft); }

/* ============================================================
   MOTION / REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-figure { position: static; aspect-ratio: 16 / 10; max-height: 460px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem; transform: translateY(-120%); transition: transform .35s ease;
    box-shadow: 0 20px 40px -28px rgba(0,0,0,.4);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu li:first-child { border-top: 0; }
  .nav-menu a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: .8rem; padding: .9rem 1.1rem; }
  .nav-menu a:not(.nav-cta)::after { display: none; }

  .service-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .exp-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .waitlist-inner, .contact-inner { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-figure { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
