/* ==========================================================================
   Dr. Khalid Hussain Mazari — Personal Portfolio
   Design tokens extracted from the practice logo:
   deep navy -> teal gradient, white pulse line, warm neutral paper.
   ========================================================================== */

:root {
  /* Color — sampled directly from the provided logo artwork */
  --navy-950: #000f1f;
  --navy-900: #001c3b;
  --navy-800: #052a4a;
  --teal-700: #054b40;
  --teal-600: #0a5f50;
  --teal-500: #16786a;
  --mint-100: #e7f4ef;
  --mint-50:  #f3faf7;
  --paper:    #fbfcfa;
  --ink:      #0d1b20;
  --slate-600: #4a5a5f;
  --slate-500: #6b7b7f;
  --line:     #dfe8e4;
  --line-strong: #c9d7d2;
  --white: #ffffff;

  --gradient-brand: linear-gradient(135deg, var(--navy-900) 0%, var(--teal-700) 68%, var(--teal-500) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(0,28,59,0.06) 0%, rgba(10,95,80,0.09) 100%);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --edge: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 12px 40px -18px rgba(0, 20, 40, 0.35);
  --shadow-card: 0 8px 24px -14px rgba(0, 20, 40, 0.22);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  /* Intentionally not switching palette automatically — a medical brand
     benefits from consistent, predictable presentation. */
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--teal-600);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: 0.6rem;
  line-height: 1.12;
}
.section-head p {
  margin-top: 1rem;
  color: var(--slate-600);
  font-size: 1.05rem;
  max-width: 54ch;
}
.section-head.centered {
  margin-inline: auto;
  text-align: center;
}
.section-head.centered p { margin-inline: auto; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before { display: none; }

section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.bg-mint { background: var(--mint-50); }
.bg-paper { background: var(--paper); }

/* ---------- Pulse divider (signature motif, restrained) ---------- */
.pulse-divider {
  display: block;
  width: 100%;
  height: 34px;
  opacity: 0.55;
}
.pulse-divider path {
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 250, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0,20,40,0.3);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand img {
  height: 55px;
  width: 250px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-800);
  position: relative;
  padding: 0.35rem 0.1rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { box-shadow: 0 16px 32px -14px rgba(0,28,59,0.5); }

.btn-whatsapp {
  background: #1f8a63;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1a7554; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--teal-500); background: var(--mint-50); }

.btn-ghost {
  background: rgba(255,255,255,0.65);
  border-color: var(--line-strong);
  color: var(--navy-900);
}

.btn-block { width: 100%; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(72px + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(1100px 560px at 82% -10%, rgba(10, 95, 80, 0.14), transparent 60%),
    radial-gradient(900px 480px at -10% 10%, rgba(0, 28, 59, 0.08), transparent 55%),
    var(--paper);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 1.1rem; }

.hero-copy h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-copy h1 em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--slate-600);
  max-width: 46ch;
  line-height: 1.65;
}

.credential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-500);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.3rem;
}

.hero-locations {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.hero-locations span {
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 500;
}
.hero-locations strong {
  color: var(--navy-800);
  font-weight: 600;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-portrait-frame {
  position: relative;
  width: min(100%, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 796 / 1024;
}
.hero-portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-portrait-glow {
  position: absolute;
  inset: -18%;
  background: var(--gradient-brand);
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  filter: blur(6px);
  opacity: 0.16;
  z-index: -1;
}
.hero-pulse-wrap {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 8%;
  z-index: 2;
  pointer-events: none;
}
.hero-pulse-svg {
  width: 100%;
  height: 46px;
  overflow: visible;
}
.hero-pulse-svg path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
}
.hero-pulse-track {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-pulse 2.2s var(--ease) 0.4s forwards;
}
.hero-portrait-tag {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}

@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.about-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,17,34,0.55), transparent 45%);
}
.about-portrait-caption {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.3rem;
  color: var(--white);
  z-index: 2;
}
.about-portrait-caption .name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.about-portrait-caption .role { font-size: 0.8rem; opacity: 0.85; margin-top: 0.2rem; }

.about-copy p {
  color: var(--slate-600);
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-copy p + p { margin-top: 1.15rem; }

.about-stats {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.about-stat {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.about-stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  font-weight: 700;
}
.about-stat .value {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   Education
   ========================================================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.edu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.edu-card .edu-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.edu-card h3 {
  font-size: 1.28rem;
}
.edu-card .edu-region {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.edu-card p {
  margin-top: 0.9rem;
  color: var(--slate-600);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal-500);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-700);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 1.08rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-900);
}
.service-card p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Locations
   ========================================================================== */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.location-card-top {
  padding: 1.7rem 1.6rem 1.4rem;
  background: var(--gradient-brand-soft);
  border-bottom: 1px solid var(--line);
}
.location-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.location-card-top h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.location-card-body {
  padding: 1.4rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex-grow: 1;
}
.location-address {
  display: flex;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.55;
}
.location-address svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--teal-600);
}
.location-actions {
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.location-actions .btn { flex: 1 1 auto; padding: 0.65rem 1rem; font-size: 0.85rem; }

/* ==========================================================================
   Social
   ========================================================================== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.social-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.social-icon svg { width: 26px; height: 26px; }
.social-card h3 { font-size: 1.05rem; }
.social-card p { margin-top: 0.3rem; font-size: 0.88rem; color: var(--slate-600); }
.social-card .social-cta {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-600);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-inline: var(--edge);
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
  position: relative;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.contact-section .section-head h2,
.contact-section .eyebrow { color: var(--white); }
.contact-section .eyebrow::before { background: rgba(255,255,255,0.6); }
.contact-section .section-head p { color: rgba(255,255,255,0.78); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}
.contact-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), background .25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-tile:hover { transform: translateY(-4px); background: rgba(255,255,255,0.13); }
.contact-tile .contact-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
.contact-tile .contact-icon svg { width: 21px; height: 21px; }
.contact-tile .contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}
.contact-tile .contact-value {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  word-break: break-word;
}
.contact-tile .contact-value.small { font-size: 1rem; }
.contact-tile a.contact-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  width: fit-content;
}

.contact-emails {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 4rem) 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-brand img {
  height: 65px;
  width: 250px;
  display: block;
}
.footer-tagline {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 34ch;
  color: rgba(255,255,255,0.55);
}
.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.footer-social a:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   Floating WhatsApp CTA
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #1f8a63;
  color: var(--white);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 14px 30px -10px rgba(15, 90, 60, 0.55);
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s var(--ease);
}
.float-whatsapp.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-whatsapp:hover { background: #1a7554; }
.float-whatsapp svg { width: 22px; height: 22px; }
.float-whatsapp .fw-text { display: none; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--edge) 1.75rem;
    gap: 0.4rem;
    box-shadow: var(--shadow-card);
  }
  .nav-links.is-open a { padding: 0.6rem 0; font-size: 1rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; margin-bottom: 1rem; }
  .hero-portrait-frame { width: min(72%, 300px); }

  .edu-grid { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .nav-right .btn-outline { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
