/* Combined core.css = main.css + header.css + footer.css, merged to cut
   three render-blocking requests down to one on every page. Selectors
   don't overlap between the three (verified before merging), so this is
   a pure concatenation -- cascade order is unchanged. */

/* ===== GLOBAL STYLES - PREMIUM DEFENSE ===== */

:root {
    --primary: #00b6de;
    --secondary: #0a0e1a;
    --accent: #00d9ff;
    --neutral-light: #f5f7fa;
    --text-dark: #1a1f36;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --surface: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--surface);
    letter-spacing: -0.3px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

h1 { font-size: 64px; line-height: 1.15; letter-spacing: -1px; }
h2 { font-size: 52px; line-height: 1.2; }
h3 { font-size: 32px; line-height: 1.3; }
h4 { font-size: 24px; line-height: 1.4; }

p {
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 18px;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.35s ease;
}

a:hover {
    color: #0099b8;
}

button, input[type="button"], input[type="submit"] {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: all 0.35s ease;
}

/* ===== BUTTONS - PREMIUM ===== */
.btn-primary {
    background: white;
    color: #0a0e1a;
    padding: 14px 44px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    transition: all 0.35s ease;
}

.btn-primary:hover {
    background: #f5f7fa;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1.5px solid white;
    padding: 14px 44px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.35s ease;
    letter-spacing: 0.3px;
}

.btn-secondary:hover {
    background: white;
    color: #0a0e1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0px);
}

/* ===== CONTAINER & SECTIONS ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

section {
    padding: 120px 48px;
}

section.alt-bg {
    background: #f5f7fa;
}

/* ===== GRID SYSTEMS ===== */
.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

/* ===== CARD STYLES - PREMIUM MINIMAL ===== */
.card {
    background: var(--surface);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.card-icon i {
    font-size: 28px;
    color: var(--primary);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
    line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
.card:nth-child(5) { animation-delay: 0.4s; }
.card:nth-child(6) { animation-delay: 0.5s; }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    h1 { font-size: 52px; }
    h2 { font-size: 42px; }

    section {
        padding: 100px 32px;
    }

    .container {
        padding: 0 32px;
    }

    .grid-5, .grid-6 {
        gap: 32px;
    }

    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 26px; }

    p {
        font-size: 16px;
    }

    section {
        padding: 80px 24px;
    }

    .container {
        padding: 0 24px;
    }

    .grid-5, .grid-6 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card {
        padding: 32px 24px;
    }

    .card-icon {
        width: 56px;
        height: 56px;
    }

    .card-icon i {
        font-size: 24px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }

    p {
        font-size: 15px;
    }

    section {
        padding: 60px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .card {
        padding: 24px 16px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon i {
        font-size: 20px;
    }

    .card h3 {
        font-size: 18px;
    }
}

/* ===== header.css ===== */
/* ===== HEADER STYLES - PREMIUM DEFENSE ===== */

.site-header {
    background: rgba(255, 255, 255, 0.50);
    border-bottom: none;
    padding: 13px 38px;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
    border-radius: 12px;
    width: calc(100% - 40px);
    max-width: 1400px;
    backdrop-filter: blur(8px);
}

.site-header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.site-branding {
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    height: 32px;
}

.logo img {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.site-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: #000000;
    font-weight: 700;
    font-size: 13px;
    transition: color 0.35s ease;
    display: block;
    padding: 6px 0;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.site-header:hover .nav-menu > li > a:not(.btn-primary) {
    color: #000000;
    font-weight: 700;
}

.site-header:hover .nav-menu a:hover {
    color: var(--primary);
    font-weight: 700;
}

.site-header .btn-primary {
    flex: 0 0 auto;
    margin-left: 32px;
    padding: 10px 26px;
    background: black;
    color: white;
    box-shadow: none;
    border: none;
    transition: all 0.90s ease;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-header .btn-primary:hover {
    background: #00b6de;
    color: white;
    box-shadow: none;
    transform: none;
}

.site-header:hover .btn-primary {
    background: black;
    color: white;
    box-shadow: none;
}

.site-header:hover .btn-primary:hover {
    background: #00b6de;
    color: white !important;
    box-shadow: none;
    transform: none;
}

.nav-menu .btn-primary:hover {
    color: white !important;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    order: 1;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: #000000;
    transition: all 0.35s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== DROPDOWN MENU ===== */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown > a {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.35s ease;
    padding: 12px 0;
    margin-top: 12px;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.nav-item-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 14px 24px 14px 16px;
    color: #1a1f36;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.dropdown-menu .dropdown-item:hover {
    color: #00b6de;
    border-left-color: var(--primary);
}

.dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0;
    transition: color 0.35s ease;
}

/* ===== NESTED DROPDOWN (CovertEye submenu) ===== */
.dropdown-menu .dropdown-item.dropdown-item-nested {
    position: relative;
    padding: 0;
}

.dropdown-item-nested .dropdown-item-link {
    display: block;
    padding: 14px 24px 14px 16px;
    color: #1a1f36;
    text-decoration: none;
}

.dropdown-item-nested:hover .dropdown-item-link {
    color: #00b6de;
}

.dropdown-item-nested::after {
    content: '\203A';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.dropdown-submenu {
    position: absolute;
    top: -12px;
    left: 100%;
    margin-left: 8px;
    min-width: 220px;
}

.dropdown-item-nested:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-desc {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .site-header {
        padding: 16px 32px;
        top: 16px;
        width: calc(100% - 32px);
    }

    .site-header:hover {
        background: white;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    .nav-menu {
        gap: 24px;
    }

    .nav-menu a {
        font-size: 14px;
        font-weight: 700;
    }

    .site-header .btn-primary {
        padding: 12px 32px;
        font-size: 15px;
        margin-left: 24px;
        background: #000000;
        box-shadow: none;
    }

    .site-header .btn-primary:hover {
        background: #00b6de;
        transform: none;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 14px 20px;
        top: 12px;
        width: calc(100% - 24px);
        border-radius: 10px;
    }

    .header-container {
        flex-wrap: nowrap;
        gap: 16px;
    }

    .site-branding {
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .logo img {
        height: 32px;
    }

    .site-navigation {
        width: auto;
        justify-content: flex-start;
        margin-bottom: 0;
        flex: 1;
        overflow-x: auto;
    }

    .nav-menu {
        gap: 14px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .nav-menu a {
        font-size: 13px;
        font-weight: 700;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        opacity: 0;
        visibility: hidden;
        display: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        background: white;
        min-width: 220px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px 0 12px 12px;
        z-index: 1000;
    }

    .nav-item-dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-submenu {
        position: static;
        margin-left: 0;
        margin-top: 8px;
        min-width: 0;
        box-shadow: none;
        border-color: #e5e7eb;
    }

    .dropdown-item-nested:hover .dropdown-submenu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu .dropdown-item {
        padding: 12px 16px 12px 10px;
        font-size: 13px;
        display: block;
        color: #1a1f36;
        text-decoration: none;
        transition: all 0.35s ease;
        border-left: 3px solid transparent;
    }

    .dropdown-menu .dropdown-item:hover {
        color: #00b6de;
        border-left-color: var(--primary);
        transform: translateX(0);
    }

    .dropdown-title {
        font-size: 13px;
        font-weight: 700;
        display: block;
    }

    .dropdown-desc {
        font-size: 12px;
        color: #6b7280;
        display: none;
    }

    .site-header .btn-primary {
        padding: 10px 20px;
        margin-left: 12px;
        font-size: 13px;
        flex-shrink: 0;
        background: #000000;
        box-shadow: none;
    }

    .site-header .btn-primary:hover {
        background: #00b6de;
        transform: none;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 12px 14px;
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 8px;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .site-branding {
        width: auto;
        flex-shrink: 0;
    }

    .logo img {
        height: 28px;
    }

    .hamburger-menu {
        display: flex;
    }

    .site-navigation {
        width: 100%;
        order: 3;
        flex-basis: 100%;
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 16px 0;
        z-index: 999;
    }

    .site-navigation.active {
        display: block;
    }

    .nav-menu {
        gap: 0;
        font-size: 11px;
        flex-direction: column;
    }

    .nav-menu > li {
        flex: 0 0 auto;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        font-size: 11px;
        padding: 12px 20px;
        font-weight: 600;
        display: block;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        opacity: 0;
        visibility: hidden;
        display: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        background: white;
        min-width: 200px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px 0;
        z-index: 1000;
    }

    .nav-item-dropdown:hover > .dropdown-menu,
    .nav-item-dropdown:active > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-submenu {
        position: static;
        margin-left: 0;
        margin-top: 6px;
        min-width: 0;
        box-shadow: none;
        border-color: #e5e7eb;
    }

    .dropdown-item-nested:hover .dropdown-submenu,
    .dropdown-item-nested:active .dropdown-submenu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu .dropdown-item {
        padding: 12px 20px 12px 14px;
        font-size: 12px;
        display: block;
        color: #1a1f36;
        text-decoration: none;
        transition: color 0.35s ease, border-color 0.35s ease;
        border-left: 3px solid transparent;
    }

    .dropdown-menu .dropdown-item:hover {
        color: #00b6de;
        border-left-color: var(--primary);
    }

    .dropdown-title {
        font-size: 12px;
        font-weight: 700;
        display: block;
    }

    .dropdown-desc {
        display: none;
    }

    .site-header .btn-primary {
        padding: 8px 14px;
        font-size: 11px;
        flex-shrink: 0;
        background: #000000;
        box-shadow: none;
        order: 2;
        white-space: nowrap;
    }

    .site-header .btn-primary:hover {
        background: #00b6de;
        transform: none;
    }
}

/* ===== footer.css ===== */
/* ===== FOOTER STYLES - MODERN LIGHT DESIGN ===== */

.site-footer {
    background: #f5f7fa;
    color: #1a1f36;
    padding: 80px 24px 40px;
    margin-top: 0;
}

.footer-card {
    background: white;
    padding: 80px 60px;
    margin-bottom: 48px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

/* Footer Header - Logo + Newsletter */
.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.35s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-newsletter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-newsletter label {
    font-size: 16px;
    font-weight: 500;
    color: #1a1f36;
    white-space: nowrap;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    width: 280px;
    background: #f0f4f8;
    color: #1a1f36;
    transition: all 0.35s ease;
}

.newsletter-form input::placeholder {
    color: #a0a8b0;
}

.newsletter-form input:focus {
    outline: none;
    background: #e8ecf0;
}

.btn-signup {
    padding: 12px 24px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.btn-signup:hover {
    background: #00b6de;
    transform: translateY(-2px);
}

.newsletter-status {
    font-size: 13px;
    margin-top: 8px;
}

.newsletter-status.success { color: #1e8a4c; }
.newsletter-status.error { color: #c0392b; }

/* Footer Middle Section */
.footer-middle {
    display: flex;
    gap: 80px;
}

.footer-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-usa {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #1a1f36;
}

.usa-flag {
    font-size: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-usa p {
    margin: 0;
    font-weight: 600;
    color: #1a1f36;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.footer-social p {
    margin: 0;
    font-size: 15px;
    color: #1a1f36;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #d0d8e0;
    border-radius: 4px;
    color: #1a1f36;
    font-size: 16px;
    transition: all 0.35s ease;
}

.social-links a:hover {
    background: #00b6de;
    color: white;
    border-color: #00b6de;
    transform: translateY(-2px);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    flex: 1;
}

.footer-section h3 {
    color: #1a1f36;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #5a6370;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.35s ease;
    letter-spacing: 0.2px;
}

.footer-section a:hover {
    color: #00b6de;
}

/* Footer Bottom - Outside Card */
.footer-bottom-section {
    padding: 0 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    font-size: 12px;
    color: #7a8594;
}

.footer-address {
    flex: 0 0 auto;
}

.footer-address p {
    margin: 0;
    font-size: 12px;
}

.footer-copyright {
    flex: 1;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 12px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.footer-legal a {
    color: #7a8594;
    text-decoration: none;
    transition: color 0.35s ease;
    font-size: 12px;
}

.footer-legal a:hover {
    color: #00b6de;
}

.footer-legal span {
    color: #d0d8e0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .site-footer {
        padding: 64px 24px 40px;
        margin-top: 0;
    }

    .footer-card {
        padding: 64px 48px;
        margin-bottom: 32px;
    }

    .footer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-newsletter {
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-middle {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .footer-bottom-section {
        padding: 0 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 24px 32px;
        margin-top: 80px;
    }

    .footer-card {
        padding: 48px 32px;
        margin-bottom: 24px;
    }

    .footer-header {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-middle {
        flex-direction: column;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-section h3 {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .footer-section a {
        font-size: 13px;
    }

    .footer-bottom-section {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 16px 24px;
        margin-top: 60px;
    }

    .footer-card {
        padding: 40px 24px;
        margin-bottom: 20px;
    }

    .footer-header {
        flex-direction: column;
    }

    .footer-newsletter label {
        font-size: 14px;
    }

    .footer-middle {
        flex-direction: column;
        gap: 24px;
    }

    .footer-left {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 13px;
    }

    .footer-section a {
        font-size: 13px;
    }

    .footer-bottom-section {
        padding: 0 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        font-size: 12px;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ===== COOKIE CONSENT BANNER + PREFERENCE MODAL ===== */

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 900px;
    margin: 0 auto;
    background: #1a1f36;
    color: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 4000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

/* Kept to a 12px nudge (not a full off-screen slide) so the entrance
   animation stays mostly opacity-driven -- a large translateY here is what
   was registering as a Cumulative Layout Shift on page load. */
.cookie-banner.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #d8e4ea;
}

.cookie-banner-text a {
    color: #00d9ff;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.cookie-btn-primary {
    background: white;
    color: #1a1f36;
}

.cookie-btn-primary:hover {
    opacity: 0.9;
}

.cookie-btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* The modal has a white card background, unlike the dark banner, so its
   secondary button needs dark text instead of the banner's white text. */
.cookie-modal .cookie-btn-secondary {
    color: var(--text-dark);
    border-color: #d0d5e0;
}

.cookie-modal .cookie-btn-secondary:hover {
    background: var(--neutral-light);
}

.cookie-btn-link {
    background: none;
    border: none;
    color: #d8e4ea;
    text-decoration: underline;
    font-weight: 400;
    padding: 10px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ===== Preference modal ===== */

.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 4100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 36px;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.cookie-modal-overlay.active .cookie-modal {
    transform: scale(1);
}

.cookie-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--neutral-light);
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal h2 {
    font-size: 24px;
    margin-bottom: 8px;
    padding-right: 32px;
}

.cookie-modal-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5268;
    margin-bottom: 24px;
}

.cookie-modal-intro a {
    color: #00b6de;
}

.cookie-category {
    border-top: 1px solid #e2e6ee;
    padding: 20px 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.cookie-category-header h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
}

.cookie-category p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    cursor: pointer;
}

.cookie-toggle-track {
    position: absolute;
    inset: 0;
    background: #d0d5e0;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cookie-toggle-track::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-track {
    background: #00b6de;
}

.cookie-toggle input:checked + .cookie-toggle-track::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-track {
    background: #00b6de;
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

body.cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }

    .cookie-modal {
        padding: 28px 22px;
    }
}
