/* =========================================================
   Dr. Rana Dental Hub & Medical Center
   Design system: emerald + gold, Fraunces/Karla, smile-arc motif
   ========================================================= */

:root{
  --ink: #10231F;
  --ink-soft: #3C4A46;
  --surface: #FAF7F1;
  --surface-alt: #F1EAE0;
  --brand: #0E5C4F;
  --brand-dark: #08332B;
  --accent: #C9932F;
  --accent-soft: #F1D9AE;
  --line: #E1D6C4;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Noto Serif Bengali", serif;
  --font-body: "Karla", "Noto Sans Bengali", sans-serif;

  --max: 1180px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 40px -22px rgba(8,51,43,.35);

  --ease: cubic-bezier(.22,.75,.28,1);
}

html.lang-bn{
  --font-display: "Noto Serif Bengali", "Fraunces", serif;
  --font-body: "Noto Sans Bengali", "Karla", sans-serif;
}

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

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

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

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1{ font-size: clamp(2.1rem, 4.4vw + 1rem, 3.6rem); font-weight: 500; }
h2{ font-size: clamp(1.6rem, 2.6vw + 1rem, 2.4rem); }
h3{ font-size: 1.15rem; margin-bottom: .35em; }

p{ margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
.section-head p{ max-width: 56ch; }

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

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

:focus-visible{ outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--brand); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover{ background: var(--brand-dark); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--brand); color: var(--brand); }
.btn-whatsapp{ background: var(--accent-soft); color: var(--brand-dark); padding: 10px 20px; font-size: .9rem; }
.btn-whatsapp:hover{ background: var(--accent); color: #fff; }

.text-link{
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--brand); border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px; transition: gap .25s var(--ease), color .25s var(--ease);
}
.text-link:hover{ gap: 11px; }
.text-link.light{ color: #fff; border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,241,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row{
  display: flex; align-items: center; gap: 24px; padding: 14px 24px;
}
.brand{ display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark{ flex-shrink: 0; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong{ font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.brand-text em{ font-style: normal; font-size: .74rem; color: var(--ink-soft); letter-spacing: .01em; }

.main-nav ul{ display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a{ font-weight: 600; font-size: .95rem; color: var(--ink-soft); position: relative; padding: 6px 0; }
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active{ color: var(--brand); }
.main-nav a:hover::after, .main-nav a.is-active::after{ transform: scaleX(1); }

.header-actions{ display: flex; align-items: center; gap: 14px; }
.lang-toggle{
  border: 1.5px solid var(--line); background: transparent; border-radius: 100px;
  padding: 8px 14px; font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  cursor: pointer; color: var(--ink-soft); letter-spacing: .02em;
}
.lang-toggle .lang-en, .lang-toggle .lang-bn{ opacity: .5; }
html:not(.lang-bn) .lang-toggle .lang-en{ opacity: 1; color: var(--brand); }
html.lang-bn .lang-toggle .lang-bn{ opacity: 1; color: var(--brand); }

.menu-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line);
  background: transparent; cursor: pointer;
}
.menu-toggle span{ width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ---------- Hero ---------- */
.hero{ padding: 64px 0 40px; overflow: hidden; }
.hero-grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-kicker{ font-weight: 700; color: var(--brand); font-size: .95rem; margin-bottom: .9em; max-width: none; }
.hero-lead{ font-size: 1.08rem; }
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0 36px; }

.hero-trust{
  list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: 30px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-trust li{ display: flex; flex-direction: column; }
.hero-trust strong{ font-family: var(--font-display); font-size: 1.15rem; color: var(--brand-dark); }
.hero-trust span{ font-size: .82rem; color: var(--ink-soft); }

.hero-figure{ position: relative; }
.hero-arc{ width: 100%; height: auto; }
.arc-path{ stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.6s var(--ease) .3s forwards; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }
.hero-figure-caption{ text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: 8px; max-width: none; }

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

/* ---------- Section shell ---------- */
.section{ padding: 84px 0; }
.section.alt-bg{ background: var(--surface-alt); }
.section-head{ max-width: 620px; margin-bottom: 44px; }
.section-head.light h2{ color: #fff; }

.divider{ line-height: 0; margin-top: -1px; }
.divider svg{ width: 100%; height: 60px; display: block; }
.divider-flip{ transform: scaleY(-1); margin-bottom: -1px; }

/* ---------- About preview ---------- */
.about-grid{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-figure svg{ border-radius: var(--radius-lg); }
.badge-row{ list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; }
.badge{
  background: var(--accent-soft); color: var(--brand-dark); font-size: .82rem; font-weight: 700;
  padding: 8px 16px; border-radius: 100px;
}

/* ---------- Services ---------- */
.service-list{ list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.service-item{
  display: flex; gap: 18px; padding: 26px 4px; border-bottom: 1px solid var(--line);
}
.service-icon{ width: 40px; height: 40px; flex-shrink: 0; }
.service-item h3{ margin-bottom: .25em; }
.service-item p{ margin: 0; font-size: .93rem; }

/* ---------- Why us ---------- */
.why-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.feature-grid{
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.feature-grid li{
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px;
  font-weight: 600; font-size: .92rem;
}
.feature-grid svg{ width: 30px; height: 30px; flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonials{ background: var(--brand-dark); color: #fff; }
.testimonials p{ color: rgba(255,255,255,.82); }
.testimonial-track{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 30px;
}
.testimonial-card{
  margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 26px; display: flex; flex-direction: column; gap: 16px;
}
.testimonial-card p{ color: #fff; margin: 0; font-size: .96rem; max-width: none; }
.testimonial-card cite{ font-style: normal; font-weight: 700; color: var(--accent-soft); font-size: .88rem; }

/* ---------- Visit / map ---------- */
.visit-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.visit-list{ margin: 0 0 30px; }
.visit-list > div{ padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit-list dt{ font-weight: 700; font-size: .82rem; color: var(--brand); text-transform: none; }
.visit-list dd{ margin: 4px 0 0; color: var(--ink-soft); }
.map-preview{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4/3; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.78); padding: 64px 0 20px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand strong{ color: #fff; }
.footer-brand em{ color: rgba(255,255,255,.6); }
.site-footer h3{ color: #fff; font-family: var(--font-body); font-size: .9rem; margin-bottom: .9em; }
.site-footer ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover{ color: var(--accent-soft); }
.site-footer p{ color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-bottom{ margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p{ font-size: .8rem; margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); z-index: 90;
  transition: transform .25s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float::before{
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{ 0%{ transform: scale(1); opacity: .5; } 100%{ transform: scale(1.7); opacity: 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-grid, .about-grid, .why-grid, .visit-grid{ grid-template-columns: 1fr; }
  .hero-figure{ order: -1; max-width: 340px; margin: 0 auto; }
  .service-list{ grid-template-columns: 1fr; }
  .testimonial-track{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; inset: 72px 0 0 0; background: var(--surface); padding: 20px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .main-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul{ flex-direction: column; gap: 4px; }
  .main-nav a{ display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu-toggle{ display: flex; }
  .header-actions .btn-whatsapp span{ display: none; }
  .header-actions .btn-whatsapp{ padding: 12px; }
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .wrap{ padding: 0 18px; }
  .hero{ padding-top: 40px; }
  .section{ padding: 60px 0; }
  .hero-trust{ gap: 20px 26px; }
}
