/* ============================================
   Colorado Western Slope Counseling
   Bold Editorial Style — Burgundy & Blush
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-deep: #5A1F2B;
  --burgundy-light: #9E4A58;
  --blush: #F5E6E0;
  --blush-light: #FBF5F2;
  --blush-mid: #EDD5CC;
  --cream: #FDF8F5;
  --charcoal: #2D2426;
  --charcoal-light: #4A3F42;
  --warm-gray: #8A7E80;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--burgundy);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--charcoal-light);
  max-width: 600px;
  line-height: 1.7;
}

.section-header--centered {
  text-align: center;
}

.section-header--centered .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 45, 59, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blush-mid);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(45, 36, 38, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
}

.logo--light .logo-text {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 101;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

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

.nav-menu a:hover {
  color: var(--burgundy);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 36, 38, 0.92) 0%,
    rgba(90, 31, 43, 0.85) 50%,
    rgba(123, 45, 59, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero-title .text-blush {
  color: var(--blush);
  font-style: italic;
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: rgba(245, 230, 224, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(245, 230, 224, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--blush);
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 230, 224, 0.5);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Services --- */
.services {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.services .section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--blush-mid);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(123, 45, 59, 0.1);
  border-color: var(--burgundy-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--blush);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.service-title {
  font-size: 1.375rem;
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
  line-height: 1.7;
}

/* --- About --- */
.about {
  padding: var(--space-2xl) 0;
  background: var(--blush-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--burgundy);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.about-content .section-title {
  margin-bottom: var(--space-md);
}

.about-text {
  font-size: 1.0625rem;
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--blush-mid);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.4;
}

/* --- Approach --- */
.approach {
  padding: var(--space-2xl) 0;
  background: var(--burgundy);
  color: var(--white);
}

.approach .section-eyebrow {
  color: var(--blush);
}

.approach .section-title {
  color: var(--white);
}

.approach .section-subtitle {
  color: rgba(245, 230, 224, 0.8);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.approach-step {
  position: relative;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.approach-step:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(245, 230, 224, 0.2);
  line-height: 1;
  margin-bottom: var(--space-sm);
  display: block;
}

.step-title {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.step-desc {
  font-size: 0.9375rem;
  color: rgba(245, 230, 224, 0.75);
  line-height: 1.7;
}

/* --- Testimonial --- */
.testimonial {
  padding: var(--space-2xl) 0;
  background: var(--blush);
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-quote-mark {
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.testimonial-cite {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-style: normal;
}

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--burgundy);
}

.testimonial-context {
  font-size: 0.875rem;
  color: var(--warm-gray);
}

/* --- FAQ --- */
.faq {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.faq .section-header {
  margin-bottom: var(--space-lg);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: none;
  border: none;
  padding: var(--space-md) 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}

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

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--burgundy);
  transition: all var(--transition);
}

.faq-question[aria-expanded="true"] .faq-toggle {
  background: var(--burgundy);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--space-md);
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
  line-height: 1.8;
}

.faq-answer a {
  color: var(--burgundy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--burgundy-deep);
}

/* --- Contact --- */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info .section-title {
  margin-bottom: var(--space-sm);
}

.contact-text {
  font-size: 1.0625rem;
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-detail {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--blush);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.contact-detail p {
  font-size: 0.9375rem;
  color: var(--charcoal-light);
  line-height: 1.6;
}

.contact-detail a {
  color: var(--burgundy);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: var(--burgundy-deep);
}

/* --- Contact Form --- */
.contact-form-wrapper {
  background: var(--blush-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--blush-mid);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--charcoal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blush-mid);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--white);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray);
}

.form-privacy {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  text-align: center;
  margin-top: var(--space-sm);
}

.form-success {
  text-align: center;
  padding: var(--space-lg);
}

.form-success svg {
  margin: 0 auto var(--space-sm);
}

.form-success h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--burgundy);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--charcoal-light);
  font-size: 0.9375rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(245, 230, 224, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9375rem;
  margin-top: var(--space-sm);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(245, 230, 224, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-contact address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.footer-contact a {
  color: var(--blush);
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(245, 230, 224, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(245, 230, 224, 0.4);
}

.footer-privacy {
  font-size: 0.75rem !important;
  max-width: 600px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--space-md) var(--space-md);
    gap: var(--space-sm);
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.0625rem;
    padding: 0.5rem 0;
  }

  .nav-menu .btn {
    margin-top: var(--space-sm);
  }

  .hero-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: var(--space-sm);
  }

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

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

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 350px;
  }

  .about-stats {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .approach-steps {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero-content {
    padding: var(--space-xl) 0;
  }

  .service-card {
    padding: var(--space-md);
  }

  .contact-form-wrapper {
    padding: var(--space-md);
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-indicator {
    animation: none;
  }
}
