/* ==========================================================================
   Kalahari Containers — site styles
   ========================================================================== */

:root {
    /* Brand (sampled from the logo) */
    --teal: #123a41;
    --teal-deep: #0b272c;
    --green: #628f5c;
    --green-dark: #4a6d45;
    --green-light: #eef4ec;

    /* Neutrals */
    --sand: #f7f3ec;
    --white: #ffffff;
    --ink: #1c2b2e;
    --muted: #5a6a6c;
    --border: #e4dfd5;

    --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(18, 58, 65, 0.08);
    --shadow: 0 12px 32px rgba(18, 58, 65, 0.12);
    --header-h: 84px;
    --wrap: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--teal);
}

p {
    margin: 0;
}

a {
    color: var(--green-dark);
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5.5rem 0;
}

.section-sand {
    background: var(--sand);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
}

.section-head p {
    font-size: 1.1rem;
    color: var(--muted);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(98, 143, 92, 0.35);
}

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--white);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--teal);
}

.btn-sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.site-header.scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}

.brand img {
    height: 52px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav ul {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav ul a {
    position: relative;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.25rem 0;
}

.site-nav ul a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.site-nav ul a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--teal);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav ul a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border);
    }

    .site-nav ul a::after {
        display: none;
    }

    .brand img {
        height: 42px;
    }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: min(calc(100vh - var(--header-h)), 820px);
    min-height: min(calc(100svh - var(--header-h)), 820px);
    display: flex;
    align-items: center;
    padding: 5rem 0;
    color: var(--white);
    background:
        linear-gradient(100deg, rgba(11, 39, 44, 0.94) 0%, rgba(18, 58, 65, 0.8) 45%, rgba(18, 58, 65, 0.25) 100%),
        url('../assets/container4.jpg') center 60% / cover no-repeat;
}

.hero-content {
    max-width: 640px;
}

.hero .eyebrow {
    color: #a8cfa2;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    margin-bottom: 1.25rem;
}

.hero h1 span {
    color: #8fc088;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-points i {
    color: #8fc088;
    margin-right: 0.4rem;
}

/* ── Products ────────────────────────────────────────────────────────────── */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.product-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.product-body p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-body ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    font-size: 0.92rem;
}

.product-body li {
    padding: 0.2rem 0;
}

.product-body li i {
    color: var(--green);
    width: 1.25rem;
}

.product-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
}

.product-link i {
    transition: transform 0.2s;
}

.product-link:hover i {
    transform: translateX(4px);
}

/* ── How it works ────────────────────────────────────────────────────────── */

.steps-section {
    background: var(--teal);
    color: var(--white);
}

.steps-section .section-head h2 {
    color: var(--white);
}

.steps-section .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.steps-section .eyebrow {
    color: #a8cfa2;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--green);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    color: var(--white);
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.55rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--teal);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
    border-color: var(--green);
}

.filter-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--border);
    aspect-ratio: 4 / 3;
}

.gallery-item[hidden] {
    display: none;
}

.gallery-item figure {
    margin: 0;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    text-align: left;
    background: linear-gradient(transparent, rgba(11, 39, 44, 0.85));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.05);
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .gallery-item figcaption {
        opacity: 1;
        transform: none;
    }
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(8, 26, 29, 0.95);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
}

.lightbox-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lightbox-btn:hover {
    background: var(--green);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ── About ───────────────────────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
}

.about-media::before {
    content: '';
    position: absolute;
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
    border: 3px solid var(--green);
    border-radius: var(--radius);
    z-index: -1;
}

.about-text h2 {
    font-size: clamp(2.1rem, 4.5vw, 3rem);
    margin-bottom: 1.25rem;
}

.about-text > p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.features li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.features i {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.05rem;
    color: var(--green-dark);
    background: var(--green-light);
    border-radius: 8px;
}

.features strong {
    display: block;
    color: var(--teal);
}

.features span {
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 860px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-media {
        margin-right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: box-shadow 0.2s;
}

.faq-list details[open] {
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-weight: 600;
    color: var(--teal);
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--green);
    transition: transform 0.2s;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
}

.faq-list details p {
    padding: 0 1.4rem 1.25rem;
    color: var(--muted);
}

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-band {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    text-align: center;
    padding: 4.5rem 0;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.cta-band p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-band .btn-primary {
    background: var(--white);
    color: var(--green-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.cta-band .btn-primary:hover {
    background: var(--teal);
    color: var(--white);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--teal-deep);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 1.25rem;
}

.site-footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    padding: 0.3rem 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #8fc088;
}

.site-footer li i {
    width: 1.4rem;
    color: #8fc088;
}

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ── WhatsApp button ─────────────────────────────────────────────────────── */

.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    color: var(--white);
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    color: var(--white);
}

/* ── Page header (inner pages) ───────────────────────────────────────────── */

.page-hero {
    padding: 4.5rem 0 4rem;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(rgba(11, 39, 44, 0.9), rgba(18, 58, 65, 0.82)),
        url('../assets/container4.jpg') center 60% / cover no-repeat;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    margin-bottom: 0.75rem;
}

.page-hero p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Scroll animations ───────────────────────────────────────────────────── */

/* Only hide content when JS is running to reveal it again */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* ── Quote form ──────────────────────────────────────────────────────────── */

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2.5rem;
    align-items: start;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.25rem;
    background: var(--white);
    border-radius: 16px;
    border-top: 4px solid var(--green);
    box-shadow: var(--shadow);
}

.form-block {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 0 1.75rem;
    border-bottom: 1px solid var(--border);
}

.form-group-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.4rem;
}

.form-group-label i {
    color: var(--green);
    font-size: 1.05rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field > label,
.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.field .opt {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
}

.req,
.req-inline {
    color: #b8402f;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #d6d1c6;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(98, 143, 92, 0.2);
    outline: none;
}

.quote-form ::placeholder {
    color: #a3a9a8;
}

.quote-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23628f5c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.quote-form textarea {
    min-height: 100px;
    resize: vertical;
}

.quote-form textarea.tall {
    min-height: 140px;
}

.selection-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.selection-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background: var(--white);
    border: 1px solid #d6d1c6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.selection-item:hover {
    border-color: var(--green);
}

.selection-item input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--green);
    cursor: pointer;
}

.selection-item:has(input:checked) {
    border-color: var(--green);
    background: var(--green-light);
    box-shadow: 0 0 0 1px var(--green);
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--muted);
}

.quote-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.quote-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert.success {
    background: var(--green-light);
    border: 1px solid var(--green);
    color: #2d5a28;
}

.alert.error {
    background: #fdf0ee;
    border: 1px solid #b8402f;
    color: #8a2e21;
}

.quote-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    padding: 2rem;
    background: var(--teal);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}

.quote-aside h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.quote-aside > p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.quote-aside ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quote-aside li + li {
    margin-top: 0.75rem;
}

.quote-aside a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background-color 0.2s;
}

/* Keep the email address on one line; it's the longest item in the panel */
.quote-aside a[href^="mailto:"] {
    font-size: 0.9rem;
    white-space: nowrap;
}

.quote-aside a:hover {
    background: var(--green);
}

.quote-aside a i {
    width: 1.25rem;
    color: #8fc088;
}

.quote-aside a:hover i {
    color: var(--white);
}

@media (max-width: 900px) {
    .quote-layout {
        grid-template-columns: 1fr;
    }

    .quote-aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 560px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .quote-form {
        padding: 1.5rem;
    }
}

@media (max-width: 380px) {
    .quote-aside a[href^="mailto:"] {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .selection-group {
        grid-template-columns: 1fr;
    }
}

/* ── Hero container doors ────────────────────────────────────────────────── */
/* The back end of a shipping container: the handles swing out, the doors
   swing open towards the viewer, and we push in through the opening. */

.hero {
    overflow: hidden;
}

.hero-doors {
    --steel: #1b4a52;
    --steel-light: #2a6670;
    --steel-dark: #0d2b30;

    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    animation: doorsDone 0.55s ease 1.75s forwards;
}

@keyframes doorsDone {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Frame: corner posts, top rail and bottom sill */
.container-end {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 22px 30px 34px;
    perspective: 1800px;
    background:
        linear-gradient(90deg, #08201f 0, var(--steel) 12px, var(--steel-light) 18px, var(--steel-dark) 30px, transparent 30px) left / 30px 100% no-repeat,
        linear-gradient(270deg, #08201f 0, var(--steel) 12px, var(--steel-light) 18px, var(--steel-dark) 30px, transparent 30px) right / 30px 100% no-repeat,
        linear-gradient(180deg, var(--steel-light), var(--steel-dark)) top / 100% 22px no-repeat,
        linear-gradient(180deg, var(--steel), #071a1d) bottom / 100% 34px no-repeat;
    animation: pushIn 1.6s cubic-bezier(0.5, 0, 0.75, 0) 0.7s forwards;
}

@keyframes pushIn {
    to { transform: scale(1.12); }
}

.hero-door {
    position: relative;
    flex: 1;
    overflow: hidden;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0.3) 100%),
        repeating-linear-gradient(90deg,
            #12363c 0 5px,
            #1d4e57 5px 27px,
            #2c6a74 27px 31px,
            #174148 31px 53px);
    background-blend-mode: overlay, normal, normal;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Door header and bottom rails */
.hero-door::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, var(--steel-light), var(--steel) 60%, var(--steel-dark)) top / 100% 20px no-repeat,
        linear-gradient(180deg, var(--steel-light), var(--steel) 40%, #0a2428) bottom / 100% 26px no-repeat;
}

/* Shading: the doors darken as they turn away from the light */
.hero-door::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    opacity: 0;
}

.hero-door-left {
    transform-origin: left center;
    border-right: 2px solid #050f11;
    animation: doorOpenLeft 1.25s cubic-bezier(0.55, 0, 0.25, 1) 0.75s forwards;
}

.hero-door-right {
    transform-origin: right center;
    border-left: 2px solid #050f11;
    animation: doorOpenRight 1.25s cubic-bezier(0.55, 0, 0.25, 1) 0.9s forwards;
}

.hero-door-left::before {
    animation: doorShade 1.25s ease-in 0.75s forwards;
}

.hero-door-right::before {
    animation: doorShade 1.25s ease-in 0.9s forwards;
}

/* A small give as the seal breaks, then the heavy swing */
@keyframes doorOpenLeft {
    0%   { transform: rotateY(0); }
    8%   { transform: rotateY(-2deg); }
    100% { transform: rotateY(-100deg); }
}

@keyframes doorOpenRight {
    0%   { transform: rotateY(0); }
    8%   { transform: rotateY(2deg); }
    100% { transform: rotateY(100deg); }
}

@keyframes doorShade {
    to { opacity: 0.6; }
}

/* Hinges on the outer edges */
.door-hinge {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 34px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0a2428, #2c6a74 45%, #12363c);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.hero-door-left .door-hinge { left: -4px; }
.hero-door-right .door-hinge { right: -4px; }

.door-hinge:nth-of-type(1) { top: 9%; }
.door-hinge:nth-of-type(2) { top: 35%; }
.door-hinge:nth-of-type(3) { top: 61%; }
.door-hinge:nth-of-type(4) { top: 86%; }

/* Vertical locking bars */
.lock-rod {
    position: absolute;
    z-index: 2;
    top: 14px;
    bottom: 18px;
    width: 11px;
    border-radius: 5px;
    background: linear-gradient(90deg, #4a5658, #c4cccd 35%, #8a9597 60%, #3a4446);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.45);
}

.hero-door-left .rod-1 { left: 34%; }
.hero-door-left .rod-2 { left: 70%; }
.hero-door-right .rod-1 { right: 34%; }
.hero-door-right .rod-2 { right: 70%; }

/* Cam keepers at the top and bottom of each bar */
.lock-rod::before,
.lock-rod::after {
    content: '';
    position: absolute;
    left: -7px;
    width: 25px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, #2c6a74, #12363c);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.lock-rod::before { top: 0; }
.lock-rod::after { bottom: 0; }

/* Handles swing out towards the viewer (foreshortened) before the doors open */
.lock-handle {
    position: absolute;
    top: 57%;
    width: 72px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(180deg, #c4cccd, #6d787a);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
    animation: handleOut 0.4s ease-in-out 0.3s forwards;
}

.hero-door-left .lock-handle {
    right: 5px;
    transform-origin: right center;
}

.hero-door-right .lock-handle {
    left: 5px;
    transform-origin: left center;
}

/* Handle retainer */
.lock-handle::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 12px;
    height: 20px;
    border-radius: 2px;
    background: #12363c;
}

.hero-door-left .lock-handle::after { left: 6px; }
.hero-door-right .lock-handle::after { right: 6px; }

@keyframes handleOut {
    to { transform: scaleX(0.18); }
}

/* Markings */
.door-logo {
    position: absolute;
    z-index: 1;
    top: 16%;
    left: 52%;
    width: min(28%, 200px);
    transform: translateX(-50%);
    opacity: 0.85;
}

.door-code {
    position: absolute;
    z-index: 1;
    top: 15%;
    left: 48%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.door-code b {
    display: inline-block;
    padding: 0 0.2em;
    border: 2px solid currentColor;
}

/* Hold back the hero text until the doors are open */
.js .hero .reveal { transition-delay: 1.45s; }
.js .hero .reveal-d1 { transition-delay: 1.55s; }
.js .hero .reveal-d2 { transition-delay: 1.65s; }
.js .hero .reveal-d3 { transition-delay: 1.75s; }

/* Phones: tall, narrow doors need a closer viewpoint for the swing to read in
   3D, and the bars move out to the edges to leave room for the markings */
@media (max-width: 600px) {
    /* The doors clear the screen sooner, so fade the frame out before the
       headline appears behind it */
    .hero-doors {
        animation-delay: 1.3s;
    }

    .container-end {
        padding: 14px 16px 22px;
        perspective: 650px;
        background-size: 16px 100%, 16px 100%, 100% 14px, 100% 22px;
    }

    .hero-door-left .rod-1 { left: 18%; }
    .hero-door-left .rod-2 { left: 82%; }
    .hero-door-right .rod-1 { right: 18%; }
    .hero-door-right .rod-2 { right: 82%; }

    .lock-rod {
        width: 9px;
    }

    .lock-rod::before,
    .lock-rod::after {
        left: -6px;
        width: 21px;
        height: 18px;
    }

    .lock-handle {
        width: 26px;
        height: 8px;
    }

    .door-hinge {
        width: 16px;
        height: 24px;
    }

    .door-logo {
        top: 13%;
        left: 50%;
        width: 54%;
    }

    .door-code {
        top: 13%;
        left: 50%;
        font-size: 0.8rem;
        letter-spacing: 0.04em;
    }
}

/* ── Logistics route (truck) ─────────────────────────────────────────────── */

.logistics-banner {
    position: relative;
    max-width: 640px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    overflow: hidden;
}

.logistics-svg {
    display: block;
    width: 100%;
    height: 48px;
}

.route-path {
    fill: none;
    stroke: var(--green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 560;
    stroke-dashoffset: 560;
}

.logistics-banner.visible .route-path {
    animation: drawRoute 1.8s ease forwards;
}

@keyframes drawRoute {
    to { stroke-dashoffset: 0; }
}

.logistics-truck {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(12px, -50%);
    color: var(--green);
    font-size: 1.5rem;
    opacity: 0;
}

.logistics-banner.visible .logistics-truck {
    animation: truckDrive 6s linear 0.5s infinite, truckFadeIn 0.4s ease 0.5s forwards;
}

@keyframes truckFadeIn {
    to { opacity: 1; }
}

@keyframes truckDrive {
    0%   { left: 0; }
    100% { left: calc(100% - 2.5rem); }
}

/* On the dark teal band */
.steps-section .route-path {
    stroke: #8fc088;
}

.steps-section .logistics-truck {
    color: #8fc088;
}

/* ── WhatsApp one-time pulse ─────────────────────────────────────────────── */

.whatsapp-float.pulse-once {
    animation: whatsappPulse 1.2s ease 1;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
    50%      { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-doors {
        display: none;
    }

    .js .hero .reveal {
        transition-delay: 0s;
    }

    .route-path {
        stroke-dashoffset: 0;
    }

    .logistics-truck {
        opacity: 1;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: none !important;
    }
}
