/* Shared site styles — extracted common core (header, nav, footer, cookie UI,
   shared section/product styles). Page-specific rules remain inline on each page. */

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


:root {
    --navy: #1a365d;
    --navy-deep: #0f1a2e;
    --navy-mid: #2d4a71;
    --orange: #ff6b35;
    --orange-hover: #e55a2b;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-900: #333;
    --radius-sharp: 4px;
    --mono: 'Overpass Mono', monospace;
    --heading: 'Overpass', sans-serif;
    --body: 'Source Sans Pro', sans-serif;
}


body {
    font-family: var(--body);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}


/* ── Header ─────────────────────────────────────────────── */
.header {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}


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


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


.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}


.logo a:hover { opacity: 0.8; }


.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}


.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: 6px; /* control — keeps its shape */
    font-size: 0.95rem;
    white-space: nowrap;
}


.nav-menu a:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--orange);
}


.nav-menu a.active {
    background: rgba(255, 107, 53, 0.2);
    color: var(--orange);
    font-weight: 600;
}


.contact-btn {
    background: var(--orange) !important;
    padding: 10px 20px !important;
    border-radius: 6px !important; /* control — keeps its shape */
    font-weight: 600 !important;
    margin-left: 6px;
}


.contact-btn:hover {
    background: var(--orange-hover) !important;
    transform: translateY(-2px);
}


/* ── Mobile Menu ────────────────────────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}


.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}


.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
}


.mobile-nav-menu.active { display: flex; }


.mobile-nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: color 0.3s ease;
}


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

.mobile-nav-menu a:last-child { border-bottom: none; }


.mobile-nav-menu .contact-btn {
    background: var(--orange);
    padding: 15px 20px;
    border-radius: 6px; /* control — keeps its shape */
    text-align: center;
    margin-top: 10px;
    border-bottom: none;
}


.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}


.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    mix-blend-mode: color;
}


.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 4;
    text-align: center;
}


.hero-strapline {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--orange);
    margin-bottom: 24px;
}


.hero-lead {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


.section-header {
    text-align: center;
    margin-bottom: 64px;
}


.section-label {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--orange);
    margin-bottom: 16px;
}


.section-title {
    font-family: var(--heading);
    color: var(--navy);
    font-size: 2.6rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 20px;
}


.section-subtitle {
    color: var(--gray-500);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}


/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: white;
    padding: 60px 0 30px;
}


.footer-section h3 {
    font-family: var(--heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--orange);
}


.footer-section p,
.footer-section li {
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 8px;
}


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


.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}


.footer-section a:hover { color: var(--orange); }


.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}


/* ── Cookie Banner ──────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(15, 26, 46, 0.98);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--orange);
}


.cookie-banner.show { transform: translateY(0); }


.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
}


.cookie-text strong { color: var(--orange); }


.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px; /* control — keeps its shape */
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}


.cookie-btn-accept {
    background: var(--orange);
    color: white;
}


.cookie-btn-accept:hover { background: var(--orange-hover); }


.cookie-btn-essential {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}


.cookie-btn-essential:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}


/* ── Cookie Settings Modal ──────────────────────────────── */
.cookie-settings-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    padding: 20px;
}


.cookie-settings-content {
    background: white;
    border-radius: 4px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}


.cookie-settings-header { margin-bottom: 20px; }


.cookie-settings-header h3 {
    color: var(--navy);
    font-family: var(--heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}


.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}


.cookie-category:last-child { border-bottom: none; }


.cookie-category h4 {
    color: var(--navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}


.cookie-toggle input { opacity: 0; width: 0; height: 0; }


.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}


.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}


input:checked + .cookie-slider { background-color: var(--orange); }

input:checked + .cookie-slider:before { transform: translateX(24px); }

.cookie-slider.disabled { opacity: 0.5; cursor: not-allowed; }


.cookie-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }


.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 4;
    text-align: center;
}

.hero-text .breadcrumb { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); margin-bottom: 16px; }

.hero-text .breadcrumb a { color: var(--orange); text-decoration: none; opacity: 0.7; }

.hero-text .breadcrumb a:hover { opacity: 1; }

.hero-text h1 { font-family: var(--heading); font-size: 3.5rem; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }

.hero-badge { display: inline-block; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; background: rgba(255,107,53,0.2); color: var(--orange); padding: 8px 20px; border: 1px solid rgba(255,107,53,0.4); border-radius: 6px; /* control — keeps its shape */ margin-bottom: 24px; }

.hero-text p { font-size: 1.2rem; opacity: 0.9; line-height: 1.7; margin-bottom: 32px; max-width: 800px; margin-left: auto; margin-right: auto; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.problem-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }

.problem-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }

.problem-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(to right, rgba(15,26,46,0.85) 0%, rgba(15,26,46,0.5) 50%, rgba(15,26,46,0.2) 100%); }

.problem-label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--orange); margin-bottom: 20px; }

.cap-header { text-align: center; margin-bottom: 80px; }

.cap-label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--orange); margin-bottom: 12px; }

.cap-title { font-family: var(--heading); font-size: 2.4rem; color: var(--navy); font-weight: 600; }


.cap-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.cap-row:last-child { margin-bottom: 0; }

.cap-row.reverse { direction: rtl; }

.cap-row.reverse > * { direction: ltr; }


.cap-image { border-radius: var(--radius-sharp); overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

.cap-image img { width: 100%; height: 360px; object-fit: cover; display: block; transition: transform 0.4s ease; }

.cap-image:hover img { transform: scale(1.03); }


.cap-text .cap-num { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }

.cap-text h3 { font-family: var(--heading); font-size: 1.8rem; color: var(--navy); font-weight: 600; margin-bottom: 16px; }

.cap-text p { color: var(--gray-700); font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }

.cap-data { font-family: var(--mono); font-size: 0.85rem; color: var(--orange); font-weight: 600; letter-spacing: 0.5px; padding: 10px 16px; background: rgba(255,107,53,0.08); border-radius: 3px; display: inline-block; }


/* ── Specs at a Glance ───────────────────────── */
.specs-glance {
    background: var(--navy-deep);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.specs-glance::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="0.04"/></svg>'); background-size: 200px; z-index: 1; }


.specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    position: relative;
    z-index: 2;
}

.spec-card { text-align: center; color: white; padding: 24px 16px; }

.spec-value { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--orange); line-height: 1.2; margin-bottom: 8px; }

.spec-label { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.6; }


/* ── Full Spec Table ──────────────────────────── */
.specs-detail { padding: 80px 0; background: var(--gray-50); }

.specs-detail-header { text-align: center; margin-bottom: 48px; }

.specs-detail-title { font-family: var(--heading); font-size: 2rem; color: var(--navy); font-weight: 600; }


.specs-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-sharp);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.specs-table-wrap table { width: 100%; border-collapse: collapse; }

.specs-table-wrap th { background: var(--navy); color: white; padding: 16px 24px; text-align: left; font-weight: 600; }

.specs-table-wrap td { padding: 14px 24px; border-bottom: 1px solid var(--gray-100); }

.specs-table-wrap td:last-child { font-family: var(--mono); font-weight: 600; color: var(--navy); }

.specs-table-wrap tr:last-child td { border-bottom: none; }

.specs-table-wrap tr:hover { background: var(--gray-50); }


.app-header { text-align: center; margin-bottom: 60px; }

.app-label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--orange); margin-bottom: 12px; }

.app-title { font-family: var(--heading); font-size: 2.4rem; font-weight: 600; margin-bottom: 12px; }

.app-subtitle { opacity: 0.8; font-size: 1.1rem; }


.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-card {
    position: relative;
    border-radius: var(--radius-sharp);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.app-card:hover { transform: translateY(-6px); }

.app-card-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }

.app-card-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.app-card:hover .app-card-bg img { transform: scale(1.05); }

.app-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; background: linear-gradient(to top, rgba(15,26,46,0.9) 0%, rgba(15,26,46,0.3) 60%, transparent 100%); }

.app-card-content { position: relative; z-index: 3; padding: 24px; }

.app-card h3 { font-family: var(--heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }

.app-card p { font-size: 0.85rem; opacity: 0.8; line-height: 1.4; }

.related-header { text-align: center; margin-bottom: 40px; }

.related-title { font-family: var(--heading); font-size: 2rem; color: var(--navy); margin-bottom: 8px; }

.related-subtitle { color: var(--gray-500); }

@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .spec-value { font-size: 1.3rem; }
}
