:root {
    --gold: #b8963e;
    --gold-light: #d4b76a;
    --red: #e30613;
    --red-dark: #b8050f;
    --navy: #1a2d4a;
    --blue: #2f5aae;
    --gray-900: #1f1f1f;
    --gray-700: #4a4a4a;
    --gray-500: #777;
    --gray-200: #e8e8e8;
    --gray-100: #f5f5f5;
    --white: #fff;
    --font-sans: "Montserrat", Arial, sans-serif;
    --font-serif: "Cinzel", Georgia, serif;
    --container: 1240px;
    --header-height: 92px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 9999;
    background: var(--white);
    padding: 8px 12px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    line-height: 1;
}

.logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-top: 4px;
}

.logo-sub-tr {
    font-size: 0.52rem;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.main-nav a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: capitalize;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--red);
    border-radius: 999px;
    overflow: hidden;
    min-width: 180px;
}

.header-search input {
    border: 0;
    outline: 0;
    padding: 10px 14px;
    font: inherit;
    width: 100%;
    background: transparent;
}

.header-search button {
    border: 0;
    background: transparent;
    color: var(--red);
    padding: 0 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-900);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    display: none;
    min-height: 560px;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.72);
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.35));
}

.hero-slide-content {
    position: relative;
    z-index: 1;
    min-height: 560px;
    display: grid;
    grid-template-columns: 180px 1fr 280px;
    align-items: center;
    gap: 24px;
    padding: 48px 0;
}

.hero-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-product-btn {
    display: block;
    padding: 12px 16px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.2s;
}

.hero-product-btn:hover {
    background: var(--red-dark);
}

.hero-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(184, 150, 62, 0.88);
    padding: 18px 24px;
    max-width: 720px;
}

.hero-title-bar h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-nav {
    display: flex;
    gap: 8px;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
}

.product-3d-placeholder,
.fireball-visual {
    width: 100%;
    aspect-ratio: 1;
    background:
        linear-gradient(145deg, #c41e24 0%, #8f0f14 100%),
        repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(0, 0, 0, 0.08) 18px, rgba(0, 0, 0, 0.08) 36px);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Info cards */
.info-cards {
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding-bottom: 48px;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.info-card {
    padding: 32px 24px;
    color: var(--white);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.info-card h6 {
    margin: 0 0 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-card p {
    margin: 0 0 20px;
    font-size: 0.9rem;
    opacity: 0.92;
}

.info-card-dark { background: var(--navy); }
.info-card-blue { background: var(--blue); }
.info-card-gray { background: #3d3d3d; }
.info-card-red { background: var(--red); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

.btn-outline {
    color: var(--red);
    border-color: var(--red);
    background: transparent;
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--gray-900);
}

/* Sections */
.section-pad {
    padding: 72px 0;
}

.section-muted {
    background: var(--gray-100);
}

.page-hero {
    padding: 56px 0 32px;
    background: linear-gradient(180deg, #fafafa, #fff);
}

.page-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-gold-title {
    color: var(--gold);
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: 0.06em;
}

.lead {
    color: var(--gray-500);
    margin: 0;
}

.content-prose {
    max-width: 820px;
}

.content-prose h2 {
    margin-top: 32px;
    color: var(--navy);
}

/* Products */
.product-category-list {
    display: grid;
    gap: 32px;
}

.product-category-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-category-image {
    min-height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-category-overlay {
    position: absolute;
    inset: auto auto 24px 24px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    padding: 24px;
    border-left: 4px solid var(--red);
}

.product-category-tag {
    display: block;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}

.product-category-overlay h3 {
    margin: 0 0 16px;
    font-size: 1.3rem;
}

.product-category-desc {
    padding: 20px 24px;
    margin: 0;
    background: var(--white);
}

/* Sectors */
.sectors-grid,
.offices-grid,
.media-grid,
.contact-grid {
    display: grid;
    gap: 24px;
}

.sectors-grid {
    grid-template-columns: repeat(2, 1fr);
}

.sector-card,
.office-card,
.media-card,
.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sector-image,
.media-thumb {
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--gray-200);
}

.sector-body,
.office-card,
.media-card,
.contact-card {
    padding: 24px;
}

.media-thumb-video { background-image: linear-gradient(135deg, #1a2d4a, #2f5aae); }
.media-thumb-doc { background-image: linear-gradient(135deg, #b8963e, #d4b76a); }
.media-thumb-gallery { background-image: linear-gradient(135deg, #e30613, #8f0f14); }

.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}

/* References */
.references h2,
.section-cta {
    text-align: center;
}

.references-grid,
.references-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.reference-logo {
    min-height: 90px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--gray-200);
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--gray-100);
}

.section-cta {
    margin-top: 32px;
}

/* Region banner */
.region-banner {
    background: linear-gradient(135deg, var(--navy), #0f1a2b);
    color: var(--white);
    padding: 48px 0;
}

.region-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.eyebrow {
    display: inline-block;
    color: var(--gold-light);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Contact */
.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.form-error {
    color: var(--red);
    margin: 0;
}

.search-results {
    display: grid;
    gap: 12px;
}

.search-results a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.search-results a:hover {
    border-color: var(--red);
    color: var(--red);
}

.header-search-page {
    margin-top: 20px;
    max-width: 480px;
}

/* Footer */
.site-footer {
    background: #111;
    color: #ddd;
    margin-top: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 24px;
    padding: 48px 0;
}

.footer-col h2 {
    color: var(--gold);
    font-size: 0.95rem;
    margin: 0 0 16px;
}

.footer-col ul {
    display: grid;
    gap: 8px;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-made,
.footer-company,
.footer-region {
    margin: 0 0 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-bottom h3 {
    margin: 0;
    color: var(--gold);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
}

.copyright {
    margin: 0;
    font-size: 0.82rem;
    color: #999;
}

/* Placeholder backgrounds for hero/product images */
.hero-slide:nth-child(1) .hero-slide-bg,
[style*="hero/slide-1"] {
    background-color: #2a1810;
}

/* Responsive */
@media (max-width: 1100px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slide-content {
        grid-template-columns: 140px 1fr;
    }

    .hero-product-visual {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        display: none;
        padding: 16px;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .header-search {
        display: none;
    }

    .hero-slide-content {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 120px 0 48px;
    }

    .hero-product-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-product-btn {
        flex: 1 1 calc(50% - 8px);
    }

    .sectors-grid,
    .contact-grid,
    .split-section,
    .region-banner-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .references-grid,
    .references-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .info-cards-grid,
    .references-grid,
    .references-grid-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo-mark {
        font-size: 1.5rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--gray-100);
    padding: 12px 0;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li + li::before {
    content: "›";
    margin-right: 8px;
    color: var(--gray-500);
}

.breadcrumbs a:hover {
    color: var(--red);
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 32px;
    color: var(--navy);
}

/* Product grid & cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.product-card-image-link {
    display: block;
    background: #f0f0f0;
}

.product-card-image,
.product-detail-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: linear-gradient(180deg, #f5f5f5, #e8e8e8);
    min-height: 200px;
    padding: 16px;
}

.product-detail-image {
    min-height: 360px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.product-card-image {
    min-height: 220px;
    padding: 12px;
}

.product-card-body {
    padding: 20px;
}

.product-card-body h3 {
    margin: 8px 0;
}

.product-card-specs {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin: 12px 0;
    padding-left: 18px;
}

.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.category-header {
    margin-bottom: 32px;
    max-width: 800px;
}

/* Product detail */
.product-detail-hero {
    background: var(--gray-100);
    padding: 48px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.product-detail-image {
    min-height: 320px;
}

.product-quick-specs {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.product-quick-specs li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.product-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 8px;
}

.tab {
    border: 0;
    background: transparent;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-700);
    border-radius: 6px 6px 0 0;
}

.tab.active {
    color: var(--red);
    background: var(--white);
    box-shadow: inset 0 -2px 0 var(--red);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.spec-table th {
    background: var(--gray-100);
    width: 35%;
    font-weight: 600;
}

.app-list {
    padding-left: 20px;
}

.app-list li {
    margin-bottom: 8px;
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.cert-list li {
    background: var(--navy);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px 20px;
    background: var(--white);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-item summary h2 {
    display: inline;
    font-size: 1rem;
    margin: 0;
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--gray-700);
}

/* Mini product grid */
.product-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.product-mini-card {
    display: block;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.2s;
}

.product-mini-card:hover {
    border-color: var(--red);
}

.product-mini-card strong {
    display: block;
    color: var(--navy);
}

.product-mini-card span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.blog-card-image-link {
    display: block;
    background: #f4f4f4;
}

.blog-card-image-link img,
.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 16px;
    box-sizing: border-box;
}

.blog-card-image {
    min-height: 200px;
    background: #f4f4f4;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-card-body {
    padding: 20px;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-article h1 {
    margin-top: 8px;
}

.article-cta {
    margin-top: 32px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: 12px;
}

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    padding: 40px 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Sector hero */
.sector-hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 72px 0;
}

.lead-light {
    color: rgba(255, 255, 255, 0.9);
}

.sector-card-rich .sector-image-link {
    display: block;
}

.sector-apps-preview {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 12px 0;
    padding-left: 18px;
}

.search-type {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.search-results a strong {
    display: block;
    margin: 4px 0;
}

.search-results a p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

@media (max-width: 900px) {
    .product-grid,
    .blog-grid,
    .product-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .product-grid,
    .blog-grid,
    .product-mini-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}
