/* Dhivya Clinic — colours and type taken from the clinic folder */
:root {
  --green-dark: #1B3024;
  --teal: #24402F;
  --green: #3B6447;
  --green-bright: #8CB26A;
  --lime: #8CB26A;
  --lime-pale: #E4EADB;
  --lime-text: #24402F;
  --mint: #E9E3D6;
  --mint-2: #E4EADB;
  --line: #D9D2C2;
  --line-2: #E4DDCD;
  --field: #B5AC98;
  --maroon: #8A4B33;
  --cyan: #3B6447;
  --ink: #24402F;
  --ink-2: #4E5F52;
  --white: #FBF9F4;
  --page: #F2EEE4;
  --star: #A86B4C;
  --amber-bg: #F3E3C8;
  --amber-text: #7A4B1E;
  --whatsapp: #25D366;
  --font-ta: 'Forgotten Futurist', 'Rajdhani', 'Anek Tamil', 'Noto Sans Tamil', 'Tamil Sangam MN', system-ui, sans-serif;
  --font-head: 'Forgotten Futurist', 'Rajdhani', 'Anek Tamil', 'Noto Sans Tamil', 'Tamil Sangam MN', system-ui, sans-serif;
}
@font-face {
  font-family: 'Forgotten Futurist';
  src: local('Forgotten Futurist'), local('ForgottenFuturist-Regular'), local('Forgotten Futurist Rg');
  font-weight: 400 800;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ta);
  color: var(--ink);
  background: var(--page);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: #16291E; }
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.doodle {
  background-image: url(../img/doodle-tile-subtle.png);
  background-size: 513px 513px;
  background-repeat: repeat;
}
.bg-mint { background-color: var(--mint); }
.bg-white { background-color: var(--page); }
.section { padding-block: 72px; }

/* Logo and address bar */
.logo-row { display: flex; justify-content: center; padding-block: 22px 18px; }
.logo-row img { width: 726px; height: auto; }
.info-bar { background: var(--teal); color: var(--white); font-size: 15px; }
.info-bar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  justify-content: space-between; align-items: center; padding-block: 8px;
}
.info-bar span { display: flex; align-items: center; gap: 8px; }
.info-bar a { color: var(--white); text-decoration: none; font-weight: 600; }

/* Menu */
.site-nav { border-bottom: 1px solid var(--line-2); background: var(--white); }
.site-nav .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  align-items: center; justify-content: center; padding-block: 16px;
  font-weight: 600; font-size: 17px;
}
.nav-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  background: var(--mint-2); border-radius: 22px; padding: 6px;
}
.nav-bar a {
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.3; padding: 8px 22px; border-radius: 16px;
  color: var(--ink); text-decoration: none;
}
.nav-bar a span + span { font-weight: 500; color: var(--ink-2); }
.nav-bar a:hover, .nav-bar a.active {
  background: var(--white); box-shadow: 0 1px 4px rgba(36, 64, 47, .18);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 13px 26px; min-height: 48px;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #1B3024; color: var(--white); }
.btn-shadow { box-shadow: 5px 5px 0 var(--green-bright); }
.btn-outline { background: var(--white); color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--mint-2); color: var(--green); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob.b1 { left: -90px; top: -90px; width: 240px; height: 240px; background: #B9CF92; }
.blob.b2 { left: -40px; top: -130px; width: 240px; height: 240px; background: var(--green-bright); opacity: .55; }
.blob.b3 { right: -100px; bottom: -110px; width: 280px; height: 280px; background: #D4C4A8; opacity: .7; }
.blob.b4 { right: -40px; bottom: -160px; width: 280px; height: 280px; background: var(--lime); opacity: .6; }
.hero .wrap {
  position: relative; display: flex; flex-wrap: wrap; gap: 48px;
  align-items: center; padding-block: 68px 84px;
}
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.tag {
  background: var(--white); border: 2px solid var(--green-bright); color: var(--green);
  font-weight: 700; font-size: 15px; padding: 5px 16px; border-radius: 999px;
}
.hero h1 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.25; color: var(--maroon);
  text-wrap: balance;
}
.hero .sub { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; width: 100%; }
.quick > div {
  flex: 1 1 200px; min-width: 0; background: var(--white); border: 1.5px solid var(--line);
  border-radius: 18px; padding: 12px 14px; display: flex; gap: 12px; align-items: center;
}
.quick img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.two-line { display: flex; flex-direction: column; line-height: 1.3; }
.two-line > span:first-child { font-weight: 700; }
.two-line small { font-size: 14px; color: var(--ink-2); }

/* Doctor card */
.doctor {
  flex: 0 1 400px; min-width: 0; background: var(--white);
  border: 3px solid var(--green-bright); border-radius: 36px;
  box-shadow: 12px 12px 0 var(--green-bright); padding: 28px;
  display: flex; flex-direction: column; gap: 14px; margin-right: 12px;
}
.doctor-top { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%; background: var(--mint-2);
  border: 4px solid #B9CF92; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-ta { font-family: var(--font-head); font-weight: 700; font-size: 25px; line-height: 1.3; color: var(--cyan); }
.doc-en { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--green); }
.doc-deg { font-weight: 700; color: var(--green); }
.exp {
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
  background: var(--lime-pale); border-radius: 14px; padding: 8px 18px; color: var(--lime-text);
}
.exp span { font-weight: 700; }
.exp small { font-weight: 600; font-size: 14px; }
.doctor-bottom {
  border-top: 1.5px dashed var(--line); padding-top: 14px;
  display: flex; flex-direction: column; gap: 10px; font-size: 16px; text-align: center;
}
.timing-head { display: flex; gap: 8px; align-items: center; justify-content: center; font-weight: 700; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.slot {
  flex: 1 1 140px; min-width: 0; background: var(--mint); border-radius: 14px;
  padding: 10px 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.3;
}
.slot b { font-weight: 700; }
.slot small { font-weight: 600; font-size: 14px; color: var(--green); }
.slot strong { margin-top: 4px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.place-line { display: flex; gap: 8px; align-items: center; justify-content: center; }

/* Section headings */
.head { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; margin-bottom: 36px; }
.chip {
  background: var(--lime-pale); color: var(--lime-text); letter-spacing: 1.5px;
  font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 999px;
}
.head h2 {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: var(--green);
  max-width: 820px; text-wrap: balance;
}

/* Conditions */
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.cond {
  border: 2px solid var(--line); border-radius: 22px; padding: 24px 14px; background: var(--white);
  box-shadow: 5px 5px 0 var(--line-2); display: flex; flex-direction: column; gap: 14px;
  align-items: center; text-align: center; transition: transform .18s ease, box-shadow .18s ease;
}
.cond:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--green-bright); }
.cond img { width: 88px; height: 88px; object-fit: contain; }
.cond .ta { font-weight: 700; font-size: 21px; line-height: 1.35; }
.cond .en { font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: .5px; color: var(--ink-2); }

/* Lab */
.lab-card {
  border: 4px solid #8CB26A; border-radius: 80px; box-shadow: 16px 16px 0 #8CB26A;
  padding: 40px 52px; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center;
  background: var(--white); margin-right: 16px;
}
.lab-mark { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.lab-mark img { width: 114px; height: 115px; }
.lab-mark span { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: 1px; }
.lab-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lab-body h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; color: var(--green); }
.lab-body p { margin: 0; font-size: 19px; }
.lab-time {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; background: var(--lime-pale);
  color: var(--lime-text); font-weight: 700; font-size: 16px; padding: 6px 16px; border-radius: 999px;
}
.tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tests > div { display: flex; gap: 12px; align-items: center; background: var(--mint); border-radius: 16px; padding: 10px 14px; }
.tests img { width: 40px; height: 40px; object-fit: contain; flex: none; }

/* Reviews */
.rev-row { display: flex; flex-wrap: wrap; gap: 24px 34px; align-items: flex-start; justify-content: center; }
.rev-score {
  flex: 1 1 260px; max-width: 340px; min-width: 0; background: var(--white);
  border: 3px solid var(--green-bright); border-radius: 32px; box-shadow: 10px 10px 0 var(--green-bright);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
  margin-right: 10px;
}
.rev-score .big { font-family: var(--font-head); font-weight: 700; font-size: 76px; line-height: 1; color: var(--green); }
.stars { display: flex; gap: 3px; color: var(--star); }
.rev-list { flex: 3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rev {
  background: var(--white); border: 2px solid var(--line); border-radius: 22px; box-shadow: 5px 5px 0 var(--line-2);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.rev p { margin: 0; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rev .who { display: flex; align-items: center; gap: 12px; }
.rev .av { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 19px; background: var(--green); }
.rev .av1 { background: var(--maroon); } .rev .av2 { background: var(--teal); } .rev .av3 { background: var(--star); }
.rev .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rev .two-line { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rev .nm { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev .when { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.rev .g { margin-left: auto; flex: none; }
.rev .more { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--green); }
@media (max-width: 860px) { .rev-row { gap: 24px; } }
@media (max-width: 640px) {
  .rev-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 4px 12px; margin: 0 -4px; flex-basis: 100%; }
  .rev { flex: 0 0 84%; scroll-snap-align: start; padding: 18px; }
}
.rev-note { font-size: 14px; color: var(--ink-2); }

/* Booking */
.book-row { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }
.book-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.book-info h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; color: var(--maroon); }
.book-info .sub { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--green); }
.book-info p { margin: 0; color: var(--ink-2); max-width: 440px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; max-width: 460px; }
.contact {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--white);
  border-radius: 20px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none;
}
.contact .ico { width: 50px; height: 50px; flex: none; border-radius: 16px; background: var(--mint-2); display: flex; align-items: center; justify-content: center; }
.contact .lbl { font-weight: 700; color: var(--green); font-size: 15px; }
.contact .num { font-family: var(--font-head); font-weight: 700; font-size: 23px; line-height: 1.3; }
.contact .num a { color: var(--ink); text-decoration: none; }
.contact .plain { font-weight: 600; }
.contact.wa { border-color: var(--whatsapp); }
.contact.wa .ico { background: var(--whatsapp); }
.contact.wa .lbl { color: #128C4A; }

.book-box { flex: 1 1 440px; min-width: 0; }
.form, .sent {
  background: var(--white); border-radius: 32px; border: 3px solid var(--green-bright);
  box-shadow: 10px 10px 0 var(--green-bright); padding: 32px; margin-right: 10px;
}
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row > .field { flex: 1 1 180px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select {
  font: inherit; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 12px;
  min-height: 50px; background: var(--white); color: var(--ink); width: 100%;
}
.field input[aria-invalid="true"] { border-color: #C0261C; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.uid { display: flex; align-items: stretch; border: 1.5px solid var(--field); border-radius: 12px; overflow: hidden; }
.uid span { background: var(--mint-2); color: #24402F; font-weight: 700; padding: 12px 14px; letter-spacing: 2px; display: flex; align-items: center; }
.uid input { border: 0; border-radius: 0; min-width: 0; flex: 1; letter-spacing: 4px; }
.err { color: #C0261C; font-size: 14px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 15px; color: var(--ink-2); text-align: center; }
.sent { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; padding-block: 44px; }
.sent .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--mint-2); display: flex; align-items: center; justify-content: center; }
.sent .t1 { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.3; color: var(--maroon); }
.sent .t2 { font-weight: 600; font-size: 20px; color: var(--green); }
.waiting {
  display: flex; align-items: center; gap: 8px; background: var(--amber-bg); color: var(--amber-text);
  font-weight: 700; font-size: 16px; padding: 6px 16px; border-radius: 999px;
}
.sent p { margin: 0; max-width: 420px; }
.sent p + p { color: var(--ink-2); }

/* Map */
.map-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.map-box {
  flex: 3 1 480px; min-width: 0; min-height: 380px; overflow: hidden; border: 3px solid var(--green-bright);
  border-radius: 32px; box-shadow: 10px 10px 0 var(--green-bright); margin-right: 10px; background: #E9E3D6;
}
.map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-info {
  flex: 2 1 320px; min-width: 0; background: var(--white); border: 2px solid var(--line); border-radius: 28px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.map-info .name { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.3; color: var(--maroon); }
.map-info .addr { font-size: 18px; }
.map-info .muted { color: var(--ink-2); }
.map-info .btn { margin-top: auto; }

/* Footer */
.footer { background: var(--green-dark); color: var(--white); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; align-items: flex-start; padding-block: 48px 28px; }
.footer .col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.footer .logo-tile { background: var(--white); border-radius: 16px; padding: 10px 14px; display: inline-flex; align-self: flex-start; }
.footer .logo-tile img { height: 52px; width: auto; }
.footer .lbl { font-weight: 700; color: #B9CF92; }
.footer .soft { color: #D9E3D2; font-size: 15px; }
.footer a { color: var(--white); }
.footer a:hover { color: #B9CF92; }
.copy { border-top: 1px solid rgba(255, 255, 255, .15); text-align: center; font-size: 14px; color: #D9E3D2; padding-block: 14px; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 20;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 52px; }
  .hero .wrap { padding-block: 40px 60px; gap: 36px; }
  .nav-bar a { padding: 6px 12px; font-size: 15px; }
  .lab-card { border-radius: 36px; padding: 28px 22px; box-shadow: 10px 10px 0 #8CB26A; margin-right: 10px; }
  .doctor, .form, .sent, .rev-score, .map-box { box-shadow: 8px 8px 0 var(--green-bright); margin-right: 8px; }
  .form { padding: 22px; }
  .cond-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cond { padding: 18px 8px; }
  .cond img { width: 64px; height: 64px; }
  .cond .ta, .cond .en { font-size: 17px; }
  .info-bar .wrap { justify-content: center; text-align: center; }
}

/* Keep each phone number on one line */
.num a, .info-bar a, .footer a { white-space: nowrap; }

/* Botanical: soften the folder icons to match the palette */
.cond img, .tests img, .quick img, .lab-mark img { filter: saturate(.55) brightness(.85); }
header { background: var(--white); }
.logo-row { background: var(--white); }

/* Phone: logo floats at the top while scrolling */
@media (max-width: 640px) {
  header .logo-row {
    position: sticky; top: 10px; z-index: 30;
    margin: 10px 10px 0; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 8px 24px rgba(36, 64, 47, .16);
  }
  header .logo-row img { width: 300px; }
  header { display: contents; }
  .info-bar { margin-top: 12px; }
}
