/* Women's Work Legal. Mobile-first; breakpoints at 400px, 720px and 1080px. */

:root {
  /* Every green shares the logo's hue (#457D58). */
  --cream: #F6F6E9;
  --paper: #FBFBF4;
  --stone: #E1E7D7;
  --sage: #457D58;
  --sage-text: #3A6B4A;
  --sage-deep: #2E5A3D;
  --mist: #C6D5C2;
  --ink: #24302A;
  --ink-soft: #56655B;
  --line: #7E8F83;
  --white: #FFFFFF;

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1180px;
  --section-pad: clamp(3rem, 10vw, 8rem);
  --radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* clears the sticky header even after the 16px reveal shift */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 519px) {
  body { font-size: 1rem; line-height: 1.65; }
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--sage-deep);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.3rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.2; }
h1, h2 { text-wrap: balance; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--sage-text); text-underline-offset: 0.2em; }
a:hover { color: var(--sage-deep); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--sage-deep); color: var(--cream);
}
.skip-link:focus { top: 1rem; }
.skip-link:hover { color: var(--cream); }
main:focus { outline: none; }

.eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-text);
}

.lede { font-size: 1.125rem; color: var(--ink-soft); }
.familiar-note { margin-top: 2rem; }

/* Large italic closing lines (familiar, how it works, pricing) */
.closing-line {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35;
  color: var(--sage-deep);
}
.closing-line a { font-style: normal; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.9rem 1.75rem;
  border: 1px solid var(--sage); border-radius: var(--radius);
  background: var(--sage); color: var(--white);
  font: 500 0.8125rem/1 var(--font-body);
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.btn-small { min-height: 44px; padding: 0.7rem 0.85rem; font-size: 0.6875rem; letter-spacing: 0.14em; white-space: nowrap; }
@media (min-width: 520px) {
  .btn-small { padding: 0.7rem 1.1rem; font-size: 0.75rem; letter-spacing: 0.18em; }
}

.text-link {
  padding-block: 0.75rem;
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: var(--sage-text);
}
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--mist); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-mark { width: 56px; }
.brand-word {
  margin: 0;
  font: 600 0.8125rem/1 var(--font-body);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-deep);
}
/* Narrow phones: smaller mark, wordmark wraps to "Women's Work / Legal" */
.brand .brand-mark { width: 44px; }
.brand .brand-word { max-width: 7.5rem; font-size: 0.6875rem; letter-spacing: 0.16em; line-height: 1.3; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  padding-block: 0.75rem;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { color: var(--sage-text); }

@media (min-width: 360px) {
  .brand .brand-word { max-width: 8.75rem; }
}
@media (min-width: 520px) {
  .brand .brand-mark { width: 56px; }
  .brand .brand-word { max-width: none; font-size: 0.8125rem; letter-spacing: 0.22em; line-height: 1; }
}
/* Phones and tablets: "Menu" dropdown with jump links. The header CTA joins it
   once there's room (640px); desktop swaps both for the full nav (900px). */
.header-cta { display: none; }
.mobile-nav { margin-left: auto; }
.mobile-nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 0.9rem;
  border: 1px solid var(--sage); border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage-deep); cursor: pointer; list-style: none;
}
.mobile-nav-toggle::-webkit-details-marker { display: none; }
.mobile-nav-toggle::after {
  content: ""; width: 0.4rem; height: 0.4rem; margin-top: -0.2rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.mobile-nav[open] .mobile-nav-toggle::after { transform: rotate(-135deg); margin-top: 0.2rem; }
.mobile-nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; gap: 0.25rem;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--mist);
  box-shadow: 0 12px 24px -16px rgba(36, 48, 42, 0.35);
}
.mobile-nav-panel a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px solid var(--mist);
  font-family: var(--font-display); font-size: 1.35rem; text-decoration: none;
  color: var(--sage-deep);
}
.mobile-nav-panel .btn { margin-top: 1rem; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; margin-left: auto; }
  .mobile-nav { margin-left: 0.5rem; }
}
@media (min-width: 900px) {
  .site-nav { display: block; margin-left: auto; }
  .header-cta { margin-left: 1rem; }
  .mobile-nav { display: none; }
}

/* Sections */
.section { padding-block: var(--section-pad); }
.section + .section { border-top: 1px solid var(--mist); }
.tint { background: var(--stone); }
.tint + .section, .section + .tint { border-top-color: transparent; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) var(--section-pad); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 em { color: var(--sage-text); }
.hero-tagline {
  margin: -0.25rem 0 1.25rem;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3;
  color: var(--sage-text); text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
/* Phones: full-width buttons are easier to tap; tighter tracking keeps them on one line */
@media (max-width: 519px) {
  main .btn { width: 100%; padding-inline: 0.75rem; font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero-actions .btn { letter-spacing: 0.08em; }
}
.reassure { margin-top: 1.25rem; font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.hero-photo { position: relative; max-width: 440px; margin: 0 auto; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(246, 246, 233, 0.7);
  pointer-events: none;
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .hero-photo { max-width: none; margin: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; }
}

/* Does this sound familiar? */
.familiar-list { display: grid; gap: 1rem 3rem; margin: 2rem 0; padding: 0; list-style: none; }
.familiar-list li { position: relative; padding: 0 0 1rem 2.25rem; border-bottom: 1px solid var(--mist); }
.familiar-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 1.1rem; height: 0.55rem;
  border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage);
  transform: rotate(-45deg);
}
@media (min-width: 720px) {
  .familiar-list { grid-template-columns: 1fr 1fr; gap: 1.25rem 3rem; margin-block: 2.5rem; }
  .familiar-list li { padding-bottom: 1.25rem; }
}

/* Rights band: the logo green itself */
.band {
  position: relative; overflow: hidden;
  padding-block: var(--section-pad);
  background: var(--sage); color: var(--white);
}
.band h2, .band h3, .band .eyebrow, .band p, .band a { color: var(--white); }
.band :focus-visible { outline-color: var(--white); }
.rights-watermark {
  position: absolute; right: -4rem; bottom: -3rem;
  width: min(60vw, 560px);
  filter: brightness(0) invert(1);
  opacity: 0.08;
  pointer-events: none;
}
.rights-grid { position: relative; display: grid; gap: 1.5rem; margin-top: 2rem; }
.rights-grid article { padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.rights-grid p { margin-bottom: 0; }
.fine-print { position: relative; margin-top: 2rem; font-size: 0.8125rem; }
/* Tablets: three narrow columns would be cramped, so each right reads as a row */
@media (min-width: 720px) {
  .rights-grid { gap: 2rem; margin-top: 3rem; }
  .rights-grid article { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; padding-top: 1.5rem; }
  .fine-print { margin-top: 3rem; }
}
@media (min-width: 1080px) {
  .rights-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .rights-grid article { display: block; }
}

/* Approach */
.approach-grid { display: grid; gap: 2rem 3rem; }
.pull-quote {
  margin: 0; padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--sage);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2;
  color: var(--sage-deep);
}
.pull-quote p { max-width: none; margin: 0; }
@media (min-width: 1080px) {
  .approach-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
}

/* How it works */
.steps { display: grid; gap: 1rem; margin: 2rem 0; padding: 0; list-style: none; }
.steps li { padding: 1.5rem 1.25rem; border: 1px solid var(--mist); background: var(--paper); }
.step-num {
  display: block; margin-bottom: 1rem;
  font-family: var(--font-display); font-size: 2.75rem; line-height: 1;
  color: var(--sage);
}
.steps p { margin: 0; color: var(--ink-soft); }
/* Phones: the number sits beside the step's heading instead of above it */
@media (max-width: 719px) {
  .steps li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 1rem; }
  .steps .step-num { margin: 0; font-size: 2.25rem; }
  .steps h3 { margin-bottom: 0.6rem; }
  .steps p { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-block: 3rem; }
  .steps li { padding: 2rem 1.75rem; }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Pricing */
.pricing-intro { display: grid; gap: 2.5rem; align-items: center; }
.price-card {
  padding: clamp(2rem, 5vw, 2.5rem) 2rem; text-align: center;
  border: 1px solid var(--mist); background: var(--paper);
}
.price {
  margin: 0 auto 0.5rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3.5rem, 7vw, 5rem); line-height: 1;
  color: var(--sage-deep);
}
.price-label { margin: 0 auto 0.75rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-text); }
.price-note { margin: 0 auto; font-size: 0.875rem; color: var(--ink-soft); }
.benefits { display: grid; gap: 1.5rem; margin: 1.5rem 0 2.5rem; }
.benefits article { padding-top: 1.25rem; border-top: 1px solid var(--mist); }
.benefits p { color: var(--ink-soft); }
.benefits p:last-child { margin-bottom: 0; }
.pricing-subhead { margin-top: 3rem; }
/* Tablets: rows with the heading beside the text, as in the rights band */
@media (min-width: 720px) {
  .benefits { gap: 2rem; margin: 2rem 0 3rem; }
  .benefits article { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; padding-top: 1.5rem; }
  .pricing-subhead { margin-top: 4rem; }
}
@media (min-width: 1080px) {
  .pricing-intro { grid-template-columns: 1.4fr 0.6fr; gap: 5rem; }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .benefits article { display: block; }
}

/* About */
.about-grid { display: grid; gap: 3rem; align-items: start; }
.about-photo { max-width: 440px; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Phones: a small portrait beside "About / Hi, I'm Katie." rather than a full-width photo
   ahead of the bio. The text column dissolves so its parts join the grid. */
@media (max-width: 719px) {
  .about-grid { grid-template-columns: 38% 1fr; gap: 0 1.25rem; }
  .about-grid > div { display: contents; }
  .about-photo { grid-row: 1 / span 2; margin-bottom: 1.75rem; }
  .about-grid .eyebrow { align-self: end; margin-bottom: 0.75rem; }
  .about-grid h2 { align-self: start; margin-bottom: 1.75rem; }
  .about-grid > div > :not(.eyebrow, h2) { grid-column: 1 / -1; }
}
.signature {
  margin: 2rem 0 0.25rem;
  font-family: var(--font-display); font-style: italic; font-size: 2rem;
  color: var(--sage-deep);
}
.signature-title { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }
  .about-photo { position: sticky; top: 6rem; }
}

/* FAQ */
.faq-list { max-width: 860px; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3;
  color: var(--sage-deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  content: "+" / ""; flex-shrink: 0;
  font-family: var(--font-body); font-weight: 300; font-size: 1.5rem;
  color: var(--sage-text);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.5rem; color: var(--ink-soft); }

/* Start here: booking */
.intake-grid { display: grid; gap: 2rem; }
/* Shown only beside the calendar on wide screens; stacked, it would push the calendar down */
.intake-photo { display: none; max-width: 360px; margin: 2rem 0 0; }
.intake-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.booking-card { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--mist); background: var(--paper); }
.booking-card h3 { margin-bottom: 0.25rem; }
.booking-meta { font-size: 0.875rem; color: var(--ink-soft); }
.booking-frame { margin: 1.5rem 0 0; border: 1px solid var(--mist); background: var(--white); }
.booking-frame iframe { display: block; width: 100%; height: 760px; border: 0; }
.booking-note { margin: 1.25rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }
/* Phones: the card and the calendar inside it run edge to edge, so the calendar gets the full screen width */
@media (max-width: 519px) {
  .booking-card { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); border-inline: 0; }
  .booking-frame { margin-inline: calc(-1 * var(--gutter)); border-inline: 0; }
}
/* Below 720px Google stacks the month above the day's times; give it the height so the times aren't cut off */
@media (max-width: 719px) {
  .booking-frame iframe { height: 1100px; }
}
@media (min-width: 1080px) {
  .intake-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .intake-intro { position: sticky; top: 6rem; }
  .intake-photo { display: block; }
}

/* Footer */
.site-footer {
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--mist);
  background: var(--paper);
  font-size: 0.875rem; color: var(--ink-soft);
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 80px; margin-bottom: 1rem; }
.footer-brand .brand-word { margin-bottom: 0.5rem; }
.footer-tag { margin: 0; font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; }
.footer-label { margin-bottom: 0.75rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-text); }
.footer-col p:last-child { margin-bottom: 0; }
.footer-legal { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--mist); font-size: 0.8125rem; }
.footer-legal p { max-width: none; }
.footer-legal p:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; align-items: start; }
}

/* Thanks / privacy pages */
.simple-page { padding-block: var(--section-pad); }
.simple-page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.simple-page h2 { margin-top: 2.5rem; font-size: 1.6rem; }
.simple-page h3 { margin-top: 1.75rem; font-size: 1.3rem; }
.simple-page ul { max-width: 62ch; padding-left: 1.25rem; }
.simple-page li { margin-bottom: 0.35em; }
.legal-caps { text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.02em; }

/* Cookie banner (added by analytics.js) and the footer link that reopens it */
.consent {
  /* Phones: a bar along the bottom edge, clear of the home indicator */
  position: fixed; z-index: 60; inset: auto 0 0;
  display: grid; gap: 0.75rem;
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--mist); background: var(--paper);
  box-shadow: 0 -6px 24px rgb(36 48 42 / 0.10);
  font-size: 0.8125rem; color: var(--ink-soft);
}
.consent p { margin: 0; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
@media (min-width: 720px) {
  /* Wider screens: a card centered at the bottom */
  .consent {
    inset: auto var(--gutter) 1.5rem; max-width: 34rem; margin-inline: auto;
    padding: 1.1rem 1.25rem; border: 1px solid var(--mist);
    box-shadow: 0 8px 28px rgb(36 48 42 / 0.12);
  }
}
.link-button {
  padding: 0; border: 0; background: none;
  font: inherit; color: var(--sage-text); text-decoration: underline; text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-button:hover { color: var(--sage-deep); }

/* Open inputs stay visibly highlighted until replaced (see npm run prelaunch) */
[data-placeholder] { background: #FFF3C4; outline: 1px dashed #B58900; }

/* Reveal on scroll (enabled by main.js only when motion is welcome) */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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