/* ================================================================
   Tony Wakefield Counseling — styles.css
   Primary: taupe #a6937d · Secondary: logo green #4c9000 · plus earthy blue & brown
   ================================================================ */

:root {
  /* Primary palette — taupe */
  --taupe:       #a6937d;
  --taupe-dark:  #8f7d69;
  --taupe-light: #c2b29f;
  --taupe-pale:  #efe9e2;

  /* Secondary — logo green */
  --green:       #4c9000;
  --green-dark:  #3a6e00;
  --green-light: #6db800;
  --green-pale:  #eef5e0;

  --blue:        #3d5a6c;  /* earthy slate blue */
  --blue-dark:   #2c4350;
  --blue-light:  #5a7a8e;
  --blue-pale:   #e8eef2;

  --brown:       #6b5444;  /* warm earthy brown */
  --brown-dark:  #4a3a2e;
  --brown-light: #8a715b;
  --brown-pale:  #f0ebe5;

  /* Neutrals */
  --cream:       #faf8f4;
  --white:       #ffffff;
  --text:        #2a2a2a;
  --text-light:  #5a5a5a;
  --border:      #e0ddd7;

  /* Typography */
  --font-serif:  'PT Serif', Georgia, 'Times New Roman', serif;
  --font-sans:   'Nunito', 'Segoe UI', Tahoma, Geneva, sans-serif;

  /* Layout */
  --max-width:   1200px;
  --radius:      8px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

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

.section--blue {
  background: var(--blue-pale);
}

.section--brown {
  background: var(--brown-pale);
}

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

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title .subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  font-size: 1.1rem;
}

.section--dark .section-title .subtitle {
  color: rgba(250, 248, 244, 0.8);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--taupe);
  color: var(--text);
}

.btn--primary:hover {
  background: var(--taupe-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(166, 147, 125, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

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

.btn--light {
  background: var(--white);
  color: var(--blue-dark);
}

.btn--light:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--taupe);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a:hover {
  color: var(--taupe);
}

.site-nav .nav-cta {
  background: var(--taupe);
  color: var(--text);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
}

.site-nav .nav-cta::after {
  display: none;
}

.site-nav .nav-cta:hover {
  background: var(--taupe-dark);
  color: var(--white);
}

.site-nav .nav-portal {
  color: var(--blue);
  font-weight: 600;
}

.site-nav .nav-portal::after {
  content: '\2197';
  position: absolute;
  top: -2px;
  right: -12px;
  font-size: 0.7rem;
  color: var(--text-light);
}

.site-nav .nav-portal:hover {
  color: var(--taupe);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--taupe-pale) 0%, var(--blue-pale) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(166, 147, 125, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

.hero .hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

/* ---- Video placeholder ---- */
.video-placeholder {
  max-width: 640px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 9;
  background: var(--blue-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.video-placeholder:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.video-placeholder-inner {
  text-align: center;
  color: var(--cream);
}

.video-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: background 0.3s ease;
}

.video-placeholder:hover .video-icon {
  background: var(--taupe);
}

.video-placeholder-inner p {
  font-size: 0.95rem;
  color: rgba(250, 248, 244, 0.7);
  margin: 0;
}

/* ---- Edge-to-edge video hero ---- */
.hero-video {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px); /* subtract header height */
  min-height: 530px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(44, 67, 80, 0.5) 0%, rgba(44, 67, 80, 0.6) 100%);
  z-index: 1;
}

.hero-video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 0 1.5rem;
  text-align: center;
}

.hero-video-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-video-content .hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(250, 248, 244, 0.9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-video-content .btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-video-content .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-color: var(--white);
}

.hero-video-content .btn--primary {
  text-shadow: none;
}
.hero--image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.hero--image .hero-text {
  max-width: none;
}

.hero--image .hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero--image .hero-photo img {
  width: 100%;
  object-fit: cover;
}

/* ---- Feature grid (concerns) ---- */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.concern-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--blue-dark);
  transition: all 0.3s ease;
}

.concern-item:hover {
  border-color: var(--taupe);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(166, 147, 125, 0.15);
}

/* ---- Split content ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

/* ---- Services cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.service-card-image {
  height: 200px;
  background: var(--taupe-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  color: var(--green);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  color: var(--text-light);
  flex: 1;
}

.service-card-body .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ---- FAQ accordion ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.05rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--green-pale);
}

.faq-question .faq-icon {
  font-size: 1.5rem;
  color: var(--green);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
}

/* ---- Quote / callout ---- */
.callout {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--taupe);
  color: var(--text);
}

.callout h2 {
  color: var(--text);
  font-style: italic;
  font-size: 1.8rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- Contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-info-card h3 {
  color: var(--green);
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-info-card .info-label {
  font-weight: 700;
  color: var(--text);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--taupe);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(250, 248, 244, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(250, 248, 244, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--taupe-light);
}

.footer-logo {
  max-height: 55px;
  margin-bottom: 1rem;
  /* Logo is already green-on-transparent; add a subtle white glow for dark footer */
  filter: brightness(1.4) drop-shadow(0 0 1px rgba(255,255,255,0.3));
}

.footer-crisis {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: rgba(250, 248, 244, 0.8);
}

.footer-crisis strong {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.5);
}

/* ---- Page header (interior pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--taupe-pale) 0%, var(--blue-pale) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .page-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  font-size: 1.15rem;
}

/* ---- Content blocks ---- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* ---- Credentials block ---- */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.credential-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.credential-item .cred-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.credential-item .cred-value {
  font-weight: 700;
  color: var(--blue-dark);
}

/* ---- Animated fade-in ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem 0;
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-video-content h1 {
    font-size: 2rem;
  }

  .hero-video-content .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-video {
    min-height: 430px;
    height: calc(80vh - 60px);
  }

  .hero--image {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

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