/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* =========================
   VARIABLES
========================= */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --text: #1f2937;
  --muted: #667085;
  --primary: #1f2a7a;
  --mint: #53d6cb;
  --mint-soft: #eefaf8;
  --blue-soft: #f3f6ff;
  --line: #e4e7ec;

  --radius-xl: 2rem;
  --radius-lg: 1.5rem;

  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.05);
  --shadow-strong: 0 30px 90px rgba(31, 42, 122, 0.12);
}

/* =========================
   LAYOUT
========================= */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-white {
  background: #fff;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  color: #16215f;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 650;
  color: #16215f;
}

h3 {
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--primary);
}

p {
  margin: 0;
  color: var(--muted);
}

.section-heading,
.section-copy {
  max-width: 760px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mint);
}

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

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 52px;
}

/* =========================
   NAVIGATION
========================= */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: #5b6474;
  transition: color 0.25s, transform 0.25s;
}

.main-nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: none;
}

/* =========================
   HERO SECTION
========================= */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 86px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(83, 214, 203, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 42, 122, 0.10), transparent 35%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 10px 16px;
  border: 1px solid rgba(83, 214, 203, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hero-content p {
  margin-top: 22px;
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.9;
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #16215f;
  max-width: 900px;
}

.hero-title span {
  color: var(--mint);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 650;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s,
    background 0.3s,
    color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 40px rgba(31, 42, 122, 0.2);
}

.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(31, 42, 122, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  border: 1px solid #d0d5dd;
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--mint);
  box-shadow: 0 10px 25px rgba(83, 214, 203, 0.25);
  outline: 2px solid rgba(83, 214, 203, 0.35);
}

/* =========================
   HERO CARDS
========================= */
.mini-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
}

.mini-card h3 {
  font-size: 1rem;
}

.mini-card p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* =========================
   ABOUT SECTION
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: start;
}

.about-highlight {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 24px 80px rgba(31, 42, 122, 0.18);
}

.about-highlight h2,
.about-highlight p {
  color: #fff;
}

.about-highlight p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: white;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.08);
}

.info-card p {
  margin-top: 12px;
  font-size: 0.94rem;
  line-height: 1.8;
}

/* =========================
   SERVICES SECTION
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.service-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s, box-shadow 0.35s;
}

.service-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.panel-physio {
  background: var(--mint-soft);
  border: 1px solid #d8f3ef;
}

.panel-rehab {
  background: var(--blue-soft);
  border: 1px solid #dde3ff;
}

.service-header {
  margin-bottom: 14px;
}

.service-panel p {
  font-size: 0.97rem;
  line-height: 1.85;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.service-list span {
  display: block;
  padding: 15px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  color: #445064;
  transition: transform 0.25s, background 0.25s;
}

.service-list span:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

/* =========================
   SPECIALTIES SECTION
========================= */
.specialties-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.section-copy p {
  margin-top: 20px;
  font-size: 1.04rem;
  line-height: 1.9;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.specialty-card {
  padding: 22px 22px;
  border: 1px solid #d9f3ee;
  border-radius: 1.6rem;
  background: #f3fcfa;
  font-size: 0.98rem;
  font-weight: 600;
  color: #2f3a4a;
  box-shadow: none;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease;
  cursor: pointer;
}

.specialty-card:hover {
  background: #eafaf6;
  border-color: #bfece3;
  color: #16215f;
  transform: translateY(-2px);
}

/* =========================
   PSYCHOLOGY SECTION
========================= */
.psychology-section {
  padding-top: 20px;
}

.psychology-wrap {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 2.25rem;
  background: linear-gradient(135deg, #1f2a7a 0%, #35bdb1 100%);
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.16);
  isolation: isolate;
}

.psychology-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 26%);
  z-index: -1;
}

.psychology-top {
  margin-bottom: 30px;
}

.psychology-copy {
  max-width: 760px;
}

.psychology-copy h2,
.psychology-copy p {
  color: white;
}

.psychology-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
}

.psychology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.psych-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  min-height: unset;
}

.psych-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.psych-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: white;
  font-weight: 600;
}

.psych-card p {
  display: none;
}

.psych-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.psych-card-wide {
  grid-column: span 1;
}

/* =========================
   EXAMS SECTION
========================= */
.exams-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: 2.25rem;
  background: linear-gradient(90deg, #1f2a7a 0%, #24338e 100%);
  color: white;
  box-shadow: 0 24px 80px rgba(31, 42, 122, 0.2);
}

.exams-copy h2,
.exams-copy p {
  color: white;
}

.exams-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.exam-card {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.3s,
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.exam-card:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(12, 18, 48, 0.18);
}

/* =========================
   CONTACT SECTION
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
}

.contact-card,
.map-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.contact-card {
  padding: 34px;
}

.contact-card p {
  margin-top: 14px;
  line-height: 1.8;
}

.contact-links {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.contact-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.contact-link:hover {
  background: white;
  border-color: var(--mint);
  transform: translateY(-2px);
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: #6b7280;
}

.contact-link strong {
  font-size: 1.18rem;
  color: var(--primary);
}

/* =========================
   MAP
========================= */
.map-header {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.map-header h3 {
  font-size: 1.3rem;
}

.map-header p {
  margin-top: 8px;
  font-size: 0.94rem;
}

.map-embed {
  height: 430px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: white;
}

.footer-center {
  padding: 26px 0;
  text-align: center;
  font-size: 0.92rem;
  color: #6b7280;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(31, 42, 122, 0.35);
  transition: transform 0.25s, opacity 0.25s;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.08);
}

/* =========================
   REVEAL ANIMATION
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .specialties-layout,
  .exams-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards,
  .about-cards,
  .services-grid,
  .specialties-grid,
  .exams-grid,
  .psychology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psych-card-wide {
    grid-column: span 2;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 820px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    height: 46px;
  }

  .menu-toggle {
    display: flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 22px;
    height: 3px;
    background: white;
    border-radius: 2px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 0.9rem;
  }

  .main-nav a:hover {
    background: #f4f7fb;
  }

  .hero-section {
    padding: 36px 0 68px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .btn {
    width: 100%;
  }

  .hero-cards,
  .about-cards,
  .services-grid,
  .specialties-grid,
  .exams-grid,
  .service-list,
  .psychology-grid {
    grid-template-columns: 1fr;
  }

  .psych-card-wide {
    grid-column: span 1;
  }

  .about-highlight,
  .service-panel,
  .contact-card,
  .psychology-wrap {
    padding: 26px;
  }

  .section {
    padding: 72px 0;
  }

  .psychology-section {
    padding-top: 0;
  }

  .psychology-copy h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .psych-card {
    padding: 14px 16px;
    border-radius: 1.3rem;
    gap: 12px;
  }

  .psych-card h3 {
    font-size: 1rem;
  }

  .exams-wrap {
    padding: 30px 22px;
  }

  .map-embed {
    height: 360px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}