/* ============================================
   My Chiropractic Pain and Rehab Center
   Classic & Elegant — Emerald + Cream
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fefdf8;
  color: #064e3b;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: #064e3b;
}

/* --- Section Headers --- */
.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 2rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1px;
  background-color: #059669;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  color: #064e3b;
}

.section-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  color: #374151;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 4rem;
}

/* --- 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.875rem 1.75rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #065f46;
  color: #fefdf8;
  border-color: #065f46;
}

.btn-primary:hover {
  background-color: #047857;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: #065f46;
  border-color: #065f46;
}

.btn-outline:hover {
  background-color: #065f46;
  color: #fefdf8;
  transform: translateY(-2px);
}

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

/* --- Navigation --- */
.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled .nav-container {
  background-color: rgba(254, 253, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: transparent;
  transition: background-color 0.4s ease;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #064e3b;
  flex-shrink: 0;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  color: #065f46;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #064e3b;
}

.nav-brand-text em {
  font-style: italic;
  font-weight: 500;
  color: #059669;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #064e3b;
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
}

.nav-line-top, .nav-line-mid, .nav-line-bot {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-line-top {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-line-mid {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-line-bot {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: #065f46;
  background-color: rgba(6, 95, 70, 0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fefdf8;
  background-color: #065f46;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background-color: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(6, 95, 70, 0.1);
    box-shadow: 0 10px 40px rgba(6, 78, 59, 0.1);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.75rem 1rem;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, #fefdf8 0%, #f9f0d6 50%, #d1fae5 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(6, 95, 70, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #059669;
  background-color: rgba(6, 95, 70, 0.07);
  border: 1px solid rgba(6, 95, 70, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #064e3b;
}

.hero-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 2.25rem;
  max-width: 520px;
}

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

.hero-right {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 7 / 8;
  box-shadow: 0 25px 60px rgba(6, 78, 59, 0.15);
}

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

.hero-image-accent {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* Floating Stat Cards */
.stat-card {
  position: absolute;
  background-color: #fefdf8;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: 0 8px 30px rgba(6, 78, 59, 0.12);
  border: 1px solid rgba(6, 95, 70, 0.08);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.stat-card--top {
  top: 8%;
  right: -2rem;
  animation-delay: 0s;
}

.stat-card--mid {
  top: 45%;
  left: -2rem;
  animation-delay: 1.3s;
}

.stat-card--bot {
  bottom: 10%;
  right: -1.5rem;
  animation-delay: 2.6s;
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: rgba(6, 95, 70, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #065f46;
}

.stat-card-icon svg {
  width: 20px;
  height: 20px;
}

.stat-card-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #064e3b;
  line-height: 1.2;
}

.stat-card-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-right {
    max-width: 480px;
    margin: 0 auto;
  }

  .stat-card--top { right: -0.5rem; }
  .stat-card--mid { left: -0.5rem; }
  .stat-card--bot { right: -0.5rem; }
}

@media (max-width: 639px) {
  .hero {
    padding-top: 5.5rem;
    min-height: auto;
  }

  .stat-card {
    display: none;
  }
}

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

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

.service-card {
  background-color: #fefdf8;
  border: 1px solid rgba(6, 95, 70, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #065f46, #059669);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(6, 95, 70, 0.2);
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.1);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: rgba(6, 95, 70, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #065f46;
  transition: background-color 0.3s ease;
}

.service-card:hover .service-card-icon {
  background-color: rgba(6, 95, 70, 0.12);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 0.625rem;
}

.service-card-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.75;
}

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

@media (max-width: 639px) {
  .services {
    padding: 4rem 0;
  }

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

/* --- About --- */
.about {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f9f0d6 0%, #fefdf8 100%);
}

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

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 13 / 15;
  box-shadow: 0 20px 50px rgba(6, 78, 59, 0.12);
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(6, 78, 59, 0.18);
  border: 4px solid #fefdf8;
}

.about-img-accent {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  opacity: 0.5;
  z-index: -1;
}

.about-content {
  max-width: 520px;
}

.about-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(6, 95, 70, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #065f46;
}

.about-value-icon svg {
  width: 20px;
  height: 20px;
}

.about-value-title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 0.125rem;
}

.about-value-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #6b7280;
}

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

  .about-content {
    max-width: 100%;
  }

  .about-img-secondary {
    right: 0;
  }
}

@media (max-width: 639px) {
  .about {
    padding: 4rem 0;
  }

  .about-img-secondary {
    width: 60%;
    bottom: -1.5rem;
    right: -1rem;
  }
}

/* --- Testimonials --- */
.testimonials {
  padding: 6rem 0;
  background-color: #065f46;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials .section-label {
  color: #6ee7b7;
}

.testimonials .section-label::before {
  background-color: #6ee7b7;
}

.testimonials .section-title {
  color: #fefdf8;
}

.testimonials .section-desc {
  color: #a7f3d0;
}

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

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.testimonial-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: #6ee7b7;
  opacity: 0.4;
  margin-bottom: -0.5rem;
}

.testimonial-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #d1fae5;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

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

.testimonial-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(110, 231, 183, 0.2);
  border: 1px solid rgba(110, 231, 183, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #6ee7b7;
  flex-shrink: 0;
}

.testimonial-author-name {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fefdf8;
}

.testimonial-author-location {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #6ee7b7;
}

@media (max-width: 1023px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .testimonials {
    padding: 4rem 0;
  }

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

/* --- FAQ --- */
.faq {
  padding: 6rem 0;
  background-color: #fefdf8;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(6, 95, 70, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(6, 95, 70, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #064e3b;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: rgba(6, 95, 70, 0.03);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #059669;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(90deg);
}

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

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.8;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 300px;
}

@media (max-width: 767px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact --- */
.contact {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f9f0d6 0%, #fefdf8 100%);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #fefdf8;
  border: 1px solid rgba(6, 95, 70, 0.08);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 30px rgba(6, 78, 59, 0.08);
  border-color: rgba(6, 95, 70, 0.15);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(6, 95, 70, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #065f46;
}

.contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 0.25rem;
}

.contact-card-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.7;
}

.contact-link {
  color: #059669;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #047857;
  text-decoration: underline;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.hours-row span:first-child {
  color: #6b7280;
}

.hours-row span:last-child {
  font-weight: 500;
  color: #064e3b;
}

.hours-closed span:last-child {
  color: #ef4444;
}

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(6, 95, 70, 0.08);
  margin-top: 0.5rem;
}

.contact-map iframe {
  display: block;
  width: 100%;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: #fefdf8;
  border: 1px solid rgba(6, 95, 70, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(6, 78, 59, 0.06);
}

.contact-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #064e3b;
  margin-bottom: 1.75rem;
}

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

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

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-required {
  color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(6, 95, 70, 0.15);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #064e3b;
  background-color: #fefdf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background-color: rgba(6, 95, 70, 0.07);
  border: 1px solid rgba(6, 95, 70, 0.15);
  border-radius: 10px;
  color: #065f46;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #059669;
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .contact {
    padding: 4rem 0;
  }

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

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* --- Footer --- */
.footer {
  background-color: #064e3b;
  color: #d1fae5;
  padding: 4rem 0 0;
}

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

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #fefdf8;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  color: #6ee7b7;
  flex-shrink: 0;
}

.footer-desc {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  color: #a7f3d0;
  line-height: 1.8;
  max-width: 280px;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ee7b7;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav-list a {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #d1fae5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: #fefdf8;
  text-decoration: underline;
}

.footer-contact p {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9375rem;
  color: #d1fae5;
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.footer-link {
  color: #6ee7b7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fefdf8;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #6ee7b7;
  line-height: 1.6;
}

.footer-legal {
  font-size: 0.75rem !important;
  color: #6ee7b7 !important;
  opacity: 0.7;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .footer {
    padding-top: 3rem;
  }

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

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

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #065f46;
  color: #fefdf8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(6, 78, 59, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #047857;
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- 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;
  }

  .stat-card {
    animation: none;
  }

  .back-to-top {
    transition: none;
  }
}
