/* ────────────────────────────────────────────────────────────────
   Physio By Faiza — Stylesheet
   Palette: Sage green + warm ivory + deep charcoal
──────────────────────────────────────────────────────────────── */

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage:        #7a9e8e;
  --sage-light:  #a8c5b5;
  --sage-dark:   #4d7a68;
  --ivory:       #f8f5ef;
  --ivory-dark:  #ede8df;
  --charcoal:    #2c2c2c;
  --charcoal-lt: #555555;
  --white:       #ffffff;
  --shadow:      0 4px 30px rgba(0,0,0,0.07);
  --shadow-lg:   0 12px 50px rgba(0,0,0,0.12);
  --radius:      16px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--charcoal-lt); }
em { font-style: italic; color: var(--sage-dark); }
strong { color: var(--charcoal); font-weight: 500; }
a  { text-decoration: none; color: inherit; }

/* ── LAYOUT HELPERS ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.alt-bg  { background: var(--ivory-dark); }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-sub { font-size: 1.05rem; margin-top: 1rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary, .btn-ghost, .btn-nav {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--charcoal); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(77,122,104,0.3); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn-nav {
  background: var(--sage-dark);
  color: var(--white) !important;
  padding: 0.65rem 1.6rem;
}
.btn-nav:hover { background: var(--charcoal); }
.btn-full { width: 100%; text-align: center; }

/* ── NAVBAR ───────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(248,245,239,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.8rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.logo span { color: var(--sage-light); }
#navbar.scrolled .logo { color: var(--charcoal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:not(.btn-nav):hover { color: var(--white); }
#navbar.scrolled .nav-links a:not(.btn-nav) { color: var(--charcoal-lt); }
#navbar.scrolled .nav-links a:not(.btn-nav):hover { color: var(--sage-dark); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
#navbar.scrolled .burger span { background: var(--charcoal); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(44,44,44,0.72) 0%, rgba(77,122,104,0.65) 100%),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1800&q=80') center/cover no-repeat;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 2rem;
  padding-top: 80px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.5rem;
}
.hero-content h1 { color: var(--white); font-weight: 300; }
.hero-content h1 em { color: var(--sage-light); font-style: italic; }
.hero-sub { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin: 1.5rem auto; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{ opacity:0.3; transform:scaleY(1); } 50%{ opacity:1; transform:scaleY(0.6); } }

/* ── ABOUT ────────────────────────────────────────────────────── */
.about-img { position: relative; }
.img-frame { position: relative; display: inline-block; width: 100%; }
.img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--sage-light), var(--sage-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.initials {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  user-select: none;
}
.accent-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--charcoal);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.accent-badge strong { display: block; font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; }
.accent-badge span { font-size: 0.75rem; color: var(--sage-light); }

.about-text { padding-bottom: 2rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p + p { margin-top: 1rem; }
.about-values {
  list-style: none;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.about-values li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-dark); flex-shrink: 0; }

/* ── SERVICES ─────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(122,158,142,0.15), rgba(77,122,104,0.1));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--sage-dark);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.service-card p { font-size: 0.88rem; }

/* ── EDUCATION / TIMELINE ─────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 4rem;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--sage-light), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: 0.4rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-dark);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 3px var(--sage-light);
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}
.timeline-year {
  display: inline-block;
  background: var(--sage-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.timeline-content h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.timeline-org { font-size: 0.82rem; color: var(--sage-dark); font-weight: 500; margin-bottom: 0.6rem; }
.timeline-content p { font-size: 0.87rem; }

.credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 500;
}
.cred-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── EXPERIENCE ───────────────────────────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.exp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.exp-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.exp-year {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal-lt);
  letter-spacing: 0.05em;
}
.exp-type {
  font-size: 0.72rem;
  background: rgba(122,158,142,0.15);
  color: var(--sage-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.exp-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.exp-org { font-size: 0.8rem; color: var(--sage-dark); font-weight: 500; margin-bottom: 0.75rem; }
.exp-card p { font-size: 0.87rem; }

/* ── STATS ────────────────────────────────────────────────────── */
.stats { background: var(--charcoal); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--sage-light);
  line-height: 1;
}
.stat-item span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.t-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: var(--sage-dark); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
blockquote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.t-author { display: flex; align-items: center; gap: 0.9rem; }
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: 0.9rem; color: var(--charcoal); }
.t-author p { font-size: 0.78rem; color: var(--charcoal-lt); margin-top: 0.15rem; }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-grid { align-items: start; gap: 4rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-details li { display: flex; align-items: flex-start; gap: 1rem; }
.c-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, rgba(122,158,142,0.15), rgba(77,122,104,0.1));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--sage-dark);
}
.c-icon svg { width: 20px; height: 20px; }
.contact-details strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--charcoal); margin-bottom: 0.15rem; }
.contact-details p { font-size: 0.9rem; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; color: var(--charcoal); text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group select { cursor: pointer; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 4px rgba(77,122,104,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--charcoal-lt); text-align: center; margin-top: 1rem; }

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--white);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: var(--white); display: block; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer h4 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1.2rem; font-family: var(--font-sans); font-weight: 500; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--sage-light); }
.footer-hours ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-hours li { display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom { text-align: center; padding: 1.5rem 2rem; font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── REVEAL ANIMATIONS ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children of common containers */
.services-grid .service-card:nth-child(1),
.exp-grid .exp-card:nth-child(1),
.testimonials-track .t-card:nth-child(1),
.timeline-item:nth-child(1)  { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2),
.exp-grid .exp-card:nth-child(2),
.testimonials-track .t-card:nth-child(2),
.timeline-item:nth-child(2)  { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(3),
.exp-grid .exp-card:nth-child(3),
.testimonials-track .t-card:nth-child(3),
.timeline-item:nth-child(3)  { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(4),
.exp-grid .exp-card:nth-child(4),
.testimonials-track .t-card:nth-child(4),
.timeline-item:nth-child(4)  { transition-delay: 0.35s; }
.services-grid .service-card:nth-child(5)  { transition-delay: 0.45s; }
.services-grid .service-card:nth-child(6)  { transition-delay: 0.55s; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Nav */
  .burger { display: flex; z-index: 10; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: rgba(44,44,44,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5rem 3rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: rgba(255,255,255,0.85); font-size: 1rem; }
  .nav-links a:not(.btn-nav):hover { color: var(--white); }
  #navbar.scrolled .nav-links a:not(.btn-nav) { color: rgba(255,255,255,0.85); }

  .burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Layouts */
  .grid-2         { grid-template-columns: 1fr; gap: 3rem; }
  .about-img      { order: -1; max-width: 360px; margin: 0 auto; }
  .accent-badge   { right: 0; bottom: -1rem; }
  .services-grid  { grid-template-columns: 1fr; }
  .exp-grid       { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 2rem; }
  .form-row       { grid-template-columns: 1fr; }
  .about-values   { grid-template-columns: 1fr; }
  .contact-grid   { gap: 3rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-content h1 { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .credentials { flex-direction: column; align-items: center; }
  .contact-form { padding: 1.8rem; }
}
