/* ============================================================================
   Tahirah Physiotherapy – Global Style System (Brand Colors Applied)
   Mobile-First · Clinical · Clean · Fast
   ============================================================================ */

/* ---------- Brand Variables ---------- */
:root {
  --brand-blue: #005B82;
  --brand-aqua: #3DC4A1;
  --brand-dark: #0F2F33;
  --brand-muted: #5E6B6E;

  --bg-soft: #F3F5F6;
  --white: #ffffff;

  --radius: 14px;
  --transition: 0.25s ease;

  --max-width: 1280px;
  --container-pad: 6%;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--brand-dark);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Images & media */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================================================
   HEADER – Clean, Sticky, Brand-Aligned
   ============================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.012);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--container-pad);
  height: 110px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-container img {
  width: 120px;
}
/* Centering header internally */
.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Brand title */
.brand-title {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand-title span {
  color: var(--brand-aqua);
}

/* GROUP: Logo + Title */
.logo-title-group {
  display: flex;
  align-items: center;
  gap: 8px; /* smaller */
}

/* Desktop Nav */
#nav-menu {
  display: flex;
  gap: 22px;
  align-items: center;
}
#nav-menu a:hover {
  color: var(--brand-aqua);
}

/* Book Now */
#nav-menu .cta {
  background: var(--brand-blue);
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
}
#nav-menu .cta:hover {
  background: var(--brand-aqua);
  color: var(--brand-dark);
}

/* Burger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--brand-dark);
  border-radius: 2px;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 1024px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    background: var(--brand-blue);
    color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px 24px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  #nav-menu.show {
    display: flex;
    animation: slideDown 0.35s ease;
  }

  #nav-menu a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  #nav-menu .cta {
    margin-top: 12px;
    background: var(--brand-aqua);
    color: var(--brand-dark);
  }

  .hamburger {
    display: flex;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================================================================
   HERO SECTION – DESKTOP VERSION (KEEP EXACTLY SAME)
   ============================================================================ */
.hero {
  display: flex;
  align-items: center;
  padding: 110px var(--container-pad);
  position: relative;
  min-height: 650px;
  background: var(--white);
  overflow: hidden;
}

/* Left content */
.hero-left {
  flex: 1;
  max-width: 640px;
  z-index: 3;
  margin-left: 4%;
}

.hero-left h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--brand-dark);
}

.hero-left .tagline {
  color: var(--brand-aqua);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-desc {
  color: var(--brand-muted);
  margin-bottom: 22px;
  line-height: 1.55;
  max-width: 580px;
}

/* Highlight strip */
.hero-highlight {
  background: var(--brand-blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  margin: 18px 0 26px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Icons row */
.hero-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  max-width: 600px;
}

.hi-item {
  padding: 8px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--brand-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Areas */
.hero-areas {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--brand-muted);
}

/* Background image (right) */
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  background-image: url('/images/hero-right-1600.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  filter: brightness(0.96) contrast(1.07);
}

/* Blend gradient (left side) */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 80%,
    rgba(255,255,255,0) 100%
  );
  z-index: 2;
}

/* Trust panel */
.hero-stats {
  position: absolute;
  right: 14%;
  top: 52%;
  transform: translateY(-50%);
  width: 260px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  padding: 26px 22px;
  z-index: 6;
}

.stat-item {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.stat-item:last-child {
  border-bottom: none;
}
.stat-item h3 {
  color: var(--brand-blue);
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}
.stat-item p {
  margin: 4px 0 0;
  color: var(--brand-muted);
}

/* Hero stats row */
.hero-stats-row {
  display: flex;
  justify-content: space-around;
  padding: 25px 0;
  background: #eaf3f3;
}

.hsr-item h3 {
  color: var(--brand-blue);
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
}
.hsr-item p {
  margin: 4px 0 0;
  color: var(--brand-muted);
}

/* Feature strip */
.hero-feature-strip {
  background: var(--brand-blue);
  padding: 60px 6%;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hf-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 330px;
  color: white;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hf-item:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

.hf-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hf-item:hover .hf-icon {
  background: rgba(255,255,255,0.28);
}

.hf-item h4 {
  margin: 0 0 4px;
  font-size: 1.20rem;
  font-weight: 700;
}
.hf-item p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}

/* Cursor typing */
.hero-typing {
  margin-top: 12px;
  color: var(--brand-muted);
}
.cursor {
  animation: blink 0.7s infinite;
  color: var(--brand-blue);
  font-weight: bold;
}
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* ============================================================================
   MOBILE VERSION — FULLY FIXED (UPDATED)
   ============================================================================ */
@media (max-width: 760px) {

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 18px 260px;
    min-height: auto;
    height: auto;
  }

  .hero-left {
    margin-left: 0;
    max-width: 100%;
  }

  /* Fix hero image */
  .hero::after {
    width: 100%;
    height: 320px;
    bottom: 0;
    top: auto;
    background-position: center bottom;
  }

  /* Fix gradient */
  .hero::before {
    width: 100%;
    height: 320px;
    bottom: 0;
    top: auto;
    background: linear-gradient(
      to top,
      #ffffff 0%,
      rgba(255,255,255,0.95) 50%,
      rgba(255,255,255,0) 100%
    );
  }

  /* Trust panel */
  .hero-stats {
    position: relative;
    transform: none;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 26px;
  }
  .stat-item {
    text-align: center;
  }

  /* Icons row */
  .hero-icons-row {
    justify-content: center;
  }

  /* Stats row */
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 30px 12px;
    text-align: center;
  }

  /* Feature strip */
  .hero-feature-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 40px 20px;
  }
  .hero-feature-strip .hf-item {
    margin: auto;
    max-width: 260px;
  }
  .hf-icon {
    margin: auto;
  }
}




/* =============================
   HOME ABOUT SECTION (Premium)
   ============================= */
.home-about-section {
  padding: 80px 6%;
  background: #f6f9f9;
}

.ha-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.ha-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.10);
}

.ha-right h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--brand-blue);
}

.ha-right p {
  margin-bottom: 14px;
  color: var(--brand-muted);
  line-height: 1.55;
  font-size: 1.05rem;
}

@media (max-width: 850px) {
  .ha-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ha-photo {
    margin: auto;
  }
}

/* Floating icon hover animation for feature icons */
.hf-item:hover .icon-wrap {
  transform: translateY(-6px) scale(1.07);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* About badge */
.about-badge {
  display: inline-block;
  background: #E7F4F1;
  color: var(--brand-blue);
  padding: 6px 18px;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

/* Know More Button */
.km-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #005B82;
  color: #fff;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.km-btn:hover {
  background: #004766;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Circle bubble */
.km-icon {
  background: linear-gradient(135deg, #5C00FF, #8B00FF);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* SVG Arrow */
.arrow-svg {
  transition: transform 0.3s ease;
}

/* Slide animation */
.km-btn:hover .arrow-svg {
  transform: translateX(4px);
}

.km-btn:hover .km-icon {
  transform: scale(1.07);
}

/* Responsive button adjustment */
@media (max-width: 480px) {
  .km-btn {
    gap: 10px;
    padding: 12px 20px;
  }
  .km-icon {
    width: 36px;
    height: 36px;
  }
}


/* ============================================================================
   SECTION TITLES
   ============================================================================ */
.section-title {
  text-align: center;
  font-size: clamp(1.4rem,2.8vw,2rem);
  margin-bottom: 32px;
  font-weight: 600;
  color: var(--brand-blue);
}

/* ============================================================================
   TREATMENTS GRID
   ============================================================================ */
.treatments {
  padding: 60px var(--container-pad);
  background: var(--bg-soft);
}
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 26px;
}
.treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.treatment-card:hover {
  transform: translateY(-4px);
}
.treatment-card p {
  padding: 14px;
  font-weight: 600;
  text-align: center;
}

/* ---- OUR APPROACH SECTION ---- */

.approach-section {
  padding: 70px 0;
  background: var(--bg-soft);
  text-align: center;
}

.approach-tag {
  background: var(--brand-aqua);
  padding: 8px 22px;
  border-radius: 40px;
  color: #fff;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.approach-desc {
  max-width: 820px;
  margin: 0 auto 40px;
  color: var(--brand-muted);
  line-height: 1.6;
}

/* GRID */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 35px;
}

/* CARD */
.approach-card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.08);
}

/* Icon bubble */
.icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0, 91, 130, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

/* Icon hover float */
.approach-card:hover .icon-wrap {
  transform: translateY(-4px) scale(1.05);
}

.approach-card h3 {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.18rem;
}

.approach-card p {
  color: var(--brand-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* ============================================================================
   TESTIMONIAL SLIDER
   ============================================================================ */
.testimonials-slider {
  padding: 60px var(--container-pad);
  max-width: 950px;
  margin: 0 auto;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  text-align: center;
  padding: 40px var(--container-pad);
  background: var(--brand-blue);
  color: var(--white);
}
footer img {
  width: 70px;
  margin-bottom: 10px;
}

/* ============================================================================
   FLOATING CONTACT WIDGET
   ============================================================================ */
.contact-widget {
  position: fixed;
  right: 12px;
  bottom: 18px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 18px;
  display: flex;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1900;
}
.cw-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  display: flex;
  align-items:center;
  justify-content:center;
}
.cw-btn:hover {
  background: var(--brand-aqua);
  transform: translateY(-3px);
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  padding: 16px 20px 22px;
}

/* ============================================================================
   LIGHTBOX (Gallery)
   ============================================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
#lightbox.open {
  display: flex;
}
#lightbox-img {
  max-width: 90%;
  max-height: 85%;
}

/* ============================================================================
   END OF FILE
   ============================================================================ */
