/* =============================================================
   Zentyx Limited — style.css
   NOTE: the nav breakpoint (900px) must stay in sync with
   MOBILE_MQ in static/js/script.js
   ============================================================= */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark, sophisticated base — near-black, like premium editorial */
    --bg-body: #08080f;
    --bg-surface: #0f0f1a;
    --bg-elevated: #171725;
    --bg-purple-section: #0d0918;
    --bg-card: #12121f;

    /* Text — high contrast, readable */
    --text-primary: #ededf5;
    --text-secondary: #b0b0c8;
    --text-muted: #6a6a82;

    /* Premium purple accent — rich, sophisticated, not neon */
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-subtle: rgba(124, 58, 237, 0.10);
    --accent-glow: rgba(124, 58, 237, 0.12);
    --accent-light: #a78bfa;

    /* Brand */
    --logo-purple: #7c5cfc;

    /* Borders — subtle */
    --border-color: #22223a;
    --radius: 6px;
    --shadow-elevated: 0 12px 48px rgba(0, 0, 0, 0.6);
    --transition: 0.3s ease;

    /* Layout */
    --header-height: 62px;
    --drawer-width: 320px;

    /* Layering */
    --z-header: 1000;
    --z-nav-toggle: 1001;
    --z-nav-overlay: 1002;
    --z-nav-drawer: 1003;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    background: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scroll lock while the mobile drawer is open.
   Class-based so it can never get stuck as an inline style. */
html.nav-open,
body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-hover);
}

:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 3px;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 var(--radius) 0;
    font-size: 0.85rem;
    font-weight: 600;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

/* ---------- Typography — Editorial, confident ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--text-primary);
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
h2 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    h1 { font-size: 1.9rem; }
}

/* ---------- Buttons — Refined, not glowing ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s, box-shadow var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-small {
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
}

/* ---------- Icons in nav, header and footer ---------- */
.nav-link i,
.dropdown li a i,
.footer-links ul li a i,
.top-nav .game-link i,
.top-actions .phone i,
.top-actions .currency-selector i,
.top-actions .support-link i,
.top-nav-mobile a i,
.top-actions-mobile i,
.header-actions .btn i {
    margin-right: 0.5rem;
    width: 1.1rem;
    text-align: center;
    color: var(--accent);
    flex: 0 0 auto;
}

.top-nav .game-link i,
.top-actions .phone i {
    color: var(--accent-light);
}

.header-actions .btn i {
    color: inherit;
    margin-right: 0.4rem;
    width: auto;
}

.nav-link i {
    font-size: 0.85rem;
}

/* ---------- Top Bar (secondary nav) ---------- */
.top-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.2rem 0;
    font-size: 0.75rem;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.top-nav {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}
.top-nav li a {
    color: var(--text-muted);
    transition: color var(--transition);
    font-weight: 500;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}
.top-nav li a:hover {
    color: var(--accent);
}
.top-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    color: var(--text-muted);
}
.top-actions .phone,
.top-actions .currency-selector,
.top-actions .support-link {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition);
    display: flex;
    align-items: center;
}
.top-actions .phone:hover,
.top-actions .support-link:hover {
    color: var(--accent);
}

/* =============================================================
   MAIN HEADER + NAVIGATION
   ============================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(8, 8, 15, 0.96);
    border-bottom: 1px solid var(--border-color);
    padding: 0.3rem 0;

    /* IMPORTANT: no backdrop-filter / filter / transform / will-change here.
       Any of those would turn .site-header into the containing block for its
       position:fixed descendants, which collapses the mobile drawer to the
       height/width of the header. The blur lives on ::before instead. */
}

/* The blur, isolated on a pseudo-element that has no descendants. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
}

/* ---------- Logo ---------- */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-decoration: none;
}
.logo .logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--logo-purple);
    background: none;
    -webkit-text-fill-color: initial;
}
.logo .logo-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 2px;
    white-space: nowrap;
}
.logo .logo-icon {
    display: none;
}

@media (max-width: 480px) {
    .logo .logo-text { font-size: 1.5rem; }
    .logo .logo-tagline { font-size: 0.6rem; }
}

/* ---------- Nav shell ---------- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

/* Row wrapper keeps the link and its caret button on one line. */
.nav-item-row {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
    background: var(--accent-subtle);
    color: #fff;
}
.nav-link.is-active {
    color: #fff;
}

/* Caret toggle button */
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.45rem 0.5rem 0.45rem 0.1rem;
    margin-left: -0.45rem;
    border-radius: var(--radius);
    font-size: 0.62rem;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}
.dropdown-toggle i {
    display: block;
    transition: transform 0.25s ease;
}
.dropdown-toggle:hover {
    color: var(--accent-light);
}
.nav-item.open > .nav-item-row > .dropdown-toggle {
    color: var(--accent-light);
}
.nav-item.open > .nav-item-row > .dropdown-toggle i {
    transform: rotate(180deg);
}

/* ---------- Desktop dropdown panel ---------- */
.dropdown {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    z-index: 10;

    /* Hidden but animatable. visibility:hidden also removes the links
       from the tab order, which display:none-style hiding used to do. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Invisible bridge across the 8px gap between the trigger and the panel,
   so moving the pointer down no longer closes the menu. */
.dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

/* Keep the panel on screen for the last nav item. */
.nav-item:last-child .dropdown,
.nav-item.align-right .dropdown {
    left: auto;
    right: 0;
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.6rem 1.2rem;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover,
.dropdown li a:focus-visible {
    background: var(--accent-subtle);
    color: #fff;
}
.dropdown li a.is-active {
    color: #fff;
    background: var(--accent-subtle);
}

/* Open via click / keyboard (JS adds .open) */
.nav-item.has-dropdown.open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Open via hover — mice only, so touch devices don't get sticky states */
@media (hover: hover) and (pointer: fine) {
    .nav-item.has-dropdown:hover > .dropdown,
    .nav-item.has-dropdown:focus-within > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Drawer-only chrome, hidden on desktop */
.nav-drawer-head,
.top-nav-mobile,
.top-actions-mobile,
.nav-overlay {
    display: none;
}

/* ---------- Hamburger ---------- */
.nav-toggle {
    display: none;
    position: relative;
    z-index: var(--z-nav-toggle);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius);
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================
   MOBILE NAV  (<= 900px)
   ============================================================= */
@media (max-width: 900px) {

    /* Top bar content is mirrored inside the drawer instead. */
    .top-bar {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* --- Backdrop --- */
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: var(--z-nav-overlay);
        background: rgba(4, 4, 10, 0.65);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* --- Off-canvas drawer --- */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-nav-drawer);

        width: min(var(--drawer-width), 88vw);
        height: 100vh;
        height: 100dvh;            /* correct height under mobile browser UI */
        max-height: 100vh;
        max-height: 100dvh;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        background: var(--bg-body);
        border-left: 1px solid var(--border-color);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);

        padding: 0 1.25rem 1.5rem;
        padding-right: max(1.25rem, env(safe-area-inset-right));
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));

        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;

        /* transform, not `right: -100%` — no horizontal scrollbar,
           and it is GPU-composited. */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.32s;
    }
    .main-nav.open {
        transform: translateX(0);
        visibility: visible;
    }

    /* --- Drawer header with close button --- */
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: var(--header-height);
        margin: 0 -0.25rem 0.5rem;
        padding-top: max(0.25rem, env(safe-area-inset-top));
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        background: var(--bg-body);
        z-index: 2;
    }
    .nav-drawer-title {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-muted);
        padding-left: 0.25rem;
    }
    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        border-radius: var(--radius);
        color: var(--text-primary);
        font-size: 1.25rem;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .nav-close:hover {
        background: var(--accent-subtle);
        color: var(--accent-light);
    }

    /* --- Mirrored top-bar links --- */
    .top-nav-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        list-style: none;
        margin: 0 0 0.5rem;
        padding: 0 0 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    .top-nav-mobile a {
        display: flex;
        align-items: center;
        min-height: 40px;
        color: var(--text-secondary);
        font-size: 0.85rem;
        font-weight: 500;
    }
    .top-nav-mobile a:hover {
        color: var(--accent);
    }

    /* --- Nav list becomes a stack --- */
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .nav-item {
        position: static;         /* dropdowns flow inline, not absolutely */
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    /* Link takes the space, caret is a big tap target on the right. */
    .nav-item-row {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        width: 100%;
    }
    .nav-link {
        flex: 1 1 auto;
        min-height: 48px;
        padding: 0.5rem 0.25rem;
        border-radius: var(--radius);
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
    }
    .dropdown-toggle {
        flex: 0 0 auto;
        width: 48px;
        min-height: 48px;
        margin-left: 0;
        padding: 0;
        font-size: 0.8rem;
        color: var(--text-secondary);
        -webkit-tap-highlight-color: transparent;
    }
    .dropdown-toggle:hover,
    .dropdown-toggle:active {
        background: var(--accent-subtle);
        color: var(--accent-light);
    }

    /* --- Accordion sub-menu --- */
    .dropdown {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        min-width: 0;
        width: 100%;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;

        /* Animate open/closed without ever clipping oddly. */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.3s;
    }
    .dropdown::before {
        content: none;            /* no hover bridge needed on touch */
    }

    .nav-item.has-dropdown.open > .dropdown {
        max-height: 32rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding: 0.25rem 0 0.6rem 0.85rem;
        border-left: 2px solid var(--border-color);
        margin: 0 0 0.4rem 0.25rem;
    }

    .dropdown li a {
        min-height: 44px;
        padding: 0.55rem 0.5rem;
        font-size: 0.95rem;
        white-space: normal;
        border-radius: var(--radius);
    }
    .dropdown li a:active {
        background: var(--accent-subtle);
    }

    /* Hover must not open panels on touch. Only .open does. */
    .nav-item.has-dropdown:hover > .dropdown,
    .nav-item.has-dropdown:focus-within > .dropdown {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .nav-item.has-dropdown.open:hover > .dropdown,
    .nav-item.has-dropdown.open:focus-within > .dropdown {
        max-height: 32rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* --- Mirrored top-bar actions --- */
    .top-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 0.85rem;
    }
    .top-actions-mobile a,
    .top-actions-mobile span {
        display: flex;
        align-items: center;
        min-height: 40px;
        color: var(--text-secondary);
        font-weight: 500;
    }
    .top-actions-mobile a:hover {
        color: var(--accent);
    }

    /* --- Client portal button pinned under the list --- */
    .header-actions {
        margin-top: 1rem;
        width: 100%;
    }
    .header-actions .btn {
        width: 100%;
        padding: 0.75rem 1.2rem;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-actions .btn:hover {
        transform: none;           /* no lift inside the drawer */
    }
}

/* Very short screens (landscape phones): tighten the drawer up. */
@media (max-width: 900px) and (max-height: 480px) {
    .nav-drawer-head { min-height: 48px; }
    .nav-link { min-height: 42px; font-size: 0.95rem; }
    .dropdown-toggle { min-height: 42px; }
    .dropdown li a { min-height: 40px; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Progressive enhancement: if JS fails, the drawer must never trap the user. */
.no-js .main-nav {
    position: static;
    transform: none;
    visibility: visible;
    height: auto;
}

/* ---------- Hero — Editorial, large background photography ---------- */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/mountains.jpeg') center center / cover no-repeat;
    opacity: 0.9;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 8, 15, 0.7) 0%, rgba(13, 9, 24, 0.5) 100%);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-content {
    max-width: 580px;
}
.hero-label {
    display: inline-block;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
}
.hero-content h1 {
    margin-bottom: 0.75rem;
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    max-width: 460px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hero-visual {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem;
        min-height: 400px;
        text-align: center;
    }
    .hero .container {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ---------- Sections — Editorial, varied ---------- */
.section {
    padding: 4.5rem 0;
}
.section + .section {
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-title.centered {
    text-align: center;
}
.section-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
    margin-bottom: 2.5rem;
}
.section-sub.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.8rem; }
    .section-sub { font-size: 1rem; margin-bottom: 1.75rem; }
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.card h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}
.card .feature-list {
    list-style: none;
}
.card .feature-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.card .feature-list li::before {
    content: '›';
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ---------- Feature Section — Image + Text editorial ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.feature-grid.reverse {
    direction: rtl;
}
.feature-grid.reverse > * {
    direction: ltr;
}
.feature-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.feature-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.feature-image:hover img {
    transform: scale(1.02);
}
.feature-content h2 {
    margin-bottom: 0.5rem;
}
.feature-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.feature-content .price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0 1rem;
}
.feature-content .price-large small {
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-muted);
}
.feature-content .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition);
}
.feature-content .btn-link:hover {
    gap: 0.6rem;
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-grid.reverse {
        direction: ltr;
    }
    .feature-image img {
        height: 200px;
    }
}

/* ---------- Datacentre Locations — Premium editorial cards ---------- */
.datacentre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.datacentre-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), border-color var(--transition);
    background: var(--bg-card);
}
.datacentre-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}
.datacentre-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.datacentre-card:hover img {
    transform: scale(1.03);
}
.datacentre-card .content {
    padding: 1.5rem;
}
.datacentre-card .location {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.datacentre-card h3 {
    margin: 0.1rem 0 0.2rem;
}
.datacentre-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.datacentre-card .btn {
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
}

@media (max-width: 1024px) {
    .datacentre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .datacentre-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Trust / Numbers ---------- */
.numbers-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: center;
}
.numbers-grid .number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.numbers-grid .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

@media (max-width: 480px) {
    .numbers-grid {
        gap: 2rem;
    }
    .numbers-grid .number {
        font-size: 2rem;
    }
}

/* ---------- About / Human Element ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.about-content h2 {
    margin-bottom: 0.5rem;
}
.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}
.about-content .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition);
}
.about-content .btn-link:hover {
    gap: 0.6rem;
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-image img {
        height: 200px;
    }
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--bg-purple-section);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 4rem 0;
}
.cta-section h2 {
    margin-bottom: 0.5rem;
}
.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.cta-section .btn {
    margin: 0 0.5rem;
}

@media (max-width: 480px) {
    .cta-section .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 280px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.footer-brand .tagline {
    color: var(--accent);
    font-weight: 600;
    margin: 0.25rem 0 0.4rem;
    font-size: 0.9rem;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 320px;
}
.footer-links h4 {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li {
    margin-bottom: 0.3rem;
}
.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}
.footer-links ul li a i {
    font-size: 0.8rem;
}
.footer-links ul li a:hover {
    color: var(--accent);
}
.footer-legal {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-legal p {
    margin-bottom: 0.15rem;
}
.legal-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.legal-links li a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color var(--transition);
}
.legal-links li a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .legal-links {
        gap: 0.75rem 1.25rem;
    }
}

/* ---------- Utilities ---------- */
.text-accent {
    color: var(--accent);
}
.bg-purple-light {
    background: var(--bg-purple-section);
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}