:root {
    --accent: #dea896;
    --navbar-h: 68px; /* single source of truth for navbar height */
}

/* ── Navbar ── */
#siteNavbar {
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: top; /* promote to compositor layer — eliminates repaint flicker */
}

/* ── Sub-pages: offset body so nothing hides behind fixed nav ── */
body.subpage {
    padding-top: var(--navbar-h);
}

html {
    scroll-behavior: smooth;
}

/* ── Scroll snap — desktop only, only on the homepage ── */
body:not(.subpage) {
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body:not(.subpage) > section,
    body:not(.subpage) > .site-footer {
        scroll-snap-type: none; /* disabled — was causing blink with hide-on-scroll navbar */
    }
}

@media (min-width: 768px) {
    body.homepage section,
    body.homepage .site-footer {
        min-height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    body.homepage {
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
    }

    /* Generous vertical spacing so every section breathes */
    body.homepage section {
        padding-block: 6rem;
    }
}

@media (max-width: 767.98px) {
    section,
    .site-footer {
        min-height: auto;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
}

#hero {
    min-height: 100vh;
}

.accent {
    color: var(--accent) !important;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(222, 168, 150, 0.28) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    color: #f4f4f4;
}

.card .card-header,
.card .card-footer {
    background: transparent;
    border-color: rgba(222, 168, 150, 0.16);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #f4f4f4;
    --bs-table-border-color: rgba(222, 168, 150, 0.12);
    margin-bottom: 0;
}

.benefit-icon,
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    color: var(--accent);
    border: 1px solid rgba(222, 168, 150, 0.38);
    background: rgba(222, 168, 150, 0.04);
}

.status-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
}

.status-icon--positive {
    color: #72d39a;
    background: rgba(61, 153, 107, 0.18);
}

.status-icon--negative {
    color: #ff7f9a;
    background: rgba(185, 66, 92, 0.18);
}

.licence-footer {
    max-width: 1030px;
    margin-inline: auto;
    color: #f4f4f4;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-top: 1px solid rgba(222, 168, 150, 0.16);
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background: rgba(222, 168, 150, 0.88);
    border-color: rgba(222, 168, 150, 0.88);
}

.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary.active:focus {
    box-shadow: 0 0 0 0.25rem rgba(222, 168, 150, 0.38);
}

.site-footer {
    display: flex;
    align-items: center;
    background: #111111;
}

.footer-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--accent);
}

.site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.form-control,
.form-control:focus {
    border: 1px solid rgba(222, 168, 150, 0.22);
    color: #f4f4f4;
    box-shadow: none;
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.58);
}

#contact-form .col-md-12 {
    padding-bottom: 15px;
}

section {
    padding-top: 50px;
    padding-bottom: 30px;
}