/* ============================================
   Vital Center Kiné — style.css
   Cabinet de kinésithérapie — site vitrine
   ============================================ */

:root{
  --navy: #000065;
  --navy-2: #0A0A7A;
  --navy-soft: #1E1E96;
  --ink: #1B2635;
  --muted: #66707F;
  --bg: #ffffff;
  --bg-soft: #F5F8FC;
  --accent-soft: #E9EBF9;
  --border: #E3E8F1;
  --white: #ffffff;
  --gold: #C9A24B;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(14,42,87,0.06);
  --shadow-md: 0 12px 32px rgba(14,42,87,0.12);
  --container: 1180px;
  --ff-head: 'Poppins', 'Segoe UI', sans-serif;
  --ff-body: 'Inter', 'Segoe UI', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--ff-head); margin:0; line-height:1.2; color: var(--navy); }
p{ margin:0; }
button{ font-family: inherit; cursor:pointer; }
.container{ max-width: var(--container); margin:0 auto; padding: 0 24px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight:600; font-size: 0.93rem; letter-spacing:.2px;
  border: 2px solid transparent; transition: all .2s ease; white-space:nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn-primary{ background: var(--navy); color:#fff; }
.btn-primary:hover{ background: var(--navy-soft); transform: translateY(-1px); }
.btn-outline{ background:transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover{ border-color: var(--navy); background: var(--accent-soft); }
.btn-white{ background:#fff; color: var(--navy); }
.btn-white:hover{ background: var(--gold); color:#fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible{
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-size: .78rem; font-weight:700; letter-spacing: 1.4px; text-transform:uppercase;
  color: var(--navy-soft); margin-bottom:14px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background: var(--gold); display:inline-block; }
.eyebrow.on-dark{ color: #BFD0EE; }
.eyebrow.on-dark::before{ background: var(--gold); }
.section-head{ max-width: 640px; }
.section-head h2{ font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom:14px; }
.section-head p{ color: var(--muted); font-size:1.02rem; }
.section{ padding: 88px 0; }
.section-tight{ padding: 64px 0; }
.bg-soft{ background: var(--bg-soft); }

/* ================= HEADER ================= */
.site-header{
  position: sticky; top:0; z-index: 500; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap: 24px; padding: 14px 24px; max-width: var(--container); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:42px; height:42px; flex-shrink:0; color: var(--navy); }
.brand-mark-img{ height:44px; width:auto; flex-shrink:0; display:block; }
.brand-text{ line-height:1.15; }
.brand-text .name{ font-family: var(--ff-head); font-weight:700; font-size:1.18rem; color: var(--navy); display:block; }
.brand-text .tag{ font-size: .68rem; letter-spacing: 1.2px; text-transform:uppercase; color: var(--muted); }

.main-nav{ display:flex; align-items:center; gap: 28px; }
.main-nav a{ font-size:.86rem; font-weight:600; letter-spacing:.3px; color: var(--ink); position:relative; padding: 6px 0; }
.main-nav a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background: var(--navy); transform: scaleX(0); transition: transform .2s ease; transform-origin: left; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after{ transform: scaleX(1); }

.header-actions{ display:flex; align-items:center; gap:16px; }
.lang-switch{ position:relative; }
.lang-switch select{
  appearance:none; border:1px solid var(--border); background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23667'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 9px 30px 9px 14px; border-radius: 999px; font-size:.8rem; font-weight:700; letter-spacing:.5px; color: var(--navy);
}
.header-cta{ display:none; }
@media (min-width: 1000px){ .header-cta{ display:inline-flex; } }
.nav-cta{ display:none; }

.nav-toggle{ display:flex; flex-direction:column; background:none; border:none; padding:8px; }
.nav-toggle span{ width:24px; height:2px; background: var(--navy); border-radius:2px; }
.nav-toggle span + span{ margin-top:5px; }
@media (min-width: 1000px){ .nav-toggle{ display:none; } }
@media (max-width: 999px){
  .main-nav{
    position:fixed; top:66px; right:0; bottom:0; left:0; background:#fff; flex-direction:column; align-items:flex-start;
    padding: 28px 24px; gap: 4px; transform: translateY(-8px); opacity:0; pointer-events:none; transition: all .2s ease;
    overflow-y:auto;
  }
  .main-nav.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .main-nav a{ width:100%; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta{ display:inline-flex; margin-top:14px; }
}

/* ================= HERO ================= */
.hero{ padding: 56px 0 0; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns: 1fr; gap: 44px; align-items:center; }
@media (min-width: 960px){ .hero-grid{ grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1{ font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom:20px; }
.hero-sub{ color: var(--muted); font-size: 1.08rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom: 34px; }
.hero-points{ display:flex; flex-wrap:wrap; gap: 22px; }
.hero-point{ display:flex; align-items:center; gap:10px; font-size:.87rem; font-weight:600; color: var(--ink); }
.hero-point svg{ width:22px; height:22px; color: var(--navy); flex-shrink:0; }

.hero-art{ position:relative; }
.hero-art-frame{
  border-radius: var(--radius-lg); overflow:hidden; position:relative; aspect-ratio: 16/10;
  background: linear-gradient(155deg, var(--accent-soft), #fff 60%);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.hero-art-frame img{ width:100%; height:100%; object-fit: cover; object-position: 10% center; display:block; }
.hero-badge{
  position:absolute; bottom: -18px; left: -18px; background:#fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 14px 18px; display:flex; align-items:center; gap:12px; max-width: 230px;
}
.hero-badge svg{ width:34px; height:34px; color: var(--navy); flex-shrink:0; }
.hero-badge strong{ display:block; font-family: var(--ff-head); font-size:1rem; color: var(--navy); }
.hero-badge span{ font-size:.76rem; color: var(--muted); }
@media (max-width: 540px){ .hero-badge{ left:8px; bottom:-14px; padding:10px 14px; } }

/* ================= FEATURE BAR ================= */
.feature-bar{ background: linear-gradient(120deg, var(--navy), var(--navy-2)); color:#fff; margin-top: 56px; }
.feature-grid{ display:grid; grid-template-columns: 1fr; gap: 34px; padding: 46px 0; }
@media (min-width: 720px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px){ .feature-grid{ grid-template-columns: repeat(4,1fr); } }
.feature-item{ display:flex; flex-direction:column; gap:14px; }
.feature-icon{
  width:50px; height:50px; border-radius:50%; border:1.5px solid rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.feature-icon svg{ width:24px; height:24px; }
.feature-item h3{ color:#fff; font-size:1.04rem; }
.feature-item p{ color:#BFD0EE; font-size:.87rem; }

/* ================= SERVICES ================= */
.services-top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; align-items:flex-end; margin-bottom: 44px; }
.services-link{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.86rem; color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom:3px; white-space:nowrap; }
.services-link svg{ width:16px; height:16px; }
.services-grid{ display:grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 680px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1020px){ .services-grid{ grid-template-columns: repeat(3,1fr); } }
.service-card{
  background:#fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px 26px; transition: all .2s ease;
}
.service-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.service-icon{
  width:52px; height:52px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--navy);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.service-icon svg{ width:26px; height:26px; }
.service-card h3{ font-size:1.06rem; margin-bottom:9px; }
.service-card p{ color: var(--muted); font-size:.9rem; }

/* ================= APPROACH ================= */
.approach{ display:grid; grid-template-columns: 1fr; }
@media (min-width: 900px){ .approach{ grid-template-columns: 1fr 1fr; } }
.approach-media{ position:relative; min-height: 320px; background: var(--navy) center/cover; overflow:hidden; }
.approach-media img{ width:100%; height:100%; object-fit:cover; display:block; min-height:320px; }
.approach-panel{ background: linear-gradient(150deg, var(--navy), var(--navy-2)); color:#fff; padding: 44px 26px; display:flex; flex-direction:column; justify-content:center; gap:22px; }
@media (min-width: 640px){ .approach-panel{ padding: 56px 40px; } }
@media (min-width: 900px){ .approach-panel{ padding: 64px 44px; } }
.approach-panel h2{ color:#fff; font-size: clamp(1.6rem,2.6vw,2.2rem); }
.approach-panel p{ color:#C6D4EE; font-size:1rem; max-width: 460px; }
.approach-stats{ display:flex; flex-wrap:wrap; gap: 30px; margin-top:10px; }
.approach-stat{ display:flex; align-items:center; gap:12px; }
.approach-stat svg{ width:30px; height:30px; color: var(--gold); flex-shrink:0; }
.approach-stat strong{ display:block; font-family: var(--ff-head); font-size:1.15rem; color:#fff; }
.approach-stat span{ font-size:.78rem; color: #AFC1E4; }

/* ================= CABINET GALLERY ================= */
.cabinet-grid{ display:grid; grid-template-columns: 1fr; gap: 36px; align-items:center; }
@media (min-width: 900px){ .cabinet-grid{ grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }
.cabinet-copy p:not(.eyebrow){ color: var(--muted); margin-top:14px; }
.cabinet-media{ border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); border:1px solid var(--border); }
.cabinet-media img{ width:100%; height:100%; object-fit:cover; object-position: 8% center; display:block; aspect-ratio: 4/3; }
@media (min-width: 900px){ .cabinet-media img{ aspect-ratio: 16/10; object-position: center; } }

/* ================= TESTIMONIALS ================= */
.testi-head{ text-align:center; max-width:600px; margin:0 auto 40px; }
.testi-head .eyebrow{ justify-content:center; }
.testi-wrap{ position:relative; display:flex; align-items:center; gap:14px; }
.testi-track{ display:flex; gap:22px; overflow-x:auto; scroll-snap-type: x mandatory; padding: 4px; scrollbar-width:none; }
.testi-track::-webkit-scrollbar{ display:none; }
.testi-card{
  scroll-snap-align:start; flex: 0 0 100%; background: var(--bg-soft); border-radius: var(--radius-md);
  padding: 30px 28px; border: 1px solid var(--border);
}
@media (min-width: 720px){ .testi-card{ flex-basis: calc(50% - 11px); } }
@media (min-width: 1020px){ .testi-card{ flex-basis: calc(33.333% - 15px); } }
.testi-quote{ width:30px; height:30px; color: var(--gold); margin-bottom: 14px; }
.testi-card p.txt{ color: var(--ink); font-size:.96rem; margin-bottom:20px; min-height: 72px; }
.testi-foot{ display:flex; align-items:center; justify-content:space-between; }
.testi-foot .who{ font-weight:700; font-size:.9rem; color: var(--navy); }
.testi-stars{ display:flex; gap:3px; color: var(--gold); }
.testi-stars svg{ width:15px; height:15px; }
.testi-arrow{
  flex-shrink:0; width:44px; height:44px; border-radius:50%; border:1px solid var(--border); background:#fff;
  display:flex; align-items:center; justify-content:center; color: var(--navy); transition: all .2s ease;
}
.testi-arrow:hover{ background: var(--navy); color:#fff; border-color: var(--navy); }
.testi-arrow svg{ width:18px; height:18px; }
@media (max-width: 680px){ .testi-arrow{ display:none; } }

/* ================= CTA STRIP ================= */
.cta-strip{ background: var(--accent-soft); border-radius: var(--radius-lg); padding: 44px 36px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; }
.cta-strip h3{ font-size:1.3rem; max-width: 460px; }
.cta-strip p{ color: var(--muted); margin-top:6px; }

/* ================= FOOTER ================= */
.site-footer{ background: var(--navy); color:#DCE5F5; }
.footer-top{ display:grid; grid-template-columns: 1fr; gap: 40px; padding: 68px 0 44px; }
@media (min-width: 720px){ .footer-top{ grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1080px){ .footer-top{ grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; } }
.footer-brand .brand-mark{ color:#fff; }
.footer-brand .brand-mark-img{ filter: brightness(0) invert(1); }
.footer-brand .name{ color:#fff; }
.footer-brand .tag{ color:#9FB2D6; }
.footer-brand p.claim{ margin-top:16px; color:#AEC0E2; font-size:.9rem; max-width:230px; }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; transition: all .2s ease; }
.footer-social a:hover{ background:#fff; color: var(--navy); }
.footer-social svg{ width:16px; height:16px; }
.footer-col h4{ color:#fff; font-size:.8rem; letter-spacing:1px; text-transform:uppercase; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:13px; }
.footer-col li{ display:flex; align-items:flex-start; gap:10px; font-size:.87rem; color:#C4D1EC; }
.footer-col li svg{ width:17px; height:17px; flex-shrink:0; margin-top:2px; color:#8FA6D2; }
.footer-col a:hover{ color:#fff; }
.footer-cta p{ font-size:.85rem; color:#C4D1EC; margin-bottom:16px; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:.8rem; color:#93A6CC; }
.footer-bottom .legal{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-bottom a:hover{ color:#fff; }

/* ================= UTIL ================= */
/* Reveal-on-scroll only activates once JS confirms it can run (class added
   synchronously in <head>) and always has a hard fallback timeout in JS,
   so content is never permanently hidden if a script fails to run. */
html.js-anim .reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1 !important; transform:none !important; }

/* ================= MOBILE REFINEMENTS ================= */
@media (max-width: 480px){
  .header-inner{ padding: 12px 16px; gap:10px; }
  .brand{ gap:8px; }
  .brand-mark-img{ height:36px; }
  .brand-text .name{ font-size:1rem; }
  .brand-text .tag{ font-size:.6rem; letter-spacing:.8px; }
  .header-actions{ gap:8px; }
  .lang-switch select{ padding: 8px 26px 8px 12px; font-size:.74rem; }
  .nav-toggle{ padding:6px; }

  .container{ padding: 0 18px; }
  .section{ padding: 56px 0; }
  .section-tight{ padding: 44px 0; }

  .hero{ padding-top: 32px; }
  .hero-actions{ flex-direction:column; align-items:stretch; gap:10px; }
  .hero-actions .btn{ width:100%; }
  .hero-points{ flex-direction:column; gap:12px; }
  .hero-badge{ max-width: 200px; padding: 10px 12px; gap:10px; }
  .hero-badge svg{ width:28px; height:28px; }

  .services-top{ align-items:flex-start; }
  .service-card{ padding: 24px 20px; }

  .cabinet-copy p:not(.eyebrow){ font-size:.94rem; }

  .cta-strip{ padding: 30px 22px; flex-direction:column; align-items:flex-start; }
  .cta-strip .btn{ width:100%; }

  .footer-top{ padding: 48px 0 32px; gap:32px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:8px; }
}

/* Prevent any accidental horizontal scroll on narrow viewports */
html, body{ max-width:100%; overflow-x:hidden; }
