/* =====================================================================
   Digital OPD — public site
   ---------------------------------------------------------------------
   Direction notes, so the next person does not undo them by accident.

   Palette extends the product's own tokens rather than inventing a
   marketing identity. A doctor who sees the site and then the software
   should not feel handed to a different company. One colour is added:
   a muted sage for the chat thread in the hero, so the WhatsApp
   metaphor reads without impersonating WhatsApp's own green.

   No web fonts. The audience is a doctor on mobile data in a tier-2 or
   tier-3 town; first paint must not wait on a font CDN. The system
   stack is pushed hard on weight and tracking instead.

   The hero is the thesis: the message that starts a visit on the left,
   the printed prescription that ends it on the right. That pair is the
   one memorable element and everything around it stays quiet.
   ===================================================================== */

:root {
    --sage:      #1F7A5A;
    --sage-soft: #E6F2ED;
    --site-max:  1120px;
}

.site { background: #fff; }

.wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

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

.site-head {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-head-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-mark { font-size: 17px; font-weight: 750; letter-spacing: -.025em; color: var(--ink); text-decoration: none; }
.site-mark b { color: var(--violet); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--violet); }
.site-head .btn { flex: 0 0 auto; }
@media (max-width: 860px) { .site-nav { display: none; } }

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

.hero {
    position: relative; overflow: hidden;
    padding: 64px 0 72px;
    background:
        radial-gradient(760px 420px at 8% -10%, rgba(106, 63, 209, .10), transparent 62%),
        radial-gradient(620px 380px at 100% 8%, rgba(31, 122, 90, .07), transparent 60%),
        #fff;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; gap: 36px; } }

.hero-eyebrow {
    display: inline-block; margin-bottom: 16px; padding: 4px 12px;
    background: var(--violet-soft); border-radius: 20px;
    font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--violet-dark);
}
.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 46px); line-height: 1.08;
    font-weight: 780; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--violet); }
.hero-lede { margin: 0 0 26px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* the signature: chat thread meeting printed paper */
.journey { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.bubble {
    padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
    box-shadow: 0 1px 2px rgba(27, 20, 54, .07);
}
.bubble-in  { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--sage-soft); border: 1px solid #C9E2D8; border-bottom-right-radius: 4px; color: #14503B; }
.bubble-time { display: block; margin-top: 3px; font-size: 10.5px; color: var(--ink-soft); }
.bubble strong { font-weight: 700; }

.journey-link {
    height: 34px; margin: 6px 0 6px 26px;
    border-left: 2px dashed var(--line-strong);
}
.journey-label {
    margin: 0 0 8px 34px; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}

.paper {
    background: #fff; border: 1px solid var(--line-strong);
    box-shadow: 0 10px 30px rgba(27, 20, 54, .10);
    padding: 18px 20px;
    font-family: "Times New Roman", Georgia, serif; color: #000;
    transform: rotate(-.5deg);
}
.paper-head { text-align: center; border-bottom: 1.4px solid #000; padding-bottom: 7px; margin-bottom: 9px; }
.paper-doc { font-size: 16px; font-weight: 700; }
.paper-sub { font-size: 10.5px; }
.paper-meta { display: flex; justify-content: space-between; font-size: 10.5px; margin-bottom: 7px; }
.paper-pt { background: #EDEDED; border: 1px solid #C9C9C9; padding: 5px 8px; font-size: 12px; font-weight: 700; }
.paper-table { width: 100%; border-collapse: collapse; font-size: 10.5px; margin-top: 8px; }
.paper-table th { background: #D9D9D9; border: 1px solid #B4B4B4; padding: 3px 6px; text-align: left; }
.paper-table td { border: 1px solid #C9C9C9; padding: 3px 6px; }
.paper-foot { margin-top: 9px; font-size: 10px; display: flex; justify-content: space-between; }

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

.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--paper); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.section h2 { margin: 8px 0 10px; font-size: clamp(23px, 3.4vw, 31px); font-weight: 720; letter-spacing: -.028em; }
.section-lede { margin: 0; font-size: 16px; line-height: 1.62; color: var(--ink-2); }

/* the day, in order — numbered because it genuinely is a sequence */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: #fff; padding: 20px; }
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; margin-bottom: 10px;
    border-radius: 50%; background: var(--ink); color: #fff;
    font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step h3 { margin: 0 0 5px; font-size: 15px; font-weight: 680; }
.step p  { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.tile h3 { margin: 0 0 7px; font-size: 16px; font-weight: 680; }
.tile p  { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.tile ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* AEO: the short answer an engine can lift without inventing anything */
.answer {
    padding: 18px 20px; margin-bottom: 28px;
    background: var(--violet-soft); border-left: 3px solid var(--violet);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15.5px; line-height: 1.62; color: var(--ink);
}
.answer b { font-weight: 700; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
    padding: 16px 0; cursor: pointer; list-style: none;
    font-size: 15.5px; font-weight: 620;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--violet); font-size: 20px; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .faq-body { padding: 0 0 18px; font-size: 14.5px; line-height: 1.66; color: var(--ink-2); max-width: 72ch; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.price {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    display: flex; flex-direction: column;
}
.price.is-featured { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.price-name { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--violet); }
.price-amount { margin: 10px 0 2px; font-size: 34px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-amount span { font-size: 14px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.price-desc { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0 16px; }
.price ul { margin: 0 0 20px; padding-left: 18px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.price .btn { margin-top: auto; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--violet); text-decoration: none; }
.post-card img { width: 100%; height: 168px; object-fit: cover; display: block; }
.post-card-body { padding: 18px; }
.post-card h3 { margin: 6px 0 6px; font-size: 16.5px; font-weight: 680; line-height: 1.35; letter-spacing: -.012em; }
.post-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.post-meta { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }

.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose h2 { margin: 34px 0 12px; font-size: 24px; color: var(--ink); letter-spacing: -.02em; }
.prose h3 { margin: 26px 0 10px; font-size: 18px; color: var(--ink); }
.prose p  { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose img { max-width: 100%; border-radius: var(--radius-sm); }
.prose blockquote { margin: 22px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--violet); color: var(--ink); font-style: italic; }

/* enquiry */
.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.enquiry .field { margin-bottom: 13px; }

.cta-band { padding: 56px 0; background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0 0 22px; color: #C9C3DD; font-size: 16px; max-width: 56ch; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #EFEAFB; color: var(--ink); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

/* footer */
.site-foot { padding: 44px 0 30px; background: #120E24; color: #9C95B5; font-size: 13.5px; }
.site-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
@media (max-width: 820px) { .site-foot-grid { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { margin: 0 0 10px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-foot a { display: block; color: #9C95B5; text-decoration: none; margin-bottom: 7px; }
.site-foot a:hover { color: #fff; }
.site-foot-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }

.cities { display: flex; gap: 7px; flex-wrap: wrap; }
.cities a {
    padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 20px;
    font-size: 13px; color: var(--ink-2); text-decoration: none; background: #fff;
}
.cities a:hover { border-color: var(--violet); color: var(--violet); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
