/* drishti/style.css — Drishti Eye Care Centre
   Institutional, information-first, left-aligned. A well-set noticeboard.
   Self-contained: shares nothing with the other two sites but shared/. */

:root {
  --deep:   #0B3B45;  /* deep petrol teal — headers, footer, board */
  --teal:   #16697A;  /* mid teal — links, section rules */
  --mint:   #E7F0EF;  /* pale bg */
  --paper:  #FFFFFF;  /* cards, board face */
  --saffron:#E09F3E;  /* accent — on-duty dots, highlights */
  --brick:  #C2452D;  /* CTA only: call / book */
  --ink:    #14201F;
  --rule:   #C3D3D1;

  --brick-dark: #A63821;

  --display: "Bricolage Grotesque", "Noto Serif Devanagari", Georgia, serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --col: 1140px;

  /* ---- chat widget skin (BRIEF §5) ---- */
  --chat-bg: #FFFFFF;
  --chat-fg: #14201F;
  --chat-accent: #0B3B45;
  --chat-accent-fg: #FFFFFF;
  --chat-bubble-user: #16697A;
  --chat-bubble-bot: #E7F0EF;
  --chat-radius: 6px;
  --chat-font: "Source Serif 4", serif;
  --chat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- base */

body {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}

.wrap {
  max-width: var(--col);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.wrap--narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--deep);
}

a { color: var(--teal); }
a:hover { text-decoration-thickness: 2px; }

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

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: background 140ms ease, border-color 140ms ease;
}

.btn--brick {
  background: var(--brick);
  color: #fff;
}
.btn--brick:hover { background: var(--brick-dark); }

.btn--lg {
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
}

.linkish {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  padding: 0.2rem 0;
}
.linkish:hover { color: var(--deep); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- header */

.site-head {
  background: var(--paper);
  border-bottom: 3px solid var(--deep);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-head__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  color: var(--deep);
}

.brand__deva {
  font-family: "Noto Serif Devanagari", var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--deep);
}

.brand__name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-head__contact {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-head__addr {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.75;
}

.site-head__tel {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-head__tel:hover { color: var(--brick); }

/* nav below the rule */
.site-nav {
  background: var(--deep);
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.6rem;
  margin: 0;
  padding-block: 0.55rem;
}
.site-nav__list a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav__list a:hover { border-bottom-color: var(--saffron); color: #fff; }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: stretch;
  background: var(--mint);
  border-bottom: 2px solid var(--rule);
}

.hero__media {
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.02);
}

.hero__col {
  padding: 2.5rem 1.5rem 2.75rem;
  display: flex;
  flex-direction: column;
}

.hero__content {
  max-width: 30rem;
}

.hero__h1 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.03;
  margin-bottom: 1.1rem;
}

.hero__body {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* ---- the board (overlaps the hero image's right edge) ---- */

.board {
  background: var(--deep);
  border: 3px solid var(--deep);
  color: var(--paper);
  width: min(400px, 100%);
  margin-left: clamp(-11rem, -8vw, -3rem);  /* pull left onto the image */
  margin-bottom: 2.25rem;
  box-shadow: 0 14px 40px rgba(11, 59, 69, 0.28);
  opacity: 0;
  animation: board-fade 200ms ease forwards;
}

@keyframes board-fade { to { opacity: 1; } }

.board__cap {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
  padding: 0.65rem 0.9rem 0.5rem;
  background: var(--deep);
  margin: 0;
}

.board__cap--btn {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--saffron);
  text-decoration: underline;
  text-decoration-color: rgba(224, 159, 62, 0.4);
  text-underline-offset: 0.2em;
  border-top: 1px solid rgba(195, 211, 209, 0.25);
}
.board__cap--btn:hover { text-decoration-color: var(--saffron); }

.board__grid { margin: 0; }

.board__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
}
.board__row dt { font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.board__row dd { margin: 0; text-align: right; }
.board__muted { opacity: 0.6; }

.board__duty {
  margin: 0;
  background: var(--paper);
}
.board__duty li {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
}
.board__duty .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
  align-self: center;
}
.board__duty .is-on-duty .dot { background: var(--saffron); box-shadow: 0 0 0 3px rgba(224, 159, 62, 0.25); }
.board__days {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  white-space: nowrap;
}
.board__who { font-weight: 500; }
.board__duty .is-on-duty .board__who { color: var(--deep); }

.board__grid--fees .board__row dd { font-weight: 500; }

.board__note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--teal);
  margin-top: 1.5rem;
}

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

.section {
  padding-block: 3.5rem;
  border-bottom: 2px solid var(--rule);
}
.section--alt { background: var(--mint); }
.section--sheet { background: var(--paper); }

.section__head { margin-bottom: 2rem; }

.section__h {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.section__h::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  background: var(--saffron);
  margin-top: 0.7rem;
}

.section__sub {
  max-width: 46rem;
  font-size: 1rem;
  color: var(--ink);
}

/* ---------------------------------------------------------------- services */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0;
}

.svc {
  background: var(--paper);
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.svc__name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.svc__detail {
  font-size: 0.98rem;
  margin-bottom: 1rem;
  flex: 1 1 auto;
}

.svc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  align-items: baseline;
  border-top: 2px solid var(--rule);
  padding-top: 0.75rem;
}
.price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--deep);
}
.dur {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.svc__ask {
  margin-top: 0.9rem;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.svc__ask:hover { color: var(--brick-dark); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- doctors */

.docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.doc {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
}
.doc__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.02);
}
.doc__body { padding: 1.2rem 1.2rem 1.2rem 0; }
.doc__name { font-size: 1.35rem; margin-bottom: 0.35rem; }
.doc__cred {
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.doc__note { font-size: 0.95rem; margin-bottom: 0.5rem; }
.doc__sits {
  font-size: 0.88rem;
  color: var(--ink);
  opacity: 0.8;
  font-style: italic;
}

.doc-optom {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--saffron);
  font-size: 0.95rem;
}
.doc-optom strong { color: var(--deep); font-family: var(--display); }

/* ---------------------------------------------------------------- equipment */

.equip {
  display: grid;
  grid-template-columns: 40fr 35fr 25fr;
  gap: 1.25rem;
  align-items: start;
}
.equip__item { margin: 0; }
.equip__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.02);
  border: 1px solid var(--rule);
}
.equip__item figcaption {
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.equip__cap {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
}
.equip__line { font-size: 0.9rem; line-height: 1.5; }

.equip__band {
  margin: 2rem 0 0;
  position: relative;
}
.equip__band img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.02);
  border: 1px solid var(--rule);
}
.equip__band-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--deep);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
}

/* ---------------------------------------------------------------- fees sheet */

.section--sheet .wrap--narrow > * + * { margin-top: 2rem; }

.sheet {
  border: 1px solid var(--rule);
  font-size: 0.95rem;
}
.sheet__cap {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--deep);
  padding: 0.5rem 0.9rem;
}
.sheet th,
.sheet td {
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.sheet th[scope="row"] { font-weight: 400; }
.sheet td {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--deep);
  width: 40%;
  white-space: nowrap;
}

.sheet__h {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  margin-top: 1.4rem;
}
.sheet__prose p { font-size: 0.98rem; margin-bottom: 0.6rem; }

/* ---------------------------------------------------------------- patient notes */

.notes {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.note {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--teal);
  padding: 1.3rem 1.4rem;
}
.note--wide { border-top-color: var(--saffron); }
.note__quote { margin: 0 0 1rem; }
.note__quote p { font-size: 1rem; line-height: 1.6; }
.note__by { display: flex; flex-direction: column; gap: 0.15rem; }
.note__name {
  font-family: var(--display);
  font-weight: 600;
  color: var(--deep);
  font-size: 1.02rem;
}
.note__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------------------------------------------------------------- visit us */

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.visit__addr {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
}
.visit__org {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 0.3rem;
}
.visit__contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.visit__contact a { color: var(--deep); }
.visit__contact a:hover { color: var(--brick); }

.visit__note { margin-top: 1.5rem; }
.visit__h {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.visit__note p { font-size: 0.95rem; }

/* map placeholder — not a fake interactive map */
.map {
  position: relative;
  height: 100%;
  min-height: 320px;
  border: 3px solid var(--deep);
  background: var(--mint);
  overflow: hidden;
}
.map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.6;
}
.map__pin {
  position: absolute;
  top: 44%;
  left: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.map__dot {
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  background: var(--brick);
  box-shadow: 0 3px 10px rgba(11, 59, 69, 0.4);
}
.map__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--paper);
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--rule);
}
.map__link {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mint);
  background: var(--deep);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}
.map__link:hover { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.site-foot {
  background: var(--deep);
  color: var(--mint);
  padding-block: 2.5rem;
}
.site-foot__inner { display: flex; flex-direction: column; gap: 0.6rem; }
.brand--foot .brand__deva { color: var(--paper); }
.brand--foot .brand__name { color: var(--saffron); }
.brand--foot { margin-bottom: 0.4rem; }
.site-foot__line {
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 60rem;
}
.site-foot__reg {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--saffron);
  margin-top: 0.5rem;
}

/* ---------------------------------------------------------------- sticky call bar (mobile) */

.callbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 1px;
  background: var(--deep);
  border-top: 2px solid var(--deep);
}
.callbar__btn {
  flex: 1 1 0;
  text-align: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 0.6rem;
}
.callbar__btn--call { background: var(--brick); }
.callbar__btn--book { background: var(--teal); }

/* ---------------------------------------------------------------- chat bubble (per-site size) */

/* Larger bubble than the other two sites — the audience is older. */
#quana-chat .qchat__bubble { width: 64px; height: 64px; }
#quana-chat .qchat__bubble-icon { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__media img { max-height: 340px; }
  .hero__col { padding-top: 0; }
  .board {
    margin-left: 0;
    margin-top: -3rem;   /* still overlaps the image's lower edge */
    width: min(420px, 100%);
    position: relative;
    z-index: 2;
  }
  .services { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .equip { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: 1fr 1fr; }
  .note--wide { grid-column: 1 / -1; }
  .visit { grid-template-columns: 1fr; }
  .map { min-height: 280px; }
}

@media (max-width: 768px) {
  .callbar { display: flex; }
  /* lift the chat bubble above the sticky call bar */
  #quana-chat { bottom: 4.75rem; }
  main { padding-bottom: 0; }
  body { padding-bottom: 3.5rem; }
  .site-head { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .equip { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .doc__photo { max-height: 260px; }
  .doc__body { padding: 0 1.2rem 1.2rem; }
  .site-head__contact { width: 100%; justify-content: space-between; gap: 0.6rem; }
  .site-head__addr { display: none; }
  .board { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .board { opacity: 1; animation: none; }
}
