/* ==========================================================================
   Sugabi Clinic — shared styles (all pages)
   Load after bootstrap.min.css and bootstrap-icons.min.css.
   ========================================================================== */
/* =====================================================
   SUGABI BODY — plain HTML migration
   Everything below is self-contained: copy the <body>
   content + this <style> + the <script> at the bottom
   into your final page between your navbar and footer.
   ===================================================== */
:root{
  --sg-purple:#5e17eb;
  --sg-purple-dark:#3d0e9e;
  --sg-ink:#002352;
  --sg-muted:#5b6b84;
  --sg-bg-soft:#f6f4fe;
  --sg-pink:#ff5c8a;
}
/* Clip horizontal overflow at the root too — body alone doesn't stop
   mobile browsers from scrolling to reveal off-screen .reveal elements.
   clip (not hidden) so position:sticky keeps working. */
html{overflow-x:clip;}
@supports not (overflow-x:clip){html{overflow-x:hidden;}}
body{font-family:'Poppins',sans-serif;color:var(--sg-ink);overflow-x:clip;background:#fff !important;}
/* Shared chrome always uses the site font, whatever a page-level font override says. */
html body .site-header,html body .site-header *,html body .site-footer,html body .site-footer *,html body #to-top,html body #to-top *,html body .award-float,html body .award-float *{font-family:'Poppins','Abhaya Libre',sans-serif !important;}
@supports not (overflow-x:clip){body{overflow-x:hidden;}}
h1,h2,h3,h4,h5{font-weight:700;color:var(--sg-ink);}
a{color:var(--sg-purple);}
a:hover{color:var(--sg-purple-dark);}

/* ---------- Buttons ---------- */
.btn-sg{background:var(--sg-purple);color:#fff;border-radius:50rem;padding:.8rem 2.2rem;font-weight:600;border:2px solid var(--sg-purple);transition:all .3s ease;}
.btn-sg:hover{background:var(--sg-purple-dark);border-color:var(--sg-purple-dark);color:#fff;transform:translateY(-3px);box-shadow:0 12px 24px rgba(94,23,235,.25);}
.btn-sg-outline{background:transparent;color:var(--sg-purple);border-radius:50rem;padding:.8rem 2.2rem;font-weight:600;border:2px solid var(--sg-purple);transition:all .3s ease;}
.btn-sg-outline:hover{background:var(--sg-purple);color:#fff;transform:translateY(-3px);box-shadow:0 12px 24px rgba(94,23,235,.25);}
/* Pills are flex boxes so a wrapped label stays inside one rounded shape */
.btn-sg,.btn-sg-outline{display:inline-flex;align-items:center;justify-content:center;text-align:center;vertical-align:middle;}
/* Narrow screens: stack CTA pills full-width instead of side-by-side */
@media (max-width:575.98px){
  .btn-sg,.btn-sg-outline{display:flex;width:100%;}
  .btn-sg + .btn-sg,.btn-sg + .btn-sg-outline,.btn-sg-outline + .btn-sg,.btn-sg-outline + .btn-sg-outline{margin-left:0 !important;margin-top:.75rem;}
}

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content is visible by default. JavaScript adds .reveal-ready only after a
   working IntersectionObserver has been created, preventing blank pages when
   scripts are delayed, blocked or optimised by the hosting/CDN layer. */
.reveal{opacity:1;transform:none;transition:opacity .8s cubic-bezier(.22,1,.36,1),transform .8s cubic-bezier(.22,1,.36,1);}
.reveal-ready .reveal{opacity:0;transform:translateY(40px);}
.reveal-ready .reveal.from-left{transform:translateX(-60px);}
.reveal-ready .reveal.from-right{transform:translateX(60px);}
.reveal-ready .reveal.zoom{transform:scale(.85);}
.reveal-ready .reveal.in-view{opacity:1;transform:none;}
/* stagger helpers */
.d-1{transition-delay:.1s}.d-2{transition-delay:.25s}.d-3{transition-delay:.4s}.d-4{transition-delay:.55s}

/* ---------- Meet / split sections ---------- */
.split-img{border-radius:2rem;max-width:100%;}
.sec-kicker{letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:#d63868;font-size:.8rem;}

/* ---------- Footer ---------- */
.site-footer{position:relative;background:linear-gradient(120deg,#2a0a66 0%,#3D0E9E 55%,#4a11b8 100%);color:#fff;overflow:hidden;}
.site-footer::before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:rgba(255,255,255,.05);top:-260px;right:-160px;}
.site-footer::after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:rgba(255,255,255,.05);bottom:-160px;left:-100px;}
.site-footer .container{position:relative;z-index:1;}
.site-footer a{color:#fff;text-decoration:none;transition:opacity .25s ease,transform .25s ease;}
.site-footer a:hover{color:#fff;opacity:.75;}
.site-footer .footer-about{color:rgba(255,255,255,.85);font-size:.95rem;line-height:1.9;max-width:26rem;}
.site-footer h2,.site-footer h3{font-size:.95rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#fff;margin-bottom:1.25rem;}
.site-footer .footer-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.7rem;}
.site-footer .footer-links a{display:inline-flex;align-items:center;gap:.55rem;font-weight:500;font-size:.95rem;}
.site-footer .footer-links a i{font-size:.8rem;opacity:.7;}
.site-footer .footer-links a:hover{transform:translateX(4px);}
.footer-social{display:flex;gap:.75rem;}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);font-size:1.2rem;}
.footer-social a:hover{background:rgba(255,255,255,.28);opacity:1;transform:translateY(-3px);}
.footer-contact{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.85rem;font-size:.95rem;}
.footer-contact li{display:flex;gap:.75rem;align-items:flex-start;color:rgba(255,255,255,.85);line-height:1.7;}
.footer-contact i{font-size:1rem;margin-top:.15rem;}
.footer-award{max-width:100%;}
.footer-award img{height:110px;max-width:100%;width:auto;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3));transition:transform .3s ease;}
.footer-award img:hover{transform:scale(1.06);}
.footer-bottom{border-top:1px solid rgba(255,255,255,.22);margin-top:3rem;padding-top:1.5rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;font-size:.85rem;color:rgba(255,255,255,.75);}
.to-top{position:fixed;right:1.5rem;bottom:1.5rem;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#6717E9,#9B55F5);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.2rem;box-shadow:0 10px 24px rgba(61,14,158,.4);border:0;opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .3s ease,transform .3s ease;z-index:1050;}
.to-top.show{opacity:1;pointer-events:auto;transform:none;}
.to-top:hover{color:#fff;}

@media (prefers-reduced-motion: reduce){
  .hero-anim,.hero-img,.blob,.doc-img,.dot,.hero-blob-wrap img{animation:none;opacity:1;transform:none;}
  .reveal{opacity:1;transform:none;transition:none;}
}

/* =====================================================
   HEADER / NAVBAR (from sugabi-header package)
   ===================================================== */
/* ==========================================================================
   Sugabi Clinic — site stylesheet
   Loaded after bootstrap.min.css and bootstrap-icons.min.css.
   All header/navbar overrides are scoped under .site-header so they cannot
   leak into page components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand colours — themed to vog.lk (#6717E9) */
    --sugabi-plum:        #3D0E9E;
    --sugabi-plum-mid:    #6717E9;
    --sugabi-accent:      #9B55F5;
    --sugabi-teal:        #51C4C4;   /* restrained secondary accent */
    --sugabi-surface:     #FFFFFF;
    --sugabi-ink:         #2A0A66;

    /* Header gradient — reversed: darkest at top so it merges with the
       browser theme-color (#3D0E9E), lightening downward */
    --sugabi-header-gradient: linear-gradient(
        180deg,
        #3D0E9E 0%,
        #5312c4 22%,
        #6717E9 55%,
        #8b45f0 100%
    );

    /* Layout */
    --sugabi-container-max: 1200px;
    --sugabi-header-height: 72px;

    /* Radii */
    --sugabi-radius-pill: 999px;
    --sugabi-radius-lg:   16px;
    --sugabi-radius-md:   10px;

    /* Shadows */
    --sugabi-shadow-header:          0 1px 4px rgba(42, 10, 102, 0.25);
    --sugabi-shadow-header-scrolled: 0 4px 16px rgba(42, 10, 102, 0.35);
    --sugabi-shadow-panel:           0 8px 24px rgba(42, 10, 102, 0.30);

    /* Motion */
    --sugabi-transition-fast: 150ms ease;

    /* Type */
    --sugabi-font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI',
                        Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Self-hosted fonts
   Place WOFF2 files in /assets/fonts/ (see README).
   -------------------------------------------------------------------------- */






/* --------------------------------------------------------------------------
   3. Skip link
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background-color: var(--sugabi-plum);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--sugabi-radius-md) 0;
}

.skip-link:focus {
    left: 0;
    color: #ffffff;
    outline: 2px solid var(--sugabi-teal);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Site header — positioning and surface
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--sugabi-header-gradient);
    /* top edge highlight + bottom shading give the bar its 3D relief */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30),
                inset 0 -2px 4px rgba(20, 4, 60, 0.35),
                var(--sugabi-shadow-header);
    transition: box-shadow var(--sugabi-transition-fast);
}

.site-header.is-scrolled {
    box-shadow: var(--sugabi-shadow-header-scrolled);
}

.site-header .site-navbar {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    transition: padding var(--sugabi-transition-fast);
}

.site-header.is-scrolled .site-navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. Brand logo
   -------------------------------------------------------------------------- */
.site-header .navbar-brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
}

.site-header .navbar-brand-logo img {
    display: block;
    width: 120px;
    height: 43px;
}

/* --------------------------------------------------------------------------
   6. Primary navigation links (pills)
   -------------------------------------------------------------------------- */
.site-header .primary-nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--sugabi-radius-pill);
    background-color: transparent;
    transition: background-color var(--sugabi-transition-fast),
                color var(--sugabi-transition-fast);
    white-space: nowrap;
}

/* Sinhala pages: per-script fixes — Abhaya Libre needs no Latin tracking,
   and reads too small at the uppercase-Latin size. */
html[lang="si"] .site-header .primary-nav__link {
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.6;
}
html[lang="si"] .site-header .primary-nav__menu .dropdown-item {
    letter-spacing: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
html[lang="si"] .site-header .header-appointment {
    letter-spacing: 0;
    line-height: 1.6;
}

.site-header .primary-nav__link:hover,
.site-header .primary-nav__link:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.16);
}

.site-header .primary-nav__link.active,
.site-header .primary-nav__link.active:hover,
.site-header .primary-nav__link.active:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30);
}

/* Icons: visible in the mobile panel, hidden on desktop */
.site-header .primary-nav__icon {
    display: inline-block;
    width: 1.5rem;
    margin-right: 0.75rem;
    font-size: 1.15rem;
    text-align: center;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   7. Dropdown panels
   -------------------------------------------------------------------------- */
.site-header .primary-nav__menu {
    background: #4a11b8;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--sugabi-radius-lg);
    box-shadow: var(--sugabi-shadow-panel);
    padding: 0.5rem;
    min-width: 14rem;
}

.site-header .primary-nav__menu li + li .dropdown-item {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
}

.site-header .primary-nav__menu li:last-child .dropdown-item {
    border-radius: 0 0 var(--sugabi-radius-md) var(--sugabi-radius-md);
}

.site-header .primary-nav__menu li:first-child .dropdown-item {
    border-radius: var(--sugabi-radius-md) var(--sugabi-radius-md) 0 0;
}

.site-header .primary-nav__menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.625rem 0.875rem;
    color: #ffffff;
    font-weight: 600;
    transition: background-color var(--sugabi-transition-fast);
    white-space: nowrap;
}

.site-header .primary-nav__menu .dropdown-item:hover,
.site-header .primary-nav__menu .dropdown-item:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
}

.site-header .primary-nav__menu .dropdown-item:active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   8. Header actions: phone and appointment CTA
   -------------------------------------------------------------------------- */
.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.site-header .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.375rem 0.75rem;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
    border-radius: var(--sugabi-radius-pill);
    transition: background-color var(--sugabi-transition-fast);
    white-space: nowrap;
}

.site-header .header-phone:hover,
.site-header .header-phone:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.22);
}

/* Phone collapses to icon-only below 1400px so the booking CTA reads as the
   single primary action. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .header-phone__number { display: none !important; }
    .site-header .header-phone { min-width: 44px; }
}

.site-header .header-appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    color: var(--sugabi-plum);
    font-weight: 600;
    text-decoration: none;
    background-color: var(--sugabi-surface);
    border-radius: var(--sugabi-radius-pill);
    box-shadow: 0 2px 8px rgba(36, 21, 54, 0.25);
    transition: background-color var(--sugabi-transition-fast),
                box-shadow var(--sugabi-transition-fast);
    white-space: nowrap;
}

.site-header .header-appointment:hover,
.site-header .header-appointment:focus {
    color: var(--sugabi-plum);
    background-color: #F3EAFD;
    box-shadow: 0 3px 12px rgba(36, 21, 54, 0.35);
}

/* Reserve desktop header-action space while the web font loads. */
@media (min-width: 1400px) {
    .site-header .header-phone { min-width: 150px; }
}
@media (min-width: 1200px) {
    .site-header .header-appointment { min-width: 184px; }
    /* Sinhala CTA label is longer — let the pill size itself */
    html[lang="si"] .site-header .header-phone { min-width: 0; }
    html[lang="si"] .site-header .header-appointment { min-width: 0; }
}

/* --------------------------------------------------------------------------
   9. Toggler
   -------------------------------------------------------------------------- */
.site-header .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--sugabi-radius-md);
    box-shadow: none;
}

/* Only show the toggler below the lg breakpoint; inline-flex here was
   overriding Bootstrap's desktop display:none */
@media (max-width: 991.98px) {
    .site-header .navbar-toggler {
        display: inline-flex;
    }
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M2 3h12M2 8h12M2 13h12'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   10. Keyboard focus visibility (header-wide)
   -------------------------------------------------------------------------- */
.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   11. Mobile / collapsed panel  (below lg)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {

    .site-header .navbar-collapse {
        padding: 0.5rem 0 1rem;
        /* Short/landscape screens: keep the expanded menu scrollable instead of
           pushing lower items (VOG.LK, Book Appointment) off-screen (audit fix). */
        max-height: calc(100vh - 88px);
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .primary-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .site-header .primary-nav .nav-item:last-child {
        border-bottom: 0;
    }

    .site-header .primary-nav__link {
        border-radius: var(--sugabi-radius-md);
        padding: 0.75rem 0.75rem;
        white-space: normal;
        background-color: transparent;
        box-shadow: none;
        text-transform: none;
        letter-spacing: normal;
        font-size: 1rem;
    }

    .site-header .primary-nav__link:hover,
    .site-header .primary-nav__link:focus {
        color: #ffffff;
        background-color: rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    /* Keep page context and the opened accordion distinct without the pale
       lavender fills that competed with each other on mobile. */
    .site-header .primary-nav__link.active,
    .site-header .primary-nav__link.active:hover,
    .site-header .primary-nav__link.active:focus {
        background-color: rgba(255, 255, 255, 0.07);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    }

    .site-header .primary-nav .nav-item .primary-nav__link.dropdown-toggle.show,
    .site-header .primary-nav .nav-item .primary-nav__link.dropdown-toggle.show:hover,
    .site-header .primary-nav .nav-item .primary-nav__link.dropdown-toggle.show:focus {
        background-color: rgba(0, 0, 0, 0.18) !important;
        border-radius: var(--sugabi-radius-lg) var(--sugabi-radius-lg) 0 0;
        box-shadow: none;
    }

    /* Dropdowns behave like an accordion inside the panel */
    .site-header .primary-nav__menu {
        border: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.18);
        margin: 0 0 0.5rem;
    }

    .site-header .primary-nav__menu.show {
        border-radius: 0 0 var(--sugabi-radius-lg) var(--sugabi-radius-lg);
    }

    .site-header .primary-nav__menu .dropdown-item {
        white-space: normal;
    }

    .site-header .header-appointment--panel {
        width: 100%;
        margin-top: 0.75rem;
    }

    /* Hide the phone number text on the compact initial header */
    .site-header .header-phone {
        padding: 0.375rem;
    }
}


/* Mid-width squeeze (lg only): keep pills from overlapping before the
   hamburger breakpoint */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .primary-nav__link {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
        padding-left: 0.3rem;
        padding-right: 0.3rem;
        min-width: 0;
        overflow: hidden;
    }
    .site-header .primary-nav {
        gap: 0.25rem;
    }
    .site-header .header-actions {
        gap: 0.25rem;
    }
    .site-header .header-appointment {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }
    .site-header .header-phone {
        padding: 0.375rem 0.5rem;
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   12. Desktop  (lg and up)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {

    /* PurgeCSS cannot detect Bootstrap's attribute selector below. Keep the
       desktop panel below the full navbar without affecting the mobile accordion. */
    .site-header .primary-nav__menu[data-bs-popper] {
        top: 100%;
        left: 0;
        margin-top: 1rem;
    }

    /* Labels only on desktop — icons are a mobile affordance */
    .site-header .primary-nav__icon {
        display: none;
    }

    .site-header .primary-nav {
        gap: 0.4rem;
        flex: 1 1 auto;
        justify-content: stretch;
        /* !important: Bootstrap's .mx-lg-auto sets auto margins with
           !important, which collapse to 0 next to flex-grow */
        margin-left: 0.4rem !important;
        margin-right: 0.4rem !important;
    }

    /* Match the pill gap between phone / Book Appointment too */
    .site-header .header-actions {
        gap: 0.4rem;
    }

    /* Even distribution: every item takes an equal share of the bar,
       regardless of label length */
    .site-header .primary-nav .nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
    }

    .site-header .primary-nav__link {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        text-align: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Keep dropdown panels inside the viewport near the right edge */
    .site-header .nav-item.dropdown:last-child .primary-nav__menu {
        right: 0;
        left: auto;
    }
}

/* --------------------------------------------------------------------------
   13. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .site-header,
    .site-header * {
        transition: none !important;
    }

    .site-header .navbar-collapse.collapsing {
        transition: none !important;
    }
}


/* ---------- Floating award badge ---------- */
.award-float{position:fixed;left:1.25rem;bottom:1.25rem;z-index:1040;display:block;width:150px;transition:transform .3s ease;}
.award-float img{width:100%;height:auto;border:0;filter:drop-shadow(0 8px 20px rgba(0,0,0,.35));}
.award-float:hover{transform:scale(1.08);}
@media (max-width:767px){.award-float{width:100px;}}
/* --------------------------------------------------------------------------
   Keyboard focus visibility (site-wide)
   -------------------------------------------------------------------------- */
main a:focus-visible,
main button:focus-visible,
main input:focus-visible,
main textarea:focus-visible,
main select:focus-visible,
.to-top:focus-visible {
    outline: 3px solid var(--sg-purple);
    outline-offset: 2px;
    border-radius: 4px;
}
.site-footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Touch: kill the white flash on tap (Bootstrap's light hover bg applies
   momentarily on touch; also suppress the OS tap highlight in the header)
   -------------------------------------------------------------------------- */
.site-header a,
.site-header button {
    -webkit-tap-highlight-color: transparent;
}
.site-header .primary-nav__link:hover,
.site-header .primary-nav__link:focus,
.site-header .primary-nav__link:active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.16);
}
.site-header .primary-nav__menu .dropdown-item:hover,
.site-header .primary-nav__menu .dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.14);
}

/* Award badge: visible on load, fades out on scroll (2026-07-20) */
.award-float{opacity:1;transition:opacity .6s ease,transform .3s ease,visibility .6s;}
.award-float.award-hidden{opacity:0;visibility:hidden;pointer-events:none;}


/* Small gutter between hero and following content (2026-07-21) */
.sg-hero + section,.loc-hero + section,.gal-hero + section,.contact-hero + section,.blog-hero + section{margin-top:1.25rem;}


/* --------------------------------------------------------------------------
   Header search button + overlay
   -------------------------------------------------------------------------- */
.site-header .header-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.375rem;
    color: #ffffff;
    font-size: 1.05rem;
    background-color: transparent;
    border: 0;
    border-radius: var(--sugabi-radius-pill);
    transition: background-color var(--sugabi-transition-fast);
    cursor: pointer;
}
.site-header .header-search:hover,
.site-header .header-search:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.22);
}
.search-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    display: none;
    background: rgba(0, 35, 82, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: clamp(4.5rem, 12vh, 8rem) 1rem 1rem;
}
.search-overlay.open { display: block; }
.search-panel {
    max-width: 40rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(0, 35, 82, 0.35);
    overflow: hidden;
    animation: searchPop .18s ease-out;
}
@keyframes searchPop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.search-panel .search-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e8e6f5;
}
.search-panel .search-input-row .bi-search { color: var(--sg-purple); font-size: 1.1rem; }
.search-panel input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 16px; /* >=16px stops iOS Safari auto-zoom on focus */
    color: var(--sg-ink);
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.search-panel input[type="search"]::-webkit-search-decoration,
.search-panel input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-panel .search-close {
    border: 0;
    background: var(--sg-bg-soft);
    color: var(--sg-muted);
    border-radius: 999px;
    min-width: 36px;
    min-height: 36px;
    cursor: pointer;
}
.search-panel .search-close:hover, .search-panel .search-close:focus { color: var(--sg-purple-dark); }
.search-results { max-height: min(24rem, 55vh); overflow-y: auto; }
.search-results a.search-hit {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    color: var(--sg-ink);
}
.search-results a.search-hit img {
    width: 56px;
    height: 42px;
    max-width: 56px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex: 0 0 auto;
}
.search-results a.search-hit .hit-title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.search-results a.search-hit .hit-meta { font-size: 0.78rem; color: var(--sg-muted); }
.search-results a.search-hit:hover,
.search-results a.search-hit.active { background: var(--sg-bg-soft); color: var(--sg-purple-dark); }
.search-results .search-empty { padding: 1.1rem; color: var(--sg-muted); font-size: 0.95rem; }
.search-panel .search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.1rem;
    border-top: 1px solid #e8e6f5;
    background: var(--sg-bg-soft);
    font-size: 0.8rem;
    color: var(--sg-muted);
}
.search-panel .search-footer a { font-weight: 600; }
.search-panel .search-footer kbd {
    background: #fff;
    color: var(--sg-muted);
    border: 1px solid #ddd9f0;
    border-radius: 0.3rem;
    padding: 0.05rem 0.35rem;
    font-size: 0.75rem;
}

.footer-social a{flex:0 0 44px;aspect-ratio:1;}


/* Essential-cookies notice (injected by site.js). */
.cookie-notice{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:1080;pointer-events:none;max-width:44rem;margin-inline:auto;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;padding:.9rem 1.15rem;background:#fff;border:1px solid rgba(61,14,158,.14);border-radius:1rem;box-shadow:0 .75rem 2rem rgba(32,20,60,.18);opacity:0;transform:translateY(.75rem);transition:opacity .25s ease,transform .25s ease;}
.cookie-notice.is-in{opacity:1;transform:none;pointer-events:auto;}
.cookie-notice.is-hiding{opacity:0;transform:translateY(.5rem);pointer-events:none;}
.cookie-notice__text{flex:1 1 18rem;margin:0;font-size:.875rem;line-height:1.55;color:var(--sg-ink);}
.cookie-notice__text a{color:#3D0E9E;text-decoration:underline;}
.cookie-notice__text a:hover{color:#2a0a6f;}
.cookie-notice__btn{flex:0 0 auto;min-height:44px;padding:.5rem 1.4rem;border:0;border-radius:999px;background:#3D0E9E;color:#fff;font-weight:600;font-size:.875rem;cursor:pointer;transition:background .2s ease;}
.cookie-notice__btn:hover{background:#2a0a6f;}
.cookie-notice__btn:focus-visible{outline:2px solid #3D0E9E;outline-offset:2px;}
@media (prefers-reduced-motion:reduce){.cookie-notice{transition:none;}}
@media print{.cookie-notice{display:none;}}

/* cookie notice clears the chat launcher */
@media (min-width:576px){.cookie-notice{left:auto;right:1rem;margin-inline:0;max-width:32rem;}}
@media (max-width:575.98px){.cookie-notice{bottom:5rem;}}


/* AI assistant launcher (widget itself is lazy-loaded from chat.css). */
.sg-chat-launcher{position:fixed;left:1.5rem;bottom:1.5rem;z-index:1070;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:linear-gradient(135deg,#6717E9,#9B55F5);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 .5rem 1.25rem rgba(103,23,233,.35);transition:transform .2s ease,box-shadow .2s ease;}
.sg-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 .75rem 1.6rem rgba(103,23,233,.45);color:#fff;}
.sg-chat-launcher:focus-visible{outline:3px solid var(--sg-purple);outline-offset:2px;}
.sg-chat-launcher i{font-size:1.3rem;}
.sg-chat-launcher span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
@media (min-width:768px){
.sg-chat-launcher{width:auto;padding:0 1.25rem 0 1rem;gap:.55rem;border-radius:999px;font-family:'Poppins',sans-serif;font-size:.9rem;font-weight:600;line-height:1;white-space:nowrap;}
.sg-chat-launcher span{position:static;width:auto;height:auto;overflow:visible;clip:auto;}
}
.sg-chat-launcher[hidden]{display:none;}

/* award badge: keep clear of the content column */
@media (max-width:1199.98px){.award-float{display:none;}}

/* BestWeb badge in the footer (replaces the old floating badge). */
.footer-award-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1.5rem;padding:0 0 1rem;margin-top:0;margin-bottom:0;}
.footer-award-row .footer-award-cell{display:flex;align-items:center;gap:.7rem;justify-self:start;}
.footer-award-caption{margin:0;max-width:13rem;font-size:.72rem;line-height:1.4;opacity:.85;}
@media (max-width:991.98px){.footer-award-row .footer-award-cell{justify-self:center;}.footer-award-caption{text-align:left;}}
.footer-award-row .footer-tagline{justify-self:center;text-align:center;margin:0;font-size:.95rem;font-style:italic;opacity:.9;}
.footer-award-row .footer-social{justify-self:end;}
.footer-award{display:block;width:112px;max-width:40vw;transition:transform .3s ease;}
.footer-award img{display:block;width:100%;height:auto;border:0;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3));}
.footer-award:hover{transform:scale(1.06);}
.footer-award:focus-visible{outline:2px solid #fff;outline-offset:4px;border-radius:.5rem;}

/* keep footer text clear of the fixed launcher */
.site-footer .footer-bottom{margin-top:0;padding-top:.35rem;padding-bottom:5.5rem;}
@media (min-width:992px){.site-footer .footer-bottom{padding-bottom:4.5rem;}}
.footer-award-row .footer-social{margin:0;}
@media (max-width:991.98px){.footer-award-row{grid-template-columns:1fr;justify-items:center;text-align:center;gap:1rem;}.footer-award-row .footer-award,.footer-award-row .footer-social,.footer-award-row .footer-tagline{justify-self:center;}}

/* trim the gap above the footer band */
.site-footer .container.pt-4{padding-bottom:.5rem !important;}
.site-footer .row.g-5{margin-bottom:0;}

/* ===== Sinhala pages (html[lang=si]) ===== */
html[lang="si"] body{font-family:"Abhaya Libre",'Poppins',sans-serif;font-size:1.05rem;line-height:1.7;}
html[lang="si"] h1,html[lang="si"] h2,html[lang="si"] h3,html[lang="si"] h4,html[lang="si"] h5,html[lang="si"] h6{font-family:"Abhaya Libre",'Poppins',sans-serif;font-weight:700;}
/* Small "English" badge on nav links whose target has no Sinhala version yet */
.nav-en-tag{margin-left:.5rem;padding:.05rem .45rem;border-radius:50rem;background:rgba(61,14,158,.08);color:#5a4a8a;font-family:'Poppins',sans-serif;font-size:.62rem;font-weight:600;letter-spacing:.02em;vertical-align:middle;}
/* Header language switch (both languages) — quiet text, active bold, divider dot */
.lang-switch{display:inline-flex;align-items:center;gap:.1rem;margin-right:.4rem;font-family:'Poppins',sans-serif;font-size:.8rem;line-height:1;}
.lang-switch a,.lang-switch strong{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 .55rem;border-radius:var(--sugabi-radius-pill,50rem);text-decoration:none;white-space:nowrap;}
.lang-switch a{color:rgba(255,255,255,.75);font-weight:500;transition:color var(--sugabi-transition-fast),background-color var(--sugabi-transition-fast);}
.lang-switch strong{color:#fff;font-weight:700;position:relative;}
.lang-switch strong::after{content:"";position:absolute;left:.55rem;right:.55rem;bottom:9px;height:2px;border-radius:2px;background:var(--sg-pink,#ff7ab8);}
.lang-switch a+strong::before,.lang-switch strong+a::before,.lang-switch a+a::before{content:"\00b7";margin-right:.1rem;color:rgba(255,255,255,.45);}
.lang-switch a:hover,.lang-switch a:focus{color:#fff;background-color:rgba(255,255,255,.14);}
@media (max-width:575.98px){.lang-switch{font-size:.74rem;}.lang-switch a,.lang-switch strong{padding:0 .45rem;}}
