/* =========================================================
   Shanti ENT Hospital — Shared Styles
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --pine: #1F3D36;
  --pine-dark: #16302A;
  --mist: #EEF2ED;
  --panel: #FBFAF7;
  --ink: #22302B;
  --ink-soft: #4C5A54;
  --clay: #C1652E;
  --clay-dark: #A6501F;
  --brass: #A6813C;
  --line: #D8DED7;
  --white: #FFFFFF;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--pine);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 500;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

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

a { color: var(--clay-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--clay);
  color: var(--white);
}
.btn-primary:hover { background: var(--clay-dark); }

.btn-outline {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-outline:hover { background: var(--pine); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--pine);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mist);
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--mist);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
  border-bottom-color: var(--clay);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--clay);
  padding: 8px 16px;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--clay-dark); }

/* ---------- Nav dropdowns (Treatments / Surgeries) ---------- */

.has-dropdown {
  position: relative;
}

.dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.dropdown-label .caret {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-top: -3px;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(20, 40, 34, 0.12);
  min-width: 220px;
}

@media (min-width: 861px) {
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: none;
    z-index: 60;
  }

  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .has-dropdown:hover .caret { transform: rotate(225deg); margin-top: 3px; }

  .dropdown-menu li a {
    color: var(--ink);
    display: block;
    padding: 9px 18px;
    font-size: 0.92rem;
    border-bottom: none !important;
  }

  .dropdown-menu li a:hover {
    background: var(--mist);
    color: var(--clay-dark);
    text-decoration: none;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pine-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 640px; overflow-y: auto; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta { margin: 12px 24px; display: inline-block; }

  .dropdown-label {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-menu {
    display: none;
    background: var(--pine-dark);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu.open { display: block; }

  .dropdown-menu li a {
    color: var(--mist);
    padding: 12px 24px 12px 40px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .has-dropdown.open .caret { transform: rotate(225deg); }
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.hero-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-info-strip div {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.hero-info-strip strong {
  display: block;
  color: var(--pine);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arc-motif circle {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.4;
  opacity: 0.55;
}

.arc-motif .accent { stroke: var(--clay); opacity: 0.9; }

@media (prefers-reduced-motion: no-preference) {
  .arc-motif circle {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: draw-arc 1.4s ease forwards;
  }
  .arc-motif circle:nth-child(2) { animation-delay: 0.15s; }
  .arc-motif circle:nth-child(3) { animation-delay: 0.3s; }
  .arc-motif circle:nth-child(4) { animation-delay: 0.45s; }
}

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

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto 8px; }
}

/* ---------- Section divider (soundwave) ---------- */

.wave-divider {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.wave-divider svg { stroke: var(--brass); opacity: 0.6; }

/* ---------- Generic sections ---------- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head .hero-eyebrow { margin-bottom: 10px; }

/* ---------- Services list (hairline, not cards) ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.service-item {
  padding: 30px 28px 30px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
}

.service-item:nth-child(odd) {
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.service-item:nth-child(even) { padding-left: 28px; }

.service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--clay);
}

.service-item h3 { margin-bottom: 6px; }
.service-item p { margin-bottom: 0; font-size: 0.96rem; }

@media (max-width: 720px) {
  .service-list { grid-template-columns: 1fr; }
  .service-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .service-item:nth-child(even) { padding-left: 0; }
}

/* ---------- Surgery tile grid ---------- */

.surgery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.surgery-tile {
  background: var(--white);
  padding: 34px 24px;
  text-align: center;
  transition: background-color 0.15s ease;
}

.surgery-tile:hover { background: var(--panel); text-decoration: none; }

.surgery-tile-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: var(--clay);
}

.surgery-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.surgery-tile p {
  font-size: 0.88rem;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .surgery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .surgery-grid { grid-template-columns: 1fr; }
}

/* ---------- Doctor section ---------- */

.doctor-split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.doctor-frame {
  aspect-ratio: 4/5;
  background: var(--pine);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.doctor-frame .monogram {
  font-family: var(--font-head);
  font-size: 4.5rem;
  color: var(--mist);
  opacity: 0.92;
  z-index: 1;
}

.doctor-frame svg { position: absolute; inset: 0; opacity: 0.35; }

.doctor-credentials {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--clay-dark);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  border: 1px solid var(--brass);
  color: var(--pine);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

@media (max-width: 780px) {
  .doctor-split { grid-template-columns: 1fr; }
  .doctor-frame { max-width: 280px; margin: 0 auto; }
}

/* ---------- Values / about strip ---------- */

.value-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-row h3 {
  border-top: 2px solid var(--brass);
  padding-top: 14px;
}

@media (max-width: 780px) {
  .value-row { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-block {
  margin-bottom: 26px;
}

.info-block strong {
  display: block;
  color: var(--pine);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 4px;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.form-note {
  font-size: 0.88rem;
  background: var(--mist);
  border-left: 3px solid var(--brass);
  padding: 12px 16px;
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine-dark);
  color: var(--mist);
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-grid p, .footer-grid a {
  color: var(--mist);
  opacity: 0.85;
  font-size: 0.93rem;
}

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

.footer-grid li { margin-bottom: 9px; }

.footer-grid a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (non-home pages) ---------- */

.page-hero {
  background: var(--pine);
  color: var(--white);
  padding: 52px 0 40px;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--mist); opacity: 0.85; }
