/* =========================================================
   WAYLANCE BUSINESS
   Shared Website Stylesheet
   ========================================================= */

/* -------------------------
   1. VARIABLES
   ------------------------- */

:root {
    --maroon: #6B1E2B;
    --maroon-dark: #4A141E;
    --maroon-light: #8A3040;

    --gold: #D4A24C;
    --gold-light: #E5BE73;
    --gold-dark: #B8842F;

    --cream: #FAF8F4;
    --cream-dark: #F1E9E4;

    --white: #FFFFFF;

    --charcoal: #252525;
    --text: #302C2B;
    --muted: #6B6562;

    --sage: #7A8B78;

    --border: rgba(107, 30, 43, 0.12);
    --shadow: 0 10px 35px rgba(37, 37, 37, 0.10);
    --shadow-hover: 0 18px 45px rgba(37, 37, 37, 0.16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --container: 1200px;

    --transition-fast: 0.2s ease;
    --transition: 0.35s ease;
    --transition-slow: 0.6s ease;
}


/* -------------------------
   2. RESET
   ------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-height: 100vh;

    background: var(--cream);
    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}


/* -------------------------
   3. GLOBAL CONTAINER
   ------------------------- */

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
}


/* -------------------------
   4. TYPOGRAPHY
   ------------------------- */

h1,
h2,
h3,
h4 {
    color: var(--maroon-dark);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 750;
}

h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

p {
    color: var(--muted);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold-dark);
}

.text-maroon {
    color: var(--maroon);
}


/* -------------------------
   5. SECTION
   ------------------------- */

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 65px 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    color: var(--gold-dark);

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.section-header p {
    max-width: 650px;
    margin: 18px auto 0;
    font-size: 1.05rem;
}


/* -------------------------
   6. HEADER / NAVIGATION
   ------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(250, 248, 244, 0.92);
    border-bottom: 1px solid transparent;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 248, 244, 0.97);
    border-color: var(--border);
    box-shadow: 0 5px 25px rgba(37, 37, 37, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 78px;
}

/* -------------------------
   LOGO
   ------------------------- */

.logo {
    display: inline-flex;
    align-items: center;

    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    display: block;

    width: auto;
    height: 48px;

    max-width: 220px;

    object-fit: contain;
}

.footer-brand .logo img {
    height: 52px;
    max-width: 240px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-links a {
    position: relative;

    color: var(--charcoal);

    font-size: 0.95rem;
    font-weight: 650;

    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--maroon);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--maroon);
}


/* -------------------------
   7. MOBILE MENU
   ------------------------- */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    border-radius: 10px;

    background: var(--maroon);
    color: var(--white);
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: currentColor;

    transition: transform var(--transition);
}


/* -------------------------
   8. BUTTONS
   ------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 50px;
    padding: 13px 24px;

    border: 2px solid transparent;
    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 750;

    transition:
        transform var(--transition-fast),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--maroon);
    color: var(--white);

    box-shadow: 0 8px 22px rgba(107, 30, 43, 0.22);
}

.btn-primary:hover {
    background: var(--maroon-dark);
    box-shadow: 0 12px 28px rgba(107, 30, 43, 0.28);
}

.btn-gold {
    background: var(--gold);
    color: var(--maroon-dark);

    box-shadow: 0 8px 22px rgba(212, 162, 76, 0.25);
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline {
    border-color: var(--maroon);
    background: transparent;
    color: var(--maroon);
}

.btn-outline:hover {
    background: var(--maroon);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--maroon);
}

.btn-white:hover {
    background: var(--cream);
}


/* -------------------------
   9. HERO
   ------------------------- */

.hero {
    position: relative;

    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            rgba(74, 20, 30, 0.96) 0%,
            rgba(107, 30, 43, 0.92) 48%,
            rgba(74, 20, 30, 0.80) 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(212, 162, 76, 0.22),
            transparent 30%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    padding: 130px 0 90px;
}

.hero .section-label {
    color: var(--gold-light);
}

.hero h1 {
    color: var(--white);

    max-width: 850px;

    font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero h1 span {
    color: var(--gold-light);
}

.hero p {
    max-width: 680px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.84);

    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 35px;
}


/* -------------------------
   10. HERO DECORATION
   ------------------------- */

.hero-decoration {
    position: absolute;

    right: -120px;
    bottom: -180px;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(212, 162, 76, 0.3);
    border-radius: 50%;
}

.hero-decoration::before,
.hero-decoration::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(212, 162, 76, 0.18);
    border-radius: 50%;
}

.hero-decoration::before {
    inset: 50px;
}

.hero-decoration::after {
    inset: 100px;
}


/* -------------------------
   11. FLEET
   ------------------------- */

.fleet-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(290px, 1fr));

    gap: 28px;
}

.vehicle-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.vehicle-image {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: var(--cream-dark);
}

.vehicle-image img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.7s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-badge {
    position: absolute;
    top: 16px;
    left: 16px;

    padding: 7px 12px;

    background: var(--gold);
    color: var(--maroon-dark);

    border-radius: 999px;

    font-size: 0.76rem;
    font-weight: 800;
}

.vehicle-content {
    padding: 26px;
}

.vehicle-content h3 {
    margin-bottom: 8px;
}

.vehicle-content p {
    margin-bottom: 20px;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 23px;
}

.vehicle-meta span {
    padding: 6px 10px;

    background: var(--cream-dark);

    border-radius: 7px;

    color: var(--muted);

    font-size: 0.78rem;
    font-weight: 650;
}


/* -------------------------
   12. STORY
   ------------------------- */

.story {
    background: var(--cream-dark);
}

.story-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 75px;

    align-items: center;
}

.story-image {
    overflow: hidden;

    border-radius: var(--radius-xl);

    box-shadow: var(--shadow);
}

.story-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;

    transition: transform 0.7s ease;
}

.story-image:hover img {
    transform: scale(1.03);
}

.story-content .section-label {
    justify-content: flex-start;
}

.story-content h2 {
    margin-bottom: 22px;
}

.story-content p + p {
    margin-top: 15px;
}

.story-highlight {
    margin-top: 28px;
    padding: 20px 22px;

    border-left: 4px solid var(--gold);

    background: rgba(255, 255, 255, 0.55);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;

    color: var(--maroon);

    font-weight: 700;
}


/* -------------------------
   13. WHY WAYLANCE
   ------------------------- */

.features {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}

.feature-card {
    padding: 32px 26px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: 0 6px 25px rgba(37, 37, 37, 0.06);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    margin-bottom: 20px;

    background: rgba(212, 162, 76, 0.16);
    color: var(--gold-dark);

    border-radius: 14px;

    font-size: 1.35rem;
}

.feature-card h3 {
    margin-bottom: 9px;
}


/* -------------------------
   14. CTA
   ------------------------- */

.cta {
    position: relative;

    overflow: hidden;

    background: var(--maroon);
}

.cta::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    right: -180px;
    top: -220px;

    border: 1px solid rgba(212, 162, 76, 0.25);

    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;

    max-width: 760px;

    margin: auto;

    text-align: center;
}

.cta h2 {
    color: var(--white);
}

.cta p {
    max-width: 620px;

    margin: 18px auto 28px;

    color: rgba(255, 255, 255, 0.78);
}


/* -------------------------
   15. PAGE HERO
   ------------------------- */

.page-hero {
    padding: 170px 0 90px;

    background:
        linear-gradient(
            135deg,
            var(--maroon-dark),
            var(--maroon)
        );

    text-align: center;
}

.page-hero h1 {
    color: var(--white);
}

.page-hero p {
    max-width: 680px;

    margin: 18px auto 0;

    color: rgba(255, 255, 255, 0.78);
}


/* -------------------------
   16. CONTACT
   ------------------------- */

.contact-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 45px;
}

.contact-card {
    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    background: rgba(107, 30, 43, 0.08);
    color: var(--maroon);

    border-radius: 10px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--charcoal);

    font-size: 0.88rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid rgba(37, 37, 37, 0.16);
    border-radius: 10px;

    background: var(--cream);

    color: var(--text);

    outline: none;

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold-dark);

    box-shadow:
        0 0 0 3px rgba(212, 162, 76, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}


/* -------------------------
   17. FOOTER
   ------------------------- */

.site-footer {
    padding: 55px 0 25px;

    background: var(--maroon-dark);

    color: var(--white);
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 45px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-brand p {
    max-width: 360px;

    margin-top: 15px;

    color: rgba(255, 255, 255, 0.65);
}

.footer-column h3 {
    margin-bottom: 17px;

    color: var(--gold-light);

    font-size: 0.95rem;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    width: fit-content;

    color: rgba(255, 255, 255, 0.72);

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.52);

    font-size: 0.82rem;
}


/* -------------------------
   18. SCROLL ANIMATIONS
   ------------------------- */

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;

    transform: translateX(-30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;

    transform: translateX(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* -------------------------
   19. UTILITY
   ------------------------- */

.gold-line {
    width: 60px;
    height: 3px;

    margin: 18px 0;

    background: var(--gold);

    border-radius: 999px;
}

.hidden {
    display: none !important;
}


/* -------------------------
   20. RESPONSIVE
   ------------------------- */

@media (max-width: 900px) {

    .section {
        padding: 80px 0;
    }

    .story-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .story-image {
        max-width: 600px;
        margin: auto;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 720px) {

    .navbar {
        min-height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: calc(100% + 8px);
        left: 4%;

        width: 92%;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px;

        background: rgba(250, 248, 244, 0.98);

        border: 1px solid var(--border);
        border-radius: 16px;

        box-shadow: var(--shadow);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition:
            opacity var(--transition),
            transform var(--transition),
            visibility var(--transition);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 13px 15px;
        border-radius: 9px;
    }

    .nav-links a:hover {
        background: var(--cream-dark);
    }

    .nav-links a::after {
        display: none;
    }

    .hero-content {
        padding: 120px 0 75px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .section {
        padding: 65px 0;
    }

    .container {
        width: min(90%, var(--container));
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .vehicle-content {
        padding: 22px;
    }

    .contact-card {
        padding: 22px;
    }
}


/* -------------------------
   21. ACCESSIBILITY
   ------------------------- */

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

::selection {
    background: var(--gold);
    color: var(--maroon-dark);
}


/* -------------------------
   22. REDUCED MOTION
   ------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}