/* ==========================================================================
   Anjaneya Clinic — "Playful" stylesheet (v2, inspired by Rock Pediatric
   Dentistry's bold, kid-first energy)
   ========================================================================== */

:root{
  /* --- Color tokens --- */
  --paper:      #F7FAFF;   /* soft periwinkle-white background */
  --paper-alt:  #FFFFFF;   /* card surfaces */
  --ink:        #122A4E;   /* deep navy — headings, primary text, mascot lines */
  --ink-soft:   #47597A;   /* muted navy-blue — body text */
  --ink-faint:  #5E729A;   /* captions / helper text */
  --blue:       #2C6ADB;   /* primary brand blue — CTAs, links */
  --blue-dark:  #1D4FB0;
  --yellow:     #FFC93C;   /* mascot + highlight accent */
  --coral:      #FF6B6B;   /* secondary accent */
  --coral-text: #C93E3E;   /* coral tuned for AA text contrast */
  --green:      #2FAE76;   /* growth / success accent */
  --green-text: #12734B;   /* green tuned for AA text contrast */
  --line:       #E3E9F5;   /* hairline borders */
  --shadow-color: 222 55% 20%;

  /* --- Type tokens --- */
  --font-display: "Fredoka", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Layout tokens --- */
  --wrap: 1180px;
  --radius-s: 12px;
  --radius-m: 22px;
  --radius-l: 32px;
  --header-h: 78px;
}

/* --- Reset --- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{ margin: 0; }
h1,h2,h3,h4,p,dl,dd,figure{ margin: 0; }
ul{ list-style: none; margin: 0; padding: 0; }
a{ color: inherit; text-decoration: none; }
img,svg{ display: block; max-width: 100%; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea{ font: inherit; }

body{
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id]{ scroll-margin-top: var(--header-h); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link{
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

.wrap{ max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.icon{ width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1,h2,h3{ font-family: var(--font-display); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before{ content: "●"; font-size: .5em; }
.eyebrow-blue{ color: var(--blue); }
.eyebrow-coral{ color: var(--coral-text); }
.eyebrow-green{ color: var(--green-text); }
.eyebrow-yellow{ color: var(--yellow); }

.pill-eyebrow{
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--paper-alt); border: 1.5px solid var(--line);
  padding: .5rem 1rem .5rem .6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; color: var(--ink);
  margin-bottom: 1.3rem;
  box-shadow: 0 10px 24px -16px hsl(var(--shadow-color) / 0.35);
}

.section-title{ font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.section-title-light{ color: #fff; }
.section-lede{ max-width: 640px; font-size: 1.06rem; }
.section-lede-light{ color: #C9D6EE; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9rem 1.6rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, background-color .18s ease;
}
.btn:hover{ transform: translateY(-3px) rotate(-0.5deg); }
.btn:active{ transform: translateY(0) rotate(0); }
.btn .icon{ width: 1em; height: 1em; }

.btn-primary{ background: var(--blue); color: #fff; box-shadow: 0 10px 22px -8px hsl(222 70% 45% / 0.55); }
.btn-primary:hover{ background: var(--blue-dark); }

.btn-secondary{ background: var(--coral); color: var(--ink); box-shadow: 0 10px 22px -10px hsl(0 80% 65% / 0.5); }
.btn-secondary:hover{ background: #FF5252; }

.btn-outline{ background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover{ border-color: var(--ink); }

.text-link{
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 800; color: var(--blue); margin-top: 1.4rem;
}
.text-link .icon{ transition: transform .2s ease; }
.text-link:hover .icon{ transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position: sticky; top: 0; z-index: 100;
  background: hsl(216 100% 99% / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled{ border-color: var(--line); box-shadow: 0 8px 24px -18px hsl(var(--shadow-color) / 0.5); }

.header-inner{ height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand{ display: flex; align-items: center; gap: .7rem; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-en{ font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.15rem; }
.brand-hi{ font-size: 0.72rem; color: var(--ink-faint); font-weight: 700; }

.main-nav ul{ display: flex; gap: 2rem; }
.nav-link{ font-weight: 800; font-size: 0.95rem; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.nav-link::after{ content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; border-radius: 3px; background: var(--coral); transition: right .22s ease; }
.nav-link:hover, .nav-link.is-active{ color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 1rem; }
.header-call{ padding: .65rem 1.2rem; font-size: 0.88rem; }

.nav-toggle{ display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border-radius: 12px; }
.nav-toggle span{ width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); margin-inline: auto; transition: transform .25s ease, opacity .25s 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{ position: relative; padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(4rem, 8vw, 6rem); overflow: hidden; }

.hero-blobs{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob{ position: absolute; border-radius: 50%; filter: blur(4px); opacity: .55; }
.blob-yellow{ width: 340px; height: 340px; background: var(--yellow); top: -120px; right: 8%; opacity: .35; }
.blob-blue{ width: 280px; height: 280px; background: var(--blue); bottom: -60px; left: -80px; opacity: .18; }
.blob-coral{ width: 180px; height: 180px; background: var(--coral); top: 45%; right: -60px; opacity: .22; }

.hero-inner{ position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero-title{ font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 1.2rem; }
.hero-sub{ font-size: 1.08rem; max-width: 48ch; margin-bottom: 1.6rem; }

.check-list{ display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.check-list li{ display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.check-dot{
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 0.7rem; flex-shrink: 0;
}

.hero-cta{ display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual{ position: relative; display: flex; justify-content: center; }

.wave-divider{ position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }
.wave-divider path{ fill: var(--paper); }

/* ==========================================================================
   Mascot (shared SVG styling)
   ========================================================================== */

.mascot-petal, .mascot-petal-s, .mascot-body{ fill: var(--yellow); }
.mascot-eye{ fill: var(--ink); }
.mascot-blush{ fill: var(--coral); opacity: .55; }
.mascot-smile{ fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.mascot-limb{ fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.mascot-hand{ fill: var(--yellow); stroke: var(--ink); stroke-width: 4; }
.mascot-foot{ fill: var(--coral); }

.mascot-hero{ width: min(360px, 80%); animation: mascotFloat 4.5s ease-in-out infinite; }
@keyframes mascotFloat{ 0%,100%{ transform: translateY(0) rotate(0deg); } 50%{ transform: translateY(-10px) rotate(1.2deg); } }

.welcome-mascot .mascot-small{ width: 120px; }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

.section{ padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tint{ background: hsl(216 60% 97%); }
.section-navy{ background: var(--ink); }

.welcome-grid{ display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

/* --- Services --- */
.card-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.service-card{
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.8rem; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.service-card:hover{ transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 26px 44px -28px hsl(var(--shadow-color) / 0.45); }
.service-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: #fff; margin-bottom: 1.1rem;
}
.service-icon svg{ width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-icon-2{ background: var(--yellow); color: var(--ink); }
.service-icon-3{ background: var(--coral); color: var(--ink); }
.service-icon-4{ background: var(--green); color: var(--ink); }
.service-tag{ font-family: var(--font-body); font-weight: 800; font-size: 0.74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green-text); margin-bottom: .5rem; }
.service-card h3{ font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p:last-child{ font-size: 0.94rem; }

/* --- Doctor --- */
.doctor-grid{ display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; margin-top: 2.5rem; }

.doctor-card{
  background: var(--ink); color: #fff; border-radius: var(--radius-l);
  padding: clamp(1.8rem, 3vw, 2.6rem); position: relative;
  box-shadow: 0 30px 55px -30px hsl(var(--shadow-color) / 0.6);
}
.verified-badge{
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 800; font-size: 0.74rem; letter-spacing: .04em; text-transform: uppercase;
  background: hsl(150 55% 55% / 0.18); color: #6FE3AE;
  padding: .45rem .9rem; border-radius: 999px;
}
.doctor-name{ color: #fff; font-size: 1.7rem; margin-top: 1.2rem; }
.doctor-role{ color: #C9D6EE; font-size: 0.96rem; margin-top: .3rem; margin-bottom: 1.5rem; font-weight: 600; }

.cred-list{ display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.9rem; }
.cred-list li{
  font-weight: 700; font-size: 0.8rem;
  background: hsl(216 60% 97% / 0.1); border: 1px solid hsl(216 60% 90% / 0.25); color: #E4ECFB;
  padding: .45rem .85rem; border-radius: 999px;
}

.doctor-card-foot{ display: flex; flex-direction: column; gap: .65rem; padding-top: 1.4rem; border-top: 1px solid hsl(216 60% 90% / 0.2); }
.doctor-meta{ display: flex; align-items: center; gap: .6em; font-size: 0.9rem; color: #DCE6FA; font-weight: 600; }
.doctor-meta .icon{ color: var(--yellow); }

.doctor-bio{ display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; font-size: 1.05rem; }
.doctor-bio .btn{ align-self: flex-start; margin-top: .3rem; }

/* --- Why us / approach --- */
.why-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 2.5rem; }
.why-card{
  background: var(--paper-alt); border-radius: var(--radius-m); padding: 1.7rem;
  border-top: 5px solid var(--blue);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.why-card:hover{ transform: translateY(-5px); }
.why-card-yellow{ border-top-color: var(--yellow); }
.why-card-coral{ border-top-color: var(--coral); }
.why-card-green{ border-top-color: var(--green); }
.why-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--blue); color: #fff; margin-bottom: 1.1rem;
}
.why-card-yellow .why-icon{ background: var(--yellow); color: var(--ink); }
.why-card-coral .why-icon{ background: var(--coral); color: var(--ink); }
.why-card-green .why-icon{ background: var(--green); color: var(--ink); }
.why-icon svg{ width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3{ font-size: 1.08rem; margin-bottom: .5rem; color: var(--ink); }
.why-card p{ font-size: 0.93rem; color: var(--ink-soft); }

.stat-strip{ display: flex; justify-content: center; gap: clamp(2rem, 6vw, 5rem); margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid hsl(216 60% 90% / 0.2); flex-wrap: wrap; }
.stat-strip > div{ text-align: center; }
.stat-strip dd{ font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--yellow); font-weight: 600; }
.stat-strip dt{ font-size: 0.85rem; color: #C9D6EE; font-weight: 700; margin-top: .3rem; }

/* --- Contact --- */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.5rem; align-items: start; }
.contact-list{ display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 1.8rem; }
.contact-list li{ display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon{ width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.contact-list strong{ display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--ink-faint); margin-bottom: .25rem; }
.contact-list a{ font-weight: 700; color: var(--ink); }
.contact-list a:hover{ color: var(--blue); }

.contact-cta{ display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }

.contact-form{ background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.7rem; }
.contact-form h3{ font-size: 1.15rem; margin-bottom: 1.1rem; font-family: var(--font-display); color: var(--ink); }
.form-row{ margin-bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.form-row label{ font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.form-row input, .form-row textarea{ border: 2px solid var(--line); border-radius: var(--radius-s); padding: .7rem .9rem; background: var(--paper); color: var(--ink); resize: vertical; }
.form-row input:focus, .form-row textarea:focus{ border-color: var(--blue); outline: none; }
.hidden-field{ position: absolute; left: -9999px; }

.contact-map iframe{ width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius-m); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{ background: var(--ink); color: #C9D6EE; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-grid .brand-en{ color: #fff; }
.footer-grid .brand-hi{ color: #9FB3D8; }
.footer-tag{ margin-top: 1rem; font-size: 0.94rem; color: #B7C6E8; max-width: 26ch; font-weight: 600; }
.site-footer h4{ font-family: var(--font-display); font-size: 0.92rem; color: #fff; margin-bottom: 1rem; }
.footer-list{ display: flex; flex-direction: column; gap: .65rem; }
.footer-list a{ font-size: 0.94rem; color: #C9D6EE; font-weight: 600; }
.footer-list a:hover{ color: var(--yellow); }
.footer-address{ font-size: 0.94rem; color: #C9D6EE; font-weight: 600; }

.footer-bottom{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid hsl(216 60% 90% / 0.15); font-size: 0.83rem; color: #9FB3D8; }
.back-to-top{ display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.back-to-top:hover{ transform: translateY(-3px) scale(1.05); }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thanks-page{ min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.thanks-card{ text-align: center; max-width: 420px; }
.thanks-card h1{ font-size: 2.1rem; margin-block: 1.2rem .6rem; }
.thanks-actions{ display: flex; gap: .8rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal]{ opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in-view{ opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .welcome-grid{ grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .doctor-grid{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-map iframe{ min-height: 340px; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul{ flex-direction: column; gap: 0; padding: .5rem clamp(1.25rem,4vw,2.5rem) 1.5rem; }
  .main-nav li{ border-bottom: 1px solid var(--line); }
  .main-nav a{ display: block; padding: .9rem 0; }
  .header-call span{ display: none; }
  .nav-toggle{ display: flex; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .card-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; text-align: center; }
  .hero-cta{ flex-direction: column; align-items: stretch; }
  .hero-cta .btn{ justify-content: center; }
  .stat-strip{ gap: 2rem; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal]{ opacity: 1; transform: none; }
  .mascot-hero{ animation: none; }
}
