/* ==========================================================================
   Dr. Kimberly Berkus — stylesheet
   Edit the variables below to change colors, fonts and spacing site-wide.
   ========================================================================== */

:root {
  --green:       #2f4f4a;   /* primary dark green */
  --green-dark:  #233b37;
  --green-light: #4a6f68;
  --sand:        #f4f1ea;   /* warm off-white background */
  --sand-dark:   #e8e2d6;
  --ink:         #23282b;   /* body text */
  --ink-soft:    #5b6467;
  --white:       #ffffff;
  --accent:      #c08a5e;   /* warm accent for rules and eyebrows */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 3px;
  --shadow: 0 12px 40px rgba(35, 59, 55, .12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h3 { font-size: 1.35rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: var(--white); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--white); color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(47, 79, 74, .92);
  backdrop-filter: blur(10px);
  transition: padding .25s ease, background .25s ease;
  padding: .55rem 0;
}
.site-header.scrolled { background: rgba(35, 59, 55, .98); padding: .15rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { text-decoration: none; color: var(--white); display: block; padding: .4rem 0; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.brand-tag { display: block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--white); }
.btn-schedule { background: var(--white); color: var(--green) !important; padding: .7rem 1.5rem; }
.btn-schedule:hover { background: var(--accent); color: var(--white) !important; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 34px; padding: 6px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-overlay {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(35,59,55,.55) 0%, rgba(35,59,55,.35) 40%, rgba(35,59,55,.88) 100%);
  padding: 9rem 0 4.5rem;
}
.hero-content { color: var(--white); max-width: 840px; }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero-content h1 span { color: var(--sand-dark); font-style: italic; }
.lede { font-size: 1.18rem; line-height: 1.7; color: rgba(255,255,255,.93); max-width: 58ch; }
.lede.center { margin-inline: auto; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Strip ---------- */
.strip { background: var(--green); color: var(--white); padding: 3rem 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; text-align: center; }
.strip-grid h3 { color: var(--white); margin-bottom: .25rem; }
.strip-grid p { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .75rem; font-weight: 500;
}

.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.portrait img { border-radius: var(--radius); box-shadow: var(--shadow); }
.col-text .eyebrow { text-align: left; }

blockquote {
  margin: 2.25rem 0; padding: 1.25rem 0 1.25rem 1.75rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.5;
  color: var(--green-dark);
}
blockquote cite { display: block; margin-top: .75rem; font-family: var(--sans); font-size: .78rem; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.consult-note { background: var(--sand-dark); padding: 1.15rem 1.4rem; border-radius: var(--radius); font-size: .97rem; }
.section-alt .consult-note { background: var(--sand); }

/* Seminar group photo — oval crop.
   The source file is only 720x443, so the display width is capped: pushing
   --band-width much past 460px starts upscaling and it goes soft again.
   (The old layout stretched it to ~1120px, which is why it looked blurry.) */
.band-figure { --band-width: 460px; max-width: var(--band-width); margin: 0 auto 3rem; }
.band-img { display: block; }
.band-img img {
  width: 100%;
  border-radius: 50%;            /* ellipse, follows the image's aspect ratio */
}

.prose { max-width: 720px; margin-inline: auto; }
.prose h3 { color: var(--green); margin-top: 2.25rem; }
.pull {
  font-family: var(--serif); font-size: 1.5rem; font-style: italic;
  text-align: center; color: var(--green); margin: 2.5rem 0 0;
}

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 3.5rem 0 0; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-line { margin-top: 3rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.contact-info h3 { color: var(--green); margin-top: 2rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info address { font-style: normal; line-height: 1.8; }
.contact-info p { margin: .5rem 0 0; }

.contact-form { background: var(--white); padding: 2.25rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.section-alt .contact-form { background: var(--sand); }
.contact-form h3 { margin-top: 0; color: var(--green); }
.contact-form label { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 1.15rem 0 .4rem; }
.contact-form .opt { text-transform: none; letter-spacing: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem .9rem; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(47,79,74,.12); }
.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 1.6rem; width: 100%; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin: 1rem 0 0; text-align: center; }
.hidden-field { position: absolute; left: -9999px; }

.map-embed { margin-top: 4rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.78); padding: 3.5rem 0; text-align: center; font-size: .92rem; }
.site-footer a { color: rgba(255,255,255,.92); }
.site-footer a:hover { color: var(--accent); }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin: 0 0 .75rem; }
.footer-links { margin-top: 1.25rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.copyright { font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: 0; margin-top: 1.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* On a narrow screen the hero crops to a tall slice — about 40% of the photo's
     width on a phone. Centered, that lands on the mirror, which is bright and busy
     behind the headline. Shifting left to 20% frames the Functional Patterns machine
     instead: darker, better contrast for white text, and better branding. */
  .hero-img img { object-position: 20% 35%; }

  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait { max-width: 420px; margin-inline: auto; }
  .strip-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-dark); padding: .5rem 0 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .95rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .btn-schedule { margin: 1rem 1.5rem 0; text-align: center; border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .hero { min-height: 78vh; }
  .hero-overlay { padding: 8rem 0 3rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contact-form { padding: 1.5rem; }
  .map-embed iframe { height: 320px; }
}

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

/* ==========================================================================
   PRINT
   The screen design leans on full-bleed photos, dark backgrounds and a fixed
   header — all of which print badly. This rebuilds the page as a clean
   document: black text on white, no navigation chrome, images at a sane size,
   and link destinations spelled out since a reader can't click paper.
   ========================================================================== */
@media print {

  /* --- Page setup --- */
  @page { size: letter portrait; margin: 0.75in 0.8in; }

  html { font-size: 11pt; }
  body {
    background: #fff !important;
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;
  }

  .wrap { width: 100% !important; max-width: none !important; }

  /* --- Strip out screen-only chrome --- */
  .site-header,
  .nav-toggle,
  .site-nav,
  .skip-link,
  .map-embed,
  .hero-actions,
  .cta-line,
  .contact-form form,
  .footer-links,
  .hidden-field { display: none !important; }

  /* --- Headings --- */
  h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #000 !important;
    page-break-after: avoid;
    break-after: avoid;
  }
  h1 { font-size: 24pt; line-height: 1.15; margin: 0 0 .4em; }
  h2 { font-size: 17pt; margin: 0 0 .4em; }
  h3 { font-size: 12.5pt; margin: 1.2em 0 .3em; }
  h1 span { font-style: italic; display: block; }

  p, li, blockquote, address { orphans: 3; widows: 3; }

  .eyebrow {
    color: #000 !important;
    font-size: 8.5pt;
    letter-spacing: .18em;
    margin-bottom: .3em;
  }

  /* --- Hero: photo becomes a normal image, text goes black-on-white --- */
  .hero { display: block; min-height: 0; page-break-after: auto; }
  .hero-img { position: static; }
  .hero-img img {
    width: 100%; height: auto; max-height: 2.6in;
    object-fit: cover; margin-bottom: .35in;
  }
  .hero-overlay {
    position: static; display: block;
    background: none !important; padding: 0;
  }
  .hero-content { max-width: none; color: #000 !important; }
  .hero-content h1 { color: #000 !important; text-shadow: none !important; }
  .hero-content h1 span { color: #000 !important; }
  .lede { color: #000 !important; font-size: 12pt; max-width: none; }

  /* --- Dark strip becomes a bordered box --- */
  .strip {
    background: none !important; color: #000 !important;
    padding: .18in 0; margin: .25in 0;
    border-top: 1pt solid #000; border-bottom: 1pt solid #000;
    page-break-inside: avoid; break-inside: avoid;
  }
  .strip-grid { display: block; text-align: left; }
  .strip-grid > div { margin: .1in 0; }
  .strip-grid h3 { color: #000 !important; margin: 0 0 .1em; font-size: 11.5pt; }
  .strip-grid p { color: #000 !important; margin: 0; font-size: 10.5pt; }

  /* --- Sections --- */
  .section { padding: .3in 0; page-break-before: auto; }
  .section-alt { background: none !important; }
  .section-head { text-align: left; max-width: none; margin-bottom: .2in; }
  .lede.center { text-align: left; margin-inline: 0; }

  .two-col, .contact-grid { display: block; }
  .portrait { float: right; width: 2.1in; margin: 0 0 .2in .25in; }
  .portrait img { box-shadow: none !important; border: 1pt solid #999; }

  blockquote {
    border-left: 2pt solid #000; color: #000 !important;
    font-size: 12pt; margin: .2in 0; padding: .05in 0 .05in .2in;
    page-break-inside: avoid; break-inside: avoid;
  }
  blockquote cite { color: #000 !important; }

  .consult-note {
    background: none !important; border: 1pt solid #000;
    padding: .12in; page-break-inside: avoid; break-inside: avoid;
  }

  .prose { max-width: none; }
  .pull { color: #000 !important; font-size: 13pt; }

  /* --- Images: keep them small enough not to eat whole pages --- */
  .band-figure { max-width: 3.6in; margin: .2in auto; }
  .band-img img { box-shadow: none !important; }
  .gallery { display: block; margin-top: .2in; }
  .gallery picture { display: block; width: 3.4in; margin: .15in auto; }
  .gallery img { box-shadow: none !important; border: 1pt solid #999; }
  img, figure, picture { page-break-inside: avoid; break-inside: avoid; }

  /* --- Contact --- */
  .contact-info h3 { margin-top: .18in; }
  .contact-info address { font-style: normal; }
  .btn { display: none !important; }
  .contact-form { background: none !important; box-shadow: none !important; padding: 0; }
  .contact-form h3::after {
    content: " — available on the website";
    font-weight: normal; font-style: italic; font-size: 10pt;
  }

  /* --- Footer --- */
  .site-footer {
    background: none !important; color: #000 !important;
    border-top: 1pt solid #000; padding: .2in 0 0;
    text-align: left; page-break-inside: avoid; break-inside: avoid;
  }
  .site-footer a { color: #000 !important; }
  .footer-brand { color: #000 !important; font-size: 13pt; }
  .copyright { color: #000 !important; }

  /* --- Links: show the destination, since paper isn't clickable --- */
  a { color: #000 !important; text-decoration: none; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt; word-break: break-all; font-family: Arial, sans-serif;
  }
  a[href^="tel:"]::after, a[href^="mailto:"]::after, a[href^="#"]::after { content: ""; }
}
