/* ═══════════════════════════════════════════════════════════════
   Rosehill Drainage — Design System
   Structured. Precise. Quietly confident.
   ═══════════════════════════════════════════════════════════════ */

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

    /* 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;

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

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

    /* 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);

    /* 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;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--orange);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}


/* ── Container ──────────────────────────────────────────────── */
.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 {
    display: flex;
    align-items: center;
}

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

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

.logo a:hover {
    opacity: 0.8;
}

/* 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;
}

/* Products dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle::after {
    content: '';
    border: 4px solid transparent;
    border-top-color: currentColor;
    margin-top: 2px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    padding: 8px 0;
    padding-top: 16px;
    margin-top: 0;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: var(--text-sm);
}

.contact-btn {
    background: var(--orange) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    margin-left: 6px;
}

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

.contact-btn.active {
    color: white !important;
    background: var(--orange-hover) !important;
}

/* 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-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 .contact-btn {
    background: var(--orange);
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 10px 20px;
    padding: 12px 24px;
}

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

.mobile-product-submenu {
    padding-left: 20px;
}

.mobile-product-submenu a {
    font-size: var(--text-sm);
    opacity: 0.85;
    padding: 10px 0;
}


/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    color: white;
    padding: 140px 0 var(--space-9);
    margin-top: 70px;
    overflow: hidden;
    min-height: 520px;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: grayscale(30%) contrast(1.1) brightness(0.55);
}

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

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

.hero-inner {
    max-width: 680px;
}

.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: 20px;
}

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

.hero-lead {
    font-size: var(--text-md);
    opacity: 0.95;
    margin-bottom: 12px;
    line-height: 1.6;
    max-width: 560px;
}

.hero-stats-line {
    font-family: var(--mono);
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-bottom: 35px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-stats-line span {
    color: var(--orange);
}

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

/* Compact hero variant — centred text, subtle background image */
.hero--compact {
    min-height: auto;
    padding: var(--space-9) 0 var(--space-8);
    background: var(--navy-deep);
    text-align: center;
}

.hero--compact .hero-background img {
    filter: none;
    object-position: center bottom;
}

.hero--compact .hero-overlay {
    background: var(--navy-deep);
    mix-blend-mode: multiply;
    opacity: 0.85;
}

.hero--compact .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero--compact .hero-inner {
    max-width: var(--content-width);
}

.hero--compact .hero-eyebrow {
    margin-bottom: var(--space-4);
}

.hero--compact h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
}

.hero--compact .hero-lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Split hero variant — full-width image, semi-transparent navy panel over left */
.hero--split {
    position: relative;
    min-height: 560px;
    padding: 0;
    overflow: hidden;
}

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

.hero--split .hero-background img {
    filter: none;
}

.hero-split-text {
    position: relative;
    z-index: 2;
    background: rgba(15, 36, 64, 0.8);
    display: flex;
    align-items: center;
    width: 45%;
    min-height: 560px;
    padding: 80px 48px 80px 20px;
    padding-left: max(20px, calc((100vw - var(--max-width)) / 2 + 20px));
}

.hero-split-text .hero-inner {
    max-width: 560px;
}


/* ── Section Headers ────────────────────────────────────────── */
.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);
}

.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: 0 auto;
    line-height: 1.6;
}

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

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

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


/* ── 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;
    cursor: pointer;
}

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

.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/secondary on dark backgrounds */
.btn-secondary--inverse {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-text {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: text-decoration 0.2s ease;
}

.btn-text:hover {
    text-decoration: underline;
}

/* White button for orange/coloured 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, color 0.2s ease;
    cursor: pointer;
}

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


/* ── Cards ───────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-image {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

.card-body p {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Card with orange top accent */
.card--accent {
    border-top: 3px solid var(--orange);
}


/* ── Stat Bar ────────────────────────────────────────────────── */
.stat-bar {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.stat-bar__item {
    border-left: 2px solid var(--orange);
    padding-left: var(--space-4);
}

.stat-bar__value {
    font-family: var(--heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-bar__label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
    font-weight: 600;
}

/* On dark backgrounds */
.stat-bar--inverse .stat-bar__value {
    color: white;
}

.stat-bar--inverse .stat-bar__label {
    color: rgba(255, 255, 255, 0.7);
}

/* Teal accent for sustainability/positive data */
.stat-bar__item--teal {
    border-left-color: var(--teal);
}

.stat-bar__item--teal .stat-bar__value {
    color: var(--teal);
}

/* Inline stats for product cards */
.card-stats {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.card-stat {
    display: flex;
    flex-direction: column;
}

.card-stat strong {
    font-family: var(--heading);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--orange);
    font-variant-numeric: tabular-nums;
}

.card-stat small {
    font-size: var(--text-xs);
    color: var(--gray-600);
    line-height: 1.3;
}


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

.data-table thead th {
    background: var(--navy);
    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: var(--border);
    font-variant-numeric: tabular-nums;
}

.data-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.data-table tbody tr:hover {
    background: var(--gray-100);
}


/* ── 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);
}

.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-lg);
    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;
}


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

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

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

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 var(--space-8);
        min-height: auto;
    }

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

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

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

    .hero--compact {
        padding: var(--space-8) 0 var(--space-7);
    }

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

    .hero--split {
        min-height: auto;
    }

    .hero-split-text {
        width: 100%;
        min-height: auto;
        padding: 80px 20px 60px;
    }

    .hero-split-text .hero-inner {
        max-width: none;
    }

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

    .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;
    }

    .stat-bar {
        gap: var(--space-5);
    }
}

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

    .hero {
        padding: 90px 0 var(--space-7);
    }

}
