/*
 * Lux Minibuses
 * Main stylesheet
 * File: style.css
 */

/* =========================================================
   1. RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    padding: 0;
    background: #f8f7f4;
    color: #17191c;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

::selection {
    background: #c5a15b;
    color: #101214;
}


/* =========================================================
   2. VARIABLES
   ========================================================= */

:root {
    --black: #111315;
    --black-soft: #181b1e;
    --charcoal: #22262a;

    --gold: #c7a15b;
    --gold-light: #dfc486;
    --gold-dark: #a98648;

    --white: #ffffff;
    --off-white: #f8f7f4;
    --cream: #f1eee7;

    --text: #17191c;
    --text-muted: #666b70;
    --border: #dedbd4;

    --container: 1180px;
    --radius: 4px;

    --shadow:
        0 15px 45px rgba(17, 19, 21, 0.08);

    --transition:
        180ms ease;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 9999;

    padding: 12px 18px;

    background: var(--gold);
    color: var(--black);

    font-weight: 700;

    transition: top var(--transition);
}

.skip-link:focus {
    top: 20px;
}

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


/* =========================================================
   4. LAYOUT
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-left: auto;
    margin-right: auto;
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.content-container {
    max-width: 900px;
}


/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    background: var(--black);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   6. LOGO
   ========================================================= */

.site-logo {
    display: inline-flex;

    flex-direction: column;

    justify-content: center;

    line-height: 1;

    flex-shrink: 0;
}

.logo-main {
    color: var(--white);

    font-size: 25px;
    font-weight: 800;

    letter-spacing: 0.18em;
}

.logo-sub {
    margin-top: 6px;

    color: var(--gold);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.43em;
}


/* =========================================================
   7. DESKTOP NAVIGATION
   ========================================================= */

.site-navigation {
    display: flex;
    align-items: center;

    gap: 5px;
}

.site-navigation > a:not(.nav-cta) {
    position: relative;

    padding: 29px 16px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition);
}

.site-navigation > a:not(.nav-cta)::after {
    content: "";

    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 20px;

    height: 1px;

    background: var(--gold);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform var(--transition);
}

.site-navigation > a:not(.nav-cta):hover,
.site-navigation > a:not(.nav-cta).is-active {
    color: var(--white);
}

.site-navigation > a:not(.nav-cta):hover::after,
.site-navigation > a:not(.nav-cta).is-active::after {
    transform: scaleX(1);
}


/* =========================================================
   8. CTA BUTTONS
   ========================================================= */

.button,
.nav-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 13px 25px;

    border: 1px solid transparent;

    border-radius: var(--radius);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.button:hover,
.nav-cta:hover {
    transform: translateY(-1px);
}

.button-primary,
.nav-cta {
    background: var(--gold);
    color: var(--black);
}

.button-primary:hover,
.nav-cta:hover {
    background: var(--gold-light);
}

.button-secondary {
    background: transparent;
    color: var(--white);

    border-color: rgba(255, 255, 255, 0.4);
}

.button-secondary:hover {
    background: var(--white);
    color: var(--black);

    border-color: var(--white);
}


/* =========================================================
   9. MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    padding: 10px;

    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: var(--radius);

    cursor: pointer;
}

.mobile-menu-toggle span:not(.sr-only) {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--white);

    transition: transform var(--transition);
}


/* =========================================================
   10. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(10, 12, 14, 0.96) 0%,
            rgba(10, 12, 14, 0.88) 45%,
            rgba(10, 12, 14, 0.58) 100%
        ),
        linear-gradient(
            135deg,
            #191c20 0%,
            #30353a 100%
        );

    color: var(--white);

    overflow: hidden;
}

/*
 * Decorative glow.
 * Kept CSS-only to avoid another image request.
 */
.hero::before {
    content: "";

    position: absolute;

    width: 520px;
    height: 520px;

    right: -180px;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199, 161, 91, 0.22) 0%,
            rgba(199, 161, 91, 0) 68%
        );

    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-content {
    width: min(100%, 760px);

    padding-top: 40px;
    padding-bottom: 40px;
}

.eyebrow {
    margin: 0 0 17px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.2em;

    text-transform: uppercase;
}

.hero h1 {
    max-width: 800px;

    margin: 0;

    color: var(--white);

    font-size: clamp(42px, 6vw, 72px);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.035em;
}

.hero-intro {
    max-width: 680px;

    margin: 28px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: clamp(17px, 2vw, 20px);

    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 34px;
}


/* =========================================================
   11. PAGE HEADER
   ========================================================= */

.page-header {
    padding: 55px 0 65px;

    background:
        linear-gradient(
            135deg,
            #17191c,
            #282d31
        );

    color: var(--white);
}

.page-header .eyebrow {
    margin-top: 28px;
}

.page-header h1 {
    max-width: 850px;

    margin: 0;

    color: var(--white);

    font-size: clamp(36px, 5vw, 58px);

    line-height: 1.08;

    letter-spacing: -0.03em;
}

.page-intro {
    max-width: 760px;

    margin: 22px 0 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 18px;
}


/* =========================================================
   12. BREADCRUMBS
   ========================================================= */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 13px;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);

    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}


/* =========================================================
   13. CONTENT / TYPOGRAPHY
   ========================================================= */

.prose {
    color: var(--text);

    font-size: 17px;

    line-height: 1.8;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

.prose p {
    margin: 0 0 24px;
}

.prose h2 {
    margin: 48px 0 18px;

    color: var(--black);

    font-size: clamp(26px, 3vw, 34px);

    line-height: 1.2;

    letter-spacing: -0.02em;
}

.prose h3 {
    margin: 36px 0 14px;

    color: var(--black);

    font-size: 23px;

    line-height: 1.3;
}

.prose ul {
    margin: 0 0 28px;

    padding-left: 23px;
}

.prose li {
    margin-bottom: 8px;

    padding-left: 5px;
}

.prose strong {
    font-weight: 750;
}

.prose a {
    color: var(--gold-dark);

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--black);
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.site-footer {
    padding-top: 65px;

    background: var(--black);

    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr);

    gap: 60px;

    padding-bottom: 55px;
}

.footer-brand p {
    max-width: 470px;

    margin: 24px 0 0;

    font-size: 14px;

    line-height: 1.8;
}

.footer-links {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.footer-links h2 {
    margin: 0 0 13px;

    color: var(--white);

    font-size: 13px;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.62);

    font-size: 14px;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 22px;
    padding-bottom: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.42);

    font-size: 12px;
}


/* =========================================================
   15. FOCUS STATES
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 3px;
}


/* =========================================================
   16. RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-inner {
        min-height: 72px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-navigation {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 20px 20px;

        background: var(--black);

        border-top: 1px solid rgba(255, 255, 255, 0.08);

        box-shadow:
            0 20px 35px rgba(0, 0, 0, 0.18);
    }

    .site-navigation.is-open {
        display: flex;
    }

    .site-navigation > a:not(.nav-cta) {
        padding: 15px 5px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.07);
    }

    .site-navigation > a:not(.nav-cta)::after {
        display: none;
    }

    .site-navigation .nav-cta {
        margin-top: 14px;
    }

    .hero {
        min-height: 580px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   17. RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 72px;
    }

    body {
        font-size: 15px;
    }

    .container {
        width: min(
            calc(100% - 30px),
            var(--container)
        );
    }

    .section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .header-inner {
        min-height: 68px;
    }

    .logo-main {
        font-size: 22px;
    }

    .logo-sub {
        font-size: 7px;
    }

    .site-navigation {
        top: 68px;
    }

    .hero {
        min-height: 560px;
    }

    .hero::before {
        width: 350px;
        height: 350px;

        right: -180px;
    }

    .hero-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .hero-intro {
        margin-top: 22px;

        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;

        margin-top: 28px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .button {
        min-height: 52px;
    }

    .page-header {
        padding: 38px 0 48px;
    }

    .page-header .eyebrow {
        margin-top: 23px;
    }

    .page-header h1 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .page-intro {
        font-size: 16px;
    }

    .prose {
        font-size: 16px;

        line-height: 1.75;
    }

    .prose h2 {
        margin-top: 38px;

        font-size: 27px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 38px;

        padding-bottom: 42px;
    }

    .footer-brand {
        grid-column: auto;
    }
}


/* =========================================================
   18. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
