/* ============================================
   Aligned Medical Massage — Section Styles
   Services, about, team, FAQ, footer, responsive, animations, booking
   ============================================ */

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 50px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--accent-light);
  color: var(--accent);
  margin-top: 4px;
}

/* --- Membership Card --- */
.membership-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
}

.membership-card h3,
.membership-card p {
  color: var(--white);
}

.membership-card p {
  opacity: 0.9;
}

.membership-card .service-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.membership-card .service-price {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.membership-card .btn {
  background: var(--white);
  color: var(--primary);
}

.membership-card .btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/4;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.credential-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-light);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  font-family: 'DM Serif Display', Georgia, serif;
  overflow: hidden; /* clip headshot photos to the circle */
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%; /* bias toward the face, not the shoulders */
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--text-light);
  font-size: 0.85rem;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
  gap: 16px;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
}

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

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

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Video Section --- */
.video-wrapper {
  max-width: 640px;
  margin: 32px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Contact / Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
  width: 18px;
  height: 18px;
}

.footer-hours dt {
  font-weight: 600;
  color: var(--white);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-hours dd {
  font-size: 0.9rem;
}

.footer-links a {
  display: block;
  padding: 4px 0;
}

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal a {
  margin-left: 24px;
}

/* --- Map --- */
.map-wrapper {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 160px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3);
}

/* --- Sticky Mobile CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.mobile-cta-inner {
  display: flex;
  gap: 10px;
}

.mobile-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 14px 16px;
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero-inner {
    text-align: center;
  }

  /* Center the content box and even-out the scrim so centered white text
     stays readable across the full width on tablet/phone. */
  .hero-content {
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-scrim {
    background: linear-gradient(0deg, rgba(17,43,39,0.80) 0%, rgba(17,43,39,0.58) 100%);
  }

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

  .hero-subtitle {
    margin: 0 auto 12px;
  }

  .hero-insurance {
    justify-content: center;
    margin-bottom: 28px;
  }

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

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

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

  .about-photo {
    max-width: 300px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  /* Weekend mobile-audit polish (additive, mobile-only) */
  .faq-item.open .faq-answer { max-height: 500px; } /* don't clip long answers on narrow phones */
  .footer-links a { padding: 10px 0; }              /* 44px tap target */
  .about-content h2 { font-size: 1.65rem; }         /* scale heading like the others */

  :root {
    --header-height: 64px;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .nav .btn-book {
    margin-left: 0;
    margin-top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 48px 0 40px;
  }

  /* Mobile: smaller logo so the wide 7:1 mark fits the narrow header cleanly. */
  .logo img { height: 42px; }

  /* Mobile hero photo: a wide exterior shot can't fill a tall phone screen
     without cropping the sides — bias the framing toward the building/signage.
     (Best long-term fix = a dedicated mobile crop via <picture>.) */
  .hero-bg { object-position: center 40%; }

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

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

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

  .provider-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .trust-items {
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-legal a {
    margin-left: 0;
    margin-right: 16px;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .trust-items {
    flex-direction: column;
    gap: 12px;
  }

  .container {
    padding: 0 16px;
  }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

/* --- Booking Entry Section --- */
.booking-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.booking-path-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.booking-path-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.booking-path-card .path-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}
.booking-path-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.booking-path-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.booking-path-card .btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 768px) {
  .booking-paths {
    grid-template-columns: 1fr;
  }
}
