/* ============================================
   MAPLEWOOD ANIMAL HOSPITAL — Sections
   ============================================ */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 42, 43, 0.82) 0%,
    rgba(19, 60, 61, 0.6) 40%,
    rgba(27, 107, 109, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem var(--gutter) var(--space-4xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.125rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: var(--ls-wide);
  width: fit-content;
  animation: fadeDown 0.8s var(--ease-out) 0.2s both;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: white;
  max-width: 700px;
  animation: fadeUp 1s var(--ease-out) 0.4s both;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent-light);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: var(--lh-body);
  animation: fadeUp 1s var(--ease-out) 0.6s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out) 0.8s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-caption);
  animation: bounce 2s infinite 2s;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Services ---- */
.services {
  background: var(--color-warm-white);
}

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

/* ---- Meet the Team ---- */
.team {
  background: white;
}

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

/* ---- Founder Letter ---- */
.founder {
  background: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
}

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

.founder__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.founder__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.founder__image-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
}

.founder__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.founder__content {
  color: white;
}

.founder__overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}

.founder__quote {
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.founder__sig {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.founder__sig-name {
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
}

.founder__sig-title {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* ---- New Patient ---- */
.new-patient {
  background: var(--color-warm-cream);
}

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

.new-patient__card {
  display: flex;
  gap: var(--space-lg);
}

.new-patient__number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body-sm);
}

.new-patient__card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}

.new-patient__card p {
  color: var(--color-text-secondary);
  font-size: var(--fs-body-sm);
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--color-warm-white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

/* ---- Booking ---- */
.booking {
  background: white;
  position: relative;
}

.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.booking__info h2 {
  margin-bottom: var(--space-md);
}

.booking__info > p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
}

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

.booking__perk {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
}

.booking__perk svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.booking__form-card {
  background: var(--color-warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
}

.booking__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.booking__form-note {
  text-align: center;
  font-size: var(--fs-body-sm);
  color: var(--color-text-secondary);
  padding-top: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.booking__form-note svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---- FAQ ---- */
.faq {
  background: var(--color-warm-cream);
}

.faq__container {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-body-sm);
  margin-top: var(--space-md);
  line-height: var(--lh-body);
  max-width: 280px;
}

.footer__col h4 {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-body-sm);
  padding: var(--space-2xs) 0;
  transition: color var(--duration-fast);
}

.footer__col a:hover {
  color: var(--color-accent-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--duration-fast);
}

.footer__bottom a:hover {
  color: var(--color-accent-light);
}

/* ---- Mobile Overlay ---- */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--duration-base);
}

.nav__overlay.visible {
  display: block;
  opacity: 1;
}

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

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

  .founder__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .founder__image-wrap {
    max-width: 400px;
  }

  .booking__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding-top: 7rem;
    padding-bottom: var(--space-3xl);
  }

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

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .new-patient__grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .hero__scroll-hint {
    display: none;
  }
}
