/* ============================================================
   MODERN PHYSIOTHERAPY SITE - COMPLETE REWRITE
   ============================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5c59;
  --secondary: #f59e0b;
  --accent: #8b5cf6;
  --dark: #111827;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --success: #10b981;
  --error: #ef4444;

  --font-serif: "Poppins", sans-serif;
  --font-sans: "Inter", sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: #fff;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-serif);
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  color: white;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

.btn--full {
  width: 100%;
}

/* ===== UTILITIES ===== */
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition);
  height: 80px;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo__icon {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.logo__icon span {
  color: var(--secondary);
  margin-left: 2px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.logo__text small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* CTA Button */
#cta-btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 101;
  position: relative;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(135deg, #f0faf9 0%, #fff9f0 100%);
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 1;
}

.hero__text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__text h1 span {
  color: var(--primary);
}

.hero__text > p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero__buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(15, 118, 110, 0.1);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat__number {
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-serif);
}

.stat span {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image img {
  max-width: 450px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(15, 118, 110, 0.15));
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--primary);
  color: white;
  padding: 2rem 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.trust-item__icon {
  font-size: 1.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 6rem 0;
  background: var(--gray-50);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.about__badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--primary);
  color: white;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.about__badge strong {
  display: block;
  font-size: 2rem;
  color: var(--secondary);
  line-height: 1;
}

.about__badge small {
  font-size: 0.9rem;
  opacity: 0.9;
}

.about__content h2 {
  margin-bottom: 1.5rem;
}

.about__content h2 span {
  color: var(--primary);
}

.about__content p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--dark);
}

.feature span {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.about__content .btn {
  margin-top: 1rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 6rem 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   WHY
   ============================================================ */
.why {
  padding: 6rem 0;
  background: var(--gray-50);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  text-align: center;
}

.why-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.why-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 6rem 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-card__stars {
  color: var(--secondary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-card__author strong {
  display: block;
  color: var(--dark);
  font-size: 1rem;
}

.testimonial-card__author small {
  color: var(--gray-600);
  font-size: 0.85rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 6rem 0;
  background: var(--gray-50);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  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.5rem;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 1rem 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============================================================
   CLINICS
   ============================================================ */
.clinics {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(234, 88, 12, 0.05));
}

.clinics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.clinic-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition);
  border-top: 3px solid var(--primary);
}

.clinic-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.clinic-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.clinic-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.clinic-card__location {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.clinic-card__hours {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 6rem 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__info h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact__form {
  background: var(--gray-50);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: inherit;
  background: white;
  color: var(--gray-700);
  transition: all var(--transition);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
  font-weight: 500;
}

.form-note.success {
  color: var(--success);
}

.form-note.error {
  color: var(--error);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 3rem 0 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer__brand .logo__text strong {
  color: white;
}

.footer__brand .logo__text small {
  color: #ccc;
}

.footer__links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer__contact h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer__contact a {
  opacity: 0.8;
  transition: all var(--transition);
}

.footer__contact a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer__bottom {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.whatsapp-btn:hover {
  background: #20BA5A;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-width: 350px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image img {
    max-width: 100%;
  }

  .services__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__content {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header__inner {
    gap: 1rem;
  }

  #cta-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: white;
    padding: 2rem;
    gap: 0.5rem;
    height: auto;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__link {
    padding: 1rem;
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }

  .nav__link.active::after {
    display: none;
  }

  .hero__text h1 {
    font-size: 2.5rem;
  }

  .hero__text > p {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 2rem;
    justify-content: space-around;
  }

  .stat__number {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 2rem;
  }

  .services__grid,
  .testimonials__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .clinics__grid {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 560px) {
  .header__inner {
    gap: 0.75rem;
  }

  .logo__text small {
    font-size: 0.6rem;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 40px;
  }

  .hero__text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero__stats {
    gap: 1.5rem;
    flex-direction: column;
    margin-top: 2rem;
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .trust-bar__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trust-item {
    gap: 0.75rem;
  }

  .about__badge {
    position: static;
    margin-top: 1.5rem;
    border: none;
  }

  .service-card {
    padding: 1.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .contact__form {
    padding: 1.5rem;
  }

  .faq__list {
    gap: 0.75rem;
  }

  .faq-item {
    padding: 1rem;
  }

  .faq-item summary {
    font-size: 1rem;
  }

  .whatsapp-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
}
