/* ===================================================================
   Astha Ultrasound Centre & Gynae Clinic
   Theme: Deep teal + pink/magenta (matches clinic branding)
=================================================================== */

:root {
  /* Brand */
  --teal: #166b75;
  --teal-dark: #0f4d55;
  --teal-deep: #0b3b42;
  --teal-light: #2c8b95;
  --teal-mist: #e7f3f4;
  --teal-soft: #f3f9fa;

  --pink: #e63f7d;
  --pink-dark: #cf2d6a;
  --pink-soft: #fdeaf1;

  /* Neutrals */
  --ink: #17323a;
  --body: #4a5c62;
  --muted: #7b8a8f;
  --line: #e2ecee;
  --bg: #ffffff;
  --bg-alt: #f4f9fa;
  --white: #ffffff;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(15, 77, 85, 0.06);
  --shadow: 0 12px 34px rgba(15, 77, 85, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 77, 85, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
  --grad-teal: linear-gradient(135deg, #1d7a84, #0f4d55);
  --grad-pink: linear-gradient(135deg, #f0578f, #cf2d6a);

  --nav-h: 74px;
  --container: 1180px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.ic { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; border: 2px solid transparent;
}
.btn--primary { background: var(--grad-pink); color: #fff; box-shadow: 0 10px 24px rgba(230, 63, 125, .3); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230, 63, 125, .4); }
.btn--ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-deep); color: #d6ecee; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact { display: flex; gap: 18px; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar__contact a:hover { color: #fff; }
.topbar .ic { width: 15px; height: 15px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { height: 54px; width: auto; }
.brand__fallback { display: none; align-items: center; gap: 12px; }
.brand__mark { width: 52px; height: 52px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--teal); font-weight: 800; letter-spacing: 2px; }
.brand__text small { font-size: .62rem; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 9px 14px; border-radius: 10px; position: relative; transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.active { color: var(--teal); background: var(--teal-mist); }
.nav__cta { margin-left: 8px; padding: 11px 22px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 10px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--teal); border-radius: 3px; transition: transform .3s, opacity .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(230, 63, 125, .10), transparent 60%),
    radial-gradient(800px 600px at -5% 110%, rgba(22, 107, 117, .10), transparent 55%),
    linear-gradient(180deg, #f6fbfb, #ffffff);
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-block: clamp(48px, 8vw, 92px);
}
.pill {
  display: inline-block; background: var(--pink-soft); color: var(--pink-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .4px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--grad-pink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__content > p { margin: 20px 0 28px; font-size: 1.08rem; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--teal); font-weight: 800; }
.hero__stats span { font-size: .82rem; color: var(--muted); }

.hero__card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero__badge {
  position: absolute; top: -16px; left: 26px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad-teal); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; padding: 8px 15px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero__badge .ic { width: 16px; height: 16px; }
.hero__heart {
  width: 78px; height: 78px; margin: 14px 0 18px; border-radius: 22px; display: grid; place-items: center;
  background: var(--grad-pink); box-shadow: 0 14px 28px rgba(230, 63, 125, .35);
}
.hero__heart svg { width: 42px; height: 42px; fill: #fff; }
.hero__card h3 { font-size: 1.35rem; color: var(--teal-dark); }
.hero__card-sub { margin: 8px 0 18px; font-size: .95rem; }
.hero__list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 500; color: var(--ink); font-size: .95rem; }
.tick { width: 22px; height: 22px; fill: var(--pink); flex-shrink: 0; }

/* ---------- Section framework ---------- */
.section { padding-block: clamp(56px, 9vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink); margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section__head h2::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 4px;
  background: var(--grad-pink); margin: 16px auto 0;
}
.section__head p { margin-top: 16px; font-size: 1.05rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.about__portrait {
  background: var(--grad-teal); color: #fff; border-radius: var(--radius-lg); padding: 38px 30px;
  text-align: center; box-shadow: var(--shadow); position: sticky; top: calc(var(--nav-h) + 20px);
}
.about__avatar {
  width: 148px; height: 148px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .15); border: 4px solid rgba(255, 255, 255, .55);
  box-shadow: 0 12px 26px rgba(11, 59, 66, .35);
}
.about__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about__avatar-fallback { width: 100%; height: 100%; display: none; place-items: center; }
.about__avatar-fallback svg { width: 82px; height: 82px; fill: #fff; }
.about__portrait h3 { color: #fff; font-size: 1.5rem; }
.about__role { color: #cdeef0; font-weight: 500; margin-bottom: 22px; }
.about__creds { text-align: left; display: grid; gap: 14px; }
.about__creds li { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 16px; font-weight: 500; font-size: .95rem; }
.about__creds span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: #bfe6e9; margin-bottom: 3px; font-family: var(--font-head); }

.about__body p { margin-bottom: 16px; font-size: 1.05rem; }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.about__tags span {
  background: var(--teal-mist); color: var(--teal-dark); font-family: var(--font-head);
  font-weight: 500; font-size: .85rem; padding: 8px 15px; border-radius: 999px;
}

/* ---------- Services grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-teal);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover .card__ic { background: var(--grad-pink); }
.card:hover .card__ic svg { fill: #fff; }
.card__ic {
  width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center;
  background: var(--teal-mist); margin-bottom: 18px; transition: background .3s ease;
}
.card__ic svg { width: 30px; height: 30px; fill: var(--teal); transition: fill .3s ease; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--teal-dark); }
.card p { font-size: .93rem; color: var(--body); }

/* ---------- Why choose us ---------- */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card__ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--pink-soft);
}
.why-card__ic svg { width: 24px; height: 24px; fill: var(--pink); }
.why-card h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--ink); }
.why-card p { font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.info-card__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-teal); flex-shrink: 0; }
.info-card__ic svg { width: 26px; height: 26px; fill: #fff; }
.info-card__ic--wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.info-card small { display: block; font-size: .78rem; color: var(--muted); }
.info-card strong { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); margin: 1px 0; }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow); }
.contact__form h3 { font-size: 1.35rem; margin-bottom: 22px; color: var(--teal-dark); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fbfdfd;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 107, 117, .12); background: #fff;
}
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(230, 63, 125, .12); }
.err { display: block; color: var(--pink-dark); font-size: .8rem; margin-top: 5px; min-height: 1px; }
.form-note { margin-top: 14px; font-size: .9rem; font-weight: 500; text-align: center; }
.form-note.ok { color: var(--teal); }
.form-note.err-note { color: var(--pink-dark); }
.btn[disabled] { opacity: .65; pointer-events: none; }

.form-alt { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: .88rem; }
.form-alt::before, .form-alt::after { content: ""; height: 1px; flex: 1; background: var(--line); max-width: 60px; }
.wa-link {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600;
  color: #128c7e; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #25d366; transition: background .2s, color .2s;
}
.wa-link svg { width: 18px; height: 18px; fill: currentColor; }
.wa-link:hover { background: #25d366; color: #fff; }

/* ---------- Map ---------- */
.map { margin-top: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.map__head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; flex-wrap: wrap; }
.map__head h3 { font-size: 1.15rem; color: var(--teal-dark); }
.map__head p { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.map__head > div { flex: 1; min-width: 200px; }
.map__dir { flex-shrink: 0; padding: 10px 20px; }
.map__frame { line-height: 0; }
.map__frame iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-deep); color: #bcd9dc; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-block: 56px; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: #8fb4b8; }
.footer__brand p { margin-top: 16px; font-size: .95rem; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; color: #bcd9dc; font-size: .93rem; margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--pink); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: .85rem; text-align: center; color: #8fb4b8; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e); display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(18, 140, 126, .45); transition: transform .2s;
  animation: fab-pulse 2.6s infinite;
}
.fab svg { width: 30px; height: 30px; fill: #fff; }
.fab:hover { transform: scale(1.08); }
@keyframes fab-pulse { 0%, 100% { box-shadow: 0 12px 28px rgba(18, 140, 126, .45); } 50% { box-shadow: 0 12px 28px rgba(18, 140, 126, .45), 0 0 0 12px rgba(37, 211, 102, .12); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 460px; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 460px; margin-inline: auto; }
  .grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__contact { gap: 22px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 22px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .35s ease; z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__link { padding: 13px 14px; border-radius: 10px; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 620px) {
  .grid, .why__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; padding-block: 44px; }
  .hero__stats { gap: 22px; }
  .hero__stats strong { font-size: 1.35rem; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .brand__logo { height: 44px; }
  .brand__text strong { font-size: 1.25rem; letter-spacing: 1.2px; }
  .brand__text small { font-size: .55rem; }
  .brand__mark { width: 44px; height: 44px; }
  .map__dir { width: 100%; }
  .map__frame iframe { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab { animation: none; }
}
