/* ─────────────────────────────────────────────
   FYZICAL Therapy & Balance Centers — Styles
   ───────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #0A1F3F;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 100;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ── Navigation ── */
.nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 31, 63, 0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 1px 20px rgba(10, 31, 63, 0.08);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8960C;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  background: #C8960C;
  color: #0A1F3F;
  font-weight: 600;
  border: 2px solid #C8960C;
  border-radius: 0.375rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: #a67a09;
  border-color: #a67a09;
  color: #0A1F3F;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 150, 12, 0.35);
}
.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  transform: translateY(-1px);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  background: #0A1F3F;
  color: #fff;
  border: 2px solid #0A1F3F;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-navy:hover,
.btn-navy:focus-visible {
  background: #1e3a6a;
  border-color: #1e3a6a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 31, 63, 0.3);
}

/* ── Labels ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Badge ── */
.badge-gold {
  display: inline-block;
  background: rgba(200, 150, 12, 0.1);
  color: #a67a09;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(200, 150, 12, 0.25);
}

/* ── Section ── */
.section {
  padding: 5rem 0;
}
.section-header {
  margin-bottom: 3rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-label {
  animation: fadeInDown 0.8s ease both;
}
.hero-content h1 {
  animation: fadeInUp 0.8s 0.15s ease both;
}
.hero-content > p {
  animation: fadeInUp 0.8s 0.3s ease both;
}
.hero-content > div:first-of-type:last-of-type {
  animation: fadeInUp 0.8s 0.45s ease both;
}
.hero-stats {
  animation: fadeInUp 0.8s 0.6s ease both;
}
.hero-image {
  position: relative;
  height: 100%;
  min-height: 500px;
}
.hero-image-inner {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: imageReveal 1s 0.3s ease both;
}
.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: #C8960C;
  z-index: 3;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(10, 31, 63, 0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: rgba(200, 150, 12, 0.3);
  box-shadow: 0 8px 30px rgba(10, 31, 63, 0.08);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 31, 63, 0.05);
  border-radius: 0.75rem;
  color: #0A1F3F;
  margin-bottom: 1.25rem;
  transition: background 0.25s ease;
}
.service-card:hover .service-icon {
  background: #0A1F3F;
  color: #C8960C;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 31, 63, 0.15);
}
.about-img {
  display: block;
  width: 100%;
  height: auto;
}
.about-image-accent {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  border: 3px solid #C8960C;
  border-radius: 0.75rem;
  z-index: -1;
}
.about-stat-card {
  position: absolute;
  bottom: -24px;
  left: 24px;
  background: #0A1F3F;
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(10, 31, 63, 0.25);
}
.about-stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #C8960C;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.about-stat-label {
  font-size: 0.75rem;
  color: #b3c1cf;
  letter-spacing: 0.05em;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Approach ── */
.approach-step {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.approach-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 150, 12, 0.3);
}
.approach-step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(200, 150, 12, 0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(10, 31, 63, 0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  border-color: rgba(200, 150, 12, 0.25);
  box-shadow: 0 8px 30px rgba(10, 31, 63, 0.06);
}
.testimonial-quote {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  color: rgba(200, 150, 12, 0.2);
}
.testimonial-text {
  position: relative;
  z-index: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
}

/* ── CTA Banner ── */
.cta-inner {
  position: relative;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 31, 63, 0.04) 0%, transparent 60%);
  border-radius: 1rem;
  pointer-events: none;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
}
.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A1F3F;
  color: #C8960C;
  border-radius: 0.625rem;
}
.contact-form-wrapper {
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid rgba(10, 31, 63, 0.08);
  box-shadow: 0 8px 40px rgba(10, 31, 63, 0.06);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0A1F3F;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid rgba(10, 31, 63, 0.15);
  border-radius: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: #0A1F3F;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input::placeholder {
  color: #8da2cf;
}
.form-input:focus {
  border-color: #C8960C;
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.12);
}
.form-input:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A1F3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}
.form-note {
  margin-top: 0.75rem;
}
.form-success {
  text-align: center;
  padding: 2rem;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

/* ── Footer ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.footer-heading {
  margin-bottom: 1rem;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A1F3F;
  color: #C8960C;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(10, 31, 63, 0.25);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #1e3a6a;
}

/* ── Mobile Menu ── */
.mobile-menu {
  box-shadow: 0 20px 60px rgba(10, 31, 63, 0.12);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-link {
  text-decoration: none;
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu-link:hover {
  color: #C8960C;
  padding-left: 0.5rem;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ── Keyframes ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-image {
    min-height: auto;
  }
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #C8960C;
  outline-offset: 2px;
}

/* ── Print ── */
@media print {
  .nav, .back-to-top, .mobile-menu { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
  body { color: #000; background: #fff; }
}
