/* ═══════════════════════════════════════════════════════════════
   Rosehill Chemicals — Design System
   Capable. Innovative. Grounded.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    /* Brand */
    --navy: #1a365d;
    --navy-mid: #2d4a71;
    --navy-deep: #0f2440;
    --orange: #ff6b35;
    --orange-hover: #e55a2b;

    /* Neutrals */
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-400: #adb5bd;
    --gray-600: #6c757d;
    --gray-800: #495057;
    --gray-900: #333333;
    --white: #ffffff;

    /* Typography */
    --heading: 'Overpass', sans-serif;
    --body: 'Source Sans Pro', sans-serif;
    --mono: 'Overpass Mono', 'SF Mono', 'Consolas', monospace;

    /* Type Scale */
    --text-xs: 0.8rem;
    --text-sm: 0.9rem;
    --text-base: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 2.5rem;
    --text-4xl: 3.25rem;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 80px;
    --space-10: 100px;

    /* Layout */
    --max-width: 1400px;
    --content-width: 800px;

    /* Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Borders */
    --border: 1px solid var(--gray-100);
    --border-strong: 1px solid var(--gray-200);
}


/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; }


/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* ── Header & Navigation ────────────────────────────────────── */
.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);
}

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

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

.logo img {
    height: 60px;
    width: auto;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    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;
}

.cta-button {
    background: var(--orange);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-left: 6px;
    font-size: var(--text-sm);
}

.cta-button:hover {
    background: var(--orange-hover);
}

/* 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.2s ease;
}

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

.mobile-nav-menu a.active {
    color: var(--orange);
    font-weight: 600;
}

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

.mobile-nav-menu .contact-btn {
    background: var(--orange);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 10px;
}

.mobile-nav-menu .contact-btn:hover {
    background: var(--orange-hover);
}


/* ── Hero — Ken Burns ───────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    color: white;
    padding: 0;
    margin-top: 70px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-image.kenburns-1 img {
    animation: kenburns-1 12s ease-in-out infinite alternate;
}

.hero-bg-image.kenburns-2 img {
    animation: kenburns-2 12s ease-in-out infinite alternate;
}

.hero-bg-image.kenburns-3 img {
    animation: kenburns-3 12s ease-in-out infinite alternate;
}

@keyframes kenburns-1 {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, -1%); }
}

@keyframes kenburns-2 {
    from { transform: scale(1.05) translate(1%, 0); }
    to   { transform: scale(1) translate(-1%, 1%); }
}

@keyframes kenburns-3 {
    from { transform: scale(1) translate(-1%, 1%); }
    to   { transform: scale(1.06) translate(1%, -1%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(15, 36, 64, 0.55), rgba(15, 36, 64, 0.45));
}

/* SVG grid pattern on hero */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0.06;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-10) 20px;
    position: relative;
    z-index: 4;
    width: 100%;
}

.hero-glass {
    max-width: 680px;
    padding: var(--space-7) var(--space-7);
    background: rgba(26, 54, 93, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-eyebrow {
    font-family: var(--heading);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--orange);
    flex-shrink: 0;
}

.hero h1 {
    font-family: var(--heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-5);
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: white;
}

.hero-lead {
    font-size: var(--text-md);
    opacity: 0.95;
    margin-bottom: var(--space-6);
    line-height: 1.6;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Compact hero for inner pages */
.hero--compact {
    min-height: 420px;
}

.hero--compact .hero-content {
    padding: var(--space-9) 20px;
}

.hero--compact .hero-glass {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero--compact .hero-eyebrow {
    justify-content: center;
}

.hero--compact .hero-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Simple hero for contact page */
.hero--simple {
    min-height: auto;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: var(--space-9) 0 var(--space-8);
}

.hero--simple .hero-content {
    padding: 0 20px;
    text-align: center;
}

.hero--simple h1 {
    margin-bottom: var(--space-3);
}


/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
    position: relative;
    z-index: 5;
    margin-top: -48px;
    margin-bottom: var(--space-9);
}

.stats-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.stats-bar-grid {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: var(--space-6) var(--space-7);
}

.stats-bar-item {
    text-align: center;
    padding: var(--space-3) var(--space-4);
    position: relative;
}

.stats-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--gray-200);
}

.stats-bar-value {
    font-family: var(--mono);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stats-bar-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-600);
    font-weight: 600;
    margin-top: var(--space-1);
}


/* ── Section Headers ────────────────────────────────────────── */
.section {
    padding: var(--space-10) 0;
}

.section--gray {
    background: var(--gray-50);
}

.section--white {
    background: var(--white);
}

.section--dark {
    background: var(--navy-deep);
    color: white;
    position: relative;
    overflow: hidden;
}

.section--navy {
    background: var(--navy);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-7);
}

.section-header--left {
    text-align: left;
}

.section-header--left .section-subtitle {
    margin-left: 0;
}

.section-header--left .section-rule {
    margin-left: 0;
}

.section-eyebrow {
    font-family: var(--heading);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-600);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header .section-eyebrow {
    justify-content: center;
}

.section-eyebrow::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--orange);
    flex-shrink: 0;
}

.section-rule {
    width: 48px;
    height: 2px;
    background: var(--orange);
    border: none;
    margin: var(--space-4) auto var(--space-5);
}

.section-header--left .section-rule {
    margin-left: 0;
}

.section-title {
    font-family: var(--heading);
    color: var(--navy);
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: var(--text-md);
    max-width: 700px;
    margin: var(--space-4) auto 0;
    line-height: 1.6;
}

/* Dark section overrides */
.section--dark .section-title,
.section--navy .section-title {
    color: white;
}

.section--dark .section-subtitle,
.section--navy .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.section--dark .section-eyebrow,
.section--navy .section-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}


/* ── SVG Texture Overlays (for dark sections) ───────────────── */
.section--dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px;
}

.section--dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0H0v50' fill='none' stroke='%23ffffff' stroke-width='0.3'/%3E%3C/svg%3E");
}


/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    background: var(--orange);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    display: inline-block;
    border: 2px solid var(--orange);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    display: inline-block;
    border: 2px solid var(--gray-200);
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--navy);
}

/* Ghost button on dark backgrounds */
.btn-ghost {
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
}

/* White button for orange sections */
.btn-white {
    background: white;
    color: var(--orange);
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    display: inline-block;
    border: 2px solid white;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}


/* ── Left-Border Accent Cards ───────────────────────────────── */
.accent-card {
    background: var(--white);
    border-left: 3px solid var(--orange);
    padding: var(--space-5) var(--space-6);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
    .accent-card:hover {
        transform: translateX(6px);
        box-shadow: var(--shadow-md);
    }
}

.accent-card h3 {
    font-family: var(--heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.accent-card p {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.6;
}

/* On dark backgrounds */
.accent-card--dark {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--orange);
}

.accent-card--dark h3 {
    color: white;
}

.accent-card--dark p {
    color: rgba(255, 255, 255, 0.8);
}


/* ── Top-Border Accent Cards ────────────────────────────────── */
.card-accent-top {
    background: var(--white);
    border-top: 3px solid var(--orange);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .card-accent-top:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
    }
}

.card-accent-top .card-body {
    padding: var(--space-5);
}

.card-accent-top h3 {
    font-family: var(--heading);
    color: var(--navy);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}


/* ── Glass Panel ────────────────────────────────────────────── */
.glass-panel {
    background: rgba(26, 54, 93, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-7);
    color: white;
}

.glass-panel--light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--gray-900);
}


/* ── Horizontal Bar Bullets ─────────────────────────────────── */
.bar-list {
    list-style: none;
    padding: 0;
}

.bar-list li {
    padding: var(--space-2) 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-800);
    line-height: 1.6;
}

.bar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 8px;
    height: 2px;
    background: var(--orange);
}

/* Bar list on dark backgrounds */
.bar-list--light li {
    color: rgba(255, 255, 255, 0.9);
}


/* ── Checkmark List (kept for compatibility) ────────────────── */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: var(--space-2) 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-800);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}


/* ── Zigzag Rows (alternating image/text) ───────────────────── */
.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
    padding: var(--space-7) 0;
}

.zigzag-row:not(:last-child) {
    border-bottom: var(--border);
}

.zigzag-row:nth-child(even) .zigzag-image {
    order: -1;
}

.zigzag-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.zigzag-text h3 {
    font-family: var(--heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.zigzag-text p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}


/* ── Vertical Timeline ──────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--orange);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: var(--space-5);
}

.timeline-item:nth-child(odd) {
    padding-right: var(--space-7);
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: var(--space-7);
}

.timeline-number {
    position: absolute;
    width: 44px;
    height: 44px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading);
    font-weight: 700;
    font-size: var(--text-lg);
    color: white;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-number {
    right: -22px;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -22px;
}

.timeline-item h3 {
    font-family: var(--heading);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.timeline-item summary {
    font-family: var(--heading);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    margin-bottom: var(--space-2);
}

.timeline-item summary::-webkit-details-marker {
    display: none;
}

.timeline-item summary::after {
    content: ' +';
    color: var(--orange);
    font-weight: 400;
}

.timeline-item details[open] summary::after {
    content: ' −';
}

.timeline-item p,
.timeline-item .bar-list {
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.6;
}


/* ── Accordion ──────────────────────────────────────────────── */
.accordion-item {
    border: var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-3);
    background: var(--white);
}

.accordion-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    font-family: var(--heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    transition: background 0.2s ease;
    gap: var(--space-4);
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: '+';
    font-size: var(--text-xl);
    color: var(--orange);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.accordion-item[open] summary::after {
    content: '−';
}

.accordion-item summary:hover {
    background: var(--gray-50);
}

.accordion-body {
    padding: 0 var(--space-6) var(--space-6);
}

.accordion-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-6);
    align-items: start;
}

.accordion-content img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.accordion-list {
    columns: 2;
    column-gap: var(--space-5);
}


/* ── Horizontal Scroll Cards ────────────────────────────────── */
.hscroll-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}


/* ── Intro / Two-Column ─────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.two-col-text h2 {
    font-family: var(--heading);
    color: var(--navy);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-5);
    font-weight: 600;
    line-height: 1.2;
}

.two-col-text p {
    color: var(--gray-600);
    font-size: var(--text-md);
    margin-bottom: var(--space-5);
    line-height: 1.7;
}

.two-col-text .tagline {
    color: var(--gray-600);
    font-size: var(--text-base);
    font-style: italic;
    line-height: 1.6;
    border-left: 4px solid var(--orange);
    padding-left: 20px;
    margin-top: var(--space-6);
}

.two-col-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}


/* ── CTA Sections ───────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: white;
    padding: var(--space-8) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px;
}

.cta-section h3 {
    font-family: var(--heading);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    position: relative;
}

.cta-section p {
    font-size: var(--text-md);
    margin-bottom: var(--space-5);
    opacity: 0.95;
    position: relative;
}


/* ── Energy Crossref Bar ────────────────────────────────────── */
.crossref-bar {
    background: var(--navy-mid);
    color: white;
    padding: var(--space-6) 0;
}

.crossref-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

.crossref-inner h4 {
    font-family: var(--heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.crossref-inner p {
    font-size: var(--text-sm);
    opacity: 0.9;
}


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

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--space-7);
    margin-bottom: var(--space-7);
}

.footer-section h3 {
    font-family: var(--heading);
    font-size: var(--text-md);
    margin-bottom: var(--space-4);
    color: var(--orange);
}

.footer-section p,
.footer-section li {
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

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

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

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

.contact-icon {
    display: inline;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    margin-right: 8px;
}

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

.footer-bottom a {
    color: var(--orange);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}


/* ── Cookie Consent ──────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 36, 64, 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: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    font-size: var(--text-sm);
    line-height: 1.5;
}

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

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.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: var(--radius-xl);
    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: var(--text-xl);
    margin-bottom: 10px;
}

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

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

.cookie-category h4 {
    color: var(--navy);
    margin-bottom: var(--space-2);
    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: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    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;
}


/* ── Data Table ─────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}

.data-table thead th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-family: var(--heading);
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.9);
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: white;
}

.data-table tbody td .mono {
    font-family: var(--mono);
    color: var(--orange);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}


/* ── Featured Grid (1 large + 3 small) ──────────────────────── */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.featured-grid-main {
    grid-row: 1 / span 3;
}


/* ── Values Rows (alternating horizontal) ───────────────────── */
.values-row {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--gray-100);
}

.values-row:last-child {
    border-bottom: none;
}

.values-row:nth-child(even) {
    flex-direction: row;
}

.values-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.values-icon img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.values-content {
    flex: 1;
}

.values-content h3 {
    font-family: var(--heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.values-content p {
    color: var(--gray-600);
    line-height: 1.6;
}


/* ── Contact Methods Bar ────────────────────────────────────── */
.contact-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-bar-item {
    padding: var(--space-6);
    text-align: center;
    position: relative;
}

.contact-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--gray-200);
}

.contact-bar-item h3 {
    font-family: var(--heading);
    font-size: var(--text-md);
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.contact-bar-item p {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.contact-bar-item a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}


/* ── Form Styling ───────────────────────────────────────────── */
.form-container {
    background: var(--white);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.form-container h3 {
    font-family: var(--heading);
    color: var(--navy);
    font-size: var(--text-xl);
    margin-bottom: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: var(--border-strong);
    border-radius: var(--radius-lg);
    font-family: var(--body);
    font-size: var(--text-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}


/* ── Horizontal Card (image left, text right) ───────────────── */
.h-card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-5);
    align-items: start;
    padding: var(--space-5) 0;
}

.h-card:not(:last-child) {
    border-bottom: var(--border);
}

.h-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.h-card-text h3 {
    font-family: var(--heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.h-card-text p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}


/* ── Full-Width Image with Glass Overlay ────────────────────── */
.fullwidth-image-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: var(--space-9) 0;
    border-radius: var(--radius-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.fullwidth-image-section img.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullwidth-image-section .glass-panel {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: max(20px, calc((100% - var(--max-width)) / 2 + 20px));
}


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar-item:nth-child(2)::after {
        display: none;
    }

    .hscroll-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 480px;
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero-lead {
        font-size: var(--text-base);
    }

    .hero-glass {
        padding: var(--space-6) var(--space-5);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hero--compact {
        min-height: 360px;
    }

    .stats-bar {
        margin-top: -32px;
    }

    .stats-bar-grid {
        padding: var(--space-5) var(--space-4);
    }

    .stats-bar-value {
        font-size: var(--text-2xl);
    }

    .section {
        padding: var(--space-8) 0;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .two-col-text h2 {
        font-size: var(--text-2xl);
    }

    .two-col-text .tagline {
        border-left: none;
        border-top: 4px solid var(--orange);
        padding-left: 0;
        padding-top: var(--space-4);
    }

    .two-col-image img {
        height: 280px;
    }

    .zigzag-row {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .zigzag-row:nth-child(even) .zigzag-image {
        order: 0;
    }

    .zigzag-image img {
        height: 220px;
    }

    /* Timeline mobile: left-aligned single column */
    .timeline::before {
        left: 22px;
    }

    .timeline-item {
        width: 100%;
        padding-left: var(--space-8);
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: var(--space-8);
    }

    .timeline-item:nth-child(odd) .timeline-number,
    .timeline-item:nth-child(even) .timeline-number {
        left: 0;
        right: auto;
    }

    /* Accordion */
    .accordion-content {
        grid-template-columns: 1fr;
    }

    .accordion-content img {
        height: 180px;
    }

    .accordion-list {
        columns: 1;
    }

    /* Horizontal scroll on mobile */
    .hscroll-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding-bottom: var(--space-4);
        -webkit-overflow-scrolling: touch;
    }

    .hscroll-container > * {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid-main {
        grid-row: auto;
    }

    .values-row,
    .values-row:nth-child(even) {
        flex-direction: row;
        gap: var(--space-4);
    }

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

    .values-icon img {
        width: 28px;
        height: 28px;
    }

    .contact-bar {
        grid-template-columns: 1fr;
    }

    .contact-bar-item:not(:last-child)::after {
        display: none;
    }

    .contact-bar-item:not(:last-child) {
        border-bottom: var(--border);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .h-card {
        grid-template-columns: 120px 1fr;
        gap: var(--space-4);
    }

    .h-card-image img {
        height: 120px;
    }

    .h-card-text h3 {
        font-size: var(--text-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-text {
        min-width: auto;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .crossref-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .fullwidth-image-section {
        min-height: 400px;
    }

    .fullwidth-image-section .glass-panel {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--text-2xl);
    }

    .hero {
        min-height: 420px;
    }

    .hero-glass {
        padding: var(--space-5) var(--space-4);
        border-radius: var(--radius-xl);
    }

    .stats-bar-value {
        font-size: var(--text-xl);
    }

    .stats-bar-label {
        font-size: 0.7rem;
    }
}
