/* ============================================================
   PHRAPY PHYSIOTHERAPY CENTER — Main Stylesheet
   Design: Deep teal primary, warm off-white background, 
   Lora (serif) for display, Plus Jakarta Sans for body.
   Signature element: Flowing teal-to-sage gradient blobs 
   that echo the gentle, healing nature of physiotherapy.
   ============================================================ */

/* ── TOKENS ── */
:root {
  --teal:        #0B6B72;
  --teal-dark:   #074E54;
  --teal-light:  #E8F5F6;
  --teal-mid:    #147A83;
  --sage:        #5A8A72;
  --sage-light:  #EEF5F1;
  --warm-white:  #FAF9F7;
  --off-white:   #F4F2EE;
  --charcoal:    #1C2B2D;
  --grey:        #4A5E61;
  --grey-light:  #8EA5A8;
  --border:      #D8E8EA;
  --white:       #FFFFFF;
  --gold:        #C9962A;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 2px 12px rgba(11, 107, 114, 0.10);
  --shadow-lg:   0 8px 40px rgba(11, 107, 114, 0.15);

  --max-w: 1160px;
  --nav-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── UTILITY ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-sub { color: var(--grey); font-size: 1.05rem; max-width: 520px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary   { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--outline   { border: 2px solid var(--teal); color: var(--teal); }
.btn--outline:hover { background: var(--teal-light); }
.btn--ghost     { background: rgba(255,255,255,0.15); color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.25); }
.btn--white     { background: var(--white); color: var(--teal); }
.btn--white:hover { background: var(--teal-light); }
.btn--outline-white { border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,0.15); }
.btn--lg { padding: 15px 32px; font-size: 1rem; border-radius: 10px; }
.btn--sm { padding: 9px 18px; font-size: 0.875rem; }
.btn--full { width: 100%; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.logo__name   { display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.1; color: var(--charcoal); }
.logo__tagline { display: block; font-size: 0.65rem; color: var(--grey-light); letter-spacing: 0.05em; text-transform: uppercase; }

/* Nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  transition: all 0.15s;
  display: flex; align-items: center; gap: 4px;
}
.nav__link:hover, .nav__link.active { color: var(--teal); background: var(--teal-light); }
.nav__arrow { font-size: 0.7rem; }
.nav__dropdown { position: relative; }
.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.nav__dropdown:hover .nav__sub, .nav__dropdown:focus-within .nav__sub {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav__sub li a {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--grey);
  transition: all 0.15s;
}
.nav__sub li a:hover { background: var(--teal-light); color: var(--teal); }
.header__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: all 0.2s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--sage) 100%);
  color: var(--white);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__headline em { font-style: italic; color: rgba(255,255,255,0.85); }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 440px; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 32px; align-items: center; margin-bottom: 40px; }
.stat strong { display: block; font-size: 2rem; font-weight: 700; font-family: var(--font-display); }
.stat span   { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.stat__divider { width: 1px; height: 40px; background: rgba(255,255,255,0.25); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual (cards) */
.hero__visual { position: relative; display: flex; flex-direction: column; gap: 16px; }
.hero__blob {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 16px 20px;
  animation: floatUp 0.6s ease both;
}
.hero__card--1 { animation-delay: 0.1s; }
.hero__card--2 { animation-delay: 0.25s; }
.hero__card--3 { animation-delay: 0.4s; }
.hero__card-icon { font-size: 1.5rem; flex-shrink: 0; }
.hero__card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.hero__card p { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin: 0; }

@keyframes floatUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  padding: 14px 0;
}
.trust-bar__inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scrollTrust 20s linear infinite;
  width: max-content;
}
.trust-bar__inner span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; }
@keyframes scrollTrust {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── ABOUT STRIP ── */
.about-strip { background: var(--off-white); }
.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.about-strip__text p { color: var(--grey); margin-bottom: 28px; }
.check-list { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--grey);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 700;
}
.about-strip__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.mini-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.mini-card__icon { font-size: 1.75rem; margin-bottom: 12px; }
.mini-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.mini-card p { font-size: 0.85rem; color: var(--grey); line-height: 1.55; margin: 0; }

/* ── SERVICES ── */
.services { background: var(--warm-white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sage));
  opacity: 0;
  transition: opacity 0.2s;
}
.service-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }
.service-card__num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--grey-light);
  margin-bottom: 12px;
}
.service-card__icon { font-size: 2rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--charcoal); }
.service-card p { font-size: 0.875rem; color: var(--grey); line-height: 1.6; margin-bottom: 16px; }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-card__tags li {
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── WHY ── */
.why { background: var(--off-white); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.why-card__icon { font-size: 2rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.why-card p { font-size: 0.875rem; color: var(--grey); line-height: 1.6; margin: 0; }

/* ── APPOINTMENT ── */
.appointment { background: var(--teal-light); }
.appointment__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.appointment__text p { color: var(--grey); margin-bottom: 32px; }
.appointment__info { display: flex; flex-direction: column; gap: 20px; }
.appt-info-item { display: flex; align-items: flex-start; gap: 16px; }
.appt-info-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.appt-info-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-light); margin-bottom: 2px; }
.appt-info-item a, .appt-info-item span { color: var(--charcoal); font-weight: 500; font-size: 0.95rem; }
.appt-info-item a:hover { color: var(--teal); }

/* Form */
.appointment__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.appt-form h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 24px; color: var(--charcoal); }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--grey); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color 0.15s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); background: var(--white); }
textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--grey-light); margin-top: 12px; }

/* ── FAQ ── */
.faq { background: var(--warm-white); }
.faq__inner { max-width: 760px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--teal); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { border-color: var(--teal); }
.faq-item p {
  padding: 0 24px 18px;
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: 64px 0;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-strip h2 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,0.8); }
.cta-strip__actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ── FOOTER ── */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.65); padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
}
.footer__brand .logo__mark { background: var(--teal); }
.footer__brand .logo__name { color: var(--white); }
.footer__brand p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin: 20px 0 24px; max-width: 300px; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer__contact a:hover { color: var(--white); }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__col ul a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer__bottom a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer__bottom a:hover { color: var(--white); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: #25D366;
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__blob { display: none; }
  .about-strip__inner { grid-template-columns: 1fr; gap: 48px; }
  .appointment__inner { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }
  .nav { display: none; position: fixed; inset: 0; top: var(--nav-h); background: var(--white); flex-direction: column; padding: 24px; z-index: 99; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav__link { font-size: 1rem; width: 100%; padding: 14px 8px; }
  .nav__dropdown { width: 100%; }
  .nav__sub { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; background: var(--teal-light); margin-top: 4px; display: none; }
  .nav__dropdown.is-open .nav__sub { display: block; }
  .nav__toggle { display: flex; }
  .header__cta { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero__stats { gap: 20px; }
  .stat strong { font-size: 1.5rem; }
  .hero__visual { grid-template-columns: 1fr; }
  .hero__card--3 { display: none; }
  .about-strip__cards { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .appointment__form-wrap { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom .container { flex-direction: column; }
  .trust-bar__inner { animation-duration: 14s; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; }
  .hero__stats { flex-direction: column; gap: 12px; align-items: flex-start; }
  .stat__divider { display: none; }
}

/* ── FOCUS / A11Y ── */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
