/* =============================================================
   Great Oaks Counseling Center — Main Stylesheet
   =============================================================
   To adjust site-wide colors, fonts, or spacing, edit the
   custom properties in the :root block below.
   ============================================================= */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  /* Colors */
  --clr-text:        #2D1B0E;   /* main headings & body */
  --clr-text-mid:    #5C3D27;   /* secondary text */
  --clr-text-muted:  #866754;   /* captions, labels */
  --clr-accent:      #5E8B1E;   /* oak green — links, buttons, accents */
  --clr-accent-dark: #4A7016;   /* hover / active state */
  --clr-bg:          #FFFFFF;
  --clr-bg-warm:     #F8F5F0;   /* alternating section background */
  --clr-bg-cream:    #EDE8E0;   /* highlights, notice blocks */
  --clr-border:      #DDD6CC;
  --clr-error:       #C0392B;
  --clr-success:     #27643B;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', Arial, sans-serif;

  /* Layout */
  --max-w:       1100px;
  --header-h:    88px;
  --sec-pad:     88px;
  --sec-pad-sm:  52px;
  --radius:      4px;
}


/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--clr-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--clr-accent-dark); }
ul  { list-style: none; }


/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  color: var(--clr-text);
  line-height: 1.2;
}

h1 { font-size: clamp(36px, 5vw,  58px); }
h2 { font-size: clamp(28px, 4vw,  44px); }
h3 { font-size: clamp(22px, 3vw,  32px); }
h4 { font-size: clamp(19px, 2vw,  24px); }

/* Eyebrow / label treatment */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 14px;
}

p + p { margin-top: 1em; }


/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 36px;
}

section        { padding: var(--sec-pad) 0; }
.bg-warm       { background: var(--clr-bg-warm); }
.bg-cream      { background: var(--clr-bg-cream); }
.text-center   { text-align: center; }


/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.btn-primary:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.btn-outline:hover {
  background: var(--clr-accent);
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow 0.2s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.logo-address {
  font-size: 9px;
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-mid);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--clr-accent);
  border-bottom-color: var(--clr-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Page Banner (inner pages) ───────────────────────────────── */
.page-banner {
  background: var(--clr-bg-warm);
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(32px, 4.5vw, 52px);
}


/* ── Hero (Home page) ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  height: 800px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 0;
  margin-left: auto;
  max-width: 560px;
  width: 100%;
}

.hero-content h1  { margin-bottom: 20px; font-size: clamp(26px, 2.8vw, 38px); }
.hero-content > p { font-size: 17px; color: var(--clr-text-mid); line-height: 1.8; margin-bottom: 0; }

.hero-image { overflow: hidden; height: 100%; }
.hero-image img   { width: 100%; height: 100%; object-fit: cover; object-position: center center; }


/* ── Quote Band ──────────────────────────────────────────────── */
.quote-band {
  background: var(--clr-bg-warm);
  padding: 68px 0;
  text-align: center;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.quote-band blockquote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic;
  color: var(--clr-text-mid);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.55;
}


/* ── Section Heading ─────────────────────────────────────────── */
.section-heading           { margin-bottom: 48px; }
.section-heading h2        { margin-bottom: 12px; }
.section-heading > p       { font-size: 18px; color: var(--clr-text-mid); max-width: 640px; }
.section-heading.centered  { text-align: center; }
.section-heading.centered p { margin: 0 auto; }


/* ── Services Grid (Home preview) ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.services-grid .service-card:nth-child(5) { grid-column: 2; }
.services-grid .service-card:nth-child(6) { grid-column: 3; }

.service-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 30px 24px;
}

.service-card h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--clr-text);
}

.service-card p {
  font-size: 15px;
  color: var(--clr-text-mid);
  line-height: 1.65;
}


/* ── Therapist Cards (Home preview) ─────────────────────────── */
.therapists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.therapist-card { text-align: center; }

.therapist-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.therapist-card h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.therapist-card p {
  font-size: 13px;
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ── Therapist Profiles (Full bio page) ─────────────────────── */
.therapist-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  padding: 60px 0;
  border-bottom: 1px solid var(--clr-border);
}

.therapist-profile:last-of-type { border-bottom: none; }

.therapist-profile .profile-photo {
  width: 260px;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.therapist-bio h3       { margin-bottom: 6px; }
.therapist-bio .cred    { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 22px; }
.therapist-bio p        { color: var(--clr-text-mid); margin-bottom: 1em; }
.therapist-bio p:last-child { margin-bottom: 0; }

.profile-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
}

.profile-links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
  padding-bottom: 2px;
}

.profile-links a:hover { color: var(--clr-accent-dark); border-color: var(--clr-accent-dark); }


/* ── Notice Block (Therapists page) ─────────────────────────── */
.notice-block {
  background: var(--clr-bg-cream);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-top: 52px;
}

.notice-block h4     { font-size: 15px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-text-mid); margin-bottom: 14px; }
.notice-block p      { font-size: 15px; color: var(--clr-text-mid); margin-bottom: 10px; }
.notice-block p:last-child { margin-bottom: 0; }


/* ── Content Pages (Services, Fees, Privacy) ─────────────────── */
.content-wrap {
  max-width: 780px;
}

.content-wrap h2 { margin-bottom: 24px; }
.content-wrap h3 { margin: 40px 0 16px; font-size: clamp(20px, 2.5vw, 28px); }
.content-wrap h4 { margin: 28px 0 12px; }
.content-wrap p  { color: var(--clr-text-mid); margin-bottom: 1em; }
.content-wrap ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--clr-text-mid);
  margin-bottom: 1em;
}
.content-wrap ul li { margin-bottom: 6px; }


/* ── Services List ───────────────────────────────────────────── */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 20px;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 17px;
  color: var(--clr-text-mid);
}

.services-list li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}


/* ── Info Blocks (Fees page) ─────────────────────────────────── */
.info-block {
  background: var(--clr-bg-warm);
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  margin: 28px 0;
}

.info-block h4   { font-size: 22px; font-weight: 500; margin-bottom: 12px; color: var(--clr-text); }
.info-block p    { color: var(--clr-text-mid); margin-bottom: 0; }
.info-block p + p { margin-top: 8px; }


/* ── Contact Page Layout ─────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.contact-info h3     { margin-bottom: 18px; }
.contact-info .address { font-size: 16px; color: var(--clr-text-mid); line-height: 1.9; margin-bottom: 28px; }

.direct-note {
  background: var(--clr-bg-warm);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 15px;
  color: var(--clr-text-mid);
  line-height: 1.7;
}


/* ── Contact Form ────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-mid);
  margin-bottom: 7px;
}

.form-group label .req { color: var(--clr-accent); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(94, 139, 30, 0.12);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C3D27' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-turnstile { margin: 20px 0 8px; }

#form-messages { margin-bottom: 16px; }

.msg-success {
  padding: 14px 18px;
  background: #eaf6ee;
  color: var(--clr-success);
  border: 1px solid #b8e6c6;
  border-radius: var(--radius);
  font-weight: 600;
}

.msg-error {
  padding: 14px 18px;
  background: #fde8e6;
  color: var(--clr-error);
  border: 1px solid #f5c2bb;
  border-radius: var(--radius);
}

.msg-loading {
  padding: 14px 18px;
  background: #e8f0fc;
  color: #2c5282;
  border: 1px solid #c3d5f5;
  border-radius: var(--radius);
}


/* ── Map ─────────────────────────────────────────────────────── */
.map-wrap {
  padding: var(--sec-pad-sm) 0;
  border-top: 1px solid var(--clr-border);
}

.map-wrap h3 { margin-bottom: 20px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.map-embed iframe { display: block; width: 100%; }


/* ── HB 4224 Section ─────────────────────────────────────────── */
.hb4224-section {
  background: var(--clr-bg-warm);
  border-top: 1px solid var(--clr-border);
  padding: var(--sec-pad-sm) 0;
}

.hb4224-section h3  { margin-bottom: 12px; }
.hb4224-section > .container > p { color: var(--clr-text-mid); margin-bottom: 24px; }

.hb4224-list {
  counter-reset: hb;
  list-style: none;
  padding: 0;
}

.hb4224-list li {
  counter-increment: hb;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-mid);
  font-size: 16px;
  align-items: flex-start;
}

.hb4224-list li:last-child { border-bottom: none; }

.hb4224-list li::before {
  content: counter(hb);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--clr-accent);
  min-width: 20px;
  line-height: 1.4;
}


/* ── Emergency Note ──────────────────────────────────────────── */
.emergency-note {
  background: #fff8f5;
  border: 1px solid #f5c2bb;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--clr-text-mid);
  margin: 20px 0;
  line-height: 1.65;
}

.emergency-note strong { color: var(--clr-error); }


/* ── Privacy Policy ──────────────────────────────────────────── */
.privacy-list {
  counter-reset: priv;
  list-style: none;
  padding: 0;
}

.privacy-list > li {
  counter-increment: priv;
  padding: 28px 0;
  border-bottom: 1px solid var(--clr-border);
}

.privacy-list > li:last-child { border-bottom: none; }

.privacy-list h4 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  margin-bottom: 10px;
}

.privacy-list h4::before {
  content: counter(priv) ". ";
  color: var(--clr-accent);
}

.privacy-list p  { color: var(--clr-text-mid); margin-bottom: 8px; }
.privacy-list ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--clr-text-mid);
  margin-top: 10px;
}
.privacy-list ul li { margin-bottom: 6px; }

.privacy-subhead {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--clr-text);
  margin: 40px 0 16px;
}


/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-text);
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p    { font-size: 14px; }
.site-footer a    { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: #fff; }


/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 960px) {
  :root { --sec-pad: 64px; }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .hero-content {
    padding: 56px 36px;
    max-width: 100%;
    margin: 0;
  }

  .hero-image {
    height: 380px;
    order: -1;
  }

  .therapists-grid { grid-template-columns: repeat(2, 1fr); }

  .therapist-profile {
    grid-template-columns: 200px 1fr;
    gap: 36px;
  }

  .therapist-profile .profile-photo {
    width: 200px;
    height: 280px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-list { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --sec-pad: 52px; --sec-pad-sm: 40px; }

  .logo-address { display: none; }

  .container { padding: 0 20px; }

  /* Mobile nav */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--clr-bg);
    padding: 24px 20px;
    overflow-y: auto;
    border-top: 1px solid var(--clr-border);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    font-size: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--clr-border);
    border-bottom-left-radius: 0;
  }

  .nav-toggle { display: flex; }

  .logo img   { height: 40px; }
  .hero-image { height: 260px; }

  .therapists-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  .therapist-profile {
    grid-template-columns: 1fr;
  }

  .therapist-profile .profile-photo {
    width: 100%;
    height: 300px;
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:nth-child(5),
  .services-grid .service-card:nth-child(6) { grid-column: auto; }

  .form-row { grid-template-columns: 1fr; }

  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; }

  .site-footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .therapists-grid { grid-template-columns: 1fr; }
}
