/*
Theme Name: Katy DBT Start
Theme URI: https://katydbt.com
Author: Katy DBT Center
Description: Custom theme for the Katy DBT D&D therapy program site.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: katydbt-start
*/

/* ============================================================
   CSS VARIABLES — sourced from start.katydbt.com
   ============================================================ */
:root {
  --color-dark:         #264653;   /* dark teal — headings, nav text, dark sections */
  --color-primary:      #457b9d;   /* medium blue — links, footer bg */
  --color-accent:       #f4a261;   /* warm orange — CTA buttons, highlights */
  --color-accent-2:     #e76f51;   /* coral — third benefit col, active nav */
  --color-accent-hover: #d4793c;   /* darker orange for hover */
  --color-cream:        #f1e9db;   /* cream — footer text, light bg */
  --color-header-bg:    #f9f9fe;   /* near-white with cool tint */
  --color-white:        #ffffff;
  --color-text:         #000000;
  --color-text-light:   #444444;
  --color-border:       #ddd5c8;   /* warm neutral border */
  --font-heading:       'Source Serif Pro', Georgia, "Times New Roman", serif;
  --font-body:          'Open Sans', Helvetica, Arial, Lucida, sans-serif;
  --font-button:        'Poppins', 'Montserrat', sans-serif;
  --max-width:          1100px;
  --section-pad:        80px 20px;
  --radius:             6px;

  /* Benefit column colors */
  --col-1-bg: #F4A261;
  --col-2-bg: #457B9D;
  --col-3-bg: #E76F51;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-dark);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

/* ============================================================
   BUTTONS — pill shape, Poppins, no border (matches real site)
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-family: var(--font-button);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-dark {
  background: var(--color-dark);
}
.btn-dark:hover {
  background: #1a3440;
}

.btn-outline {
  background: transparent;
  color: var(--color-white) !important;
  border: 2px solid var(--color-white);
  border-radius: 100px;
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark) !important;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-pad { padding: var(--section-pad); }

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ============================================================
   HEADER — #f9f9fe background (matches real site)
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-header-bg);
  border-bottom: 1px solid rgba(38,70,83,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

#site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo img {
  height: 56px;
  width: auto;
}

.site-logo .site-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
}

/* Desktop nav */
#site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

#site-nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-dark);
  transition: color 0.2s;
}

#site-nav a:hover {
  color: var(--color-accent-2);
}

#site-nav .current-menu-item > a,
#site-nav .current_page_item > a {
  color: var(--color-accent-2); /* #e76f51 coral for active items */
}

#site-nav .menu-cta > a {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-family: var(--font-button);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: background 0.2s;
}
#site-nav .menu-cta > a:hover {
  background: var(--color-accent-hover);
  color: var(--color-white) !important;
}

/* Mobile hamburger */
#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

#menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

@media (max-width: 768px) {
  #menu-toggle { display: flex; }

  #site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-header-bg);
    border-top: 1px solid var(--color-border);
    display: none;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  #site-nav.open { display: block; }

  #site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 20px;
  }

  #site-nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }

  #site-nav ul li:last-child { border-bottom: none; }
  #site-nav .menu-cta > a { display: inline-block; }
}

/* ============================================================
   HERO — photo background with dark teal overlay
   ============================================================ */
.hero {
  /* Overlay + optional background image set via --hero-bg-url inline style */
  background-image:
    linear-gradient(180deg, rgba(38,70,83,0.66) 0%, rgba(38,70,83,0.66) 100%),
    var(--hero-bg-url, none);
  background-color: #264653;
  background-size: cover;
  background-position: center center;
  padding: 120px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem); /* 72px at full size */
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BENEFITS — full-width colored columns (matches real site)
   ============================================================ */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.benefit-col {
  padding: 80px 4%;
  color: var(--color-white);
  text-align: center;
}

.benefit-col:nth-child(1) { background: var(--col-1-bg); } /* orange */
.benefit-col:nth-child(2) { background: var(--col-2-bg); } /* blue */
.benefit-col:nth-child(3) { background: var(--col-3-bg); } /* coral */

.benefit-col img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
  filter: brightness(0) invert(1); /* white icon */
}

.benefit-col h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.benefit-col p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.benefit-col a {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.benefit-col a:hover {
  color: var(--color-white);
  border-color: var(--color-white);
}

@media (max-width: 768px) {
  .benefits-strip { grid-template-columns: 1fr; }
  .benefit-col { padding: 60px 8%; }
}

/* ============================================================
   CONTENT SECTIONS (What is DBT / Why D&D)
   ============================================================ */
.content-section {
  padding: var(--section-pad);
}

.content-section.dark {
  background: var(--color-dark); /* #264653 dark teal */
  color: rgba(255,255,255,0.9);
}

.content-section.dark .section-title { color: var(--color-white); }
.content-section.dark p  { color: rgba(255,255,255,0.85); }

.content-section.light-bg {
  background: var(--color-cream); /* #f1e9db warm cream */
}

/* Legacy class alias */
.content-section.light-purple { background: var(--color-cream); }

.content-section-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.content-section-inner .section-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.content-section-inner p {
  font-size: 16px;
  line-height: 1.8em;
  margin-bottom: 1.4rem;
}

.content-section-inner .btn {
  margin-top: 0.5rem;
}

/* ============================================================
   THERAPIST SECTION — dark background, white text
   ============================================================ */
.therapist-section {
  padding: var(--section-pad);
  background: var(--color-dark); /* #264653 — matches real site */
}

.therapist-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.therapist-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.therapist-bio h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-white);
  margin-bottom: 0.4rem;
}

.therapist-bio .subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent); /* orange */
  margin-bottom: 1.2rem;
  display: block;
}

.therapist-bio p {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .therapist-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .therapist-photo img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: linear-gradient(180deg, rgba(38,70,83,0.88) 0%, rgba(38,70,83,0.88) 100%),
              var(--hero-bg-url, none);
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  padding: 80px 20px 70px;
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-white);
  font-weight: 700;
}

.about-content-section {
  padding: var(--section-pad);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-split img {
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-director {
  padding: var(--section-pad);
  background: var(--color-cream);
}

.about-director-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-director h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.about-director p {
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; }
  .about-director-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: var(--section-pad);
  background: var(--color-white);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-inner h1, .faq-inner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.2rem 2rem 1.2rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.4rem;
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================================
   GENERIC PAGE CONTENT
   ============================================================ */
.page-content-wrap {
  padding: var(--section-pad);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 { font-family: var(--font-heading); font-size: 2rem; color: var(--color-dark); margin-bottom: 1.5rem; }
.page-content h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-dark); margin: 2rem 0 1rem; }
.page-content h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-dark); margin: 1.5rem 0 0.8rem; }
.page-content p  { color: var(--color-text-light); line-height: 1.8; }

/* ============================================================
   FOOTER — #457b9d blue bg, #f1e9db cream text (matches real site)
   ============================================================ */
#site-footer {
  background: var(--color-primary); /* #457b9d */
  color: var(--color-cream);
  padding: 60px 20px 30px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 80px;
  width: auto;
  margin: 0 auto;
  opacity: 0.9;
}

.footer-logo .site-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-top: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(241,233,219,0.2);
  margin-bottom: 2rem;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent); /* orange */
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--color-cream); /* #f1e9db */
  line-height: 1.7;
}

.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--color-white); }

.footer-col strong {
  color: var(--color-white);
  font-size: 1.05rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--color-accent); /* orange social icons */
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(241,233,219,0.6);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: var(--section-pad);
  background: var(--color-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-form-col h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
}

.contact-form-col > p {
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info-col {
  padding-top: 0.5rem;
}

.contact-info-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-info-block h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}

.contact-info-block p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.contact-info-block a:not(.btn) {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-section {
  /* alternating rows */
}

.team-member {
  padding: 70px 5%;
  background: var(--color-white);
}

.team-member:nth-child(even) {
  background: var(--color-cream);
}

.team-member-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-photo img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.team-bio h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 0.3rem;
}

.team-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.team-bio p {
  font-size: 0.97rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .team-member-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .team-photo img {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ============================================================
   SERVICE CARDS (Services page)
   ============================================================ */
.services-section {
  /* alternating rows */
}

.service-card {
  background: var(--color-white);
  padding: 60px 5%;
}

.service-card-alt {
  background: var(--color-cream);
}

.service-card-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2.5rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  flex-shrink: 0;
  margin-top: 4px;
}

.service-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
}

.service-body p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

@media (max-width: 640px) {
  .service-card-inner {
    grid-template-columns: 1fr;
    gap: 1rem 0;
  }
}

/* ============================================================
   MODULE ROWS (About DBT, D&D, For Teens, For Adults pages)
   Alternating light / cream rows with large number accent
   ============================================================ */
.dbt-modules {
  /* no extra wrapper styles needed — rows handle their own bg */
}

.module-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 3rem;
  align-items: start;
  padding: 60px 5%;
  background: var(--color-white);
  max-width: 100%;
}

.module-row-alt {
  background: var(--color-cream);
}

.module-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  text-align: center;
  padding-top: 0.1em;
}

.module-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 0.8rem;
}

.module-content p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .module-row {
    grid-template-columns: 60px 1fr;
    gap: 0 1.5rem;
    padding: 40px 5%;
  }
  .module-number { font-size: 3rem; }
}

/* ============================================================
   WORDPRESS ALIGNMENT HELPERS
   ============================================================ */
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption  { max-width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 80px 20px 70px; }
  .hero h1 { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .section-title { font-size: 1.6rem; }
}
