/* ============================================================
   Westlake Eye Studio — Design System
   Single source of truth for color, type, spacing, and layout.
   Edit tokens in :root to re-skin the whole site.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --color-bg:        #faf8f5; /* warm off-white / cream */
  --color-surface:   #ffffff;
  --color-ink:       #1f1d1b; /* near-black charcoal for text */
  --color-ink-soft:  #4a463f; /* muted body text */
  --color-muted:     #8c857a; /* captions, meta */
  --color-line:      #e4ded5; /* hairline borders */
  --color-accent:    #a6886a; /* muted taupe / gold */
  --color-accent-dk: #8a6f54;

  /* Typography — single geometric sans for a cohesive, luxury feel */
  --font-display: "Jost", "Century Gothic", "Futura", -apple-system, sans-serif;
  --font-body:    "Jost", "Century Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero:   clamp(2.5rem, 6vw, 4.75rem);
  --fs-h1:     clamp(2rem, 4.5vw, 3.25rem);
  --fs-h2:     clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3:     1.35rem;
  --fs-body:   1.0625rem;
  --fs-small:  0.875rem;
  --fs-eyebrow: 0.75rem; /* letter-spaced labels */

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* Layout */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius: 2px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent-dk); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: 0.03em; }
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--alt { background: var(--color-surface); }
.text-center { text-align: center; }
.divider {
  width: 64px; height: 1px; background: var(--color-accent);
  border: 0; margin: var(--space-3) 0;
}
.text-center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { background: transparent; color: var(--color-ink); }
.btn--outline { background: transparent; color: var(--color-ink); }
.btn--outline:hover { background: var(--color-ink); color: #fff; }
.btn--light { border-color: #fff; background: #fff; color: var(--color-ink); }
.btn--light:hover { background: transparent; color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem var(--space-3);
  max-width: var(--maxw); margin: 0 auto;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 40px; width: auto; display: block; }
@media (max-width: 760px) { .site-header__logo img { height: 30px; } }
.site-nav { display: flex; align-items: center; gap: var(--space-4); }
.site-nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-accent); }
.site-nav__cta { padding: 0.6rem 1.4rem; color: #fff !important; }
.site-nav__cta:hover { color: #fff !important; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.4rem; font-size: 1.4rem; color: var(--color-ink);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition);
  }
  .site-nav[data-open="true"] { max-height: 420px; }
  .site-nav a { width: 100%; padding: var(--space-2) var(--space-3); border-top: 1px solid var(--color-line); }
  .site-nav__cta { margin: var(--space-2) var(--space-3); text-align: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: stretch;
  overflow: hidden;
  background: var(--color-bg);
}

/* Right-side model image that fades into the cream background on its left.
   Swap the photo by setting --hero-image, or replace /images/hero-image.jpg */
.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 62%;
  background-image: var(--hero-image, url("/images/hero-image.jpg"));
  background-size: cover;
  background-position: center;
}
.hero__media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--color-bg) 0%,
    rgba(250, 248, 245, 0.85) 22%,
    rgba(250, 248, 245, 0.30) 52%,
    rgba(250, 248, 245, 0) 78%);
}

.hero .container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; width: 100%;
  padding-top: var(--space-4); padding-bottom: var(--space-4);
}
/* Announcement + headline sit together as one centered group */
.hero__inner { max-width: 720px; }
.hero h1 {
  font-size: var(--fs-h2);          /* matches the "A considered approach…" heading */
  white-space: nowrap;
  margin-bottom: var(--space-3);
}
.hero__lede { font-size: 1.1rem; color: var(--color-ink-soft); margin-bottom: var(--space-4); max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Coming-soon announcement — the largest line, sitting just above the headline */
.hero__eyebrow {
  width: 100%;
  white-space: nowrap;
  font-size: clamp(1.5rem, 3.3vw, 2.7rem);   /* a touch larger than the headline */
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin: 0 0 var(--space-2);
}

@media (max-width: 820px) {
  .hero { min-height: 78vh; }
  .hero__media { width: 100%; }
  /* On small screens the image sits behind the text; keep an airy
     cream wash so the charcoal copy stays legible. */
  .hero__media::before {
    background: linear-gradient(180deg,
      rgba(250, 248, 245, 0.94) 0%,
      rgba(250, 248, 245, 0.80) 45%,
      rgba(250, 248, 245, 0.90) 100%);
  }
  .hero__inner { max-width: 100%; }
  .hero__lede { max-width: 100%; }
}

/* On smaller screens a single line isn't physically possible — allow wrapping */
@media (max-width: 768px) {
  .hero h1 { white-space: normal; }
  .hero__eyebrow { white-space: normal; letter-spacing: 0.1em; }
}

/* ============================================================
   Feature / value columns
   ============================================================ */
.features {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature { text-align: center; }
.feature__icon {
  width: 44px; height: 44px; margin: 0 auto var(--space-2);
  color: var(--color-accent);
}
.feature h3 { margin-bottom: var(--space-1); }
.feature p { font-size: var(--fs-small); color: var(--color-ink-soft); }

/* ============================================================
   Split (image + text)
   ============================================================ */
.split {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split__media {
  aspect-ratio: 4 / 5; background: var(--color-line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: var(--fs-small);
  letter-spacing: 0.1em; text-transform: uppercase;
  overflow: hidden;
}
img.split__media { object-fit: cover; width: 100%; height: auto; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ============================================================
   Signup / notify band
   ============================================================ */
.signup {
  background: var(--color-ink); color: #fff;
  text-align: center;
}
.signup h2, .signup .eyebrow { color: #fff; }
.signup .eyebrow { color: var(--color-accent); }
.signup p { color: rgba(255,255,255,0.78); }
.signup__form {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  justify-content: center; margin-top: var(--space-3);
}
.signup__form input[type="email"] {
  flex: 1 1 320px; max-width: 380px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  color: #fff; font-family: var(--font-body); font-size: var(--fs-body);
  border-radius: var(--radius);
}
.signup__form input::placeholder { color: rgba(255,255,255,0.55); }
.signup__note { font-size: var(--fs-small); color: rgba(255,255,255,0.55); margin-top: var(--space-2); }

/* Light-background variant (e.g. on the Contact page) */
.signup__form--onlight input[type="email"] {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
}
.signup__form--onlight input::placeholder { color: var(--color-muted); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); } }
.contact-item { margin-bottom: var(--space-3); }
.contact-item .eyebrow { margin-bottom: var(--space-1); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  padding: var(--space-5) 0 var(--space-3);
  font-size: var(--fs-small);
}
.site-footer__grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-3); } }
.site-footer__logo img { height: 36px; width: auto; margin-bottom: var(--space-2); }
.site-footer h4 {
  font-family: var(--font-body); font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted);
  margin-bottom: var(--space-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-1); }
.site-footer a { color: var(--color-ink-soft); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer__bottom {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between; color: var(--color-muted);
}

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
