/* ================================================
   HUMMER2RENT — Stealth Luxury Dark Theme
   ================================================ */

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --anthracite: #141414;
    --dark-gray: #1e1e1e;
    --medium-gray: #2d2d2d;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --gold: #d4a843;
    --gold-light: #e8c36a;
    --gold-dark: #b08a2e;
    --gold-glow: rgba(212, 168, 67, 0.15);
    --off-white: #f0f0f0;
    --text-muted: #8a8a8a;
    --text-dim: #555;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Barlow', sans-serif;

    --header-h: 80px;
    --section-py: 120px;
    --container-w: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    color: var(--off-white);
    background: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; }

/* --- Grain Overlay --- */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--medium-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* --- Container --- */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 16px;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    margin: 20px auto 0;
}

.section-subtitle {
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

/* --- Gold Divider --- */
.gold-divider {
    height: 1px;
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
    opacity: 0.25;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.08);
}

.nav-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: var(--off-white);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* --- Mobile Toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--off-white);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -20% 0 0 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.7) 60%),
        linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.97) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--gold);
    border: 1px solid rgba(212, 168, 67, 0.25);
    padding: 10px 28px;
    margin-bottom: 36px;
    animation: fadeInDown 0.9s ease 0.3s backwards;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.08;
    margin-bottom: 28px;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.7s backwards;
}

.cta-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    padding: 18px 52px;
    text-decoration: none;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.9s backwards;
}

.cta-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 168, 67, 0.3);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeIn 1s ease 1.4s backwards;
}

.hero-scroll span {
    display: block;
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(212, 168, 67, 0.35);
    border-radius: 11px;
    position: relative;
}

.hero-scroll span::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 2.5px;
    height: 7px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 2.2s ease infinite;
}

/* ================================================
   SERVICES
   ================================================ */
.services {
    padding: var(--section-py) 0;
    background: var(--anthracite);
    position: relative;
}

/* Angled top edge */
.services::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--black);
    clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--border-subtle);
    padding: 48px 24px 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    background: rgba(45, 45, 45, 0.7);
    transform: translateY(-6px);
    border-color: rgba(212, 168, 67, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 28px;
    color: var(--gold);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon { transform: scale(1.1); }

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================
   FLEET
   ================================================ */
.fleet {
    padding: var(--section-py) 0;
    background: var(--black);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fleet-card {
    background: var(--anthracite);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.5s ease;
}

.fleet-card:hover {
    border-color: rgba(212, 168, 67, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.fleet-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.fleet-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.5) 100%);
    pointer-events: none;
}

.fleet-info {
    padding: 28px 24px;
}

.fleet-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.fleet-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.fleet-link {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-decoration: none;
    transition: letter-spacing 0.3s, color 0.3s;
}

.fleet-link:hover {
    color: var(--gold-light);
    letter-spacing: 0.22em;
}

/* ================================================
   PARTNERS
   ================================================ */
.partners {
    padding: var(--section-py) 0;
    background: var(--anthracite);
    position: relative;
}

.partner-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.7), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(212, 168, 67, 0.12);
    padding: 52px;
    position: relative;
    overflow: hidden;
}

/* Top gold line accent */
.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Subtle corner glow */
.partner-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.partner-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    background: rgba(212, 168, 67, 0.06);
    border: 1px solid rgba(212, 168, 67, 0.18);
    padding: 7px 22px;
    margin-bottom: 32px;
}

.partner-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.partner-text { flex: 1; }

.partner-logo {
    height: 48px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.partner-logo:hover { opacity: 1; }

.partner-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--black);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    padding: 18px 36px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.partner-link:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(212, 168, 67, 0.25);
}

.partner-link svg { transition: transform 0.3s ease; }
.partner-link:hover svg { transform: translate(3px, -3px); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    padding: 80px 0 0;
    background: var(--black);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-col p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul a {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* ================================================
   KEYFRAMES
   ================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollBounce {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    30%      { opacity: 1; }
    75%      { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: calc(var(--delay, 0) * 0.12s);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-py: 88px;
    }

    .services::before { height: 50px; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fleet-grid .fleet-card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .partner-card { padding: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --header-h: 68px;
    }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s, visibility 0.4s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 0.95rem;
        letter-spacing: 0.22em;
    }

    .services::before { display: none; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card { padding: 32px 20px; }

    .fleet-grid { grid-template-columns: 1fr; }

    .fleet-grid .fleet-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .partner-card { padding: 28px 20px; }

    .partner-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .partner-link {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.6rem;
        padding: 8px 18px;
        letter-spacing: 0.25em;
    }

    .cta-btn {
        padding: 16px 36px;
        font-size: 0.72rem;
    }
}
