/* PHYSIOLG — Mediterranean physiotherapy */
:root {
  --navy: #1B3A6B;
  --navy-deep: #122849;
  --navy-soft: #2A4F8A;
  --med-blue: #0EA5E9;
  --med-blue-light: #38BDF8;
  --sand: #F5F1EA;
  --sand-dark: #E8E0D2;
  --ink: #0B1E36;
  --ink-soft: #4A5A70;
  --white: #ffffff;
  --line: #E5EAF2;
  --shadow-soft: 0 4px 20px rgba(27, 58, 107, 0.08);
  --shadow-strong: 0 20px 60px rgba(27, 58, 107, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--med-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all .35s var(--ease);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 88px;
  transition: height .35s var(--ease);
}
.nav-logo img { height: 100%; width: auto; }
.navbar.scrolled .nav-logo { height: 64px; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--med-blue);
  transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; align-items: center;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft);
  gap: 6px;
}
.lang-switch a.active { color: var(--navy); }
.lang-switch a:hover { color: var(--med-blue); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(27,58,107,.28);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(27,58,107,.38);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--sand); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.menu-toggle { display: none; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(14,165,233,.10), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27,58,107,.06), transparent 50%),
    linear-gradient(180deg, var(--sand) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,58,107,.1), transparent);
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text h1 {
  margin-bottom: 24px;
}
.hero-text h1 .accent {
  color: var(--med-blue);
  font-style: italic;
  font-weight: 400;
}
.hero-text .lead {
  font-size: 1.25rem;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta .stat .num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  color: var(--navy);
  font-weight: 600;
  display: block;
  line-height: 1;
}
.hero-meta .stat .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.hero-3d {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 40%, rgba(14,165,233,.14), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-3d .badge {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: .08em;
}
.hero-3d .caption {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  color: rgba(255,255,255,.9);
  font-size: 0.9rem;
}
.hero-3d .caption strong { display: block; font-size: 1.1rem; color: white; margin-bottom: 4px; }

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: bounce 2.4s var(--ease) infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* === SECTIONS === */
section { padding: 110px 0; position: relative; }
.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { margin: 0 auto; }

/* === SERVICES === */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--med-blue), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-strong);
}
.service:hover::before { transform: scaleX(1); }
.service .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(27,58,107,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
}
.service .icon svg { width: 30px; height: 30px; }
.service h3 { margin-bottom: 12px; font-size: 1.3rem; }
.service p { color: var(--ink-soft); font-size: 0.96rem; }

/* === ATHLETES (full-bleed dark) === */
.athletes {
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.athletes::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(14,165,233,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(56,189,248,.12), transparent 50%);
}
.athletes h2 { color: var(--white); }
.athletes .lead { color: rgba(255,255,255,.78); }
.athletes .eyebrow { color: var(--med-blue-light); }
.athletes-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.athletes-features {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}
.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.feature .num {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--med-blue-light);
  font-weight: 500;
  flex-shrink: 0;
  width: 48px;
}
.feature h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.feature p { color: rgba(255,255,255,.7); font-size: 0.95rem; }

.athletes-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(14,165,233,.3), rgba(27,58,107,.6)),
    url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=900&q=80') center/cover;
  position: relative;
  box-shadow: var(--shadow-strong);
}
.athletes-visual .quote {
  position: absolute;
  bottom: 28px; left: 28px; right: 28px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  padding: 24px 26px;
  border-radius: 14px;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}
.athletes-visual .quote strong { display: block; margin-top: 10px; color: var(--navy); font-size: 0.85rem; }

/* === ABOUT === */
.about { background: var(--sand); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.about-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, transparent 60%, rgba(27,58,107,.4)),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=900&q=80') center/cover;
  box-shadow: var(--shadow-strong);
}
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.value {
  padding: 22px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.value strong { color: var(--navy); display: block; margin-bottom: 6px; font-size: 1rem; }
.value span { color: var(--ink-soft); font-size: 0.9rem; }

/* === TESTIMONIALS === */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 8px; left: 22px;
  font-family: 'Fraunces', serif;
  font-size: 6rem;
  color: var(--med-blue);
  opacity: .25;
  line-height: 1;
}
.testimonial p {
  position: relative;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.65;
}
.testimonial .author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--med-blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}
.author-info strong { display: block; font-size: 0.95rem; color: var(--navy); }
.author-info span { font-size: 0.82rem; color: var(--ink-soft); }

/* === BOOKING === */
.booking {
  background: linear-gradient(180deg, var(--sand) 0%, var(--white) 100%);
}
.booking-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  box-shadow: var(--shadow-strong);
  text-align: center;
  border: 1px solid var(--line);
}
.booking-card h2 { margin-bottom: 16px; }
.booking-embed {
  margin-top: 36px;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-fallback {
  padding: 40px;
  text-align: center;
}
.booking-fallback p { color: var(--ink-soft); margin-bottom: 20px; }

/* === CONTACT === */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}
.contact-info {
  background: var(--navy-deep);
  color: white;
  border-radius: var(--radius-lg);
  padding: 50px 44px;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(14,165,233,.2), transparent 50%);
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h3 { color: white; margin-bottom: 12px; font-size: 1.6rem; }
.contact-info p.lead { color: rgba(255,255,255,.8); margin-bottom: 36px; font-size: 1.02rem; }

.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact-list li:first-child { border-top: 0; }
.contact-list .ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(14,165,233,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--med-blue-light);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; font-weight: 600; }
.contact-list span, .contact-list a { color: rgba(255,255,255,.85); font-size: 1rem; }
.contact-list a:hover { color: var(--med-blue-light); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* === FOOTER === */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 56px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 280px; }
footer h5 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.94rem; color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--med-blue-light); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--med-blue); color: white; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--sand); color: var(--navy); }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    background: white;
    border-radius: var(--radius);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-strong);
    margin-top: 8px;
  }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-3d { aspect-ratio: 1/1; max-height: 460px; }
  .services-grid { grid-template-columns: 1fr; }
  .athletes-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  section { padding: 70px 0; }
  .booking-card { padding: 40px 24px; }
  .contact-info { padding: 36px 28px; }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .nav-actions .btn { padding: 10px 18px; font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
