/* =========================================
   1. VARIABLES & CORPORATE THEME
   Calm, compact surfaces with one restrained accent colour.
   ========================================= */
   :root {
    --bg-color: #121c2c;
    --bg-alt: #172336;
    --surface-color: #1d2b41;
    --surface-color-soft: #192639;
    --text-primary: #f4f7fa;
    --text-secondary: #c4cfdc;
    --text-muted: #97a7ba;
    --primary-blue: #8fb6e3;
    --primary-hover: #a9c8ec;
    --primary-soft: rgba(143, 182, 227, 0.14);
    --accent-cyan: #f1ede4;
    --highlight-amber: #cda861;

    --border-color: rgba(170, 192, 219, 0.16);
    --border-color-strong: rgba(170, 192, 219, 0.3);
    /* Flat, bordered surfaces in the style of Malaysian government portals
       (MyDS): barely-there shadows and small radii instead of floating cards. */
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 999px;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 22px;
    --space-lg: 32px;
    --space-xl: 48px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & TYPOGRAPHY & ACCESSIBILITY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* Reserve the scrollbar gutter from the first paint so fixed-width header
       content does not resize when the page becomes scrollable. */
    scrollbar-gutter: stable;
}

/* Focus Visible for Keyboard Navigation (WCAG) */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hides an element visually while keeping it in the accessibility tree —
   unlike display:none/visibility:hidden, which strip it from both. Used for
   form <label>s that exist for screen readers but rely on a placeholder
   for sighted users. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); line-height: 1.2; }
p { color: var(--text-secondary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: clamp(34px, 4.5vw, 60px) 0; }
.bg-alt { background-color: var(--bg-alt); }
/* Clears the fixed navbar when linked to directly, e.g. footer's #consultancy-disclaimer anchor. */
#consultancy-disclaimer { scroll-margin-top: 96px; }
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-cyan); }
.text-highlight { color: var(--highlight-amber); }
.text-muted { color: var(--text-muted); }

/* =========================================
   3. KAD KORPORAT (FLAT)
   ========================================= */
.card-style {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: var(--radius-md);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card-style:hover {
    border-color: var(--border-color-strong);
}
.hover-up:hover {
    box-shadow: var(--hover-shadow);
}

/* Eyebrow label used above section/page titles for a consistent visual rhythm */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-blue);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: var(--radius-pill);
}

/* =========================================
   4. NAVIGATION BAR, LOGO & DROPDOWN POP-UP
   ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: #121c2c;
    border-top: 3px solid var(--highlight-amber);
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 7px 0; gap: 10px; }

.logo-nav { display: flex; align-items: center; position: relative; z-index: 1; white-space: nowrap; flex-shrink: 0;}
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: -0.03em; transition: opacity 0.2s var(--ease); }
.logo-text:hover { opacity: 0.85; }

.nav-links { display: flex; gap: 6px; align-items: center; position: relative; z-index: 10; white-space: nowrap; }
.nav-links a, .nav-links button.dropdown-toggle { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.nav-links > a { padding: 8px 12px; border-radius: var(--radius-sm); position: relative; }
.nav-links > a:hover { color: var(--text-primary); background-color: rgba(255, 255, 255, 0.06); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #081310; }
.nav-links > a.nav-current { color: var(--primary-blue); background-color: var(--primary-soft); }

.nav-item-dropdown { position: relative; display: inline-block; }
.dropdown-toggle { outline: none; background: none; border: none; font-family: inherit; font-size: 0.88rem; padding: 8px 12px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 600; cursor: pointer; }
.dropdown-toggle:hover { color: var(--text-primary); background-color: rgba(255, 255, 255, 0.06); }
.dropdown-toggle.nav-current { color: var(--primary-blue); background-color: var(--primary-soft); }
.dropdown-toggle i { transition: transform 0.2s var(--ease); }
.dropdown-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background-color: #1d2b41;
    min-width: 230px;
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.58);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); z-index: 1001; text-align: left; padding: 8px; margin-top: 14px;
}
.dropdown-menu::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background-color: #1d2b41;
    border-left: 1px solid var(--border-color); border-top: 1px solid var(--border-color); z-index: 1;
}
.dropdown-menu a { display: block; padding: 11px 16px; border-radius: var(--radius-sm); color: var(--text-primary); font-weight: 500; font-size: 0.88rem; line-height: 1.5; position: relative; z-index: 2; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.dropdown-menu a:hover { background-color: var(--primary-soft); color: var(--primary-blue); }
.dropdown-menu a.nav-current { color: var(--primary-blue); background-color: var(--primary-soft); }
.dropdown-menu.show { display: block; animation: fadeInDown 0.2s var(--ease) forwards; }

@keyframes fadeInDown { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.lang-btn { background: transparent; border: 1px solid var(--border-color-strong); color: var(--text-primary); padding: 7px 12px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; font-size: 12px; transition: all 0.2s var(--ease); }
.lang-btn:hover { border-color: var(--primary-blue); color: var(--primary-blue); background: var(--primary-soft); }
.mobile-menu-btn { display: none; font-size: 1.4rem; cursor: pointer; color: var(--text-primary); background: none; border: none; padding: 5px; }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--border-color); }

/* Keep desktop header geometry stable while Malay/English labels and
   CMS-managed navigation finish loading. The menu can still grow if a future
   configuration genuinely needs more room. */
@media (min-width: 1201px) {
    .nav-links {
        min-inline-size: 800px;
        justify-content: flex-end;
    }
}

/* =========================================
   5. BUTTONS & FORMS
   ========================================= */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 11px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); border: 1px solid transparent; letter-spacing: 0; }
.btn-primary { background: var(--primary-blue); color: #081310; box-shadow: none; }
.btn-primary:hover { background: var(--primary-hover); color: #081310; }
.btn-outline { background-color: transparent; border-color: var(--border-color-strong); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--primary-blue); color: var(--text-primary); background: var(--primary-soft); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.82rem; }
.mt-3 { margin-top: 1.25rem; } .mt-5 { margin-top: 2rem; } .w-100 { width: 100%; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 7px; letter-spacing: 0.01em; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; min-height: 44px; padding: 11px 13px;
    background: #141f30;
    border: 1px solid rgba(184, 198, 211, 0.2);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: inherit; font-size: 0.92rem; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: var(--primary-blue); background: #162236; box-shadow: 0 0 0 3px var(--primary-soft);
}
.input-group input::placeholder, .input-group textarea::placeholder { color: #718093; opacity: 1; }
.input-group textarea { min-height: 128px; resize: vertical; }
.input-group select option { background: #1d2b41; color: #fff; }

.form-message { text-align: center; margin-bottom: 15px; font-size: 0.9rem; font-weight: 500; min-height: 20px; }
.msg-success { color: #10B981; }
.msg-error { color: #EF4444; }

/* =========================================
   6. SECTIONS & LAYOUT
   ========================================= */
.hero { min-height: 42vh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 36px; text-align: center; }
.hero-inner { min-height: 0; display: flex; align-items: center; padding-top: 112px; padding-bottom: 34px; text-align: center; background: var(--bg-alt); border-bottom: 3px solid var(--highlight-amber); }
.hero-content { max-width: 850px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-hover); border: 1px solid rgba(143, 182, 227, 0.24); font-size: 0.74rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-blue); box-shadow: none; }
.hero h1, .hero-inner h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.2; margin-bottom: 16px; }
.hero-sub { font-size: 1.02rem; color: var(--text-secondary); margin-bottom: 26px; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.section-header { text-align: center; margin-bottom: 38px; display: flex; flex-direction: column; align-items: center; }
.section-header h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 620px; margin: 0 auto;}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 16px; position: relative; }
.stat-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; }
.stat-card:not(:last-child)::after { content: ''; position: absolute; top: 8px; right: 0; bottom: 8px; width: 1px; background: var(--border-color); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-blue); font-size: 1rem; margin-bottom: 2px; }
.stat-card .stat-value { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; line-height: 1.3; margin: 0 0 2px; letter-spacing: -0.01em; text-transform: none; }
.stat-card p:not(.stat-value) { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.tech-stack-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }

/* ===== Services Catalog (filterable sidebar, OneKeyBiz-style) ===== */
.catalog-layout { display: flex; align-items: flex-start; gap: var(--space-md); }
.catalog-sidebar { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-color-strong) transparent; }
.catalog-sidebar::-webkit-scrollbar { width: 6px; }
.catalog-sidebar::-webkit-scrollbar-track { background: transparent; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: var(--border-color-strong); border-radius: var(--radius-pill); }
.catalog-sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.catalog-search-wrap { position: relative; }
.catalog-search-wrap i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; pointer-events: none; }
.catalog-search-wrap input { width: 100%; padding: 11px 14px 11px 38px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--surface-color); color: var(--text-primary); font: inherit; font-size: 0.9rem; }
.catalog-search-wrap input:focus { outline: none; border-color: var(--primary-blue); }
.catalog-count { color: var(--text-secondary); font-size: 0.85rem; }
.catalog-filter-group { display: flex; flex-direction: column; gap: 8px; }
.catalog-filter-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 2px 2px; }
.filter-pill { appearance: none; width: 100%; border: 1px solid var(--border-color); background: var(--surface-color); color: var(--text-secondary); font: inherit; font-size: 0.85rem; font-weight: 600; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; transition: all 0.2s var(--ease); }
.filter-pill:hover { border-color: var(--border-color-strong); color: var(--text-primary); }
.filter-pill.active { background: var(--primary-blue); border-color: var(--primary-blue); color: #081310; }
.filter-pill .filter-count { font-size: 0.72rem; color: var(--text-secondary); background: rgba(255, 255, 255, 0.06); padding: 1px 7px; border-radius: var(--radius-pill); }
.filter-pill.active .filter-count { color: #081310; background: rgba(0, 0, 0, 0.12); }
.catalog-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); }
.catalog-card { padding: 22px; display: flex; flex-direction: column; }
.catalog-card-link { display: flex; flex-direction: column; flex-grow: 1; text-decoration: none; color: inherit; }
.catalog-card .tag { margin-bottom: 10px; }
.catalog-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.35; }
.catalog-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; margin-bottom: 16px; flex-grow: 1; }
.catalog-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border-color); margin-bottom: 14px; }
.catalog-price-amount { font-weight: 800; font-size: 1.05rem; color: var(--text-primary); }
.catalog-price-note { font-size: 0.7rem; color: var(--text-muted); text-align: right; }
.catalog-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--text-secondary); }

/* ===== Service Detail Page ===== */
.service-detail-hero { padding-top: 40px; padding-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: rgba(185, 196, 208, 0.4); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--primary-blue); text-decoration-color: currentColor; }
.service-detail-header h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.service-detail-price { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.service-detail-price .catalog-price-amount { font-size: 1.4rem; }
.quick-answer { background: var(--surface-color); border: 1px solid var(--border-color); border-left: 4px solid var(--primary-blue); border-radius: var(--radius-md); padding: 20px 24px; margin: 28px 0 8px; }
.quick-answer-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary-blue); margin-bottom: 8px; }
.quick-answer p { margin: 0; }
.detail-section { padding: 34px 0; border-top: 1px solid var(--border-color); }
.detail-section:first-of-type { border-top: none; }
.detail-section h2 { font-size: 1.3rem; margin-bottom: 16px; }
.detail-list { margin-left: 20px; }
.detail-list li { color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6; }
.detail-steps { display: grid; gap: 20px; margin-top: 6px; }
.detail-step { display: flex; gap: 16px; align-items: flex-start; }
.detail-step-num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; }
.detail-step-body h3 { font-size: 1rem; margin-bottom: 4px; }
.detail-step-body p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.detail-cta { text-align: center; padding: 44px 0; }
.detail-cta p { margin-bottom: 18px; }
.detail-related { margin-top: 8px; }

/* Detail layout built by service-detail.js: main column + sticky price
   card, "At a glance" card, numbered sections — modelled on
   onekeybiz.com/services/*.html, recoloured to this site's dark theme with
   the amber highlight as the single accent. */
.sd-layout { max-width: 1140px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.sd-main { min-width: 0; }
.sd-main .hero-sub { margin: 0; }
.sd-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.sd-time { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--highlight-amber); background: rgba(205, 168, 97, 0.14); border: 1px solid rgba(205, 168, 97, 0.28); padding: 2px 9px; border-radius: var(--radius-pill); white-space: nowrap; vertical-align: middle; }
.sd-chip { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); background: var(--primary-soft); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: var(--radius-pill); }

.sd-pricebar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 22px; padding: 16px 20px; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.sd-pricebar-fee { display: flex; flex-direction: column; gap: 2px; }
.sd-pricebar-fee .catalog-price-amount { font-size: 1.5rem; }
.sd-pricebar-cta { margin-left: auto; }

.sd-glance { margin-top: 26px; padding: 26px 28px; background: var(--surface-color-soft); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.sd-glance-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--highlight-amber); margin-bottom: 16px; }
.sd-glance-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.sd-glance-facts > div { padding: 16px 18px; border-left: 1px solid var(--border-color); }
.sd-glance-facts > div:first-child { border-left: none; }
.sd-glance-facts dt { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.sd-glance-facts dd { font-size: 0.98rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; }

.sd-timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 0; padding: 0; }
.sd-timeline li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 12px; }
.sd-timeline li::before { content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 2px; background: var(--border-color-strong); }
.sd-timeline li.is-final::before { right: 12px; background: var(--highlight-amber); }
.sd-timeline-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; color: var(--text-primary); background: var(--surface-color); border: 2px solid var(--border-color-strong); }
.sd-timeline li.is-final .sd-timeline-dot { background: var(--highlight-amber); border-color: var(--highlight-amber); color: #1a1408; }
.sd-timeline-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-top: 4px; }

.sd-glance-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.sd-glance-stats strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); }
.sd-glance-stats span { font-size: 0.9rem; color: var(--text-secondary); }

.sd-jumpnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 4px; }
.sd-jumpnav a { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; padding: 7px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-pill); background: var(--surface-color); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.sd-jumpnav a:hover { color: var(--text-primary); border-color: var(--highlight-amber); }
.sd-main .detail-section { scroll-margin-top: 90px; }
.sd-section-num { font-size: 0.8rem; font-weight: 800; color: var(--highlight-amber); margin-bottom: 6px; }
.sd-main .detail-section > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px; }
.sd-subhead { font-size: 1rem; margin: 22px 0 12px; }
.sd-checklist, .sd-card ul { list-style: none; padding: 0; margin: 0; }
.sd-checklist li, .sd-card li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--text-secondary); line-height: 1.55; }
.sd-checklist li::before, .sd-card li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight-amber); }
.sd-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--highlight-amber); background: var(--surface-color); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.sd-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.sd-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 12px; }
.sd-card h3 i { color: var(--highlight-amber); }
.sd-card p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.sd-card-accent { background: var(--surface-color-soft); border-color: rgba(205, 168, 97, 0.35); }
.sd-card-accent h3 { color: var(--highlight-amber); }
.sd-card-icon { font-size: 1.3rem; color: var(--highlight-amber); margin-bottom: 12px; display: block; }
.sd-docgroups, .sd-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sd-split { margin-top: 22px; }
.sd-deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sd-main .detail-step-body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.sd-faq details { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 10px; }
.sd-faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 700; position: relative; }
.sd-faq summary::-webkit-details-marker { display: none; }
.sd-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--highlight-amber); }
.sd-faq details[open] summary::after { content: "−"; }
.sd-faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-secondary); line-height: 1.6; }
.sd-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.sd-aside { position: sticky; top: 96px; }
.sd-aside-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); }
.sd-aside-price { font-size: 1.6rem; }
.sd-aside-note { font-size: 0.82rem; font-weight: 600; color: var(--highlight-amber); margin-top: -8px; }
.sd-aside-facts { margin: 4px 0; }
.sd-aside-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-color); font-size: 0.84rem; }
.sd-aside-facts dt { color: var(--text-muted); }
.sd-aside-facts dd { color: var(--text-primary); font-weight: 600; text-align: right; }

@media (max-width: 1024px) {
    .sd-layout { grid-template-columns: minmax(0, 1fr); }
    .sd-aside { display: none; }
}
@media (max-width: 768px) {
    .sd-glance { padding: 20px 16px; }
    .sd-glance-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sd-glance-facts > div:nth-child(odd) { border-left: none; }
    .sd-glance-facts > div:nth-child(n+3) { border-top: 1px solid var(--border-color); }
    .sd-timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sd-timeline li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; justify-items: start; gap: 4px 12px; padding: 0 0 18px; }
    .sd-timeline-dot { grid-row: span 2; align-self: start; }
    .sd-timeline li .sd-time { grid-column: 2; }
    .sd-timeline li::before { top: 36px; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; background: var(--border-color-strong); }
    .sd-timeline li.is-final::before { display: none; }
    .sd-timeline-title { margin-top: 0; }
    .sd-glance-stats strong { font-size: 1.6rem; }
    .sd-docgroups, .sd-split, .sd-deliverables { grid-template-columns: minmax(0, 1fr); }
    .sd-pricebar-cta { margin-left: 0; width: 100%; }
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-lg); align-items: start; }
.contact-info, .contact-form { padding: 28px 24px; }
.contact-form p a { color: var(--highlight-amber); text-decoration: underline; text-underline-offset: 2px; }
/* Office map on contact.html: a titled card whose map keeps a sensible
   shape on every screen instead of a fixed 300px strip. */
.location-card { margin-top: 28px; padding: 0; overflow: hidden; }
.location-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--border-color); }
.location-card-head h3 { font-size: 1.05rem; margin: 0 0 2px; }
.location-card-head p { margin: 0; font-size: 0.88rem; }
.location-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.location-map { aspect-ratio: 16 / 7; min-height: 280px; background: var(--surface-color-soft); }
.location-map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
    .location-card-head { padding: 16px 18px; }
    .location-actions { width: 100%; }
    .location-card-head .btn { flex: 1 1 100%; justify-content: center; }
    .location-map { aspect-ratio: 4 / 3; min-height: 0; }
}
.contact-info h3 { font-size: 1.2rem; margin-bottom: 20px; }
.contact-info h4 { font-size: 1rem; }
.legal-content h2 { color: var(--primary-blue); font-size: 1.05rem; margin: 26px 0 10px; }
.legal-content h2:first-child { margin-top: 0; }
.info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.info-row i { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; margin-top: 3px; }
.info-row p { margin: 0; color: var(--text-secondary); }
.info-row p a { color: inherit; }
.info-row p a:hover { color: var(--primary-blue); }
.info-row + hr { margin: 22px 0 16px; }
.contact-direct-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: -4px 0 28px 34px; }
.contact-direct-action { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); text-decoration: none; background: #172336; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.contact-direct-action:hover { border-color: var(--primary-blue); }
.contact-direct-action i { width: 18px; flex-shrink: 0; font-size: 1.15rem; }
.contact-direct-action span { display: grid; min-width: 0; gap: 1px; }
.contact-direct-action strong { font-size: 0.78rem; line-height: 1.2; }
.contact-direct-action small { color: var(--text-secondary); font-size: 0.7rem; line-height: 1.3; white-space: nowrap; }
.contact-direct-action-chat { border-color: var(--border-color); }
.contact-direct-action-chat i { color: var(--primary-blue); }
.contact-direct-action-chat:hover { border-color: var(--primary-blue); background: var(--primary-soft); }
.contact-direct-action-call { background: #172336; border-color: var(--border-color); }
.contact-direct-action-call i { color: var(--primary-blue); }
.contact-direct-action-call:hover { border-color: var(--primary-blue); background: var(--primary-soft); }

.service-card, .tech-category { padding: 24px 22px; }
.icon-lg {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    background: var(--primary-soft); border: 1px solid rgba(143, 182, 227, 0.22);
    font-size: 1.15rem; margin-bottom: 14px;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.card-style:hover .icon-lg { transform: none; background: var(--primary-soft); }
.service-card h3, .tech-category h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p, .tech-category p { color: var(--text-secondary); font-size: 0.95rem; }
.tech-category ul { margin-top: 12px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tech-category ul li { color: var(--text-secondary); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.tech-category ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary-blue); font-size: 0.75rem; }

.portfolio-item { overflow: hidden; display: flex; flex-direction: column; }
/* A fixed media frame keeps the gallery grid stable while Portal-hosted files are
   still loading. This prevents cards from jumping over one another on refresh;
   the image itself is safely cropped with object-fit below. */
.port-img-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-color); aspect-ratio: 4 / 3; background: var(--surface-color-soft); }
.port-img-wrap.orientation-portrait { aspect-ratio: 3 / 4; }
.port-img-wrap.orientation-square { aspect-ratio: 1 / 1; }

.port-img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Cards holding more than one image advance their cover on their own — see
   startCoverSlideshow() in licensing_permit.html. The incoming frame fades in on a
   layer stacked above the settled <img>, so a slide change never flashes an empty
   box the way swapping one element's src does. z-index 0 keeps it under the count
   badge (2), the play overlay (1) and the ::after gradient. */
.port-cover-fade {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: 0; pointer-events: none;
    /* Stated rather than left to the default: the whole effect is the frame
       opening outward from its middle, so the origin is load-bearing here. */
    transform-origin: center center;
}
/* The top layer carries the OUTGOING frame. It is armed opaque and unscaled, then
   dissolves outward — fading away while growing from its centre — uncovering the
   incoming frame already sitting on the base <img> underneath. transform-origin is
   the default centre, which is what makes it read as opening from the inside out. */
.port-cover-fade.is-armed { opacity: 1; transform: scale(1); }
.port-cover-fade.is-dissolving {
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}
.port-content { padding: 20px; }
.tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--primary-soft); color: var(--primary-hover); padding: 5px 9px; border-radius: var(--radius-sm); display: inline-block; margin-bottom: 12px; border: 1px solid rgba(143, 182, 227, 0.24); }
.portfolio-empty-state { grid-column: 1 / -1; padding: 42px 20px; border: 1px dashed var(--border-color-strong); border-radius: var(--radius-md); color: var(--text-secondary); text-align: center; }
.portfolio-empty-state i { color: var(--primary-blue); font-size: 1.35rem; margin-bottom: 10px; }
.portfolio-empty-state p { margin: 0; font-size: 0.92rem; }
/* Company name + date line on portfolio-web.html/licensing_permit.html cards —
   sits between the title and the description, only rendered when the admin
   filled in Company Name/Date Conducted (see renderGrid's metaLine). */
.port-meta { font-size: 0.8rem; font-weight: 600; color: var(--primary-blue); margin: 4px 0 10px; }

/* =========================================
   2b. MEDIA GALLERY + LIGHTBOX
   ========================================= */
/* The gallery grid renders on the same base .portfolio-grid / .portfolio-item / .tag
   styles as every other portfolio page. The
   only rules here are the ones that exist because the page opens a media
   lightbox — the cards themselves are deliberately not styled differently. */
.gallery-grid .port-img-wrap { cursor: pointer; }
.gallery-grid .port-img { transition: transform 0.45s var(--ease); }

/* The dissolving layer is deliberately left out of the hover zoom: it runs its own
   transform, and a second rule competing for the same property would cut the
   dissolve short. The slideshow pauses on hover anyway, so the two never overlap. */

/* Media-count badge + play icon overlay, shown on the cover thumbnail when an
   item has 2+ attached media files (see renderGrid() in portfolio-web.html). */
.media-count-badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(18, 28, 44, 0.72); backdrop-filter: blur(4px);
    color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 4px 10px; border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.media-play-overlay {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.media-play-overlay i {
    font-size: 2.1rem; color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.55));
}

/* Lightbox — single shared instance, opened on card click */
.pw-lightbox {
    position: fixed; inset: 0; z-index: 2000; display: none;
    align-items: center; justify-content: center;
    background: rgba(5, 6, 10, 0.92); backdrop-filter: blur(6px);
    padding: 24px;
}
.pw-lightbox.is-open { display: flex; }
.pw-lightbox-inner { position: relative; width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pw-lightbox-stage { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.pw-lightbox-stage img, .pw-lightbox-stage video {
    max-width: 100%; max-height: 74vh; border-radius: var(--radius-md);
    box-shadow: var(--card-shadow); background: #000; display: block;
}
.pw-lightbox-close, .pw-lightbox-prev, .pw-lightbox-next {
    position: absolute; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color-strong);
    color: var(--text-primary); font-size: 1rem; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pw-lightbox-close:hover, .pw-lightbox-prev:hover, .pw-lightbox-next:hover { background: var(--primary-soft); color: var(--primary-hover); }
.pw-lightbox-close { top: -4px; right: -4px; }
.pw-lightbox-prev { left: -4px; top: 50%; transform: translateY(-50%); }
.pw-lightbox-next { right: -4px; top: 50%; transform: translateY(-50%); }
.pw-lightbox-prev:hover, .pw-lightbox-next:hover { transform: translateY(-50%) scale(1.06); }
.pw-lightbox-meta { text-align: center; max-width: 720px; }
.pw-lightbox-meta h2 { font-size: 1.05rem; margin-bottom: 4px; }
.pw-lightbox-meta p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }
.pw-lightbox-counter { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.03em; }
@media (max-width: 640px) {
    .pw-lightbox-prev, .pw-lightbox-next { width: 36px; height: 36px; font-size: 0.9rem; }
    .pw-lightbox-prev { left: 4px; } .pw-lightbox-next { right: 4px; } .pw-lightbox-close { top: 6px; right: 6px; }
}




/* =========================================
   6b. TRUST BAR, TESTIMONIALS & PROCESS
   ========================================= */
.trust-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.trust-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 16px 12px; }
.trust-badge i { font-size: 1.25rem; color: var(--primary-blue); }
.trust-badge span { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); line-height: 1.4; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.testimonial-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.testimonial-card .stars { color: var(--highlight-amber); font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-card blockquote { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-author span { display: block; font-size: 0.8rem; color: var(--text-muted); }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); position: relative; }
.process-step { padding: 22px 20px; position: relative; }
.process-step-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--primary-blue); color: #081310; font-weight: 800; font-size: 0.82rem; margin-bottom: 12px; }
.process-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.process-step p { color: var(--text-secondary); font-size: 0.87rem; }
.process-note { text-align: center; margin-top: var(--space-sm); color: var(--text-secondary); font-size: 0.9rem; }
/* .section-header p {margin:0 auto} otherwise outranks .process-note's own
   margin-top when the note sits inside a section-header (e.g. about.html's
   founding-year note), since element+class beats a single class. */
.section-header .process-note { margin-top: var(--space-sm); }
.process-note i { color: var(--primary-blue); margin-right: 6px; }

/* WHY CHOOSE US */
.why-choose-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.why-choose-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin-top: 12px; }
.why-choose-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.why-choose-item { display: flex; gap: 16px; padding: 20px 22px; }
.why-choose-number { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary-hover); font-weight: 800; font-size: 0.82rem; border: 1px solid rgba(143, 182, 227, 0.24); }
.why-choose-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-choose-body > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }
.why-choose-note { color: var(--text-muted); font-size: 0.84rem; font-style: italic; margin: 8px 0 12px; }
.why-choose-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.why-choose-tags .tag { margin-bottom: 0; font-size: 0.68rem; padding: 4px 10px; }
.why-checklist { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.why-checklist li { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--text-secondary); }
.why-checklist i { color: var(--primary-blue); font-size: 0.85rem; }
/* why-choose.webp has a real alpha channel — its black backdrop was removed
   (flood-fill from the image edges through near-black pixels only, so enclosed dark
   hair strands stay opaque instead of being hollowed out by a blanket color
   threshold) — so it just shows the page's own background wherever transparent, no
   CSS blend-mode trick needed.
   Sized by its own aspect-ratio (not stretched to match the tall text column) and
   kept in view with position: sticky (top offset clears the 80px fixed navbar)
   while the four-card list scrolls past it.
   Visually placed on the left via `order` while staying second in the DOM, so the
   text content (which matters more for screen readers/SEO) still reads first. */
.why-choose-media { order: -1; position: sticky; top: 96px; width: 100%; }
/* The aspect-ratio/max-height box now lives on .why-choose-media-frame (not the
   outer .why-choose-media) so the name/title caption below it isn't squeezed into
   the same fixed box as the photo. */
/* Cropped to 948/1295 (source is 948x1660) to cut off the top ~22% of the source
   photo, which is a stylised wordmark treatment rather than the portrait itself —
   object-position: bottom on the img below keeps the crop anchored on the face. */
.why-choose-media-frame { aspect-ratio: 948 / 1295; width: 100%; max-height: 640px; background: var(--bg-color); overflow: hidden; border-radius: var(--radius-lg); }
.why-choose-media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; display: block; }
/* Name/title caption under the portrait — identifies who's pictured instead of
   leaving the photo anonymous. */
.why-choose-caption { text-align: center; margin-top: 14px; }
.why-choose-caption-name { font-size: 1.02rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.why-choose-caption-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--primary-blue); line-height: 1.5; }

/* =========================================
   7. FOOTER & WIDGETS
   ========================================= */
footer { border-top: 3px solid var(--highlight-amber); padding: 30px 0 14px; background: #0f1826; }
.footer-content { display: flex; flex-direction: column; align-items: center; margin-bottom: 15px; text-align: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--primary-blue); }
/* Corporate multi-column footer: brand + registration details, then
   Services / Company / Legal link columns, the independence notice, and a
   bottom bar — instead of one centred stack. */
.site-footer { padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col-brand .logo-footer { display: inline-flex; align-items: center; margin-bottom: 4px; }
.footer-tagline { margin: 0; max-width: 340px; font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.footer-meta p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--text-muted); }
.footer-heading { margin: 0 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); }
.footer-col a, .footer-col .cookie-settings-trigger { font-size: 0.9rem; line-height: 1.4; color: var(--text-secondary); text-decoration: none; transition: color 0.2s var(--ease); }
.footer-col a:hover, .footer-col .cookie-settings-trigger:hover { color: var(--highlight-amber); }
.site-footer .footer-disclaimer { max-width: none; margin-top: 36px; }
.site-footer .footer-bottom { margin-top: 32px; padding: 18px 0 4px; border-top: 1px solid var(--border-color); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom-inner p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .footer-col-brand { grid-column: 1 / -1; }
    .footer-col:last-child { grid-column: 1 / -1; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}
/* "Independent service provider" notice — its own bordered panel below the
   legal links, so it reads as a formal statement rather than running into
   the address and link rows above it. */
.footer-disclaimer { display: flex; align-items: flex-start; gap: 14px; width: 100%; max-width: 760px; margin-top: 14px; padding: 16px 20px; text-align: left; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-left: 3px solid var(--highlight-amber); border-radius: var(--radius-md); }
.footer-disclaimer-icon { flex-shrink: 0; margin-top: 2px; font-size: 1rem; color: var(--highlight-amber); }
.footer-disclaimer-title { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-primary); }
.footer-disclaimer-text { margin: 0; font-size: 0.8rem; line-height: 1.65; color: var(--text-muted); }
.footer-disclaimer-text a { color: var(--highlight-amber); text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer-text a:hover { color: var(--text-primary); }
@media (max-width: 640px) {
    .footer-disclaimer { padding: 14px 16px; gap: 12px; }
}

.floating-widgets { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.widget-wa, .widget-top { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; cursor: pointer; border: none; transition: all 0.2s var(--ease); box-shadow: var(--card-shadow); text-decoration: none; }
.widget-wa { background: var(--primary-blue); color: #081310; border: 1px solid var(--primary-blue); }
.widget-wa:hover { background: var(--primary-hover); }
.widget-top { background: #1d2b41; border: 1px solid var(--border-color); opacity: 0; pointer-events: none; }
.widget-top.show { opacity: 1; pointer-events: auto; }
.widget-top:hover { background: var(--primary-blue); }

.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002; background: #152133; border-top: 1px solid var(--border-color); padding: 18px 0; transform: translateY(100%); transition: transform 0.35s var(--ease); }
.cookie-consent.show { transform: translateY(0); }
.cookie-consent-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-consent-text { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; max-width: 640px; }
.cookie-consent-text a { color: var(--primary-blue); text-decoration: underline; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cookie-consent-actions .btn { min-width: 140px; }
.cookie-preferences-btn { appearance: none; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; font: inherit; font-size: 0.82rem; min-width: 144px; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-preferences-btn:hover, .cookie-preferences-btn:focus-visible { color: var(--primary-blue); }
/* Sits inline in .footer-links, not fixed over the page, so it never
   overlaps footer content (see script.js initCookieConsent). */
.cookie-settings-trigger { all: unset; cursor: pointer; color: var(--text-secondary); font: inherit; transition: color 0.2s var(--ease); }
.cookie-settings-trigger:hover, .cookie-settings-trigger:focus-visible { color: var(--primary-blue); }
.cookie-settings-modal[hidden] { display: none; }
.cookie-settings-modal { align-items: center; background: rgba(3, 7, 18, 0.78); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 1003; }
.cookie-settings-panel { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); max-width: 580px; padding: 24px; width: 100%; }
.cookie-settings-heading { align-items: center; display: flex; justify-content: space-between; gap: 16px; }
.cookie-settings-heading h2 { color: var(--text-primary); font-size: 1.25rem; margin: 0; }
.cookie-settings-close { background: transparent; border: 0; color: var(--text-secondary); cursor: pointer; font-size: 1.75rem; line-height: 1; padding: 0 4px; }
.cookie-settings-panel > p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin: 14px 0 18px; }
.cookie-setting-row { align-items: center; background: #172336; border: 1px solid var(--border-color); border-radius: var(--radius-sm); display: flex; gap: 16px; justify-content: space-between; margin-top: 10px; padding: 14px; }
.cookie-setting-row strong, .cookie-setting-row span { display: block; }
.cookie-setting-row strong { color: var(--text-primary); font-size: 0.9rem; margin-bottom: 4px; }
.cookie-setting-row span { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.45; }
.cookie-setting-toggle { cursor: pointer; }
.cookie-setting-toggle input { accent-color: var(--primary-blue); height: 20px; min-width: 20px; }
.cookie-always-on { color: var(--primary-blue) !important; font-weight: 600; text-align: right; }
.cookie-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* =========================================
   8. ANIMATIONS & RESPONSIVE (Prefers-Reduced-Motion)
   ========================================= */
.reveal { opacity: 0; transition: opacity 0.4s var(--ease); }
.reveal.active { opacity: 1; }
/* Page-title bands and the home hero show immediately, like a portal header. */
.hero.reveal, .hero-inner.reveal, .hero-inner .reveal, .hero .reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1200px) {
    .mobile-menu-btn { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: #152133; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); border-bottom: 1px solid var(--border-color); max-height: calc(100vh - 72px); overflow-y: auto; }
    .nav-links.active { display: flex; }
    .nav-links > a, .nav-links button.dropdown-toggle { padding: 14px 16px; width: 100%; text-align: center; justify-content: center; font-size: 1.02rem; white-space: normal; }
    .dropdown-menu { position: relative; left: 0; transform: none; box-shadow: none; border: none; background-color: #1d2b41; margin-top: 4px; }
    /* The desktop open animation ends on translate(-50%) to centre the menu
       under its button; with animation-fill-mode forwards that overrode the
       transform:none above and pushed the phone menu half off-screen. */
    .dropdown-menu.show { animation: none; }
    .nav-item-dropdown { display: block; width: 100%; }
    .dropdown-menu { min-width: 0; width: 100%; }
    .dropdown-menu a { text-align: center; }
    .dropdown-menu::before { display: none; }
    .nav-actions { margin-left: 0; padding-left: 0; border-left: none; justify-content: center; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--border-color); width: 100%; }
}

@media (max-width: 1024px) {
    .container { padding: 0 22px; }
    .section-padding { padding: 42px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .stat-card:nth-child(2)::after { display: none; }
    .trust-bar-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
    .why-choose-grid { grid-template-columns: 1fr; }
    .why-choose-media { position: relative; top: 0; }
    /* Shrink the whole portrait instead of capping its height — a height cap
       on the full-width frame cropped the face off and left only the jacket. */
    .why-choose-media-frame { max-height: none; max-width: 380px; margin: 0 auto; }
    /* Tablet (iPad-width) comfort pass: the 4-up tech grid and 3-up portfolio
       grid get cramped between 769-1024px, so drop to 2 columns here. Excludes
       grid get cramped between 769-1024px, so drop to 2 columns here. */
    .tech-stack-container { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 36px 0; }
    .hero { min-height: auto; padding-top: 92px; padding-bottom: 28px; }
    .hero-inner { padding-top: 92px; padding-bottom: 24px; }
    .hero h1, .hero-inner h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
    .hero-sub { font-size: 0.98rem; }
    /* Two columns on phones too, so the four trust stats form a compact 2x2
       block instead of one long single-column stack. */
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 8px; padding: 22px 8px; }
    .stat-card { padding: 0 6px; text-align: center; }
    .stat-card p:not(.stat-value) { font-size: 0.72rem; letter-spacing: 0.02em; }
    .stat-card::after { display: none !important; }
    /* Smaller floating buttons on phones so they cover less of the content
       behind them; 40px still leaves a comfortable tap target. */
    .floating-widgets { bottom: 14px; right: 14px; gap: 10px; }
    .widget-wa, .widget-top { width: 40px; height: 40px; font-size: 1.05rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .tech-stack-container, .portfolio-grid { grid-template-columns: 1fr; }
    .trust-bar-grid, .process-steps, .testimonials-grid { grid-template-columns: 1fr; }
    .cookie-consent-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-consent-actions { justify-content: center; }
    .cookie-settings-actions { justify-content: stretch; }
    .cookie-settings-actions .btn { flex: 1; }
    .why-choose-item { flex-direction: column; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; position: static; max-height: none; }
}

/* Small phones (iPhone SE/older Android, ~320-480px wide) — tighten container
   padding and shrink the logo just enough that "ZenqorTechnologies" + the
   hamburger button never fight for space in the fixed top bar. */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .logo-text { font-size: 1.08rem; }
    .nav-logo-img { height: 28px; width: auto; margin-right: 8px; }
    .nav-container { min-height: 68px; gap: 6px; }
    .contact-direct-actions { grid-template-columns: 1fr; margin-left: 0; }
    .hero-inner, .hero { padding-top: 88px; }
    .service-card, .tech-category, .contact-info, .contact-form { padding: 22px 18px; }
    .port-content { padding: 16px; }
}

.nav-logo-img { height: 34px; width: auto; margin-right: 10px; vertical-align: middle; }
.footer-logo-img { height: 28px; width: auto; margin-right: 10px; vertical-align: middle; }

/* Contact form spam trap — must stay invisible to people. */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* About page: text directory of the agencies Zenqor files with (replaces
   the scrolling logo marquee). */
.agency-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.agency-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface-color); border: 1px solid var(--border-color); border-left: 3px solid var(--highlight-amber); border-radius: var(--radius-sm); }
.agency-code { font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; color: var(--text-primary); }
.agency-name { font-size: 0.82rem; line-height: 1.4; color: var(--text-secondary); }
@media (max-width: 480px) { .agency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .agency-card { padding: 12px; } }

/* Keyboard "skip to main content" link: off-screen until focused with Tab (WCAG 2.4.1). */
.skip-link { position: absolute; left: 16px; top: -120px; z-index: 3000; padding: 10px 16px; background: var(--highlight-amber); color: #121c2c; font-weight: 700; font-size: 0.9rem; text-decoration: none; border-radius: var(--radius-sm); }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 2px solid #ffffff; outline-offset: 2px; }
main:focus { outline: none; }

/* Careers page (careers.html, careers.js) */
.careers-wrap { max-width: 860px; }
.careers-meta { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 var(--space-sm); }
.careers-job { padding: 24px; margin-bottom: var(--space-sm); }
.careers-job h3 { margin: 0 0 6px; color: var(--text-primary); }
.careers-desc { white-space: pre-line; color: var(--text-secondary); margin: 0 0 var(--space-sm); line-height: 1.6; }
.careers-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: var(--space-sm); }
.careers-form .full { grid-column: 1 / -1; }
.careers-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.careers-form input, .careers-form textarea, .careers-form select { width: 100%; font: inherit; font-size: 0.95rem; color: var(--text-primary); background: var(--surface-color-soft); border: 1px solid var(--border-color-strong); border-radius: var(--radius-md); padding: 10px 12px; }
.careers-form input:focus, .careers-form textarea:focus, .careers-form select:focus { outline: 2px solid var(--primary-blue); outline-offset: 1px; }
.careers-form .careers-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; }
.careers-form .careers-check input { width: auto; margin-top: 4px; }
.careers-form a { color: var(--highlight-amber); text-decoration: underline; }
.careers-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.careers-msg { padding: 12px 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.92rem; }
.careers-msg.error { color: #fca5a5; border: 1px solid #fca5a5; }
.careers-msg.ok { color: #6ee7b7; border: 1px solid #6ee7b7; }
@media (max-width: 560px) { .careers-form { grid-template-columns: 1fr; } .careers-job { padding: 18px; } }
