/* ===================================================
   Dhanvi Dental Clinic — palette derived from the
   clinic's visiting card (terracotta, dental green, navy)
=================================================== */
:root {
  --green: #1c7a4b;
  --green-dark: #145c39;
  --green-light: #e6f4ec;
  --terracotta: #c1502e;
  --terracotta-dark: #a03f22;
  --navy: #223b5e;
  --navy-light: #3a5c8c;
  --cream: #fbf9f4;
  --white: #ffffff;
  --ink: #24302b;
  --muted: #5b6b63;
  --border: #e6e2d8;
  --shadow: 0 10px 30px -12px rgba(34, 59, 94, 0.18);
  --radius: 16px;
  --font: "Segoe UI", "Poppins", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 12px; color: var(--navy); }
p { margin: 0 0 14px; color: var(--muted); }

.section { padding: 88px 0; }
.section.services { background: var(--white); }
.section.contact { background: var(--white); }

.section-tag {
  color: var(--terracotta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  margin-bottom: 8px;
}
.section-sub { max-width: 560px; margin: 0 auto 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 20px -8px rgba(193,80,46,.55); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-call {
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  font-size: .95rem;
  box-shadow: 0 8px 18px -8px rgba(28,122,75,.6);
}
.btn-call:hover { background: var(--green-dark); }
.icon { width: 18px; height: 18px; fill: currentColor; }

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-logo { height: 46px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 2px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- HERO ---------------- */
.hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 140px 0 90px;
}
.hero-inner { max-width: 720px; }
.hero-inner > a { display: inline-block; }
.hero-icon { height: 64px; width: auto; margin-bottom: 18px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); transition: transform .15s ease; }
.hero-inner > a:hover .hero-icon { transform: translateY(-2px); }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  color: #f3d9ce;
  margin-bottom: 6px;
  font-size: .85rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero-text { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 34px; }
.hero-hours {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  font-size: .92rem;
  backdrop-filter: blur(4px);
}

/* ---------------- ABOUT ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  background: var(--green-light);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .92rem;
}
.point-icon { color: var(--green); font-weight: 800; }

/* ---------------- SERVICES ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--green-light);
  border-radius: 50%;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: .92rem; margin: 0; }

/* ---------------- DOCTOR ---------------- */
.doctor-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.doctor-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  aspect-ratio: 4/4.2;
  object-fit: cover;
  width: 100%;
}
.doctor-qual {
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------------- GALLERY ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, filter .3s ease;
}
.gallery-grid img:hover { transform: scale(1.03); filter: brightness(1.03); }
.gallery-grid img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; }

/* ---------------- CONTACT ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-icon { font-size: 26px; line-height: 1; }
.info-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.info-card p { margin-bottom: 6px; }
.info-card a { color: var(--green); font-weight: 700; }
.info-card a:hover { text-decoration: underline; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  border: 1px solid var(--border);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--navy); color: #cfdaf0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin: 0; color: #a9bcdc; font-style: italic; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #cfdaf0; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: .85rem; color: #8ea0c4; }

/* ---------------- MOBILE CALL FAB ---------------- */
.mobile-call-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(193,80,46,.6);
  z-index: 400;
}
.mobile-call-fab .icon { width: 24px; height: 24px; }

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .doctor-grid, .contact-grid { grid-template-columns: 1fr; }
  .doctor-media { max-width: 380px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img:first-child { grid-column: span 2; height: 260px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 400px; box-shadow: var(--shadow); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px; }
  .main-nav ul li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 4px; }
  .nav-toggle { display: flex; }
  .btn-call span { display: none; }
  .btn-call { padding: 10px; border-radius: 50%; }

  .hero { padding: 120px 0 80px; text-align: left; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service-card { padding: 22px 14px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .mobile-call-fab { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { align-items: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img:first-child { grid-column: span 1; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
}
