/* ==========================================================================
   SRI VENKATA SAI CONSTRUCTIONS — public site design system
   Palette: navy + amber. Fonts: Poppins (headings), Inter (body).
   ========================================================================== */

:root {
    --svs-navy: #2c3941;
    --svs-navy-deep: #1f282e;
    --svs-navy-soft: #44535c;
    --svs-amber: #d5953a;
    --svs-heading: #90611f; /* headings on light backgrounds: deep logo gold, 4.7-5.4:1 contrast (WCAG AA) */
    --svs-heading-on-dark: #d5953a; /* exact logo gold for headings on slate/dark areas (4.6-5.8:1) */
    --svs-amber-dark: #b87a24;
    --svs-amber-soft: #f9eedd;
    --svs-amber-text: #8a5a14; /* amber for text on light backgrounds (WCAG AA 4.5:1 on white, bg and amber-soft) */
    --svs-ink: #1f2a31;
    --svs-muted: #5d686e;
    --svs-bg: #f5f6f8;
    --svs-line: #e3e7ec;
    --svs-white: #fff;
    --svs-success: #17724a;
    --svs-info: #1a5f99;
    --svs-radius: 14px;
    --svs-radius-sm: 10px;
    --svs-shadow: 0 10px 30px rgba(44, 57, 65, .08);
    --svs-shadow-lg: 0 18px 50px rgba(44, 57, 65, .16);
    --svs-font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --svs-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --svs-header-h: 100px;
    --svs-topbar-h: 38px;
    --bs-body-font-family: var(--svs-font-body);
    --bs-body-color: var(--svs-ink);
    --bs-link-color-rgb: 15, 42, 68;
    --bs-link-hover-color-rgb: 148, 98, 0;
    --bs-border-radius: var(--svs-radius-sm);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--svs-header-h) + 12px); }
body.public-site {
    font-family: var(--svs-font-body);
    color: var(--svs-ink);
    background: var(--svs-white);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--svs-font-head);
    font-weight: 600;
    color: var(--svs-heading);
    line-height: 1.25;
    overflow-wrap: break-word;
}
h1, h2, .h1, .h2 { text-wrap: balance; }
a { color: var(--svs-navy); text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--svs-amber-text); }
img { max-width: 100%; }
p { color: inherit; }
.text-muted { color: var(--svs-muted) !important; }
::selection { background: var(--svs-amber); color: var(--svs-navy-deep); }

:focus-visible { outline: 3px solid var(--svs-amber-text); outline-offset: 2px; }
.btn:focus-visible, .site-navbar .nav-link:focus-visible,
.site-navbar .navbar-toggler:focus-visible, .filter-tab:focus-visible {
    outline: 3px solid var(--svs-amber-text); outline-offset: 2px; box-shadow: none;
}
/* Light focus ring on dark surfaces. */
.topbar :focus-visible, .home-hero :focus-visible, .page-hero :focus-visible, .section-dark :focus-visible,
.cta-band :focus-visible, .site-footer :focus-visible, .floating-action:focus-visible, .lightbox-modal :focus-visible {
    outline-color: var(--svs-amber);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: var(--svs-navy);
    box-shadow: 0 0 0 .25rem rgba(213, 149, 58, .4);
}
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--svs-amber); color: var(--svs-navy-deep); font-weight: 600;
    padding: .55rem 1rem; border-radius: 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--svs-navy-deep); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.35rem; letter-spacing: .01em; }
.btn-sm { padding: .4rem .95rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1.02rem; }
.btn i { line-height: 1; }
.btn-brand {
    --bs-btn-color: var(--svs-navy-deep);
    --bs-btn-bg: var(--svs-amber);
    --bs-btn-border-color: var(--svs-amber);
    --bs-btn-hover-color: var(--svs-navy-deep);
    --bs-btn-hover-bg: #e0a75a;
    --bs-btn-hover-border-color: #e0a75a;
    --bs-btn-active-color: var(--svs-navy-deep);
    --bs-btn-active-bg: var(--svs-amber-dark);
    --bs-btn-active-border-color: var(--svs-amber-dark);
    --bs-btn-disabled-bg: var(--svs-amber);
    --bs-btn-disabled-border-color: var(--svs-amber);
    box-shadow: 0 6px 18px rgba(213, 149, 58, .28);
}
.btn-outline-brand {
    --bs-btn-color: var(--svs-navy);
    --bs-btn-border-color: var(--svs-amber);
    --bs-btn-hover-color: var(--svs-navy-deep);
    --bs-btn-hover-bg: var(--svs-amber);
    --bs-btn-hover-border-color: var(--svs-amber);
    --bs-btn-active-color: var(--svs-navy-deep);
    --bs-btn-active-bg: var(--svs-amber-dark);
    --bs-btn-active-border-color: var(--svs-amber-dark);
    border-width: 2px;
}
.section-dark .btn-outline-brand, .home-hero .btn-outline-brand, .cta-band .btn-outline-brand { --bs-btn-color: var(--svs-white); }
.btn-navy {
    --bs-btn-color: var(--svs-white);
    --bs-btn-bg: var(--svs-navy);
    --bs-btn-border-color: var(--svs-navy);
    --bs-btn-hover-color: var(--svs-white);
    --bs-btn-hover-bg: var(--svs-navy-soft);
    --bs-btn-hover-border-color: var(--svs-navy-soft);
    --bs-btn-active-color: var(--svs-white);
    --bs-btn-active-bg: var(--svs-navy-deep);
    --bs-btn-active-border-color: var(--svs-navy-deep);
}
.btn-outline-light { border-width: 2px; }

/* ---------- Layout sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--svs-bg); }
.section-dark { background: var(--svs-navy); color: rgba(255, 255, 255, .86); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--svs-heading); }
.section-dark a:not(.btn) { color: var(--svs-amber); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.text-start { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; margin-bottom: .75rem; }
.section-head p { color: var(--svs-muted); font-size: 1.05rem; margin-bottom: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .72); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head-row .section-head { margin: 0; text-align: left; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--svs-font-head); font-weight: 600; font-size: .78rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--svs-amber-text);
    margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--svs-amber); border-radius: 2px; }
.section-dark .eyebrow, .home-hero .eyebrow, .page-hero .eyebrow { color: var(--svs-amber); }

.lead-text { font-size: 1.08rem; color: var(--svs-muted); }

/* ---------- Cards ---------- */
.card-soft {
    background: var(--svs-white);
    border: 1px solid var(--svs-line);
    border-radius: var(--svs-radius);
    box-shadow: var(--svs-shadow);
    padding: 28px;
}
.card-soft h3 { font-size: 1.2rem; }

/* ---------- Top bar ---------- */
/* The whole header is sticky; on md+ it is pulled up by the topbar height so only the navbar stays visible. */
.site-header { position: sticky; top: 0; z-index: 1030; }
@media (min-width: 768px) { .site-header.has-topbar { top: calc(-1 * var(--svs-topbar-h)); } }
.topbar {
    background: var(--svs-navy-deep);
    color: rgba(255, 255, 255, .78);
    font-size: .84rem;
    height: var(--svs-topbar-h);
    display: flex; align-items: center; overflow: hidden;
}
.topbar > .container { min-width: 0; }
.topbar-info { min-width: 0; overflow: hidden; flex-wrap: nowrap !important; white-space: nowrap; }
.topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.topbar a:hover { color: var(--svs-amber); }
.topbar-info li { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-info i { color: var(--svs-amber); margin-right: .35rem; }
.topbar-social a {
    width: 28px; height: 28px; display: inline-grid; place-items: center;
    border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.topbar-social a:hover { background: var(--svs-amber); color: var(--svs-navy-deep); }

/* ---------- Navbar ---------- */
.site-navbar {
    position: relative;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--svs-line);
    padding: 5px 0;
    transition: padding .25s ease, box-shadow .25s ease;
}
.site-navbar.is-scrolled { padding: 5px 0; box-shadow: 0 8px 24px rgba(44, 57, 65, .1); }
.site-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; margin-right: 1rem; padding: 0; }
.site-logo { width: auto; height: 94px; max-width: 150px; object-fit: contain; flex-shrink: 0; transition: width .25s, height .25s; }
.site-navbar.is-scrolled .site-logo { height: 77px; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.site-brand-text strong {
    font-family: var(--svs-font-head); font-weight: 700; color: var(--svs-navy);
    font-size: 1.02rem; letter-spacing: .01em; white-space: normal;
}
.site-brand-text small { color: var(--svs-muted); font-size: .76rem; letter-spacing: .02em; }
.site-navbar .navbar-toggler {
    border: 1px solid var(--svs-line); border-radius: 10px; padding: .35rem .6rem;
    font-size: 1.5rem; color: var(--svs-navy); line-height: 1;
}
.site-navbar .navbar-toggler:focus { box-shadow: none; }
.site-navbar .nav-link {
    font-weight: 600; font-size: .94rem; color: var(--svs-ink);
    padding: .55rem .85rem !important; border-radius: 8px; position: relative;
}
.site-navbar .nav-link:hover, .site-navbar .nav-link:focus-visible { color: var(--svs-navy); background: var(--svs-bg); }
.site-navbar .nav-link.active { color: var(--svs-navy); }
.site-navbar .nav-link.active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px;
    height: 3px; border-radius: 3px; background: var(--svs-amber);
}
.nav-count {
    font-size: .75rem; font-weight: 600; min-width: 26px; text-align: center;
    background: var(--svs-bg); color: var(--svs-navy); border-radius: 999px; padding: .1rem .5rem;
}
.nav-cta { margin-left: .75rem; }
.nav-mobile-contact { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 0 .5rem; border-top: 1px solid var(--svs-line); margin-top: .75rem; }
.nav-mobile-contact a { text-decoration: none; font-weight: 500; }

@media (max-width: 991.98px) {
    .site-navbar { background: var(--svs-white); backdrop-filter: none; }
    .site-navbar .navbar-collapse { padding: .75rem 0 .5rem; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
    .site-navbar .nav-link.active::after { left: 0; right: auto; top: 25%; bottom: 25%; width: 3px; height: auto; }
    .nav-cta { margin: .75rem 0 0; }
    .nav-cta .btn { width: 100%; }
}

/* ---------- Mega menus (About, Features, Projects, Gallery, Contact) ----------
   Desktop (>= 992px): a panel 70% of the viewport wide (never narrower than 920px, never wider than the screen
   minus 16px each side), centred under the navbar, absolutely positioned so opening it never shifts the layout.
   Mobile: the same markup becomes an accordion inside the collapsed navbar (.mega-desk hidden, .mega-mob shown).
   Closed = [hidden] (display: none), so the lazy images inside are only downloaded once a panel is opened. */
.mega-toggle { display: inline-flex !important; align-items: center; gap: .35rem; }
.mega-caret { font-size: .7rem; transition: transform .25s ease; -webkit-text-stroke: .4px; }
.nav-mega.is-open .mega-caret { transform: rotate(180deg); }
.nav-mega.is-open > .mega-toggle { color: var(--svs-navy); background: var(--svs-bg); }
.mega-panel[hidden] { display: none !important; }
.mega-panel { color: var(--svs-ink); }
.mega-inner { min-width: 0; }
.mega-body { display: grid; gap: 28px; min-width: 0; }
.mega-grid { display: grid; gap: 28px; min-width: 0; }
.mega-section { min-width: 0; display: flex; flex-direction: column; }
.mega-mob, .mega-mob-only { display: none; }

/* Shared pieces */
.mega-icon {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center;
    background: var(--svs-amber-soft); color: var(--svs-amber-dark); font-size: 1.05rem; transition: background .2s, color .2s;
}
.mega-icon.is-whatsapp { background: #e3f5ec; color: #128c4b; }
.mega-eyebrow {
    font-family: var(--svs-font-head); font-size: .7rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; color: var(--svs-amber);
}
.mega-card-navy {
    position: relative; display: flex; flex-direction: column; gap: .35rem; min-width: 0; overflow: hidden;
    padding: 22px 22px 26px; border-radius: var(--svs-radius); color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(circle at 100% 0, rgba(213, 149, 58, .16) 0, rgba(213, 149, 58, 0) 45%),
        linear-gradient(160deg, var(--svs-navy) 0%, var(--svs-navy-deep) 100%);
    box-shadow: 0 14px 34px rgba(31, 40, 46, .2);
}
.mega-card-navy::after, .mega-spotlight::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--svs-amber) 0 40%, transparent 40%);
}
.mega-card-navy :focus-visible, .mega-spotlight :focus-visible { outline-color: var(--svs-amber); }
.mega-card-title {
    margin: 0; font-family: var(--svs-font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: var(--svs-heading);
}
.mega-card-text { margin: 0; font-size: .86rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.mega-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .85rem; }
.mega-card-actions .btn { box-shadow: none; }
.mega-card-actions.is-stacked { flex-direction: column; }
.mega-card-actions.is-stacked .btn { width: 100%; }
.mega-card-checks { margin: .5rem 0 0; display: grid; gap: .35rem; font-size: .84rem; color: rgba(255, 255, 255, .88); }
.mega-card-checks li { display: flex; gap: .45rem; align-items: baseline; }
.mega-card-checks i { color: var(--svs-amber); flex-shrink: 0; }
.mega-motto {
    margin: .5rem 0 0; font-family: var(--svs-font-head); font-weight: 600; font-style: italic; font-size: .95rem; color: var(--svs-amber);
}
.mega-motto span { display: inline-block; padding-left: .7rem; border-left: 3px solid var(--svs-amber); }

/* Spotlight card (current project) */
.mega-spotlight {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    border-radius: var(--svs-radius); color: rgba(255, 255, 255, .82);
    background: linear-gradient(160deg, var(--svs-navy) 0%, var(--svs-navy-deep) 100%);
    box-shadow: 0 14px 34px rgba(31, 40, 46, .22);
}
.mega-spotlight-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--svs-navy-soft); }
.mega-spotlight-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mega-spotlight:hover .mega-spotlight-media img { transform: scale(1.04); }
.mega-spotlight-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 40, 46, .55), transparent 55%); }
.mega-spotlight-media .status-pill { position: absolute; top: 12px; left: 12px; z-index: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.mega-spotlight-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.mega-spotlight-title {
    font-family: var(--svs-font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.3;
    color: var(--svs-white); text-decoration: none; overflow-wrap: anywhere;
}
.mega-spotlight-title:hover, .mega-spotlight-title:focus-visible { color: var(--svs-amber); }
.mega-spotlight-tagline { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .86); }
.mega-spotlight-loc { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.mega-spotlight-loc i { color: var(--svs-amber); }
.mega-spotlight-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.mega-spotlight-actions .btn { box-shadow: none; }

/* Column heads and project lists */
.mega-lead { display: flex; flex-direction: column; min-width: 0; }
.mega-lead-list { margin-top: .75rem; }
.mega-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; align-content: start; }
.mega-col { min-width: 0; }
.mega-col-head {
    display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; padding-bottom: .6rem;
    border-bottom: 1px solid var(--svs-line); color: var(--svs-navy);
    font-family: var(--svs-font-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.mega-col-head > i { color: var(--svs-amber-dark); font-size: .95rem; }
.mega-col-head a { color: var(--svs-navy); text-decoration: none; }
.mega-col-head a:hover, .mega-col-head a[aria-current] { color: var(--svs-amber-text); }
.mega-col-head .nav-count { margin-left: auto; letter-spacing: 0; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.mega-item {
    display: flex; align-items: center; gap: .75rem; padding: .45rem .5rem; margin: 0 -.5rem;
    border-radius: 10px; text-decoration: none; color: var(--svs-ink); min-width: 0;
    transition: background .18s ease;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--svs-amber-soft); color: var(--svs-navy); }
.mega-item.is-current { background: var(--svs-bg); box-shadow: inset 3px 0 0 var(--svs-amber); }
.mega-thumb {
    flex-shrink: 0; width: 52px; height: 40px; object-fit: cover; border-radius: 7px;
    background: var(--svs-bg); border: 1px solid var(--svs-line);
}
.mega-item-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mega-item-text strong {
    font-weight: 600; font-size: .9rem; color: var(--svs-navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-item-text small { font-size: .78rem; color: var(--svs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-viewall {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; align-self: flex-start;
    font-size: .85rem; font-weight: 600; color: var(--svs-amber-text); text-decoration: none;
}
.mega-viewall:hover { color: var(--svs-navy); text-decoration: underline; }
.mega-viewall i { transition: transform .2s ease; }
.mega-viewall:hover i { transform: translateX(3px); }
.mega-empty { display: flex; align-items: center; gap: .9rem; color: var(--svs-muted); padding: 1rem 0; }
.mega-empty i { font-size: 1.8rem; color: var(--svs-amber); }
.mega-empty p { margin: 0; }

/* About */
.mega-mv { display: grid; gap: 12px; }
.mega-mv li { display: flex; gap: .85rem; padding: 14px 16px; border-radius: 12px; background: var(--svs-bg); }
.mega-mv strong { display: block; color: var(--svs-navy); font-family: var(--svs-font-head); font-weight: 600; font-size: .92rem; margin-bottom: .15rem; }
.mega-mv li > span:last-child { font-size: .84rem; line-height: 1.55; color: var(--svs-muted); }
.mega-stats { display: grid; grid-template-columns: repeat(var(--mega-stat-count, 3), minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.mega-stats a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%;
    padding: .7rem .35rem .6rem; border: 1px solid var(--svs-line); border-radius: 12px; text-decoration: none;
    transition: background .2s, border-color .2s;
}
.mega-stats a:hover, .mega-stats a:focus-visible { background: var(--svs-amber-soft); border-color: var(--svs-amber); }
.mega-stats strong { font-family: var(--svs-font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--svs-navy); }
.mega-stats span { font-size: .72rem; font-weight: 600; color: var(--svs-muted); line-height: 1.25; margin-top: .2rem; }
.mega-trust { display: grid; gap: 0; }
.mega-trust li {
    display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--svs-line);
    font-size: .86rem; font-weight: 600; color: var(--svs-navy);
}
.mega-trust li:last-child { border-bottom: 0; }
.mega-trust i {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
    background: #e3f5ec; color: var(--svs-success); font-size: .85rem;
}

/* Features */
.mega-feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.mega-feature {
    display: flex; align-items: center; gap: .8rem; padding: .55rem .6rem; margin: 0 -.6rem; min-width: 0;
    border-radius: 12px; text-decoration: none; transition: background .18s ease;
}
.mega-feature:hover, .mega-feature:focus-visible { background: var(--svs-amber-soft); }
.mega-feature:hover .mega-icon, .mega-feature:focus-visible .mega-icon { background: var(--svs-navy); color: var(--svs-amber); }
.mega-feature-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mega-feature-text strong { font-weight: 600; font-size: .9rem; color: var(--svs-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-feature-text small { font-size: .8rem; color: var(--svs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gallery */
.mega-cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 1; }
.mega-cat-tiles[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.mega-cat-tiles[data-count="5"], .mega-cat-tiles[data-count="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-cat-tile {
    position: relative; display: block; height: 100%; min-height: 104px; border-radius: 12px; overflow: hidden;
    background: var(--svs-navy-soft); color: var(--svs-white); text-decoration: none; isolation: isolate;
}
.mega-cat-tiles[data-count="1"] .mega-cat-tile { min-height: 220px; }
.mega-cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.mega-cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(31, 40, 46, .82) 0%, rgba(31, 40, 46, .1) 60%); }
.mega-cat-tile:hover img, .mega-cat-tile:focus-visible img { transform: scale(1.05); }
.mega-cat-tile:focus-visible { outline-color: var(--svs-amber); }
.mega-cat-label { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.mega-cat-label strong { font-family: var(--svs-font-head); font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--svs-white); }
.mega-cat-label small {
    flex-shrink: 0; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px;
    background: var(--svs-amber); color: var(--svs-navy-deep);
}
.mega-photo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mega-photo-card {
    display: flex; flex-direction: column; height: 100%; border: 1px solid var(--svs-line); border-radius: 12px; overflow: hidden;
    background: var(--svs-white); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.mega-photo-card img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; background: var(--svs-bg); }
.mega-photo-card > span { display: flex; flex-direction: column; min-width: 0; padding: .5rem .7rem .6rem; line-height: 1.3; }
.mega-photo-card strong { font-size: .85rem; font-weight: 600; color: var(--svs-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-photo-card small { font-size: .75rem; color: var(--svs-muted); }
.mega-photo-card:hover, .mega-photo-card:focus-visible { border-color: var(--svs-amber); box-shadow: 0 10px 22px rgba(44, 57, 65, .1); transform: translateY(-2px); }

/* Contact */
/* Short phone cards on the left, the longer office address and e-mail on the right. */
.mega-contact-cards { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; flex: 1; }
.mega-contact-cards[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.mega-contact-cards[data-count="3"] > :last-child { grid-column: 1 / -1; }
.mega-contact-card {
    display: flex; gap: .85rem; min-width: 0; padding: 14px 16px; border: 1px solid var(--svs-line); border-radius: 12px; background: var(--svs-white);
}
.mega-contact-card > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.mega-contact-label { margin: 0 0 .2rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--svs-muted); }
.mega-contact-value {
    display: flex; flex-direction: column; font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--svs-navy);
    text-decoration: none; padding: .15rem 0; overflow-wrap: anywhere;
}
.mega-contact-value + .mega-contact-value { margin-top: .35rem; }
.mega-contact-value small { font-size: .76rem; font-weight: 500; color: var(--svs-muted); }
.mega-contact-value:hover { color: var(--svs-amber-text); }
.mega-contact-value.is-email { font-size: .86rem; }
.mega-contact-address { margin: 0 0 .3rem; font-style: normal; font-size: .86rem; line-height: 1.5; color: var(--svs-ink); }
.mega-contact-hours { margin: 0; font-size: .8rem; color: var(--svs-muted); }
.mega-contact-hours i { color: var(--svs-amber-dark); }
.mega-contact-card .mega-viewall { margin-top: .35rem; }
.mega-brochure {
    display: flex; align-items: center; gap: .7rem; margin-top: 14px; padding: .65rem .8rem; border-radius: 12px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--svs-white); text-decoration: none;
    transition: background .2s, border-color .2s;
}
.mega-brochure:hover, .mega-brochure:focus-visible { background: rgba(255, 255, 255, .13); border-color: var(--svs-amber); color: var(--svs-white); }
.mega-brochure > i:first-child { font-size: 1.4rem; color: #ff9b8f; }
.mega-brochure > i:last-child { margin-left: auto; color: var(--svs-amber); }
.mega-brochure span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mega-brochure strong { font-size: .84rem; font-weight: 600; }
.mega-brochure small { font-size: .74rem; color: rgba(255, 255, 255, .7); }
.mega-social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 14px; }
.mega-social a {
    width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: var(--svs-white); text-decoration: none; transition: background .2s, color .2s;
}
.mega-social a:hover { background: var(--svs-amber); color: var(--svs-navy-deep); }

/* Mobile-only compact content */
.mega-mob-text { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--svs-muted); }
.mega-mob-list { margin: 0; display: grid; gap: 2px; }
.mega-mob-list a {
    display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px;
    font-weight: 600; font-size: .9rem; color: var(--svs-navy); text-decoration: none;
}
.mega-mob-list a > i { color: var(--svs-amber-dark); }
.mega-mob-list a:hover, .mega-mob-list a:focus-visible { background: var(--svs-white); }
.mega-mob-list .nav-count { margin-left: auto; background: var(--svs-white); }
.mega-mob-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; box-shadow: none; }
.btn-whatsapp {
    --bs-btn-color: var(--svs-white); --bs-btn-bg: #128c4b; --bs-btn-border-color: #128c4b;
    --bs-btn-hover-color: var(--svs-white); --bs-btn-hover-bg: #0f7a41; --bs-btn-hover-border-color: #0f7a41;
    --bs-btn-active-color: var(--svs-white); --bs-btn-active-bg: #0c6636; --bs-btn-active-border-color: #0c6636;
}

/* Bottom bar */
.mega-foot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem;
    margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--svs-line);
}
.mega-note { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; color: var(--svs-muted); }
.mega-note i { color: var(--svs-info); }
.mega-note strong { color: var(--svs-navy); font-weight: 600; }
.mega-foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; margin-left: auto; }
.mega-foot-link {
    display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem;
    color: var(--svs-navy); text-decoration: none;
}
.mega-foot-link > i:first-child { color: var(--svs-amber-dark); }
.mega-foot-link:hover, .mega-foot-link.is-current { color: var(--svs-amber-text); }
.mega-foot-link .bi-arrow-right { transition: transform .2s ease; }
.mega-foot-link:hover .bi-arrow-right { transform: translateX(3px); }

@media (min-width: 992px) {
    .nav-mega { position: static; }
    .mega-mob, .mega-mob-only { display: none !important; }
    .mega-panel {
        --mega-w: clamp(920px, 70vw, calc(100vw - 32px));
        position: absolute; top: 100%; left: 50%; z-index: 1;
        width: var(--mega-w); margin-left: calc(var(--mega-w) / -2);
        background: var(--svs-white); border: 1px solid var(--svs-line); border-top: 0; border-radius: 0 0 16px 16px;
        /* Big spread shadow dims the page under the panel; clip-path keeps it off the navbar above. */
        box-shadow: 0 28px 60px rgba(31, 40, 46, .22), 0 0 0 100vmax rgba(31, 40, 46, .28);
        clip-path: inset(0 -100vmax -100vmax -100vmax);
        max-height: calc(100vh - var(--svs-header-h) - var(--svs-topbar-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
        opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease;
    }
    .mega-panel.is-visible { opacity: 1; transform: none; }
    .mega-panel::before {
        content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
        background: linear-gradient(90deg, var(--svs-amber), var(--svs-amber-dark));
    }
    .mega-panel > .mega-inner { max-width: none; width: 100%; padding: 28px 32px 20px; }

    /* Projects: spotlight (+ the rest of its status group) on the left, status columns on the right.
       A long column (more than 4 projects) is twice as wide and lists its projects in two columns.
       --mega-tracks (set by the partial) = number of columns, counting a long one twice. */
    .mega-body.has-spotlight { grid-template-columns: 272px minmax(0, 1fr); gap: 32px; }
    .mega-spotlight-actions .btn { padding: .4rem .8rem; }
    .mega-cols { grid-template-columns: repeat(var(--mega-tracks, 3), minmax(0, 1fr)); gap: 28px; }
    .mega-col.is-wide { grid-column: span 2; }
    .mega-col.is-wide .mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 4px; }
    .mega-cols .mega-item { padding-top: .5rem; padding-bottom: .5rem; }
    .mega-cols .mega-thumb { width: 60px; height: 46px; }

    .mega-about-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
    .mega-about-grid.no-mv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .mega-features-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
    .mega-gallery-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); gap: 32px; }
    .mega-gallery-grid.no-projects, .mega-gallery-grid.no-categories { grid-template-columns: minmax(0, 1fr); }
    .mega-gallery-grid.no-projects .mega-cat-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .mega-contact-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
    .mega-contact-grid.no-cards { grid-template-columns: minmax(0, 420px); }
}
@media (min-width: 1600px) {
    .mega-panel > .mega-inner { padding: 32px 40px 22px; }
    .mega-body.has-spotlight { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
    .mega-about-grid, .mega-features-grid, .mega-gallery-grid, .mega-contact-grid { gap: 40px; }
    .mega-features-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .mega-contact-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .mega-col.is-wide .mega-list { column-gap: 32px; }
    .mega-feature-list { column-gap: 36px; }
    .mega-photo-cards { gap: 14px; }
}
/* Seven navigation entries share a 960px bar on small laptops: tighten them so nothing wraps. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-navbar .nav-link { padding: .5rem .55rem !important; font-size: .9rem; }
    .site-navbar .nav-link.active::after { left: .55rem; right: .55rem; }
    .mega-toggle { gap: .25rem; }
    .nav-cta { margin-left: .4rem; }
    .nav-cta .btn { padding: .5rem 1rem; font-size: .88rem; }
    .site-brand { margin-right: .5rem; }
    .site-brand-text { max-width: 165px; }
    .site-brand-text strong { font-size: .88rem; line-height: 1.2; }
    .site-brand-text small { display: none; }
    .nav-cta .btn { white-space: nowrap; }
}
@media (max-width: 991.98px) {
    .mega-toggle { display: flex !important; width: 100%; justify-content: space-between; }
    .mega-caret { font-size: .85rem; }
    .mega-panel { padding: .5rem 0 .75rem; }
    .mega-panel .container { padding: 0; max-width: none; }
    .mega-panel .mega-inner { background: var(--svs-bg); border-radius: 12px; padding: 14px; margin-top: .35rem; }
    .mega-desk { display: none !important; }
    .mega-mob { display: block; }
    .mega-mob-only { display: inline-flex; }
    .mega-mob-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mega-mob-actions .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .mega-motto { font-size: .88rem; }
    .mega-body { gap: 18px; }
    .mega-spotlight { flex-direction: row; align-items: stretch; box-shadow: none; }
    .mega-spotlight-media { flex: 0 0 34%; max-width: 180px; aspect-ratio: auto; }
    .mega-spotlight-media img { position: absolute; inset: 0; }
    .mega-spotlight-media .status-pill { top: 8px; left: 8px; font-size: .62rem; padding: .28rem .5rem; }
    .mega-spotlight-body { padding: 12px 14px 16px; flex: 1; }
    .mega-spotlight-title { font-size: 1rem; }
    .mega-spotlight-actions .btn { padding: .35rem .8rem; font-size: .8rem; }
    .mega-cols { gap: 18px; }
    .mega-item { margin: 0; padding: .4rem .5rem; }
    .mega-item:hover, .mega-item:focus-visible { background: var(--svs-white); }
    .mega-thumb { width: 44px; height: 34px; }
    .mega-foot { margin-top: 14px; padding-top: 12px; gap: .6rem 1rem; }
    .mega-foot-links { margin-left: 0; width: 100%; justify-content: flex-start; gap: .55rem 1.25rem; }
    .mega-mob-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
    .mega-mob-label { margin: .75rem 0 .25rem; padding: 0 .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--svs-muted); }
}
@media (max-width: 420px) {
    .mega-spotlight-media { flex-basis: 30%; }
    .mega-spotlight-media .status-pill { display: none; }
    .mega-spotlight-tagline { font-size: .8rem; }
    .mega-foot-links .btn { width: 100%; }
}
@media (max-width: 420px) {
    .site-brand-text strong { font-size: .86rem; }
    .site-brand-text small { display: none; }
    .site-logo { height: 67px; }
}

/* ---------- Home hero ---------- */
.home-hero {
    position: relative; isolation: isolate; color: var(--svs-white);
    min-height: min(88vh, 760px); display: flex; align-items: center;
    padding: 110px 0 140px;
    background: var(--svs-navy-deep) var(--hero-image, none) center / cover no-repeat;
}
.home-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(100deg, rgba(31, 40, 46, .94) 0%, rgba(31, 40, 46, .78) 45%, rgba(31, 40, 46, .35) 100%),
        linear-gradient(0deg, rgba(31, 40, 46, .55) 0%, rgba(31, 40, 46, 0) 40%);
}
.home-hero h1 {
    color: var(--svs-heading); font-weight: 700;
    font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); line-height: 1.12; margin-bottom: 1.25rem;
    max-width: 760px;
}
.home-hero .hero-lead { font-size: clamp(1rem, .95rem + .3vw, 1.18rem); color: rgba(255, 255, 255, .85); max-width: 620px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges i { color: var(--svs-amber); }

.hero-stats-wrap { position: relative; margin-top: -78px; z-index: 5; }
.stat-grid {
    /* 1px gaps over a line-coloured background draw the dividers, whatever the row count. */
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
    background: var(--svs-line); border-radius: var(--svs-radius); box-shadow: var(--svs-shadow-lg);
    border: 1px solid var(--svs-line); overflow: hidden;
}
.stat-item { padding: 26px 18px; text-align: center; position: relative; background: var(--svs-white); min-width: 0; }
.stat-item strong {
    display: block; font-family: var(--svs-font-head); font-weight: 700;
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); color: var(--svs-navy); line-height: 1.1;
    overflow-wrap: break-word;
}
.stat-item span { display: block; color: var(--svs-muted); font-size: .9rem; font-weight: 500; line-height: 1.35; margin-top: .25rem; }
.stat-item i { color: var(--svs-amber-dark); font-size: 1.4rem; display: block; margin-bottom: .35rem; }
a.stat-item { text-decoration: none; transition: background .2s; }
a.stat-item:hover { background: var(--svs-amber-soft); }
.section-dark .stat-grid { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.section-dark .stat-item { background: #1b354d; }
.section-dark a.stat-item:hover { background: #234262; }
.section-dark .stat-item i, .section-dark .stat-item strong { color: var(--svs-amber); }
.section-dark .stat-item span { color: rgba(255, 255, 255, .78); }
/* data-count="N" (set by the page) keeps rows complete at every width. */
@media (min-width: 992px) {
    .stat-grid[data-count="1"], .stat-grid[data-count="2"], .stat-grid[data-count="3"], .stat-grid[data-count="4"] {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    }
}
@media (min-width: 1200px) {
    .stat-grid[data-count="5"], .stat-grid[data-count="6"] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .stat-grid[data-count="5"] .stat-item strong, .stat-grid[data-count="6"] .stat-item strong { font-size: 2rem; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .stat-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
    .stat-grid[data-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat-grid[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .stat-grid[data-count="5"] > .stat-item { grid-column: span 2; }
    .stat-grid[data-count="5"] > .stat-item:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 575.98px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-item { padding: 22px 12px; }
    /* An odd last item takes the full row instead of leaving an empty cell. */
    .stat-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; isolation: isolate; color: var(--svs-white);
    padding: 84px 0 76px;
    background: var(--svs-navy) var(--page-hero-image, none) center / cover no-repeat;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, rgba(31, 40, 46, .95) 0%, rgba(44, 57, 65, .85) 55%, rgba(44, 57, 65, .6) 100%);
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
    background: linear-gradient(90deg, var(--svs-amber) 0 120px, transparent 120px);
}
.page-hero h1 { color: var(--svs-heading); font-weight: 700; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); margin-bottom: .5rem; }
.page-hero-lead { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 700px; margin: 0; }
.page-hero-crumbs { margin-bottom: 1rem; font-size: .88rem; --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); }
.page-hero-crumbs a { color: var(--svs-amber); text-decoration: none; }
.page-hero-crumbs a:hover { text-decoration: underline; color: var(--svs-amber); }
.page-hero-crumbs .breadcrumb-item.active { color: rgba(255, 255, 255, .8); }
.page-hero-crumbs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Status pills ---------- */
.status-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .35rem .75rem; border-radius: 999px; line-height: 1;
    background: var(--svs-white); color: var(--svs-navy);
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-completed { background: #e3f5ec; color: var(--svs-success); }
.status-ongoing { background: var(--svs-amber); color: var(--svs-navy-deep); }
.status-upcoming { background: #e4effa; color: var(--svs-info); }

/* ---------- Project card ---------- */
.project-card {
    height: 100%; display: flex; flex-direction: column;
    background: var(--svs-white); border: 1px solid var(--svs-line); border-radius: var(--svs-radius);
    overflow: hidden; box-shadow: 0 4px 16px rgba(44, 57, 65, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--svs-shadow-lg); }
.project-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--svs-bg); }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-media .status-pill { position: absolute; top: 14px; left: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.project-card-flag {
    position: absolute; top: 14px; right: 14px; font-size: .74rem; font-weight: 600;
    background: rgba(31, 40, 46, .8); color: var(--svs-amber); padding: .3rem .65rem; border-radius: 999px;
}
.project-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.project-card-type { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--svs-amber-text); }
.project-card-title { font-size: 1.22rem; margin: .35rem 0 .4rem; overflow-wrap: anywhere; }
.project-card-title a { color: var(--svs-heading); text-decoration: none; }
.project-card-title a:hover { color: var(--svs-amber-text); }
.project-card-location {
    color: var(--svs-muted); font-size: .92rem; margin-bottom: .9rem;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.project-card-location i { color: var(--svs-amber-dark); }
.project-meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.project-meta li {
    font-size: .8rem; font-weight: 500; color: var(--svs-navy);
    background: var(--svs-bg); border: 1px solid var(--svs-line); border-radius: 8px; padding: .3rem .6rem;
}
.project-meta i { color: var(--svs-amber-dark); }
.project-progress { margin-bottom: 1rem; color: var(--svs-muted); }
.project-progress strong { color: var(--svs-navy); }
.progress-thin { height: 7px; border-radius: 999px; background: var(--svs-line); margin-top: .35rem; overflow: hidden; }
.progress-thin .progress-bar { background: linear-gradient(90deg, var(--svs-amber-dark), var(--svs-amber)); border-radius: 999px; }
.project-card-foot {
    margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--svs-line);
    display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.project-card-date { font-size: .84rem; color: var(--svs-muted); }
.project-card-foot .btn { margin-left: auto; }
.project-card-tagline { margin: -.15rem 0 .45rem; font-size: .9rem; font-weight: 500; color: var(--svs-ink); line-height: 1.4; }
.project-card-brochure {
    display: inline-flex; align-items: center; gap: .3rem; margin-left: auto;
    font-size: .82rem; font-weight: 600; color: var(--svs-navy); text-decoration: none;
    padding: .3rem .6rem; border-radius: 999px; background: var(--svs-amber-soft);
}
.project-card-brochure i { color: #b42318; }
.project-card-brochure:hover { color: var(--svs-navy); background: #ffe7a6; }
.project-card-brochure + .btn { margin-left: 0; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 36px; }
.filter-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .55rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
    border: 1px solid var(--svs-line); background: var(--svs-white); color: var(--svs-ink);
    text-decoration: none; cursor: pointer; transition: all .2s ease;
}
.filter-tab:hover { border-color: var(--svs-amber); color: var(--svs-navy); }
.filter-tab.active { background: var(--svs-navy); color: var(--svs-white); border-color: var(--svs-navy); }
.filter-tab .count {
    font-size: .74rem; min-width: 24px; text-align: center;
    background: var(--svs-bg); color: var(--svs-navy); border-radius: 999px; padding: .08rem .45rem;
}
.filter-tab.active .count { background: var(--svs-amber); color: var(--svs-navy-deep); }

/* ---------- Feature cards ---------- */
.feature-card {
    height: 100%; background: var(--svs-white); border: 1px solid var(--svs-line);
    border-radius: var(--svs-radius); padding: 30px 26px; position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
    background: var(--svs-amber); transition: width .35s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--svs-shadow); border-color: transparent; }
.feature-card:hover::after { width: 100%; }
.feature-icon {
    width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
    background: var(--svs-amber-soft); color: var(--svs-amber-dark); font-size: 1.6rem; margin-bottom: 1.15rem;
    transition: background .25s, color .25s;
}
/* Feature cards: icons are bright (logo gold on slate) and turn dull (muted grey) on hover / keyboard focus. */
.feature-card .feature-icon { background: var(--svs-navy); color: var(--svs-amber); }
.feature-card:hover .feature-icon, .feature-card:focus-within .feature-icon { background: #eef0f1; color: #9aa3a8; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.feature-card p { color: var(--svs-muted); margin: 0; font-size: .95rem; }
.section-dark .feature-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .feature-card p { color: rgba(255, 255, 255, .7); }
.section-dark .feature-icon { background: rgba(213, 149, 58, .14); color: var(--svs-amber); }
.section-dark .feature-card .feature-icon { background: rgba(213, 149, 58, .18); color: var(--svs-amber); }
.section-dark .feature-card:hover .feature-icon, .section-dark .feature-card:focus-within .feature-icon { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .4); }

/* ---------- About / split blocks ---------- */
.split-media { position: relative; border-radius: var(--svs-radius); overflow: hidden; box-shadow: var(--svs-shadow-lg); }
.split-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.2; }
@media (max-width: 991.98px) { .split-media img { aspect-ratio: 16 / 10; } }
.split-media-badge {
    position: absolute; left: 20px; bottom: 20px; background: var(--svs-amber); color: var(--svs-navy-deep);
    padding: 14px 18px; border-radius: 12px; font-family: var(--svs-font-head); font-weight: 600; line-height: 1.3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2); max-width: 70%;
}
.mv-card { height: 100%; }
.mv-card .feature-icon { margin-bottom: 1rem; }
.mv-card p { color: var(--svs-muted); margin: 0; }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
@media (min-width: 576px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 992px) { .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process-step {
    position: relative; padding: 30px 24px 26px; border-radius: var(--svs-radius);
    background: var(--svs-white); border: 1px solid var(--svs-line); counter-increment: step;
}
.process-step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--svs-font-head); font-weight: 700; font-size: 2.4rem; line-height: 1;
    color: var(--svs-amber-text); display: block; margin-bottom: .75rem;
}
.section-dark .process-step::before { color: var(--svs-amber); }
.process-step h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.process-step p { color: var(--svs-muted); font-size: .94rem; margin: 0; }
.section-dark .process-step { background: rgba(0, 0, 0, .14); border-color: rgba(255, 255, 255, .14); } /* darker card keeps the logo-gold step titles above 4.5:1 */
.section-dark .process-step p { color: rgba(255, 255, 255, .72); }

/* ---------- Lists & tables ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
    content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
    color: var(--svs-amber-dark); font-size: 1.1rem; line-height: 1.5;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--svs-line); vertical-align: top; text-align: left; }
.spec-table th { width: 38%; color: var(--svs-navy); font-weight: 600; background: var(--svs-bg); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--svs-line); }
.info-list li:last-child { border-bottom: 0; }
.info-list i {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    background: var(--svs-amber-soft); color: var(--svs-amber-dark); font-size: 1.1rem;
}
.info-list span, .info-list small { display: block; color: var(--svs-muted); font-size: .82rem; }
.info-list strong, .info-list a { color: var(--svs-navy); font-weight: 600; }
.info-list a { text-decoration: none; overflow-wrap: anywhere; }
.info-list a:hover { color: var(--svs-amber-text); text-decoration: underline; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery-item {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: 12px; overflow: hidden; background: var(--svs-bg); aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item::after {
    content: "\F62C"; font-family: "bootstrap-icons"; position: absolute; inset: 0;
    display: grid; place-items: center; font-size: 1.6rem; color: var(--svs-white);
    background: rgba(31, 40, 46, .45); opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
/* Home teaser: fixed columns from data-count so no row is left half empty. */
.gallery-grid[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-grid[data-count] > .gallery-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
    .gallery-grid[data-count] { grid-template-columns: repeat(var(--gallery-cols-md, 2), minmax(0, 1fr)); gap: 16px; }
    .gallery-grid[data-count="3"] > .gallery-item:first-child:nth-last-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; }
}
@media (min-width: 992px) {
    .gallery-grid[data-count] { grid-template-columns: repeat(var(--gallery-cols, 4), minmax(0, 1fr)); }
}
.gallery-item-caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px 12px 10px; text-align: left;
    color: var(--svs-white); font-size: .85rem; font-weight: 500;
    background: linear-gradient(0deg, rgba(31, 40, 46, .85), transparent);
}

.lightbox-modal .modal-content { background: transparent; border: 0; }
.lightbox-modal .modal-body { padding: 0; position: relative; text-align: center; }
.lightbox-modal img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-modal img.is-plan { background: var(--svs-white); padding: 14px; }
.lightbox-caption { color: var(--svs-white); margin-top: .75rem; font-size: .95rem; min-height: 1.4em; }
.lightbox-nav, .lightbox-close {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: rgba(255, 255, 255, .92); color: var(--svs-navy); font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.lightbox-nav:hover, .lightbox-close:hover { background: var(--svs-amber); }
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }
.lightbox-close { top: -12px; right: -8px; transform: none; width: 40px; height: 40px; font-size: 1.1rem; }
.lightbox-modal + .modal-backdrop { --bs-backdrop-opacity: .88; }
@media (max-width: 575.98px) {
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
    .lightbox-close { right: 6px; top: 6px; }
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: 20px; padding: 52px 48px;
    background: linear-gradient(120deg, var(--svs-navy-deep) 0%, var(--svs-navy) 60%, var(--svs-navy-soft) 100%);
    color: rgba(255, 255, 255, .85);
}
.cta-band::before {
    content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
    border: 40px solid rgba(213, 149, 58, .14);
}
.cta-band::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--svs-amber);
}
.cta-band h2 { color: var(--svs-heading); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); margin-bottom: .5rem; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 767.98px) {
    .cta-band { padding: 36px 26px; }
    .cta-band::before { width: 180px; height: 180px; right: -100px; top: -100px; border-width: 28px; }
}

/* ---------- Enquiry form ---------- */
.enquiry-box { padding: 32px; }
.enquiry-head h2 { margin-bottom: .35rem; }
.enquiry-head p { color: var(--svs-muted); margin-bottom: 1.25rem; }
.enquiry-compact { padding: 24px; }
.enquiry-form .form-label { font-weight: 600; font-size: .88rem; color: var(--svs-navy); margin-bottom: .35rem; }
.enquiry-form .form-control, .enquiry-form .form-select {
    border-radius: 10px; border-color: var(--svs-line); padding: .65rem .9rem; background-color: #fbfcfd;
}
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus { background-color: var(--svs-white); }
.enquiry-form .form-check-input:checked { background-color: var(--svs-navy); border-color: var(--svs-navy); }
.enquiry-form .form-control::placeholder { color: #6b7684; }
.enquiry-form .req { color: #b42318; margin-left: .1rem; }
.enquiry-form .form-label .optional { color: var(--svs-muted); font-weight: 500; font-size: .8rem; }
.site-visit-check { padding: .75rem .9rem .75rem 2.4rem; background: var(--svs-amber-soft); border-radius: 10px; }
.form-note { font-size: .8rem; color: var(--svs-muted); margin: .6rem 0 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* After a failed submit only highlight problems: valid fields keep their normal look. */
.enquiry-form.was-validated .form-control:valid { border-color: var(--svs-line); background-image: none; padding-right: .9rem; }
.enquiry-form.was-validated .form-select:valid { border-color: var(--svs-line); --bs-form-select-bg-icon: none; padding-right: 2.25rem; }
.enquiry-form.was-validated .form-control:valid:focus, .enquiry-form.was-validated .form-select:valid:focus { border-color: var(--svs-navy); box-shadow: 0 0 0 .25rem rgba(213, 149, 58, .4); }
.enquiry-form.was-validated .form-check-input:valid ~ .form-check-label { color: inherit; }
.enquiry-form.was-validated .form-check-input:valid { border-color: var(--bs-border-color); }
.enquiry-form.was-validated .form-check-input:valid:checked { background-color: var(--svs-navy); border-color: var(--svs-navy); }
.enquiry-alert { display: flex; gap: .75rem; align-items: flex-start; border-radius: 12px; }
.enquiry-alert > i { font-size: 1.35rem; line-height: 1.2; flex-shrink: 0; }
.enquiry-alert strong { display: block; }
.enquiry-alert:focus { outline: none; }
.enquiry-alert.alert-success { background: #e3f5ec; border-color: #a8dcc1; color: #0f5132; }
.enquiry-alert.alert-success > i { color: var(--svs-success); }
.enquiry-section-aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
@media (min-width: 992px) {
    .enquiry-section-aside { position: sticky; top: calc(var(--svs-header-h) + 24px); }
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center; padding: 56px 24px; border: 2px dashed var(--svs-line);
    border-radius: var(--svs-radius); background: var(--svs-white); color: var(--svs-muted);
}
.empty-state > i { font-size: 2.6rem; color: var(--svs-amber); display: block; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--svs-navy-deep); color: rgba(255, 255, 255, .72);
    padding: 72px 0 0; font-size: .94rem; position: relative;
}
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--svs-amber), var(--svs-amber-dark));
}
.footer-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-bottom: 1.1rem; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; background: var(--svs-white); border-radius: 12px; padding: 4px; }
.footer-logo-light { width: auto; max-width: 80px; background: none; border-radius: 0; padding: 0; }
.footer-brand strong { display: block; font-family: var(--svs-font-head); color: var(--svs-white); font-size: 1.05rem; line-height: 1.2; }
.footer-brand small { color: var(--svs-amber); font-size: .8rem; }
.footer-text { line-height: 1.7; margin-bottom: 1.25rem; }
.footer-motto {
    margin: -.25rem 0 .9rem; font-family: var(--svs-font-head); font-weight: 600; font-style: italic;
    font-size: 1.02rem; letter-spacing: .01em; color: var(--svs-amber);
}
.footer-motto span { display: inline-block; padding-left: .75rem; border-left: 3px solid var(--svs-amber); }
.footer-heading {
    font-family: var(--svs-font-head); font-size: 1rem; font-weight: 600; color: var(--svs-heading);
    margin-bottom: 1.1rem; padding-bottom: .6rem; position: relative;
}
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--svs-amber); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--svs-amber); }
.footer-count { font-size: .72rem; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: .05rem .45rem; margin-left: .25rem; white-space: nowrap; }
.footer-contact { margin-bottom: 0; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--svs-amber); font-size: 1.05rem; margin-top: .1rem; }
.footer-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .5); margin-bottom: .5rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: var(--svs-white); text-decoration: none; transition: all .2s;
}
.footer-social a:hover { background: var(--svs-amber); color: var(--svs-navy-deep); transform: translateY(-2px); }
.footer-bottom {
    margin-top: 52px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .86rem;
}
.footer-bottom a { color: var(--svs-amber); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
/* Leave room for the floating call/WhatsApp buttons on small screens. */
@media (max-width: 767.98px) { .site-footer.has-floating .footer-bottom { padding-bottom: 84px; } }

/* ---------- Floating actions ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; }
.floating-action {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    color: var(--svs-white); font-size: 1.4rem; text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.floating-action:hover, .floating-action:focus-visible { transform: scale(1.08); color: var(--svs-white); }
.floating-whatsapp { background: #25d366; }
.floating-call { background: var(--svs-navy); border: 2px solid var(--svs-amber); }

/* ---------- Utilities ---------- */
.prose { color: var(--svs-ink); }
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.pagination { --bs-pagination-color: var(--svs-navy); --bs-pagination-active-bg: var(--svs-navy); --bs-pagination-active-border-color: var(--svs-navy); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(213, 149, 58, .35); }

@media (max-width: 991.98px) {
    .section { padding: 68px 0; }
    .home-hero { min-height: auto; padding: 90px 0 130px; }
}
@media (max-width: 575.98px) {
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .card-soft, .enquiry-box { padding: 22px; }
    .page-hero { padding: 60px 0 54px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-badges { gap: .6rem 1.1rem; font-size: .88rem; }
    .enquiry-form [type="submit"] { width: 100%; }
    .cta-band .cta-actions .btn { flex: 1 1 100%; }
    .page-not-found .card-soft .btn { flex: 1 1 100%; }
    .floating-action { width: 46px; height: 46px; font-size: 1.25rem; }
    /* Bootstrap's g-5 gutter is wider than the container padding on phones: keep rows inside the viewport. */
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Rendering performance ----------
   Blocks below the fold skip style/layout/paint until they approach the viewport (much less main-thread work on
   long pages). Paint containment clips overflow, so it is never applied to the first section after a hero (the
   home stats strip overlaps the hero) - only to later sections, later project blocks and the footer.
   "auto" in contain-intrinsic-size remembers the real height once a block has been rendered. */
main > .section + .section, .project-block + .project-block, .site-footer {
    content-visibility: auto; contain-intrinsic-size: auto 760px;
}
.project-block + .project-block { contain-intrinsic-size: auto 480px; }
/* Long photo grids: tiles after the first few are only rendered (and their lazy images only requested) near the
   viewport. Tiles are sized by aspect-ratio, so skipping their contents never changes the layout. */
.gallery-grid > .gallery-item:nth-child(n+5) { content-visibility: auto; contain-intrinsic-size: auto 180px; }
.site-footer { contain-intrinsic-size: auto 560px; }

@media print {
    .topbar, .site-navbar, .floating-actions, .site-footer, .enquiry-box { display: none !important; }
    main > .section + .section, .project-block + .project-block, .gallery-grid > .gallery-item { content-visibility: visible; }
}

/* Headings inside dark areas use the exact logo gold; on light backgrounds the deeper gold keeps WCAG AA contrast. */
.home-hero, .page-hero, .project-hero, .section-dark, .cta-band, .site-footer,
.mega-card-navy, .mega-spotlight, .spotlight-body { --svs-heading: var(--svs-heading-on-dark); }

/* Address parts (e.g. "Opp. Omkaram Temple") never split across lines; wrapping happens only after commas. */
.addr-part, .info-list .addr-part, .footer-contact .addr-part { display: inline; white-space: nowrap; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: none; }
