/* ============================================
   Constructive Parenting Coach — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-900: #0f3d1a;
  --green-800: #1a5c2a;
  --green-700: #22723a;
  --green-600: #2d8a48;
  --green-500: #3a9d5c;
  --green-400: #5cb878;
  --green-300: #85cfa0;
  --green-200: #b5e2c5;
  --green-100: #dff2e6;
  --green-50: #f0f9f3;

  --cream: #faf8f5;
  --cream-dark: #f2efe9;
  --charcoal: #2d2d2d;
  --charcoal-light: #4a4a4a;
  --gray: #6b7280;
  --gray-light: #d1d5db;
  --white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --section-padding: 100px 0;
  --section-padding-sm: 60px 0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-500);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-900);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1.1rem;
  color: var(--charcoal-light);
  margin-bottom: 1rem;
}

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

.lead {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

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

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

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--green {
  background: var(--green-50);
}

.section--dark {
  background: var(--green-900);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: var(--green-200);
}

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

.grid {
  display: grid;
  gap: 40px;
}

.grid--2 {
  grid-template-columns: 1fr 1fr;
}

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

.grid--hero {
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-800);
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__logo:hover {
  color: var(--green-700);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-light);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-600);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green-700);
}

.nav__links .btn--primary,
.nav__links .btn--primary:hover,
.nav__links .btn--primary.active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero--centered {
  text-align: center;
  justify-content: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  margin-bottom: 16px;
  max-width: 600px;
}

.hero--centered .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero__quotes {
  margin: 32px 0;
}

.hero__quotes p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--green-800);
  margin-bottom: 8px;
}

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 480px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 114, 58, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--green-700);
  border: 2px solid var(--green-700);
}

.btn--outline:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--green-800);
}

.btn--white:hover {
  background: var(--cream);
  color: var(--green-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 20px 40px;
  font-size: 1.1rem;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: 32px;
}

.card__body h3 {
  margin-bottom: 12px;
}

.card__body p {
  margin-bottom: 16px;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--green-200);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial__text {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial__author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-800);
}

/* --- FAQ --- */
.faq-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-light);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  margin-bottom: 12px;
  color: var(--green-800);
}

.faq-item p {
  color: var(--charcoal-light);
}

/* --- About / Content Sections --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-grid--reverse {
  direction: rtl;
}

.about-grid--reverse > * {
  direction: ltr;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 16px;
}

.highlight-box {
  background: var(--green-50);
  border-left: 4px solid var(--green-600);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.highlight-box p {
  color: var(--charcoal);
  margin-bottom: 0;
}

/* --- Specialty Pages (ADHD, Autism) --- */
.specialty-content h2 {
  margin-bottom: 24px;
}

.specialty-content .lead {
  margin-bottom: 32px;
}

.bullet-list {
  list-style: none;
  margin: 24px 0 32px;
}

.bullet-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 1.1rem;
  color: var(--charcoal-light);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  background: var(--green-500);
  border-radius: 50%;
}

/* --- What to Expect --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h4 {
  margin-bottom: 12px;
}

/* --- Contact Form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(58, 157, 92, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.contact-info {
  margin-top: 40px;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 1.05rem;
  color: var(--charcoal-light);
}

.contact-info__item svg {
  flex-shrink: 0;
  color: var(--green-600);
}

/* --- Footer --- */
.footer {
  background: var(--green-900);
  color: var(--green-200);
  padding: 60px 0 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand + p {
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.footer__links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--green-200);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact {
  margin-top: 16px;
}

.footer__contact p {
  color: var(--green-200);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.footer__contact a {
  color: var(--green-200);
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section Header Spacing --- */
.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--hero,
  .about-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step {
    text-align: left;
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 24px 0;
  }

  .step__number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-md);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

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

  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
