/* ===================================================================
   BRYAN BLACK CAR SERVICE - MAIN STYLESHEET
   ================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --bg: #07070a;
    --panel: rgba(12, 12, 16, 0.8);
    --panel-2: rgba(16, 16, 22, 0.9);
    --text: #f4f4f7;
    --muted: rgba(244, 244, 247, 0.72);
    --line: rgba(255, 255, 255, 0.12);
    --accent: #e10618;
    --accent-2: #ff3b3b;
    --chrome: linear-gradient(180deg, #ffffff 0%, #e7e7ea 16%, #9fa1aa 40%, #f7f7f9 64%, #b9bbc3 82%, #ffffff 100%);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    --max: 1600px;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(10px);
    background: rgba(7, 7, 10, 0.55);
    border-bottom: 1px solid var(--line);
    height: 100px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    height: 100%;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand.show {
    opacity: 1;
    transform: scale(1);
}

.brand img {
    width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55));
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 18px;
}

.navlinks a {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.navlinks a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

/* Header Actions */
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
}

.actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    margin: 5px auto;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
}

.btn-primary {
    border-color: rgba(225, 6, 24, 0.65);
    background: linear-gradient(180deg, rgba(225, 6, 24, 0.95), rgba(140, 0, 12, 0.95));
    box-shadow: 0 14px 40px rgba(225, 6, 24, 0.25);
}

.btn-primary:hover {
    border-color: rgba(255, 59, 59, 0.75);
    background: linear-gradient(180deg, rgba(255, 59, 59, 0.95), rgba(140, 0, 12, 0.95));
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
}

/* Save Contact Button */
#saveContactBtn {
    padding: 8px;
    width: 38px;
    height: 38px;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Venmo Button */
.btn-venmo {
    background: linear-gradient(180deg, #3D95CE, #2D7AB8);
    border-color: rgba(61, 149, 206, 0.6);
    box-shadow: 0 8px 24px rgba(61, 149, 206, 0.3);
    padding: 8px;
    width: 38px;
    height: 38px;
}

.btn-venmo:hover {
    background: linear-gradient(180deg, #4BA5DE, #3D95CE);
    border-color: rgba(61, 149, 206, 0.8);
}

.btn-venmo img {
    width: 22px;
    height: 22px;
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 82vh;
    display: grid;
    place-items: center;
    overflow: clip;
}

.hero::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(70% 60% at 50% 40%, rgba(225, 6, 24, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.82)),
        url("images/hero-suv.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
    z-index: -2;
}

.hero::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(60% 40% at 50% 70%, rgba(255, 255, 255, 0.10), transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max));
    padding: 0px clamp(20px, 4vw, 40px) clamp(30px, 5vh, 44px);
    text-align: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
    align-items: center;
    text-align: center;
}

.hero-grid > div:first-child {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.businessname {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.businessname h1 {
    font-weight: 800;
    background: #ff2c2c;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 12px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(225, 6, 24, 0.18);
}

h1 {
    margin: 14px 0 10px;
    font-size: clamp(24px, 4.2vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.subhead {
    margin: 0 auto 18px;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    justify-content: center;
}

/* Hero Card */
.hero-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: clamp(14px, 2vw, 18px);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    margin-top: 0;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.hero-card h3 {
    margin: 0 0 8px;
    font-size: 13px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.pillrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.pill {
    padding: 9px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.84);
}

.stat b {
    font-size: 22px;
    background: var(--chrome);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.35;
}

/* ===== SECTIONS ===== */
section {
    padding: 72px 0;
}

.section-title {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    text-align: center;
}

.section-title h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.01em;
}

.section-title p {
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
    max-width: 72ch;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: rgba(225, 6, 24, 0.12);
    border: 1px solid rgba(225, 6, 24, 0.25);
}

.icon svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.90);
}

/* ===== LEATHER BACKGROUND SECTION ===== */
/* Removed - no longer using background image for Why Choose Us section */

/* ===== CTA / PRICING BAND ===== */
.cta-band {
    background: 
        radial-gradient(80% 80% at 50% 10%, rgba(225, 6, 24, 0.18), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ===== FOOTER ===== */
footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding: 42px 0 32px;
    text-align: center;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    align-items: center;
}

.footer-grid strong {
    font-size: 15px;
    font-weight: 600;
}

.footer-grid small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.60);
}

.mini-links {
    display: none;
}

.generator-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hidden Receipt Generator - Legacy Support */
.receipt-generator-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.receipt-generator-section .btn-secondary {
    font-size: 9px;
    padding: 4px 8px;
    opacity: 0.15;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.receipt-generator-section .btn-secondary:hover {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.04);
}

.receipt-generator-section p {
    display: none;
}

/* ===== SCROLL OFFSET FOR ANCHOR LINKS ===== */
#services,
#why,
#rates,
#contact {
    scroll-margin-top: 120px;
}

/* ===== REVIEWS SECTION ===== */
#reviews {
    scroll-margin-top: 120px;
}

.reviews-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-container iframe {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 600px;
}

/* ===== TERMS PAGE BACKGROUND ===== */
body.terms-page {
    position: relative;
    min-height: 100vh;
}

body.terms-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(70% 60% at 50% 40%, rgba(225, 6, 24, 0.16), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.82)),
        url("images/hero-suv.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
    z-index: -2;
}

body.terms-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(60% 40% at 50% 70%, rgba(255, 255, 255, 0.10), transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1;
}

/* ===== TERMS OF SERVICE PAGE STYLES ===== */
.terms-header {
    padding: 60px 0 20px;
    text-align: center;
}

.terms-header h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 10px;
}

.terms-header p {
    color: var(--muted);
    font-size: 16px;
}

.terms-section {
    padding: 40px 0;
}

.terms-section-compact {
    padding: 20px 0;
}

.terms-section-last {
    padding: 20px 0 80px;
}

.terms-acceptance-section {
    padding: 20px 0 80px;
}

.terms-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.terms-card-highlight {
    background: linear-gradient(135deg, rgba(225, 6, 24, 0.12), rgba(225, 6, 24, 0.05));
    border: 1px solid rgba(225, 6, 24, 0.3);
}

.terms-card h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.terms-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.terms-card p {
    margin-bottom: 15px;
}

.terms-card p:last-child {
    margin-bottom: 0;
}

.terms-card p.spacing-bottom-10 {
    margin-bottom: 10px;
}

.terms-card p.spacing-bottom-20 {
    margin-bottom: 20px;
}

.terms-card p.emphasis {
    font-weight: 600;
}

.terms-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.terms-card ul.spacing-bottom-20 {
    margin-bottom: 20px;
}

.terms-card ul:last-child {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-links a {
    font-size: 12px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* Mobile */
@media (max-width: 820px) {
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 940px) {
    .hero-card {
        margin-top: 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 820px) {
    .brand {
        min-width: auto;
        flex-shrink: 0;
    }

    .brand img {
        width: 120px;
    }

    .actions {
        padding-right: 8px;
    }

    .navlinks {
        display: none;
        position: absolute;
        top: 84px;
        left: 20px;
        right: 20px;
        background: rgba(7, 7, 10, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 16px;
        padding: 12px;
        backdrop-filter: blur(12px);
    }

    .navlinks.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .navlinks a {
        padding: 12px;
    }

    .hamburger {
        display: inline-block;
    }

    .actions .btn-ghost {
        display: none;
    }

    #saveContactBtn {
        padding: 6px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .btn-venmo {
        padding: 6px;
        width: 34px;
        height: 34px;
    }
    
    .btn-venmo img {
        width: 20px;
        height: 20px;
    }

    .grid3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mini-links {
        justify-content: flex-start;
    }

    .generator-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Hero Logo - appears at top */
.hero-logo {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-logo img {
    width: clamp(200px, 50vw, 600px);
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.7));
}

.hero-logo.hide {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Hero Section - Responsive adjustments */
.hero {
    position: relative;
    min-height: 82vh;
    display: grid;
    place-items: center;
    overflow: clip;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(100%, var(--max));
    padding: 0px clamp(20px, 4vw, 40px) clamp(30px, 5vh, 44px);
    text-align: center;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
    align-items: center;
    text-align: center;
}

.hero-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: clamp(14px, 2vw, 18px);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    margin-top: 0;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* Mobile adjustments */
@media (max-width: 820px) {
    .hero-logo img {
        width: clamp(405px, 95vw, 900px);
    }
    
    .hero {
        min-height: 90vh;
    }
}