/* ============================================
   Fox Valley Older Adults Services — Styles
   Palette: Charcoal (#2D2D2D) + Coral (#C0523A)
   Fonts: Lora (serif) + Inter (sans-serif)
============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2D2D2D;
  background-color: #FDFBF9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #C0523A;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #9E3F2C;
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: #1A1A1A;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 82, 58, 0.25);
}

.btn-primary {
  background-color: #C0523A;
  color: #fff;
  border-color: #C0523A;
}

.btn-primary:hover {
  background-color: #A84430;
  border-color: #A84430;
  color: #fff;
  box-shadow: 0 6px 20px rgba(192, 82, 58, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: #2D2D2D;
  border-color: #2D2D2D;
}

.btn-secondary:hover {
  background-color: #2D2D2D;
  color: #fff;
}

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

.btn-outline-light:hover {
  background-color: #fff;
  color: #2D2D2D;
  border-color: #fff;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(253, 251, 249, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
  transition: box-shadow 0.3s ease;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #1A1A1A;
}

.logo-link:hover {
  color: #1A1A1A;
}

.logo-text {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.logo-link--light .logo-text {
  color: #fff;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2D2D2D;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.main-nav a:hover {
  color: #C0523A;
  background-color: rgba(192, 82, 58, 0.06);
}

.nav-cta {
  background-color: #C0523A;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5rem 1.25rem !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background-color: #A84430 !important;
  color: #fff !important;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #2D2D2D;
}

.menu-icon,
.close-icon {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.close-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.mobile-menu-btn[aria-expanded="true"] .menu-icon {
  opacity: 0;
  transform: rotate(90deg);
}

.mobile-menu-btn[aria-expanded="true"] .close-icon {
  opacity: 1;
  transform: rotate(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1A1A1A;
}

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

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.88) 0%,
    rgba(45, 45, 45, 0.75) 50%,
    rgba(192, 82, 58, 0.3) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 4rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8A08E;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.375rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-actions .btn-secondary:hover {
  background-color: #fff;
  color: #1A1A1A;
  border-color: #fff;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- Trust Bar ---------- */
.trust-bar {
  background-color: #1A1A1A;
  padding: 2.5rem 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-icon {
  flex-shrink: 0;
}

/* ---------- Section Shared ---------- */
.section-header {
  max-width: 700px;
  margin-bottom: 3.5rem;
}

.section-header--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C0523A;
  margin-bottom: 0.875rem;
}

.section-eyebrow--light {
  color: #E8A08E;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.section-title--light {
  color: #fff;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: #5A5A5A;
  line-height: 1.75;
}

/* ---------- Services ---------- */
.services {
  padding: 6rem 0;
  background-color: #FDFBF9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background-color: #fff;
  border: 1px solid rgba(45, 45, 45, 0.07);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 45, 45, 0.1);
  border-color: rgba(192, 82, 58, 0.2);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background-color: rgba(192, 82, 58, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  background-color: rgba(192, 82, 58, 0.14);
}

.service-title {
  font-size: 1.1875rem;
  margin-bottom: 0.75rem;
  color: #1A1A1A;
}

.service-description {
  font-size: 0.9375rem;
  color: #5A5A5A;
  line-height: 1.7;
}

/* ---------- About ---------- */
.about {
  padding: 6rem 0;
  background-color: #F5F0EC;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

.about-image-accent {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 55%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid #F5F0EC;
}

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

.about-content .section-title {
  margin-bottom: 1.25rem;
}

.about-text {
  font-size: 1rem;
  color: #4A4A4A;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-values {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem 1.5rem;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2D2D2D;
}

.value-check {
  flex-shrink: 0;
}

/* ---------- Impact ---------- */
.impact {
  padding: 5rem 0;
  background-color: #1A1A1A;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.impact-stat {
  padding: 1.5rem;
}

.impact-number {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #C0523A;
  line-height: 1;
  margin-bottom: 0.625rem;
}

.impact-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 6rem 0;
  background-color: #FDFBF9;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background-color: #fff;
  border: 1px solid rgba(45, 45, 45, 0.07);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(45, 45, 45, 0.08);
}

.testimonial-quote {
  margin-bottom: 1rem;
  opacity: 0.85;
}

.testimonial-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: #3A3A3A;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #C0523A;
  font-style: normal;
}

/* ---------- CTA ---------- */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #C0523A 0%, #A0402A 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.cta-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  max-width: 520px;
  margin-top: 1rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cta-actions .btn-primary {
  background-color: #fff;
  color: #C0523A;
  border-color: #fff;
}

.cta-actions .btn-primary:hover {
  background-color: #FDFBF9;
  border-color: #FDFBF9;
  color: #A84430;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Contact ---------- */
.contact {
  padding: 6rem 0;
  background-color: #F5F0EC;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: #5A5A5A;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-detail strong {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.25rem;
}

.contact-detail p {
  font-size: 0.9375rem;
  color: #5A5A5A;
  line-height: 1.6;
}

.contact-detail a {
  color: #C0523A;
}

/* ---------- Form ---------- */
.contact-form-wrap {
  background-color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(45, 45, 45, 0.06);
  border: 1px solid rgba(45, 45, 45, 0.06);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  color: #1A1A1A;
}

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

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2D2D2D;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #1A1A1A;
  background-color: #FDFBF9;
  border: 1.5px solid rgba(45, 45, 45, 0.15);
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #C0523A;
  box-shadow: 0 0 0 3px rgba(192, 82, 58, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A0A0A0;
}

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

.form-privacy {
  font-size: 0.8125rem;
  color: #8A8A8A;
  text-align: center;
  margin-top: 1rem;
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success svg {
  margin: 0 auto 1.25rem;
}

.form-success h4 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  color: #1A1A1A;
}

.form-success p {
  font-size: 0.9375rem;
  color: #5A5A5A;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #1A1A1A;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 280px;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #E8A08E;
}

.footer-contact address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact a {
  color: #E8A08E;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Mobile Nav Overlay ---------- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(253, 251, 249, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav-overlay.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-nav-overlay ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
}

.mobile-nav-overlay a {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: #1A1A1A;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.mobile-nav-overlay a:hover {
  color: #C0523A;
  background-color: rgba(192, 82, 58, 0.06);
}

.mobile-nav-overlay .nav-cta {
  background-color: #C0523A;
  color: #fff !important;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.mobile-nav-overlay .nav-cta:hover {
  background-color: #A84430 !important;
  color: #fff !important;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .hero .container {
    padding-top: 5rem;
  }

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

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

  .trust-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.8125rem;
  }

  .services {
    padding: 4rem 0;
  }

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

  .about {
    padding: 4rem 0;
  }

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

  .about-image-accent {
    position: relative;
    bottom: auto;
    right: auto;
    width: 70%;
    margin-top: 1rem;
  }

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

  .impact {
    padding: 3.5rem 0;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .testimonials {
    padding: 4rem 0;
  }

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

  .cta {
    padding: 4rem 0;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }

  .contact {
    padding: 4rem 0;
  }

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

  .contact-form-wrap {
    padding: 1.75rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.125rem;
  }

  .trust-items {
    grid-template-columns: 1fr;
  }

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

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