/* ==========================================================
   DRM Hospital Mandya -- public site
   Palette carried from the DRM family identity:
   deep green #07332F, coral #F7A582, cream #FFF7F4, olive #83A149
   ========================================================== */

:root {
  --green-900: #041f1c;
  --green-800: #07332f;
  --green-700: #0d4a44;
  --green-600: #14615a;
  --green-100: #dff0ec;
  --coral:     #f7a582;
  --coral-600: #e8825a;
  --olive:     #83a149;
  --cream:     #fff7f4;
  --cream-200: #feefe9;
  --ink:       #17211f;
  --ink-600:   #4a5654;
  --ink-400:   #7d8886;
  --line:      #e6ded9;
  --white:     #ffffff;
  --gold:      #d9a441;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 4px 24px rgba(7, 51, 47, .08);
  --shadow-lg: 0 18px 48px rgba(7, 51, 47, .14);
  --wrap:      1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--coral-600); }

h1, h2, h3, h4 {
  font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  color: var(--green-800);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

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

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream-200); }
.section--white { background: var(--white); }
.section--green { background: var(--green-800); color: #dfe9e7; }
.section--green h2, .section--green h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: .9rem;
}
.section--green .eyebrow { color: var(--coral); }

.lead { font-size: 1.1rem; color: var(--ink-600); max-width: 62ch; }
.section--green .lead { color: #b9cdc9; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .82rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #e8b757; color: var(--green-900); }
.btn--coral { background: var(--coral); color: var(--green-900); }
.btn--coral:hover { background: var(--coral-600); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--green-800); color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ---------------- top bar + nav ---------------- */
.topbar {
  background: var(--green-900);
  color: #b9cdc9;
  font-size: .86rem;
  padding: .5rem 0;
}
.topbar .wrap { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.topbar a { color: #dfe9e7; }
.topbar a:hover { color: var(--coral); }
.topbar__emg { font-weight: 600; color: var(--coral); }

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--green-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: var(--green-900);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em;
  flex: none;
}

/* the DRM wordmark sits on a white chip so its blue "D" stays legible
   against the dark green navbar and footer */
.brand__logo {
  flex: none;
  background: #fff;
  border-radius: 11px;
  padding: 7px 11px;
  display: grid;
  place-items: center;
  line-height: 0;
}
.brand__logo img { width: 74px; height: auto; }
.brand__txt { line-height: 1.15; }
.brand__name { color: #fff; font-weight: 700; font-size: 1.06rem; display: block; white-space: nowrap; }
.brand__sub  { color: #9dbab5; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: #d7e5e2;
  padding: .55rem .72rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 500;
  display: block;
  white-space: nowrap;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255,255,255,.10); }

.nav__cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.nav__cta .btn { white-space: nowrap; }

.nav__toggle {
  display: none;
  background: rgba(255,255,255,.1);
  border: 0; color: #fff;
  width: 42px; height: 42px; border-radius: 10px;
  font-size: 1.3rem; cursor: pointer;
}

/* ---------------- hero ---------------- */
.hero {
  background: radial-gradient(1100px 520px at 78% 8%, var(--green-700) 0%, var(--green-800) 45%, var(--green-900) 100%);
  color: #e3efec;
  padding: 92px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: auto -120px -180px auto;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(247,165,130,.13);
}
.hero .wrap { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero__sub { font-size: 1.14rem; color: #c3d6d2; max-width: 54ch; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.9rem; }

.hero__stats { display: flex; gap: 2.4rem; margin-top: 3rem; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.9rem; color: #fff; font-weight: 800; line-height: 1.1; }
.hero__stat span { font-size: .84rem; color: #9dbab5; text-transform: uppercase; letter-spacing: .1em; }

/* quick appointment card in the hero */
.qcard {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.qcard h3 { margin-bottom: .2em; }
.qcard p.small { color: var(--ink-400); font-size: .88rem; margin-bottom: 1.2rem; }

/* ---------------- forms ---------------- */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: .35rem;
}
.field label .req { color: var(--coral-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .78rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(20,97,90,.13);
}
.field textarea { min-height: 104px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--ink-400); margin-top: .3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }

.alert {
  padding: .95rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  font-size: .93rem;
  border: 1.5px solid transparent;
}
.alert--ok   { background: #e8f5ef; border-color: #b9e0cd; color: #14603f; }
.alert--err  { background: #fdeceb; border-color: #f6c9c5; color: #a12b22; }
.alert--info { background: var(--green-100); border-color: #bcdcd5; color: var(--green-700); }

/* ---------------- cards ---------------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8cec8; }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--green-100);
  display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .35em; }
.card p { font-size: .93rem; color: var(--ink-600); margin: 0; }
.card__link { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .9rem; }

/* doctor cards */
.doc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc__photo {
  aspect-ratio: 4 / 3;
  background: var(--green-100);
  display: grid; place-items: center;
  color: var(--green-600); font-size: 2.6rem; font-weight: 800;
}
.doc__photo img { width: 100%; height: 100%; object-fit: cover; }
.doc__body { padding: 20px; }
.doc__body h3 { font-size: 1.05rem; margin-bottom: .15em; }
.doc__qual { font-size: .86rem; color: var(--ink-600); margin: 0 0 .4rem; }
.doc__dept {
  display: inline-block; font-size: .76rem; font-weight: 600;
  background: var(--cream-200); color: var(--coral-600);
  padding: .22rem .6rem; border-radius: 999px;
}

/* ---------------- misc blocks ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

.ticklist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.ticklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; color: var(--ink-600); }
.ticklist li::before {
  content: '';
  position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--olive);
  box-shadow: inset 0 0 0 3px var(--white);
}

.pagehead {
  background: var(--green-800);
  color: #cfe0dc;
  padding: 56px 0;
}
.pagehead h1 { color: #fff; margin-bottom: .2em; }
.pagehead .crumbs { font-size: .88rem; color: #9dbab5; }
.pagehead .crumbs a { color: var(--coral); }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); }

.contact-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-row__ico {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: var(--green-100); display: grid; place-items: center; font-size: 1.15rem;
}
.contact-row b { display: block; color: var(--green-800); font-size: .95rem; }
.contact-row span { color: var(--ink-600); font-size: .93rem; }

/* acknowledgement / status */
.ack-box {
  background: var(--green-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  text-align: center;
}
.ack-box .ack-no {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--gold);
  margin: .5rem 0;
  font-variant-numeric: tabular-nums;
}
.ack-box p { color: #b9cdc9; margin: 0; }

.status-pill {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
.status-pending   { background: #fff3e0; color: #96591a; }
.status-confirmed { background: #e3f2ea; color: #1c6b45; }
.status-scheduled { background: var(--green-100); color: var(--green-700); }
.status-completed { background: #eceff1; color: #4a5654; }
.status-cancelled { background: #fdeceb; color: #a12b22; }

/* ---------------- footer ---------------- */
.footer { background: var(--green-900); color: #9dbab5; padding: 62px 0 0; font-size: .93rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.footer a { color: #c3d6d2; display: block; padding: .18rem 0; }
.footer a:hover { color: var(--coral); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  margin-top: 46px; padding: 20px 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .86rem;
}

/* floating call/whatsapp buttons */
.floaters { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 10px; }
.floaters a {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1.35rem;
  box-shadow: var(--shadow-lg);
}
.floaters .fl-wa  { background: #25d366; }
.floaters .fl-tel { background: var(--green-700); }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 38px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-800);
    flex-direction: column; align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__cta .btn { padding: .6rem 1.05rem; font-size: .88rem; }
}

@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 62px 0 70px; }
  .hero__stats { gap: 1.6rem; }
  .topbar .wrap { justify-content: center; text-align: center; }
}
