/* ==========================================================================
   Parand Physiotherapy Network — shared design system
   Loaded on EVERY page (landing + every center sub-page).
   ========================================================================== */

/* ---- Font ---- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn.woff2') format('woff2');
  font-weight: 100 900; /* variable font: supports this whole range */
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --ink: #182620;
  --paper: #F2F4EE;
  --pine: #1F5C46;      /* primary deep green (headings, nav, footer) */
  --pine-dark: #14402F; /* darker green for footer/gradients */
  --leaf: #2F9E63;      /* brighter accent green (buttons, links, badges) */
  --leaf-light: #E8F5EC;
  --sage: #7C9A85;
  --amber: #C98A3D;
  --muted: #A7ACA3;
  --blue: #2456A6;      /* from the P.N.P mark — used sparingly */
  --shadow-soft: 0 12px 32px -12px rgba(20, 64, 47, 0.25);
  --shadow-lift: 0 20px 44px -14px rgba(20, 64, 47, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

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

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

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* ==========================================================================
   Shared top navigation — used on the landing page AND every sub-page
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 92, 70, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.nav-brand-text strong {
  color: var(--pine);
  font-size: 15px;
  font-weight: 800;
}
.nav-brand-text small {
  color: var(--sage);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 560px) {
  .nav-brand-text { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--pine);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--leaf-light);
  color: var(--pine);
}
.nav-links a.nav-cta {
  background: var(--leaf);
  color: white;
  margin-inline-start: 6px;
}
.nav-links a.nav-cta:hover {
  background: var(--pine);
  color: white;
}
.nav-links a.nav-back {
  color: var(--sage);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 28px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    text-align: center;
    padding: 14px;
    font-size: 16px;
  }
  .nav-links a.nav-cta { order: -1; margin-bottom: 8px; margin-inline-start: 0; }
}

/* ==========================================================================
   Scroll-reveal utility (used site-wide via nav.js IntersectionObserver)
   ========================================================================== */
/* Reveal-on-scroll: content is visible by default (safe if JS never runs —
   search engine crawlers, JS-disabled browsers, slow connections, etc).
   Only once nav.js confirms it's running does it arm the hidden→reveal
   animation, via the .js-ready class it adds to <html>. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--leaf);
  color: white;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 24px -8px rgba(47, 158, 99, 0.5);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--pine);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--pine);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid rgba(31, 92, 70, 0.25);
  transition: all 0.2s ease;
}
.btn-outline:hover {
  border-color: var(--pine);
  background: var(--leaf-light);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47,158,99,0.14), transparent 70%);
  z-index: 0;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--pine);
  line-height: 1.35;
  margin-bottom: 10px;
}
.hero-text .hero-sub {
  color: var(--leaf);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.hero-text p.hero-desc {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
  max-width: 520px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid rgba(31,92,70,0.1);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pine);
  box-shadow: 0 6px 16px -8px rgba(20,64,47,0.15);
}
.hero-badge svg { width: 16px; height: 16px; stroke: var(--leaf); flex-shrink: 0; }

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4/3.1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: -14px -14px auto auto;
  width: 90px;
  height: 90px;
  border: 6px solid var(--leaf-light);
  border-radius: 50%;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-text p.hero-desc { max-width: none; }
}

/* ==========================================================================
   SECTION HEADINGS (shared)
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--leaf);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.section-head h2 {
  color: var(--pine);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-head p {
  color: var(--sage);
  font-size: 15.5px;
  line-height: 1.8;
}

section { padding: 64px 0; }

/* ==========================================================================
   CENTERS PICKER (landing page's main job)
   ========================================================================== */
.centers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 900px) {
  .centers-grid { grid-template-columns: 1fr; max-width: 480px; }
}

.center-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(31,92,70,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.center-card:not(.is-disabled):hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.center-card .card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.center-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.center-card:not(.is-disabled):hover .card-media img {
  transform: scale(1.07);
}
.center-card .card-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--leaf);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(47,158,99,0.6);
}
.center-card.is-disabled .card-flag {
  background: var(--muted);
  box-shadow: none;
}

.card-content {
  padding: 22px 24px 26px;
}
.center-card h2 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--pine);
  margin-bottom: 6px;
}
.center-card .card-desc {
  color: var(--sage);
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 16px;
  min-height: 44px;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--leaf);
}
.card-cta svg { width: 15px; height: 15px; }
.center-card:not(.is-disabled):hover .card-cta { color: var(--pine); }

.center-card.is-disabled {
  cursor: not-allowed;
}
.center-card.is-disabled .card-media img { filter: grayscale(65%); opacity: 0.7; }
.center-card.is-disabled h2 { color: var(--muted); }
.card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: var(--muted);
  color: white;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ==========================================================================
   ABOUT NETWORK (image band + text)
   ========================================================================== */
.about-network {
  background: var(--leaf-light);
}
.about-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto 40px;
  box-shadow: var(--shadow-soft);
}
.about-banner img {
  width: 100%;
  height: clamp(160px, 26vw, 300px);
  object-fit: cover;
}
.about-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,64,47,0) 40%, rgba(20,64,47,0.55) 100%);
}
.about-body {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about-body h2 {
  color: var(--pine);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  margin-bottom: 16px;
}
.about-body p {
  color: var(--ink);
  line-height: 1.95;
  font-size: 15.5px;
  margin-bottom: 14px;
}
.about-body .btn-outline { margin-top: 12px; }

/* ==========================================================================
   SERVICES GRID (icon cards)
   ========================================================================== */
.services-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto 36px;
  padding: 0 24px;
}
@media (max-width: 980px) { .services-icon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .services-icon-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.service-icon-card {
  background: white;
  border: 1px solid rgba(31,92,70,0.08);
  border-radius: var(--radius-md);
  padding: 24px 14px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.service-icon-card .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--leaf-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.service-icon-card:hover .icon-wrap { background: var(--leaf); }
.service-icon-card .icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--pine);
  transition: stroke 0.25s ease;
}
.service-icon-card:hover .icon-wrap svg { stroke: white; }
.service-icon-card p {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.services-cta { text-align: center; }

/* ==========================================================================
   DOCTORS COOPERATION
   ========================================================================== */
.doctors-section .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .doctors-section .wrap { grid-template-columns: 1fr; gap: 28px; } }

.doctors-media img {
  width: 100%;
  aspect-ratio: 4/3.3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.doctors-text h2 {
  color: var(--pine);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  margin-bottom: 14px;
}
.doctors-text > p {
  color: var(--ink);
  line-height: 1.9;
  font-size: 15.5px;
  margin-bottom: 20px;
}
.doctors-checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}
.doctors-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pine);
}
.doctors-checklist svg {
  width: 20px;
  height: 20px;
  stroke: white;
  background: var(--leaf);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER (shared — used on every page)
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--pine-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 20px;
}
.footer-wave {
  line-height: 0;
  transform: translateY(1px);
}
.footer-wave svg { width: 100%; height: auto; display: block; }

.footer-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 40px;
}
.footer-cta-tagline {
  font-size: 19px;
  font-weight: 700;
  color: white;
}
.footer-cta-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-cta-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-cta-brand strong { display: block; color: white; font-size: 14px; }
.footer-cta-brand span { display: block; color: rgba(255,255,255,0.6); font-size: 11.5px; }

.footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
}
@media (max-width: 780px) {
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-cta { flex-direction: column; text-align: center; }
}

.footer-col h3 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  line-height: 2;
  text-decoration: none;
}
.footer-col a:hover { color: white; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-phone-row { margin-bottom: 6px; }
.footer-phone-row strong { color: rgba(255,255,255,0.9); font-weight: 700; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: flex-start;
}
@media (max-width: 780px) { .footer-social { justify-content: center; } }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: var(--leaf);
  transform: translateY(-3px);
}
.footer-social svg { width: 17px; height: 17px; stroke: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}

/* Simpler footer variant for sub-pages that don't need the full CTA row */
.site-footer--sub .footer-cta { display: none; }
.site-footer--sub .footer-main { padding-top: 40px; }

/* Respect users who've asked their OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
  .center-card, .center-card .card-media img, .service-icon-card { transition: none; }
}
