/* =========================================================================
   Tumuron Engineering — Design system
   ========================================================================= */

:root {
    --brand: #1A3A8E;
    --brand-2: #2E55B8;
    --brand-3: #4F75D8;
    --brand-dark: #0F2560;
    --brand-deeper: #081544;
    --accent: #F5B301;
    --accent-2: #FFCD3C;
    --accent-glow: rgba(245, 179, 1, 0.55);

    --ink: #0E1A33;
    --ink-2: #2A3656;
    --muted: #5A6582;
    --muted-2: #8892AB;
    --line: rgba(15, 37, 96, .08);
    --line-strong: rgba(15, 37, 96, .14);

    --bg: #F6F8FE;
    --bg-2: #EEF2FB;
    --bg-card: #ffffff;

    --shadow-xs: 0 2px 6px rgba(15, 37, 96, .04);
    --shadow-sm: 0 6px 18px rgba(15, 37, 96, .07);
    --shadow-md: 0 18px 40px rgba(15, 37, 96, .12);
    --shadow-lg: 0 30px 80px rgba(15, 37, 96, .22);
    --shadow-glow: 0 25px 60px rgba(245, 179, 1, .35);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --nav-h: 80px;

    --grad-brand: linear-gradient(135deg, #1A3A8E 0%, #2E55B8 50%, #4F75D8 100%);
    --grad-brand-soft: linear-gradient(135deg, #1A3A8E 0%, #0F2560 100%);
    --grad-accent: linear-gradient(135deg, #F5B301 0%, #FFCD3C 100%);
    --grad-mix:   linear-gradient(135deg, #1A3A8E 0%, #4F75D8 50%, #F5B301 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:target { scroll-margin-top: 110px; }

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p { color: var(--ink-2); }
.text-muted { color: var(--muted) !important; }
a { color: var(--brand); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--brand-dark); }

/* Subtle grain texture available as a class */
.has-grain::after {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: .8;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 999px;
    padding: .75rem 1.6rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s ease;
    z-index: -1;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(26, 58, 142, .28);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(26, 58, 142, .42);
}
.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(26, 58, 142, .28);
}
.btn-accent {
    background: var(--grad-accent);
    color: var(--brand-dark);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(245, 179, 1, .35);
}
.btn-accent:hover {
    background: var(--grad-accent);
    color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(245, 179, 1, .55);
}
.btn-light-on-dark {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(10px);
}
.btn-light-on-dark:hover {
    background: rgba(255, 255, 255, .95);
    color: var(--brand-dark);
    border-color: transparent;
    transform: translateY(-2px);
}
.btn-outline-secondary {
    color: var(--ink-2);
    border-color: var(--line-strong);
}
.btn-outline-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* =========================================================================
   Page enter / exit transitions
   ========================================================================= */
.page-shell {
    /* Snappy entrance on every page load — short enough to feel instant */
    animation: page-enter .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
/* Fade the whole document out just before navigating away (quick) */
body.is-leaving .page-shell {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease;
    animation: none;
}
@media (prefers-reduced-motion: reduce) {
    .page-shell,
    body.is-leaving .page-shell { animation: none; transition: none; transform: none; opacity: 1; }
}

/* =========================================================================
   Scroll progress bar
   ========================================================================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #2E55B8 0%, #F5B301 100%);
    z-index: 1001;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(245, 179, 1, .55);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* =========================================================================
   Magnetic CTA buttons — driven by JS via custom props
   ========================================================================= */
.btn.magnetic {
    transition: transform .25s cubic-bezier(.2, .8, .2, 1),
                background .25s ease,
                box-shadow .25s ease;
}
.btn.magnetic.is-active {
    transform: translate(var(--mx, 0px), var(--my, 0px));
    transition: transform .08s ease-out;
}

/* =========================================================================
   Preloader — animated logo with orbiting ring
   ========================================================================= */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 179, 1, .25), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(79, 117, 216, .35), transparent 55%),
        linear-gradient(135deg, #0F2560, #1A3A8E 50%, #081544);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .7s ease, visibility .7s ease;
}
#preloader.is-loaded { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; position: relative; }

/* Outer wrapper holds the logo + ring as concentric layers */
.preloader-logo {
    position: relative;
    width: 200px; height: 200px;
    margin: 0 auto 1.75rem;
    display: flex; align-items: center; justify-content: center;
}
/* The white logo disc, centered & smaller than the ring */
.preloader-logo img {
    position: relative; z-index: 2;
    width: 110px; height: 110px;
    padding: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .08),
        0 0 60px var(--accent-glow);
    animation: pre-glow 2s ease-in-out infinite alternate;
}
/* Soft halo behind everything */
.preloader-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    animation: pre-pulse 2.6s ease-in-out infinite;
    z-index: 0;
}
/* The spinning ring orbits the logo at full container size */
.preloader-ring {
    position: absolute;
    inset: 0;
    width: 200px; height: 200px;
    z-index: 1;
    animation: pre-spin 1.6s linear infinite;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}
.preloader-ring circle {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 95 165;
    transform-origin: center;
}
/* Faint static track behind the spinner so the orbit is visible */
.preloader-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, .12);
    z-index: 0;
}

@keyframes pre-glow {
    from { box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 30px rgba(245,179,1,.4); }
    to   { box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 80px rgba(245,179,1,.85); }
}
@keyframes pre-pulse {
    0%, 100% { transform: scale(1);    opacity: .6; }
    50%      { transform: scale(1.18); opacity: .2; }
}
@keyframes pre-spin { to { transform: rotate(360deg); } }

.preloader-text {
    color: rgba(255, 255, 255, .9);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: .35em;
    text-transform: uppercase;
    font-size: .8rem;
    margin-top: .5rem;
    animation: pre-fade 2s ease-in-out infinite alternate;
}
@keyframes pre-fade { from { opacity: .5; } to { opacity: 1; } }

/* =========================================================================
   Navbar
   ========================================================================= */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 0;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
    background: rgba(15, 37, 96, .35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    /* Promote to its own compositor layer so scrolling content behind it
       doesn't force a full-page repaint each frame. */
    transform: translateZ(0);
    will-change: background;
}
.site-nav.scrolled,
body:not(.page-home) .site-nav {
    /* Near-opaque when scrolled: the GPU barely has to blur through it,
       which removes the scroll flashing. */
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 24px rgba(15, 37, 96, .08);
    padding: .55rem 0;
    border-bottom-color: var(--line);
}

.site-nav .navbar-brand {
    color: #fff;
    gap: .75rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    transition: transform .25s ease;
}
.site-nav .navbar-brand:hover { transform: translateY(-1px); }
.site-nav.scrolled .navbar-brand,
body:not(.page-home) .site-nav .navbar-brand { color: var(--brand-dark); }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: 'Space Grotesk', sans-serif; }
.brand-text strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-text small {
    font-size: .68rem; letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .75;
    font-weight: 500;
    margin-top: 2px;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    font-size: .94rem;
    padding: .55rem 1.1rem !important;
    border-radius: 999px;
    transition: all .25s ease;
    position: relative;
}
.site-nav.scrolled .nav-link,
body:not(.page-home) .site-nav .nav-link { color: var(--ink); }

.site-nav .nav-link:hover { color: var(--accent); }
.site-nav.scrolled .nav-link:hover,
body:not(.page-home) .site-nav .nav-link:hover { color: var(--brand); background: rgba(26, 58, 142, .06); }

/* Animated underline that wipes in on hover and stays under the active item */
.site-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: .3rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.site-nav.scrolled .nav-link::after,
body:not(.page-home) .site-nav .nav-link::after { background: var(--brand); }

.site-nav .nav-link.active { color: var(--accent); }
.site-nav.scrolled .nav-link.active,
body:not(.page-home) .site-nav .nav-link.active {
    color: var(--brand);
    background: rgba(26, 58, 142, .08);
}

.navbar-toggler {
    border: none;
    color: #fff;
    padding: .5rem;
}
.site-nav.scrolled .navbar-toggler,
body:not(.page-home) .navbar-toggler { color: var(--brand-dark); }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991px) {
    .site-nav { background: rgba(255, 255, 255, .95); backdrop-filter: blur(20px); border-bottom-color: var(--line); }
    .site-nav .navbar-brand,
    .site-nav .nav-link { color: var(--brand-dark) !important; }
    .navbar-collapse { padding-top: .5rem; }
}

/* =========================================================================
   Hero — full-bleed aurora mesh + floating bulb
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 0%, #2E55B8 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(245, 179, 1, .35) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 100%, #4F75D8 0%, transparent 60%),
        linear-gradient(135deg, #081544 0%, #0F2560 50%, #1A3A8E 100%);
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 4rem) 0 7rem;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 75%, rgba(79, 117, 216, .4) 0%, transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(245, 179, 1, .25) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .78rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: .55rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.6rem, 8vw, 6.25rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1.75rem;
    letter-spacing: -0.04em;
}

/* Letter-by-letter reveal on the static hero h1 */
.hero h1 .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60%) rotate(4deg);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}
.hero h1.reveal .char {
    opacity: 1;
    transform: translateY(0) rotate(0);
}
.hero h1 .highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}
.hero h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -.05em;
    height: .12em;
    background: var(--grad-accent);
    border-radius: 999px;
    opacity: .35;
    transform: scaleX(.7);
    transform-origin: left;
}

.hero p.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .82);
    max-width: 620px;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.hero .d-flex.gap-2 .btn { padding: .9rem 1.8rem; }

.hero-bulb {
    position: relative;
    width: 100%; max-width: 480px;
    margin: auto;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.hero-bulb-glow {
    position: absolute; inset: -10%;
    background: radial-gradient(circle, var(--accent-glow), transparent 60%);
    border-radius: 50%;
    z-index: 0;
    opacity: .8;
}
.hero-bulb::before, .hero-bulb::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .15);
}
.hero-bulb::before {
    inset: 8%;
    animation: bulb-rotate 22s linear infinite;
}
.hero-bulb::after {
    inset: -5%;
    border-style: solid;
    border-color: rgba(245, 179, 1, .15);
    animation: bulb-rotate 35s linear infinite reverse;
}
.hero-bulb img {
    position: relative; z-index: 2;
    width: 78%;
    background: #fff;
    border-radius: 50%;
    padding: 14%;
    box-shadow:
        0 0 0 1px rgba(245, 179, 1, .25),
        0 25px 70px rgba(245, 179, 1, .45),
        0 50px 100px rgba(15, 37, 96, .5);
    animation: bulb-float 6s ease-in-out infinite;
}
@keyframes bulb-pulse {
    0%, 100% { transform: scale(1);   opacity: .9; }
    50%      { transform: scale(1.1); opacity: .55; }
}
@keyframes bulb-float {
    0%, 100% { transform: translateY(0)   rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(2deg); }
}
@keyframes bulb-rotate { to { transform: rotate(360deg); } }

/* =========================================================================
   Hero slider (carousel) — replaces .hero when slides exist
   ========================================================================= */
.hero-slider {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .slide-item {
    min-height: 100vh;
}
.hero-slider .slide-item {
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 4rem) 0 6rem;
    overflow: hidden;
}
.hero-slider .slide-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Static — no Ken Burns zoom/pan. Calm, no movement on the photo. */
}
.hero-slider .slide-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 21, 68, .35) 0%, rgba(8, 21, 68, .65) 60%, rgba(8, 21, 68, .8) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 179, 1, .25), transparent 55%),
        radial-gradient(ellipse at 15% 75%, rgba(79, 117, 216, .35), transparent 50%);
    z-index: 1;
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}
.hero-slider .slide-content .hero-eyebrow {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px);
}
.hero-slider h1 {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(8, 21, 68, .35);
}
.hero-slider h1 .highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.hero-slider p.lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .9);
    max-width: 660px;
    margin-bottom: 2.25rem;
    line-height: 1.65;
    text-shadow: 0 2px 16px rgba(8, 21, 68, .45);
}

/* Quick fade for the content per slide so it eases in but doesn't keep
   the viewer waiting (shorter durations + tighter stagger). */
.hero-slider .carousel-item .slide-content > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease;
}
.hero-slider .carousel-item.active .slide-content > * {
    opacity: 1;
    transform: translateY(0);
}
.hero-slider .carousel-item.active .slide-content > *:nth-child(1) { transition-delay: .05s; }
.hero-slider .carousel-item.active .slide-content > *:nth-child(2) { transition-delay: .12s; }
.hero-slider .carousel-item.active .slide-content > *:nth-child(3) { transition-delay: .19s; }
.hero-slider .carousel-item.active .slide-content > *:nth-child(4) { transition-delay: .26s; }

/* Indicators (dots) — clearly readable + clickable */
.hero-slider .carousel-indicators {
    bottom: 4.5rem;
    margin-bottom: 0;
    gap: .6rem;
    z-index: 5;
}
.hero-slider .carousel-indicators [data-bs-target] {
    width: 36px;
    height: 6px;
    border: 1.5px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    opacity: 1;
    cursor: pointer;
    transition: background .35s ease, width .35s ease, border-color .35s ease, transform .35s ease;
}
.hero-slider .carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, .55);
    border-color: var(--accent);
    transform: translateY(-1px);
}
.hero-slider .carousel-indicators .active {
    background: var(--accent);
    border-color: var(--accent);
    width: 62px;
    box-shadow: 0 0 14px var(--accent-glow);
    cursor: default;
}
/* Bigger invisible hit area so they're easy to click/tap */
.hero-slider .carousel-indicators [data-bs-target]::before {
    content: '';
    position: absolute;
    inset: -12px -4px;
}

/* Prev/Next controls */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 6rem;
    opacity: 1;
    z-index: 4;
}
.hero-slider .carousel-control-prev .ctrl,
.hero-slider .carousel-control-next .ctrl {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, .45);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: all .3s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
}
.hero-slider .carousel-control-prev:hover .ctrl,
.hero-slider .carousel-control-next:hover .ctrl {
    background: var(--accent);
    color: var(--brand-dark);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(245, 179, 1, .4);
}
.hero-slider .carousel-control-prev .carousel-control-prev-icon,
.hero-slider .carousel-control-next .carousel-control-next-icon { display: none; }

/* Hide controls on small screens — indicators + swipe is enough */
@media (max-width: 768px) {
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next { display: none; }
    .hero-slider .slide-item { min-height: 88vh; padding: calc(var(--nav-h) + 2rem) 0 5rem; }
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .slide-item { min-height: 88vh; }
    .hero-slider .carousel-indicators { bottom: 3rem; }
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .55);
    font-size: .75rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    text-align: center;
    z-index: 3;
    animation: scroll-bob 2s ease-in-out infinite;
}
.hero-scroll i { display: block; font-size: 1.2rem; margin-top: .35rem; }
@keyframes scroll-bob {
    0%, 100% { transform: translate(-50%, 0);    opacity: .5; }
    50%      { transform: translate(-50%, 8px);  opacity: 1; }
}

/* =========================================================================
   Sections
   ========================================================================= */
section { padding: 6rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 4rem 0; } }

/* Skip rendering work for off-screen sections until they scroll near.
   `contain-intrinsic-size` reserves space so the scrollbar doesn't jump.
   The hero/first section is excluded so above-the-fold paints immediately. */
section.defer-render {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

.section-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: rgba(26, 58, 142, .08);
}
.section-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}
.section-title {
    font-size: clamp(1.9rem, 4vw, 2.85rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}
.section-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 720px;
    line-height: 1.65;
}

.section-bg-soft {
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
    position: relative;
}

/* =========================================================================
   Service cards — glassy with animated gradient border
   ========================================================================= */
.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    height: 100%;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
    isolation: isolate;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--grad-mix);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
    pointer-events: none;
}
.service-card::after {
    content: '';
    position: absolute;
    top: -40%; right: -40%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(245, 179, 1, .15), transparent 65%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--grad-brand);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 28px rgba(26, 58, 142, .35);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.05);
    background: var(--grad-mix);
}
.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: .65rem;
    letter-spacing: -0.02em;
}
.service-card p {
    color: var(--muted);
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
}

/* =========================================================================
   Bento grid services — asymmetric mosaic
   ========================================================================= */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 1.25rem;
}
.bento-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    min-height: 240px;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.bento-tile:hover { transform: translateY(-6px); color: #fff; }

.bento-tile .bento-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
    z-index: 0;
    filter: saturate(.95);
}
.bento-tile:hover .bento-bg { transform: scale(1.12); filter: saturate(1.1); }

.bento-tile .bento-veil {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(8, 21, 68, .25) 0%, rgba(8, 21, 68, .85) 100%);
    z-index: 1;
    transition: background .4s ease;
}
.bento-tile:hover .bento-veil {
    background: linear-gradient(160deg, rgba(8, 21, 68, .1) 0%, rgba(8, 21, 68, .92) 100%);
}

.bento-tile .bento-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.bento-tile .bento-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .8rem;
    letter-spacing: .25em;
    color: var(--accent);
    opacity: .9;
    margin-bottom: .35rem;
}
.bento-tile h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    margin: 0 0 .35rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.bento-tile p {
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
    line-height: 1.5;
    margin: 0;
    max-width: 38ch;
}
.bento-tile .bento-arrow {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    z-index: 2;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .22);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    transition: all .35s cubic-bezier(.2, .8, .2, 1);
}
.bento-tile:hover .bento-arrow {
    background: var(--accent);
    color: var(--brand-dark);
    border-color: transparent;
    transform: rotate(-45deg) scale(1.08);
    box-shadow: 0 10px 28px rgba(245, 179, 1, .45);
}
.bento-tile .bento-icon {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    z-index: 2;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, .8);
    opacity: .65;
    transition: all .35s ease;
}
.bento-tile:hover .bento-icon { opacity: 1; color: var(--accent); transform: scale(1.1); }

/* Grid placement */
.bento-tile.tile-1 { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 380px; }
.bento-tile.tile-2 { grid-column: 3 / 4; grid-row: 1 / 2; }
.bento-tile.tile-3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.bento-tile.tile-4 { grid-column: 3 / 5; grid-row: 2 / 3; }

/* Brand gradient backgrounds when no bg image set */
.bento-tile.tile-1 .bento-bg {
    background-image:
        radial-gradient(ellipse at 75% 20%, rgba(245, 179, 1, .35), transparent 55%),
        linear-gradient(135deg, #1A3A8E 0%, #0F2560 100%);
}
.bento-tile.tile-2 .bento-bg {
    background-image:
        radial-gradient(circle at 30% 30%, rgba(245, 179, 1, .35), transparent 60%),
        linear-gradient(160deg, #2E55B8 0%, #081544 100%);
}
.bento-tile.tile-3 .bento-bg {
    background-image:
        radial-gradient(circle at 60% 70%, rgba(245, 179, 1, .25), transparent 55%),
        linear-gradient(135deg, #0F2560 0%, #4F75D8 100%);
}
.bento-tile.tile-4 .bento-bg {
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(245, 179, 1, .25), transparent 50%),
        linear-gradient(135deg, #081544 0%, #1A3A8E 60%, #2E55B8 100%);
}

@media (max-width: 991px) {
    .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .bento-tile.tile-1 { grid-column: 1 / 3; grid-row: auto; min-height: 320px; }
    .bento-tile.tile-2,
    .bento-tile.tile-3 { grid-column: auto; grid-row: auto; min-height: 240px; }
    .bento-tile.tile-4 { grid-column: 1 / 3; grid-row: auto; min-height: 220px; }
}
@media (max-width: 575px) {
    .bento { grid-template-columns: 1fr; }
    .bento-tile { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 220px; }
}

/* =========================================================================
   Marquee — auto-scrolling editorial strip
   ========================================================================= */
.marquee {
    overflow: hidden;
    background: var(--brand-deeper);
    padding: 2.25rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 12vw;
    z-index: 2;
    pointer-events: none;
}
.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--brand-deeper), transparent);
}
.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--brand-deeper), transparent);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: marquee-scroll 32s linear infinite;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
.marquee-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(245, 179, 1, .8);
    text-stroke: 1.5px rgba(245, 179, 1, .8);
    line-height: 1;
    transition: color .3s ease;
}
.marquee-item.solid {
    color: rgba(255, 255, 255, .95);
    -webkit-text-stroke: 0;
    text-stroke: 0;
}
.marquee-dot {
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}

/* =========================================================================
   About preview / image — magazine-style layered photo
   ========================================================================= */
.about-image-wrap {
    position: relative;
    isolation: isolate;
    overflow: visible;
    perspective: 1200px;
    padding: 1rem 1rem 1rem; /* tighter — medallion now overlaps the photo */
}
.about-image-wrap img {
    /* Soft rounded corners — calm and static; subtle, user-triggered hover only */
    border-radius: 24px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow:
        0 12px 30px rgba(15, 37, 96, .12),
        0 30px 70px rgba(15, 37, 96, .16);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1),
                box-shadow .5s ease;
}
.about-image-wrap:hover img {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px rgba(15, 37, 96, .16),
        0 40px 90px rgba(15, 37, 96, .22);
}

/* ---- Balanced row: every feature image keeps the SAME fixed 4:3 shape on
   every page; only the text is vertically centred so it sits level with
   the photo. The image itself never stretches/distorts. ---- */
@media (min-width: 992px) {
    .about-balance > [class*="col-"] { display: flex; }
    .about-balance .about-image-wrap {
        width: 100%;
        margin: auto 0;              /* keep the fixed-ratio photo centred in its column */
    }
    .about-balance-text {
        flex-direction: column;
        justify-content: center;     /* vertically centre the copy next to the photo */
    }
    /* Services: the detail card may be taller than the photo — let the photo
       stay its natural 4:3 size, centred, instead of stretching. */
    .about-balance.service-row .about-image-wrap { align-self: center; }
}

/* Static decorative orbs behind the photo — kept inside the photo's footprint */
.about-image-wrap::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 179, 1, .3) 0%, rgba(245, 179, 1, 0) 65%);
    top: -20px;
    right: -10px;
    z-index: 0;
    filter: blur(8px);
    pointer-events: none;
}
.about-image-wrap::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 58, 142, .18) 0%, rgba(26, 58, 142, 0) 70%);
    bottom: -20px;
    left: -10px;
    z-index: 0;
    filter: blur(10px);
    pointer-events: none;
}

/* Floating logo medallion — inside the photo, bottom-right corner */
.about-image-wrap .about-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1) 0%, rgba(246, 248, 254, 1) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 14px 32px rgba(15, 37, 96, .22),
        0 0 0 5px rgba(255, 255, 255, .85),
        0 0 0 10px rgba(245, 179, 1, .20);
}
.about-image-wrap .about-badge img {
    width: 78%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    background: transparent;
    display: block;
}


@media (max-width: 768px) {
    .about-image-wrap { padding: 1rem; }
    .about-image-wrap img { border-radius: 20px; }
    .about-image-wrap .about-badge {
        width: 76px; height: 76px; right: 16px; bottom: 16px;
    }
    .about-image-wrap::before, .about-image-wrap::after { display: none; }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.25rem;
}
/* Full-width 4-across row variant, used under the about-preview */
.about-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}
@media (max-width: 767px) {
    .about-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .about-stats-row { grid-template-columns: 1fr; }
}
.about-stats .stat {
    position: relative;
    padding: 1.5rem 1.4rem 1.4rem;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, #ffffff 0%, #F6F8FE 100%);
    border: 1px solid var(--line);
    isolation: isolate;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1),
                box-shadow .35s ease,
                border-color .35s ease;
}
.about-stats .stat::before {
    /* Soft accent bloom that reveals on hover */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 110% -10%, rgba(245, 179, 1, .28), transparent 55%),
        radial-gradient(circle at -10% 110%, rgba(26, 58, 142, .18), transparent 50%);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: -1;
}
.about-stats .stat::after {
    /* Gold underline accent that draws in on hover */
    content: '';
    position: absolute;
    left: 1.4rem; right: 1.4rem;
    bottom: 0;
    height: 3px;
    background: var(--grad-accent);
    border-radius: 999px;
    transform: scaleX(.15);
    transform-origin: left;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.about-stats .stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 179, 1, .35);
}
.about-stats .stat:hover::before { opacity: 1; }
.about-stats .stat:hover::after  { transform: scaleX(1); }

.about-stats .stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--grad-brand);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(26, 58, 142, .25);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1),
                background .4s ease,
                box-shadow .4s ease,
                color .4s ease;
}
.about-stats .stat:hover .stat-icon {
    background: var(--grad-accent);
    color: var(--brand-dark);
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 26px rgba(245, 179, 1, .45);
}

.about-stats .stat strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0F2560 0%, #2E55B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.about-stats .stat span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 500;
    margin-top: .3rem;
    display: block;
    letter-spacing: .02em;
}

/* =========================================================================
   Gallery cards
   ========================================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: var(--brand-dark);
    transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.gallery-card img,
.gallery-card video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
    display: block;
}
.gallery-card:hover img,
.gallery-card:hover video { transform: scale(1.1); }

/* Pre-hydration: gradient placeholder so lazy video cards aren't blank */
.gallery-card video.lazy-video:not(.is-ready),
.photo-tile video.lazy-video:not(.is-ready) {
    background:
        radial-gradient(circle at 50% 50%, rgba(245, 179, 1, .25), transparent 65%),
        linear-gradient(135deg, #1A3A8E 0%, #0F2560 100%);
}
.gallery-card video.lazy-video.is-ready,
.photo-tile video.lazy-video.is-ready {
    animation: video-fade-in .35s ease-out both;
}
@keyframes video-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Play badge over video cards */
.gallery-card.is-video .play-badge,
.photo-tile .thumb.is-video .play-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #1A3A8E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s ease, color .35s ease;
    pointer-events: none;
}
.gallery-card.is-video:hover .play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: #F5B301;
    color: #0F2560;
}
.photo-tile .thumb.is-video {
    position: relative;
}
.photo-tile .thumb.is-video .play-badge {
    width: 48px; height: 48px;
    font-size: 1.3rem;
}
.photo-tile .thumb.is-video .media-badge {
    position: absolute;
    top: .5rem; left: .5rem;
    z-index: 2;
    background: rgba(15, 37, 96, .85);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.gallery-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8, 21, 68, .95) 0%, rgba(8, 21, 68, .35) 50%, transparent 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}
.gallery-card:hover .overlay { opacity: 1; transform: translateY(0); }
.gallery-card .overlay strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    margin-top: .25rem;
}
.gallery-card .overlay small {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .7rem;
    font-weight: 600;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at center, rgba(26, 58, 142, .03), transparent 70%);
}
.gallery-empty i { color: var(--brand); }

/* =========================================================================
   Filter pills
   ========================================================================= */
.filter-pills {
    display: flex; flex-wrap: wrap; gap: .5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.filter-pills button {
    background: transparent;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    padding: .5rem 1.3rem;
    font-weight: 500;
    font-size: .9rem;
    color: var(--ink-2);
    transition: all .25s ease;
    font-family: inherit;
}
.filter-pills button:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}
.filter-pills button.active {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(26, 58, 142, .28);
}

/* =========================================================================
   Stats band
   ========================================================================= */
.stats-band {
    background:
        radial-gradient(circle at 20% 80%, rgba(245, 179, 1, .25), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 117, 216, .35), transparent 50%),
        linear-gradient(135deg, var(--brand-deeper), var(--brand) 70%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.stats-band > .container { position: relative; z-index: 1; }
.stats-band .stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stats-band .stat-label {
    display: block;
    margin-top: .65rem;
    opacity: .85;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .03em;
}

/* =========================================================================
   CTA strip
   ========================================================================= */
.cta-strip {
    background:
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .35), transparent 50%),
        var(--grad-accent);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    color: var(--brand-dark);
    box-shadow: 0 30px 80px rgba(245, 179, 1, .25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.cta-strip::before {
    content: '';
    position: absolute;
    top: -60%; right: -20%;
    width: 400px; height: 400px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    z-index: -1;
}
.cta-strip::after {
    content: '';
    position: absolute;
    bottom: -50%; left: -15%;
    width: 320px; height: 320px;
    background: rgba(15, 37, 96, .08);
    border-radius: 50%;
    z-index: -1;
}
.cta-strip h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: .65rem;
    letter-spacing: -0.02em;
}
.cta-strip p { color: rgba(15, 37, 96, .8); font-size: 1.05rem; }

/* =========================================================================
   Page hero (subpages)
   ========================================================================= */
.page-hero {
    background:
        radial-gradient(ellipse at 30% 30%, rgba(245, 179, 1, .25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(79, 117, 216, .35) 0%, transparent 50%),
        linear-gradient(135deg, var(--brand-deeper), var(--brand-dark) 50%, var(--brand) 100%);
    color: #fff;
    padding: calc(var(--nav-h) + 4rem) 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
.page-hero p {
    color: rgba(255, 255, 255, .85);
    font-size: 1.15rem;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================================================
   Service detail blocks
   ========================================================================= */
.service-detail {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.service-detail::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 5px;
    background: var(--grad-brand);
}
.service-detail.alt::before {
    left: auto; right: 0;
    background: var(--grad-accent);
}
.service-detail h2 {
    display: flex; align-items: center; gap: .9rem;
    font-size: 1.6rem;
    margin-bottom: .85rem;
}
.service-detail h2 i {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--grad-brand);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 26px rgba(26, 58, 142, .3);
    flex-shrink: 0;
}
.service-detail.alt h2 i { background: var(--grad-accent); color: var(--brand-dark); box-shadow: 0 10px 26px rgba(245, 179, 1, .3); }
.service-detail .lead { font-size: 1.1rem; color: var(--ink-2); }
.service-detail ul.features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.service-detail ul.features li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: .65rem;
    color: var(--ink-2);
    line-height: 1.55;
}
.service-detail ul.features li::before {
    content: '\F633';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0; top: 0;
    width: 24px; height: 24px;
    background: var(--grad-accent);
    color: var(--brand-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: .8rem;
    font-weight: 700;
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--line);
}
.contact-card h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info-list li {
    display: flex; gap: 1.1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--grad-brand);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(26, 58, 142, .25);
}
.contact-info-list strong {
    display: block;
    color: var(--brand-dark);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-info-list span,
.contact-info-list a {
    color: var(--muted);
    font-size: .95rem;
    word-break: break-word;
}
.contact-info-list a:hover { color: var(--brand); }

.form-control, .form-select {
    border-radius: 12px;
    padding: .85rem 1.1rem;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    /* Only animate border + focus ring — no transform (was causing repaint jitter on focus) */
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .25rem rgba(26, 58, 142, .12);
    outline: none;   /* the box-shadow IS our focus ring */
}

/* Kill the Chrome/Safari autofill yellow flash that makes the cursor seem
   to "blink" the page every time you focus an autofilled credential field.
   Hardened: also kills the animation the Blink engine applies when the
   password-manager dropdown attaches, and pins caret + text colour. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
            box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #0E1A33 !important;
                 color: #0E1A33 !important;
    caret-color: #1A3A8E !important;
    background-image: none !important;
    background-color: #fff !important;
    transition: background-color 9999999s ease 0s,
                color            9999999s ease 0s,
                box-shadow       9999999s ease 0s !important;
    animation: none !important;
    -webkit-animation: none !important;
}

/* Lock caret + selection colours universally for form fields so the cursor
   itself never inherits any animated color from a parent rule. */
.form-control, .form-select, input, textarea {
    caret-color: #1A3A8E;
}
.form-control::selection, .form-select::selection,
input::selection, textarea::selection {
    background: rgba(26, 58, 142, .18);
    color: #0E1A33;
}
.form-label {
    font-weight: 500;
    color: var(--brand-dark);
    font-size: .88rem;
    margin-bottom: .35rem;
}

#map, .map-frame {
    width: 100%;
    height: 460px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-2);
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-offline {
    width: 100%; height: 100%;
    min-height: 280px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    gap: .35rem;
    padding: 2rem;
    background:
        radial-gradient(circle at 30% 30%, rgba(245, 179, 1, .12), transparent 50%),
        linear-gradient(135deg, var(--bg-2), var(--bg));
    color: var(--ink-2);
}
.map-offline i {
    font-size: 2.2rem;
    color: var(--brand);
    margin-bottom: .35rem;
}
.map-offline strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--brand-dark);
}
.map-offline span { color: var(--muted); font-size: .9rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    background:
        radial-gradient(circle at 10% 30%, rgba(79, 117, 216, .15), transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(245, 179, 1, .08), transparent 45%),
        linear-gradient(135deg, var(--brand-deeper), var(--brand-dark));
    color: #fff;
    padding: 5rem 0 1.75rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 179, 1, .5), transparent);
}

.footer-brand {
    display: flex;
    gap: .85rem;
    align-items: center;
    color: #fff;
}
.footer-brand img {
    width: 60px; height: 60px;
    padding: 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.footer-brand strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.footer-brand span {
    display: block;
    opacity: .7;
    font-size: .8rem;
    font-style: italic;
    margin-top: 2px;
}

.site-footer h6 {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: .6rem;
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
    line-height: 1.55;
}
.footer-links a {
    color: rgba(255, 255, 255, .7);
    transition: color .2s, transform .2s;
    display: inline-block;
}
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }
.footer-links i { color: var(--accent); margin-right: .55rem; width: 18px; }

.social-links { display: flex; gap: .65rem; }
.social-links a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: all .25s ease;
    border: 1px solid rgba(255, 255, 255, .08);
}
.social-links a:hover {
    background: var(--grad-accent);
    color: var(--brand-dark);
    transform: translateY(-3px);
    border-color: transparent;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .08);
    margin: 3rem 0 1.5rem;
}

/* =========================================================================
   Floating WhatsApp button
   ========================================================================= */
.whatsapp-fab {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    z-index: 998;
    box-shadow:
        0 12px 28px rgba(37, 211, 102, .35),
        0 0 0 5px rgba(37, 211, 102, .14);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.whatsapp-fab svg {
    width: 32px; height: 32px;
    color: #fff;
}
.whatsapp-fab:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 18px 36px rgba(37, 211, 102, .5),
        0 0 0 7px rgba(37, 211, 102, .2);
}

/* =========================================================================
   Back to top — sits above the WhatsApp button when both are visible
   ========================================================================= */
.back-to-top {
    position: fixed;
    bottom: 102px; right: 32px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all .25s ease;
    z-index: 997;
    box-shadow: var(--shadow-md);
    font-size: 1rem;
}
.back-to-top.visible {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--grad-accent);
    color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 179, 1, .4);
}
@media (max-width: 768px) {
    .whatsapp-fab { width: 56px; height: 56px; bottom: 20px; right: 20px; }
    .whatsapp-fab svg { width: 28px; height: 28px; }
    .back-to-top { bottom: 88px; right: 25px; width: 42px; height: 42px; }
}

/* =========================================================================
   Alerts
   ========================================================================= */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: .9rem 1.2rem;
    font-weight: 500;
}
.alert-success {
    background: linear-gradient(135deg, #e6fbf0, #d1f5e0);
    color: #036a3a;
    border-left: 4px solid #1aa365;
}
.alert-danger {
    background: linear-gradient(135deg, #fdecec, #fbd5d5);
    color: #8a1d1d;
    border-left: 4px solid #d83a3a;
}

/* =========================================================================
   Password field with show/hide eye toggle
   (high-specificity rules so they win over .auth-card / .login-card overrides)
   ========================================================================= */
.password-field {
    position: relative;
    display: block;
}
.password-field > input.form-control {
    padding-right: 3rem;          /* room for the eye */
    width: 100%;
}
.password-field > button.password-toggle {
    /* Reset default <button> chrome */
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    line-height: 1;
    cursor: pointer;

    /* Position inside the input on the right */
    position: absolute;
    top: 50%;
    right: .45rem;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5A6582;
    font-size: 1.1rem;
    z-index: 3;
    transition: color .2s ease, background .2s ease, transform .15s ease;
}
.password-field > button.password-toggle:hover,
.password-field > button.password-toggle:focus-visible {
    color: #1A3A8E;
    background: rgba(26, 58, 142, .08);
    outline: none;
}
.password-field > button.password-toggle:active {
    transform: translateY(-50%) scale(.92);
}
.password-field > button.password-toggle .bi {
    display: block;
    line-height: 1;
}

/* =========================================================================
   Auth screens (install + login) — shared modern aesthetic
   ========================================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(245, 179, 1, .25) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(79, 117, 216, .4) 0%, transparent 50%),
        linear-gradient(135deg, #081544 0%, #0F2560 50%, #1A3A8E 100%);
    position: relative;
    /* overflow auto so a tall install form can scroll inside the page */
    overflow-x: hidden;
    overflow-y: auto;
}
.auth-page::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}
.auth-page::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 75%, rgba(79, 117, 216, .3) 0%, transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(245, 179, 1, .2) 0%, transparent 40%);
    /* hero-drift removed for calmer page */
    pointer-events: none;
}

.auth-card {
    position: relative; z-index: 1;
    width: 100%;
    max-width: 480px;
    /* margin auto: vertically centres when the card fits the viewport,
       sits at top with natural scroll when it doesn't */
    margin: auto;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem 2.75rem;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .4),
        0 0 0 1px rgba(255, 255, 255, .1) inset;
    animation: auth-rise .6s cubic-bezier(.2, .8, .2, 1);
}
.auth-card.auth-card-wide { max-width: 600px; }

/* Setup-form section headings */
.setup-section-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1A3A8E;
    margin: 0 0 .35rem;
    letter-spacing: -.01em;
}
.setup-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A3A8E 0%, #2E55B8 100%);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(26, 58, 142, .25);
}

/* =========================================================================
   Working overlay with indeterminate progress bar
   (used for backup downloads + restore)
   ========================================================================= */
.work-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 21, 68, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.work-overlay.show { opacity: 1; visibility: visible; }
.work-overlay-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    transform: translateY(10px);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.work-overlay.show .work-overlay-card { transform: translateY(0); }
.work-overlay-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    margin: 0 auto 1.1rem;
    background: linear-gradient(135deg, #1A3A8E 0%, #2E55B8 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 30px rgba(26, 58, 142, .35);
}
.work-overlay h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F2560;
    margin: 0 0 .35rem;
    letter-spacing: -.01em;
}
.work-overlay p {
    color: #5A6582;
    font-size: .9rem;
    margin: 0 0 1.35rem;
    line-height: 1.5;
}
.work-progress {
    height: 8px;
    background: rgba(26, 58, 142, .12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.work-progress-bar {
    position: absolute;
    top: 0; left: -40%;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #1A3A8E 0%, #2E55B8 50%, #F5B301 100%);
    border-radius: 999px;
    animation: work-slide 1.3s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes work-slide {
    0%   { left: -40%; }
    100% { left: 100%; }
}
.work-progress-bar.is-determinate {
    animation: none;
    left: 0;
    width: 0%;
    transition: width .3s ease-out;
}
.work-hint {
    margin-top: .8rem;
    font-size: .78rem;
    color: #8892AB;
    letter-spacing: .04em;
}

.install-summary {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    background: #F6F8FE;
    border: 1px solid rgba(26, 58, 142, .08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
.install-summary li {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    padding: .35rem 0;
    font-size: .9rem;
    color: #2A3656;
    line-height: 1.45;
}
.install-summary li i {
    color: #1aa365;
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.install-summary strong { color: #0F2560; font-weight: 600; }
.install-summary code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(26, 58, 142, .1);
    font-size: .82em;
    color: #1A3A8E;
}
@keyframes auth-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-card .auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-card .auth-brand .logo-circle {
    width: 96px; height: 96px;
    margin: 0 auto 1rem;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow:
        0 0 0 6px rgba(245, 179, 1, .15),
        0 0 0 12px rgba(245, 179, 1, .08),
        0 20px 50px rgba(15, 37, 96, .25);
}
.auth-card .auth-brand img { width: 70px; }
.auth-card h1 {
    font-size: 1.5rem;
    margin: 0 0 .35rem;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-card .auth-brand small {
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .05em;
}

.auth-card p.text-muted {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card .form-control {
    padding: .95rem 1.15rem;
    font-size: .98rem;
}

.auth-card .btn-primary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}
.auth-card .auth-footer a { color: var(--muted); font-size: .88rem; }
.auth-card .auth-footer a:hover { color: var(--brand); }

/* Backwards-compat aliases (login.php uses .login-page / .login-card) */
.login-page { /* maps to .auth-page */
    min-height: 100vh;
    display: flex; flex-direction: column;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(245, 179, 1, .25) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 80%, rgba(79, 117, 216, .4) 0%, transparent 50%),
        linear-gradient(135deg, #081544 0%, #0F2560 50%, #1A3A8E 100%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
.login-page::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}
.login-page::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 75%, rgba(79, 117, 216, .3) 0%, transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(245, 179, 1, .2) 0%, transparent 40%);
    /* hero-drift removed for calmer page */
    pointer-events: none;
}
.login-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 460px;
    margin: auto;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem 2.75rem;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .4),
        0 0 0 1px rgba(255, 255, 255, .1) inset;
    animation: auth-rise .6s cubic-bezier(.2, .8, .2, 1);
}
.login-card .brand {
    text-align: center;
    margin-bottom: 1.75rem;
}
.login-card .brand img {
    width: 96px;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow:
        0 0 0 6px rgba(245, 179, 1, .15),
        0 0 0 12px rgba(245, 179, 1, .08),
        0 20px 50px rgba(15, 37, 96, .25);
}
.login-card .brand h1 {
    margin-top: 1rem;
    font-size: 1.5rem;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.login-card .brand small { color: var(--muted); }

/* =========================================================================
   Admin shell
   ========================================================================= */
.admin-body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(26, 58, 142, .04), transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(245, 179, 1, .04), transparent 40%);
    background-attachment: fixed;
}
.admin-header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(15, 37, 96, .06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
}
.admin-header .brand {
    display: flex; align-items: center; gap: .75rem;
    color: var(--brand-dark);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}
.admin-header .brand img { width: 40px; }
.admin-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.admin-nav a {
    padding: .55rem 1.1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    font-size: .92rem;
    transition: all .2s ease;
}
.admin-nav a:hover {
    background: var(--bg);
    color: var(--brand);
}
.admin-nav a.active {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(26, 58, 142, .28);
}

.admin-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.85rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.admin-card:hover { box-shadow: var(--shadow-sm); }
.admin-card h2 {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.stat-tile {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--brand);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.stat-tile::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(26, 58, 142, .05), transparent 65%);
    border-radius: 50%;
}
.stat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-tile .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    display: block;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-tile .lbl {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .35rem;
    display: block;
}

/* =========================================================================
   Admin preset chips — clearly clickable
   ========================================================================= */
.preset-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--grad-brand);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem .75rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(26, 58, 142, .25);
}
.preset-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 0 2px 6px rgba(15, 37, 96, .05);
}
.preset-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 58, 142, .15);
}
.preset-chip.is-active {
    background: var(--grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 58, 142, .35);
    transform: translateY(-1px);
}
.preset-chip.is-active:hover { color: #fff; }
.preset-chip.is-active .preset-count {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    box-shadow: none;
}

/* Used (consumed) state — soft greyed-out, still clickable to re-use */
.preset-chip.is-used {
    background: var(--bg);
    color: var(--muted);
    border-color: var(--line);
    box-shadow: none;
}
.preset-chip.is-used:hover {
    background: #fff;
    color: var(--brand);
    border-color: var(--brand);
}
.preset-chip.is-used.is-active {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
}

/* Count badge */
.preset-chip .preset-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    margin-left: .35rem;
    border-radius: 999px;
    background: var(--grad-accent);
    color: var(--brand-dark);
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(245, 179, 1, .35);
}

.preset-chip-clear {
    border-style: dashed;
    color: var(--muted);
}
.preset-chip-clear:hover {
    border-style: solid;
    border-color: #d83a3a;
    color: #d83a3a;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}
.photo-tile {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.photo-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.photo-tile .thumb { aspect-ratio: 4/3; background: #eee; overflow: hidden; }
.photo-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .meta { padding: 1rem; }
.photo-tile .meta strong { display: block; font-size: .9rem; margin-bottom: .25rem; color: var(--brand-dark); }

/* =========================================================================
   Responsive niceties
   ========================================================================= */
@media (max-width: 991px) {
    .hero { min-height: 90vh; padding: calc(var(--nav-h) + 3rem) 0 5rem; }
    .about-image-wrap::before { inset: 20px -20px -20px 20px; }
}
@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .hero { min-height: auto; padding: calc(var(--nav-h) + 2rem) 0 4rem; }
    .about-image-wrap::before { display: none; }
    .about-image-wrap::after  { display: none; }
    .cta-strip { padding: 2.5rem 1.75rem; }
    .service-detail { padding: 1.75rem; }
    .contact-card { padding: 1.75rem; }
    .auth-card, .login-card { padding: 2.25rem 1.75rem; }
    #map { height: 360px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
