/* Arogya Medical & General Stores (sample demo). Calm and highly legible, for an older audience too:
   larger text, strong contrast, very little motion (soft fades, a pulsing "Open now" dot, one count-up).
   Transform and opacity only; off for "reduce motion" and paused while the tab is hidden. */

@font-face { font-family: "Atkinson Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104%; }

:root {
  --teal: #1e7a6e;
  --teal-dark: #155a51;
  --mint: #eaf5f1;
  --coral: #e8623d;
  --coral-btn: #c24a28;
  --ink: #16302c;
  --muted: #3f5753;
  --line: #cfe3dc;
  --card: #ffffff;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Atkinson Hyperlegible", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mint); color: var(--ink); font: 400 19px/1.6 var(--sans); overflow-x: hidden; }
svg { display: block; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.25rem); }
h3 { font-size: 1.15rem; }
:focus-visible { outline: 3px solid var(--coral-btn); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sec { padding: 72px 0; }
.sample { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.sample--dark { color: #e3f2ee; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--lg { min-height: 56px; padding: 14px 24px; font-size: 1.08rem; }
.btn--wa { background: var(--coral-btn); color: #fff; }
.btn--outline { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn--light { background: #fff; color: var(--teal-dark); }
@media (hover: hover) { .btn--wa:hover { background: #a93f20; } .btn--outline:hover, .btn--light:hover { background: #f3faf7; } }

/* ------------------------------------------------------------------ header */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 1.12rem; color: var(--teal-dark); }
.logo__text span { font-size: .85rem; color: var(--muted); }
.head__btns { margin-left: auto; display: flex; gap: 8px; }
.head__btns .btn { min-height: 46px; padding: 8px 14px; font-size: .95rem; }

/* Open-now badge. The dot pulses gently (transform + opacity only). */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 700; color: var(--muted); }
.status i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #8a9a96; flex: none; }
.status.open { color: #135e3a; background: #e3f5ea; border-color: #b9e2c9; }
.status.open i { background: #1f9d55; }
.status.open i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1f9d55; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.status--head { margin-left: 12px; }
.status--hero { display: none; margin-bottom: 18px; }
@media (max-width: 860px) {
  .status--head { display: none; }
  .status--hero { display: inline-flex; }
}
@media (max-width: 520px) {
  .head__btns .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .head__btns .btn { width: 48px; padding: 0; }
  .logo__text b { font-size: 1rem; }
  .logo__text span { font-size: .78rem; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 48px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__p { margin-top: 16px; font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.hero__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.chat { background: #efe7dd; border-radius: 22px; overflow: hidden; border: 1px solid #e0d6c9; box-shadow: 0 24px 50px -32px rgba(22, 48, 44, .5); max-width: 440px; justify-self: center; width: 100%; }
.chat__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--teal-dark); color: #fff; }
.chat__top svg { width: 34px; height: 34px; }
.chat__top span { display: flex; flex-direction: column; line-height: 1.2; }
.chat__top b { font-size: .95rem; }
.chat__top small { font-size: .78rem; opacity: .85; }
.chat__body { padding: 18px 14px 8px; display: grid; gap: 10px; }
.msg { max-width: 82%; background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: .95rem; line-height: 1.45; }
.msg--me { justify-self: end; background: #d9fdd3; border-radius: 14px 4px 14px 14px; }
.rx { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: repeat(3, 8px); gap: 6px 10px; align-items: center; padding: 10px; margin-bottom: 8px; background: #fff; border-radius: 8px; border: 1px dashed #9cc7bb; }
.rx svg { grid-row: 1 / 4; width: 36px; height: 36px; color: var(--teal); }
.rx span { height: 6px; border-radius: 3px; background: #cfe0da; }
.rx span:nth-child(3) { width: 70%; } .rx span:nth-child(4) { width: 50%; }
.chat figcaption { padding: 6px 14px 12px; font-size: .82rem; color: #5a4f43; text-align: center; }

/* ------------------------------------------------------------------ services */
.svc { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc li { padding: 24px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.svc svg { width: 44px; height: 44px; color: var(--teal); margin-bottom: 12px; }
.svc p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* ------------------------------------------------------------------ a look inside */
.sec--inside { padding-top: 0; }
img, video { max-width: 100%; }
.inside { margin-top: 28px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.inside__video { overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #cfe3dc; }
.inside__video video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.inside__photos { display: grid; gap: 12px; }
.inside__photos li { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); }
.inside__photos img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.inside__photos span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .9rem; font-weight: 700; }

/* ------------------------------------------------------------------ trust */
.trust { background: var(--teal-dark); color: #fff; padding: 40px 0 30px; }
.trust__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.trust__list svg { width: 38px; height: 38px; flex: none; color: #fff; }
.trust__num { flex-direction: column; align-items: flex-start !important; gap: 0 !important; }
.trust__num b { font-size: 2.4rem; line-height: 1; color: #ffd6c8; }

/* ------------------------------------------------------------------ late note */
.late { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--line); }
.late__in { display: flex; align-items: center; gap: 16px; }
.late svg { width: 40px; height: 40px; flex: none; color: var(--coral-btn); }
.late b { color: var(--ink); }
.late span { color: var(--muted); }

/* ------------------------------------------------------------------ visit */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.addr { margin-top: 18px; display: flex; gap: 10px; font-weight: 700; }
.addr svg { width: 28px; height: 28px; flex: none; color: var(--teal); }
.hours { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; max-width: 380px; }
.hours dt { font-weight: 700; }
.hours dd { color: var(--muted); }
.map { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.map svg { width: 100%; height: auto; }
.map span { position: absolute; right: 14px; bottom: 14px; background: var(--teal-dark); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; }

/* ------------------------------------------------------------------ CTA */
.cta { background: var(--teal); color: #fff; padding: 68px 0; text-align: center; }
.cta__icon { width: 52px; height: 52px; margin: 0 auto 14px; }
.cta__in > p { margin: 12px auto 0; max-width: 52ch; color: #e8f6f2; }
.cta__btns { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta .cta__note { margin-top: 20px; font-size: .92rem; color: #e8f6f2; }

/* ------------------------------------------------------------------ footer */
.foot { padding: 34px 0 26px; background: #fff; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__nav a { padding: 8px 0; color: var(--muted); text-decoration: none; font-weight: 700; }
.foot__row { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.foot__row a { color: var(--teal-dark); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 80; max-width: min(92vw, 460px); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .95rem; opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ reveals (soft fades only) */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero__grid, .visit, .inside { grid-template-columns: 1fr; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .trust__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .sec { padding: 56px 0; }
  .hero { padding-top: 28px; }
  .svc, .trust__list { grid-template-columns: 1fr; }
  .inside__photos img { aspect-ratio: 16 / 9; }
  .hero__btns .btn, .cta__btns .btn { width: 100%; }
  .late__in { align-items: flex-start; }
}

/* ------------------------------------------------------------------ pause + reduced motion */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
