/* Nexsync Coaching - styles
   Palette B is active. Palette A is the backup: change data-palette="b" to "a" on <html>.
   Contrast targets WCAG 2.2 AA. Figures in README.md (mockups v8). */

/* ---------- Fonts (self-hosted, so no third-party requests) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); } /* for the green word in the hero */
/* Body font: Figtree (chosen by the user 2026-11-25, replacing Inter). */
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-700-normal.woff2) format("woff2"); }

/* ---------- Palettes ---------- */
/* B: Cloud White, Graphite, Moss Green (dark page) */
:root[data-palette="b"] {
  --light: #EEF1F0;
  --dark: #23262A;
  --deep: #1A1C20;        /* dark at 75% brightness: bands, panel, footer */
  --accent: #6BCB3B;
  --on-accent: #23262A;
  --page-bg: var(--dark);
  --page-ink: var(--light);
  --btn-size: 0.9375rem; /* 15px at default text size; rem so it grows when visitors enlarge text (pressure test 2026-11-30) */
  --btn-weight: 500;
  --meet-label: var(--accent);   /* Moss on Graphite: 7.40:1 */
}
/* A (backup): Rice White, Nori Green, Tuna Red. Button text must stay 19px bold:
   Nori on Tuna is 4.23:1, which passes only as WCAG large text. */
:root[data-palette="a"] {
  --light: #F4F1EA;
  --dark: #1E2B22;
  --deep: #16201A;
  --accent: #FF3D4A;
  --on-accent: #1E2B22;
  --page-bg: var(--light);
  --page-ink: var(--dark);
  --btn-size: 1.1875rem;
  --btn-weight: 700;
  --meet-label: var(--dark);     /* Tuna on Rice is 3.09:1, too low for 16px text, so A keeps it dark */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-ink);
  font: 400 1.125rem/1.7 "Figtree", system-ui, sans-serif;
}
h1, h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--light); color: var(--dark); padding: 12px 18px; font-weight: 500;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0;
  font: 500 1rem/1 "Figtree", sans-serif; /* 16px: 4px bigger than before, per the user 2026-11-25 */
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font: var(--btn-weight) var(--btn-size)/1 "Figtree", sans-serif;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 17px 31px;
  border: 1px solid transparent; /* invisible normally; shows as the button outline in Windows high-contrast mode */
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline-color: var(--light); }
/* Outline button: header "Book a Session" (option B, user choice 2026-11-30). Light text over the photo: worst case 5.15:1 (mockup v14). */
.btn--ghost { background: transparent; color: var(--light); border-color: var(--light); }
.btn--ghost:hover { filter: none; background: var(--accent); color: var(--on-accent); border-color: var(--accent); } /* fills green on hover, like the other buttons (user choice A, 2026-11-30): 7.40:1 */

/* Photo sections (hero, session) share the landscape photo with a dark tint so text meets contrast.
   Hero tint 66% / 70% / 90% (middle raised from 58% on 2026-11-26 when the hero text moved to the vertical center).
   Worst case measured at 1000x547 to 1920x1080 and iPhone 13 (palette B), after centering below the header: paragraph 5.07, heading 6.43, header 5.40. */

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 30px 56px;
  color: var(--light);
}
.site-header__logo {
  width: 44px; height: 53px; object-fit: contain;
  filter: brightness(0) invert(1); /* turns the green logo white */
}
.site-header__rule { width: 1px; height: 56px; background: var(--accent); } /* accent green (user request 2026-11-26); decorative, so no contrast minimum */
.site-header__name { font: 400 1rem/1.3 "Figtree", sans-serif; letter-spacing: 0.26em; text-transform: uppercase; }
.site-header__book { margin-left: auto; padding: 13px 23px; white-space: nowrap; } /* top right; opens the same calendar as the other buttons */

/* ---------- 1. Opening ---------- */
.hero {
  /* Fill one screen so the heading, paragraph and button show without scrolling. */
  min-height: 100vh; min-height: 100svh;
  /* Content centered in the space between the bottom of the header and the bottom of the screen
     (user request 2026-11-26): equal space above and below. The header is 116px tall (30 + 56 + 30),
     so the top padding is that plus the same padding as the bottom. */
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center;
  padding: calc(116px + clamp(24px, 4vh, 48px)) 56px clamp(24px, 4vh, 48px);
}
.hero, .session { position: relative; color: var(--light); background: var(--deep) url(../images/hero-landscape.jpg) center top / 128% auto no-repeat; }
/* Smaller copies of the same photo (pressure test 2026-11-30): AVIF 170 KB, WebP 280 KB, JPEG 489 KB fallback above. */
.hero, .session { background-image: image-set(url(../images/hero-landscape.avif) type("image/avif"), url(../images/hero-landscape.webp) type("image/webp"), url(../images/hero-landscape.jpg) type("image/jpeg")); }
.hero::before, .session::before { content: ""; position: absolute; inset: 0; }
.hero > *, .session > * { position: relative; }
.hero::before {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--dark) 66%, transparent),
    color-mix(in srgb, var(--dark) 70%, transparent) 45%,
    color-mix(in srgb, var(--dark) 90%, transparent));
}
.hero__title em { color: var(--accent); font-style: italic; } /* "beyond" (user choice 2026-11-26). Worst case over the photo 3.66 on phones; large text needs 3.0 */
.hero__side p + p { margin-top: 16px; }
.hero__title { font-size: clamp(2.25rem, min(6.4vw, 11vh), 5.75rem); line-height: 1; letter-spacing: -0.01em; }

/* ---------- 2. Who I Help ---------- */
.help {
  background: var(--deep); color: var(--light);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 96px;
  padding: 150px 56px;
}
.help .eyebrow { color: var(--accent); margin-bottom: 30px; }
.help__lead { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.15; }
.help__right { align-self: end; display: grid; gap: 36px; justify-items: start; } /* paragraph, then the booking button */
.help__body { border-top: 1px solid color-mix(in srgb, var(--light) 35%, transparent); padding-top: 28px; }

/* ---------- 3. Meet Josh ---------- */
.meet { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.meet__text { display: flex; flex-direction: column; justify-content: center; padding: 88px 72px 88px 56px; }
.meet .eyebrow { color: var(--meet-label); }
.meet__title { font-size: clamp(2.25rem, 4.2vw, 3.75rem); line-height: 1.06; margin: 24px 0 32px; }
/* height: 0 + min-height: 100% lets the text set the section height; the photo crops to fit. */
.meet picture { display: contents; } /* the <img> inside stays the grid item */
.meet__photo { width: 100%; height: 0; min-height: 100%; object-fit: cover; object-position: 50% 30%; order: 2; } /* photo on the right on desktop, per the Immersive mockup */

/* ---------- 4. Complimentary Session ---------- */
.session { min-height: 820px; display: flex; align-items: center; justify-content: center; padding: 120px 56px; }
.session::before { background: color-mix(in srgb, var(--dark) 45%, transparent); }
.session__panel {
  max-width: 760px; padding: 72px; text-align: center;
  background: color-mix(in srgb, var(--deep) 82%, transparent);
  backdrop-filter: blur(6px);
}
.session__title { font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1; margin-bottom: 30px; }
.session__panel p { margin-bottom: 40px; }
/* Booking calendar (loaded on click by js/booking.js). The panel widens to fit Google's page. */
.session.is-booking .session__panel { max-width: 1040px; width: 100%; }
/* The open calendar makes the section taller than the photo: scale the photo to the section height (top-aligned, 115%) so it covers and the parking lot stays cropped out, as on phones. */
.session.is-booking { background-size: auto 115%; background-position: center top; }
.booking { margin-top: 40px; background: #FFFFFF; }
.booking__frame { display: block; width: 100%; height: 720px; border: 0; }

/* ---------- 5. Footer ---------- */
.site-footer {
  background: var(--deep); color: var(--light);
  display: flex; justify-content: space-between; gap: 48px;
  padding: 56px; font-size: 0.875rem;
}
/* Footer brand: same lockup as the header (logo, green line, spaced caps), user choice 2026-11-26 */
.site-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.site-footer__logo { width: 36px; height: 43px; object-fit: contain; filter: brightness(0) invert(1); }
.site-footer__rule { width: 1px; height: 46px; background: var(--accent); }
.site-footer__name { font: 400 0.9375rem/1.3 "Figtree", sans-serif; letter-spacing: 0.26em; text-transform: uppercase; }
/* Privacy link: accent color at body size (user request 2026-11-26). Moss on the footer: 8.31; palette A Tuna: 4.79 */
.site-footer__right a { color: var(--accent); font-size: 1.125rem; }
.site-footer__right { max-width: 520px; text-align: right; display: grid; gap: 12px; justify-items: end; }

/* ---------- Privacy notice page ---------- */
.site-header--solid { position: static; background: var(--deep); }
.site-header__home { display: flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.legal { max-width: 760px; margin: 0 auto; padding: 96px 24px 120px; }
.legal h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 56px 0 14px; }
.legal p, .legal ul { margin: 0 0 16px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal .effective { color: color-mix(in srgb, var(--page-ink) 75%, transparent); }
/* Bracketed details still needed from Josh, highlighted so none ship by accident. */
mark.todo { background: #FFE08A; color: #23262A; padding: 0 4px; }
.site-footer a[aria-current="page"] { text-decoration: none; font-weight: 500; }
@media (max-width: 900px) { .legal { padding: 64px 20px 88px; } }

/* ---------- Scroll reveal ----------
   Text fades up 16px as its section scrolls into view (js/reveal.js adds .is-visible).
   Only hidden when JS runs (.js on <html>), so text is never lost without JS.
   Turned off for people who set "reduce motion" in their system settings. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile (not yet reviewed against a design) ---------- */
@media (max-width: 900px) {
  .site-header { padding: 20px 20px; gap: 12px; }
  .site-header__logo { width: 36px; height: 43px; }
  .site-header__rule { height: 46px; }
  .site-header__name { font-size: 0.875rem; }
  .btn { padding: 17px 23px; } /* narrower side padding on phones */
  .site-header__book { padding: 10px 13px; font-size: 0.875rem; } /* after .btn so it wins */
  /* Tall screens: scale the photo to 115% of the section height, top-aligned, so the parking lot at the bottom stays cropped out. */
  .hero, .session { background-size: auto 115%; background-position: 42% top; }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: 100svh; padding: 120px 20px 56px; align-content: end; } /* phones keep the bottom-aligned layout */
  .help { grid-template-columns: 1fr; gap: 40px; padding: 96px 20px; }
  .meet { grid-template-columns: 1fr; min-height: 0; }
  .meet__photo { order: -1; height: auto; min-height: 0; aspect-ratio: 1 / 1; } /* portrait above bio, per the wireframe */
  .meet__text { padding: 56px 20px 72px; }
  .session { min-height: 0; padding: 72px 16px; }
  .session__panel { padding: 48px 24px; }
  .session.is-booking .session__panel { padding: 48px 12px; }
  .booking__frame { height: 860px; }
  .site-footer { flex-direction: column; padding: 40px 20px; }
  .site-footer__right { text-align: left; justify-items: start; }
}

/* Very small phones (320 to 360px): tighten the header so the logo, name and button fit. */
@media (max-width: 360px) {
  .site-header { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .site-header__name { letter-spacing: 0.18em; font-size: 0.8125rem; }
  .site-header__book { padding: 9px 10px; font-size: 0.8125rem; }
  /* "Complimentary" is one long word at 44px; it made the panel 1px wider than a 320px screen. */
  .session { padding-left: 12px; padding-right: 12px; }
  .session__panel { padding: 40px 16px; }
  .session__title { font-size: 2.375rem; }
}

/* ---------- Print (pressure test 2026-11-30) ----------
   The site is light text on dark backgrounds, and printers drop backgrounds, so print dark text on white. */
@media print {
  @page { margin: 0.6in; }
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; backdrop-filter: none !important; }
  html, body { background: #fff !important; }
  .hero, .session { background-image: none !important; min-height: 0 !important; padding: 24px 0 !important; }
  .site-header { position: static; padding: 0 0 16px; }
  .site-header__logo, .site-footer__logo { filter: none; } /* the logo prints in its own green */
  .site-header__rule, .site-footer__rule { border-left: 1px solid #2B422E; } /* printers skip backgrounds, so draw the line as a border */
  .skip-link, .site-header__book, .booking, .meet__photo { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: underline; }
  .btn { border: 1px solid #000; }
  .legal { padding: 0; max-width: none; }
  .legal h2 { margin-top: 28px; break-after: avoid; }
  .site-footer { display: block; padding: 24px 0 0; border-top: 1px solid #000; }
  .site-footer__right { text-align: left; justify-items: start; margin-top: 12px; }
}
