/* Lobby & Leaf — Final brand (6B-SIDE Aesop) */
:root {
  --deep: #24302A;
  --bone: #F4F1E9;
  --champagne: #C5B48A;
  --ink: #141311;
  --mist: #A8B4A6;
  --muted: #4A524C; /* AA on bone */
  --white: #FFFcf7;
  --line: #E4E0D6;
  --deep-soft: #2F3C35;
  --max: 1120px;
  --pad: clamp(1.5rem, 4vw, 2rem);
  --radius: 10px;
  --shadow: 0 14px 40px rgba(20, 19, 17, 0.07);
  --font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/SourceSans3-subset.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--deep-soft); text-decoration-color: var(--champagne); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.12;
  color: var(--deep);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.15rem, 5.5vw, 3.5rem); font-weight: 400; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.35rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--muted); }
.lead {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 40rem;
  letter-spacing: 0.005em;
}
.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--deep);
  margin-bottom: 0.85rem;
}
.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}
.section { padding: clamp(3.75rem, 9vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--deep, .section--olive {
  background: var(--deep);
  color: var(--bone);
}
.section--deep h2, .section--deep h3,
.section--olive h2, .section--olive h3 { color: var(--bone); }
.section--deep p, .section--olive p { color: rgba(244, 241, 233, 0.82); }
.section--deep .eyebrow, .section--olive .eyebrow { color: var(--champagne); }
.section--white { background: var(--white); }
.section--mist { background: #ECE9E1; }
.section--moss { background: #ECE9E1; } /* legacy alias */

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 233, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding-block: 0.55rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--deep);
  flex-shrink: 0;
}
.logo-lockup {
  width: auto;
  height: 56px; /* phone: text block ~43px of 65.7/85.7 */
}
.logo img.logo-lockup { width: auto; height: 56px; }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--deep); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--deep);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 18px; height: 1.5px;
  background: var(--deep);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav .nav-cta { display: none !important; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav .nav-cta { display: inline-flex !important; }
  .nav { min-height: 5.75rem; padding-block: 0.7rem; }
  .logo-lockup, .logo img.logo-lockup { height: 70px; /* desktop text ~54px */ }
}
.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bone);
  padding: 1rem var(--pad) 1.25rem;
}
.nav-drawer.open { display: block; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.nav-drawer .btn { margin-top: 1rem; width: 100%; }

/* Buttons — quiet luxury */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.btn-primary {
  background: var(--deep);
  color: var(--bone);
}
.btn-primary:hover { background: var(--deep-soft); color: var(--bone); }
.btn-secondary {
  background: transparent;
  color: var(--deep);
  border-color: var(--deep);
}
.btn-secondary:hover { background: var(--deep); color: var(--bone); }
.btn-light {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244, 241, 233, 0.55);
}
.btn-light:hover { background: rgba(244, 241, 233, 0.12); color: var(--bone); border-color: var(--bone); }
.section--deep .btn-primary, .section--olive .btn-primary {
  background: var(--bone);
  color: var(--deep);
}
.section--deep .btn-primary:hover, .section--olive .btn-primary:hover {
  background: #fff;
  color: var(--deep);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero CTAs must contrast on dark overlay */
.hero .btn-primary {
  background: var(--bone);
  color: var(--deep);
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--deep);
}


/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--bone);
  overflow: hidden;
}
@media (max-width: 859px) {
  .hero {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,17,0.1) 0%, rgba(36,48,42,0.5) 50%, rgba(36,48,42,0.78) 100%);
}
.hero__content {
  position: relative; z-index: 1;
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  padding-inline: var(--pad);
}
.hero h1 { color: var(--bone); max-width: 15ch; letter-spacing: -0.025em; }
.hero .lead { color: rgba(244, 241, 233, 0.92); font-weight: 400; }
.hero .eyebrow { color: var(--champagne); }
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(244, 241, 233, 0.1);
  border: 1px solid rgba(244, 241, 233, 0.28);
  color: var(--bone);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Grids */
.grid-2 { display: grid; gap: 2.25rem; }
.grid-3 { display: grid; gap: 1.35rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3.25rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card--image { padding: 0; overflow: hidden; }
.card--image img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.card--image .card__body { padding: 1.35rem 1.4rem 1.55rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem; height: 1.85rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--bone);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.media-frame {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.serve-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.serve-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 500;
}
.serve-list li::before {
  content: "";
  width: 0.45rem; height: 0.45rem;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--champagne);
  flex-shrink: 0;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--deep);
  font-weight: 300;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.25rem; }

/* Forms */
.form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--deep);
  margin-bottom: 0.4rem;
}
.req { color: #6E5328; } /* AA on bone */
input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--mist);
}
textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.form-note.is-success { color: var(--deep); font-weight: 600; }
.form-note.is-error { color: #6E5328; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hp-field input,
.hp-field label {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
}
.form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.site-footer .placeholder-tag {
  color: var(--bone);
  background: rgba(197, 180, 138, 0.18);
  border-color: rgba(197, 180, 138, 0.65);
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--deep);
  background: rgba(197, 180, 138, 0.22);
  border: 1px solid rgba(197, 180, 138, 0.55);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2.25rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 16ch; }

/* Footer */
.site-footer {
  background: var(--deep);
  color: rgba(244, 241, 233, 0.88);
  padding: 3.25rem 0 2rem;
}
.site-footer p { color: rgba(244, 241, 233, 0.82); }
.site-footer a { color: var(--bone); text-decoration: none; }
.site-footer a:hover { color: var(--champagne); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 1rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-logo {
  height: 64px;
  width: auto;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; font-weight: 400; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 241, 233, 0.14);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: rgba(244, 241, 233, 0.7);
}
.amp { color: var(--champagne); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: var(--bone);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.guarantee { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .guarantee { grid-template-columns: 1fr 1fr; }
}
.guarantee-item {
  padding: 1.25rem 1.35rem;
  border-left: 1px solid var(--champagne);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; color: rgba(244, 241, 233, 0.88); }

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

/* Mobile polish */
@media (max-width: 859px) {
  .section { padding: clamp(2.75rem, 7vw, 3.75rem) 0; }
  .hero { min-height: 0; align-items: end; }
  .hero__media {
    position: relative;
    inset: auto;
    min-height: 52vw;
    max-height: 420px;
    aspect-ratio: 4 / 3;
  }
  .hero__media img { min-height: 100%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(20,19,17,0.05) 0%, rgba(36,48,42,0.3) 55%, rgba(36,48,42,0.58) 100%);
  }
  .hero__content {
    background: var(--deep);
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-block: 2.5rem;
    padding-inline: 1.5rem;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.25rem);
    max-width: 14ch;
    line-height: 1.15;
  }
  .hero .lead { font-size: 1.05rem; max-width: 34ch; color: rgba(244,241,233,0.92); }
  .hero .eyebrow { color: var(--champagne); }
  .hero .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero .btn-row .btn { width: 100%; justify-content: center; }
  .hero .price-pill {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .logo-lockup, .logo img.logo-lockup { height: 56px; }
  .card--image img, .media-frame img { aspect-ratio: 3/2; }
  .nav { min-height: 4.75rem; padding-block: 0.45rem; }
  .footer-logo { height: 56px; }
}

@media (min-width: 860px) {
  /* Split hero: solid deep panel (AA) + photo — matches phone confidence */
  .hero {
    align-items: stretch;
    min-height: min(78vh, 680px);
    display: grid;
    grid-template-columns: minmax(22rem, 0.95fr) 1.15fr;
    grid-template-rows: 1fr;
  }
  .hero__media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    min-height: 100%;
  }
  .hero__media::after {
    /* soft edge into panel only — text never sits on the photo */
    background: linear-gradient(90deg, rgba(36,48,42,0.35) 0%, rgba(36,48,42,0) 18%);
  }
  .hero__content {
    grid-column: 1;
    grid-row: 1;
    background: var(--deep);
    max-width: none;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3.25rem);
    text-shadow: none;
    box-sizing: border-box;
  }
  .hero h1 { color: var(--bone); max-width: 14ch; }
  .hero .eyebrow { color: var(--champagne); }
  .hero .lead { color: rgba(244, 241, 233, 0.92); max-width: 34ch; }
  .hero .price-pill {
    background: rgba(244, 241, 233, 0.08);
    border-color: rgba(244, 241, 233, 0.32);
    align-self: flex-start;
  }
}

.hero { margin-top: 0; }
.site-header + main .hero,
.site-header + main .page-hero { scroll-margin-top: 0; }

/* 1440+: frame the split hero on the same centered 1120 rail as the nav.
   The 860px rule sets .hero__content { width:100%; max-width:none; margin:0 },
   which drops the .container rail. Constrain the hero box itself, and
   keep copy inset by the same pad as the nav. */
@media (min-width: 1440px) {
  main > .hero {
    width: min(100%, var(--max));
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    border-radius: calc(var(--radius) + 2px);
  }
  main > .hero .hero__content {
    padding-inline: var(--pad);
  }
  main > .hero h1 {
    max-width: none;
  }
}

/* Sentence case comes from the HTML. Nothing on the page is forced to caps. */
.eyebrow,
.site-footer h3,
label,
.placeholder-tag,
.btn {
  text-transform: none;
}

/* Hairline rule utility */
.rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--champagne);
  margin: 0 0 1.25rem;
  border: 0;
}
