/* =========================
   AUTOMATCHSA PREMIUM STYLE
   File: /premium-site/assets/automatch-style.css
========================= */

/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #0f172a;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: min(1180px, 92%);
    margin: auto;
}

/* =========================
   HEADER / NAV
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.nav {
    min-height: 82px;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.logo span {
    color: #3b82f6;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-nav a {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: 0.25s ease;
    opacity: 0.9;
}

.desktop-nav a:hover {
    color: #60a5fa;
    opacity: 1;
}

.nav-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white !important;
    padding: 15px 24px;
    border-radius: 999px;
    text-align: center;
    line-height: 1.15;
    box-shadow:
        0 15px 40px rgba(37,99,235,0.35),
        inset 0 1px 0 rgba(255,255,255,0.18);
    transition: 0.3s ease;
}

.nav-login:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 18px;
    background: #020617;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a {
    padding: 14px 0;
    color: #f8fafc;
    font-weight: 800;
}

.mobile-menu.open {
    display: flex;
}

.mobile-cta {
    background: #2563eb;
    color: white !important;
    text-align: center;
    border-radius: 16px;
    padding: 14px !important;
    margin-top: 8px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    border-radius: 18px;
    font-weight: 900;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(37,99,235,0.35);
}

.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow:
        0 20px 60px rgba(37,99,235,0.45),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.secondary {
    background: rgba(255,255,255,0.14);
    color: white;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.secondary-dark {
    background: #020617;
    color: white;
}

/* =========================
   HERO SECTIONS
========================= */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(2,6,23,0.88) 0%,
            rgba(2,6,23,0.82) 35%,
            rgba(2,6,23,0.70) 55%,
            rgba(2,6,23,0.52) 100%
        ),
        url("images/hero-buyer.jpg");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;

    color: white;
    padding: 150px 0 120px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.20), transparent 42%),
        linear-gradient(to bottom, rgba(2,6,23,0), rgba(2,6,23,0.18));
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(248,250,252,0), #f8fafc);
    pointer-events: none;
}

.sales-hero,
.dealer-hero {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.95),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.65)
        ),
        url("images/hero-buyer.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.dealer-hero {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.95),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.65)
        ),
        url("images/trust-handshake.jpg");
    background-size: cover;
    background-position: center;
}

.sales-hero {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.95),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.65)
        ),
        url("images/buyer-benefits.jpg");
    background-size: cover;
    background-position: center;
}

.hero-grid,
.dealer-hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #dbeafe;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero h1,
.sales-hero h1,
.dealer-hero h1 {
    font-size: clamp(54px, 6vw, 86px);
    line-height: 0.92;
    letter-spacing: -4px;
    margin-bottom: 28px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.hero p,
.sales-hero p,
.dealer-hero p {
    max-width: 690px;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.trust-row span {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 800;
}

.trust-row span::before {
    content: "✓ ";
    color: #60a5fa;
    font-weight: 900;
}

/* =========================
   HERO CARDS
========================= */

.hero-card {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.match-card,
.dealer-glass-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 38px;
    border-radius: 36px;
    box-shadow:
        0 50px 140px rgba(0,0,0,0.45),
        0 0 40px rgba(59,130,246,0.10),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.small-title {
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 950;
    margin-bottom: 26px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-card h2,
.dealer-glass-card h2 {
    color: #ffffff;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -2px;
    margin-bottom: 20px;
    font-weight: 900;
}

.match-card p,
.dealer-glass-card p {
    color: rgba(255,255,255,0.82);
    margin-bottom: 24px;
    line-height: 1.7;
}

.progress {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress div {
    width: 72%;
    height: 100%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.match-card ul,
.dealer-glass-card ul {
    list-style: none;
}

.match-card li,
.dealer-glass-card li {
    padding: 12px 0;
    color: rgba(255,255,255,0.86);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-weight: 700;
    font-size: 14px;
}

.hero-response {
    margin-top: 22px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 700;
}

.hero-response strong {
    color: #ffffff;
}

/* =========================
   SECTION BASE
========================= */

.section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-heading h2 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 18px;
    color: #071b3b;
}

.section-heading p {
    color: #64748b;
    font-size: 18px;
}

.section-kicker {
    color: #2563eb;
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================
   TRUST BADGES
========================= */

.trust-badges {
    background: #f8fafc;
    padding: 42px 0 26px;
    position: relative;
    z-index: 4;
}

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

.badge-grid div {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(15,23,42,0.07);
}

.badge-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    color: #071b3b;
}

.badge-grid span {
    color: #64748b;
    font-size: 14px;
}

/* =========================
   STATS
========================= */

.stats-section {
    background: #020617;
    padding: 42px 0;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 26px;
    color: white;
    text-align: center;
}

.stat-card h3 {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-card p {
    color: #cbd5e1;
    font-size: 14px;
}

/* =========================
   STEPS
========================= */

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

.step {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.step span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.step h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #071b3b;
}

.step p {
    color: #64748b;
}

/* =========================
   CALCULATOR / SUPPORT
========================= */

.calculator-section,
.support-section {
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.07), transparent 26%),
        linear-gradient(180deg, #eef4ff, #f8fafc);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.calculator-grid h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #071b3b;
}

.calculator-grid p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

.calculator-card {
    background: white;
    border-radius: 34px;
    padding: 38px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.calc-row span {
    color: #64748b;
}

.calc-row strong {
    font-size: 20px;
}

.calc-result {
    margin-top: 28px;
    background: #020617;
    color: white;
    padding: 28px;
    border-radius: 28px;
}

.calc-result span {
    color: #93c5fd;
}

.calc-result h3 {
    font-size: 34px;
    margin: 12px 0;
}

.calc-result p {
    color: #dbeafe;
    margin: 0;
}

/* =========================
   ECOSYSTEM
========================= */

.ecosystem-section {
    background: #f8fafc;
}

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

.ecosystem-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.ecosystem-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.ecosystem-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ecosystem-card p {
    color: #64748b;
    margin-bottom: 18px;
}

.ecosystem-card a {
    color: #2563eb;
    font-weight: 900;
}

/* =========================
   DASHBOARD PREVIEW
========================= */

.dashboard-preview-section {
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.dashboard-copy h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.dashboard-copy p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

.dashboard-mockup {
    background: #020617;
    border-radius: 34px;
    padding: 20px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.24);
}

.mockup-top {
    display: flex;
    gap: 8px;
    padding: 8px 8px 18px;
}

.mockup-top span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.mockup-content {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
}

.mockup-stat {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-stat small {
    color: #cbd5e1;
}

.mockup-stat strong {
    color: white;
}

.mockup-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 18px;
}

.mockup-line.wide {
    width: 100%;
}

.mockup-line.small {
    width: 50%;
}

.mockup-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.mockup-pill-row span {
    background: rgba(37, 99, 235, 0.35);
    color: #dbeafe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
}

/* =========================
   SPLIT / BUYER BENEFITS
========================= */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #071b3b;
}

.split p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

.feature-box {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.96),
            rgba(15, 23, 42, 0.88)
        );
    color: white;
    padding: 40px;
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(15,23,42,0.18);
}

.feature-box h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.feature-box ul {
    list-style: none;
}

.feature-box li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #dbeafe;
}

/* =========================
   WHY SECTION
========================= */

.why-section {
    background: #f8fafc;
}

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

.why-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.why-card span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.why-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.why-card p {
    color: #64748b;
}

/* =========================
   PROOF SECTION
========================= */

.proof-section {
    background:
        linear-gradient(
            135deg,
            rgba(2, 6, 23, 0.94),
            rgba(15, 23, 42, 0.88),
            rgba(29, 78, 216, 0.68)
        ),
        url("images/hero-buyer.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.proof-card,
.proof-mini-grid div {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    padding: 34px;
    backdrop-filter: blur(16px);
}

.proof-card h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 18px;
}

.proof-card p {
    color: #dbeafe;
    font-size: 18px;
}

.proof-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.proof-mini-grid strong {
    display: block;
    margin-bottom: 8px;
}

.proof-mini-grid span {
    color: #dbeafe;
    font-size: 14px;
}

/* =========================
   JOURNEY
========================= */

.journey-section {
    background: white;
}

.journey-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.journey-step {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.journey-step span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 18px;
}

.journey-step h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.journey-step p {
    color: #64748b;
}

/* =========================
   TRUST SECTION
========================= */

.trust-section {
    background: #f8fafc;
}

.trust-section h2 {
    font-size: clamp(40px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: #071b3b;
}

.trust-section p {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 28px;
}

/* =========================
   FAQ
========================= */

.faq-section {
    background: #ffffff;
}

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

.faq-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 30px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.faq-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #071b3b;
}

.faq-card p {
    color: #64748b;
}

/* =========================
   PACKAGES / SALES PAGE
========================= */

.packages-section {
    background: white;
    padding-top: 78px;
}

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

.pricing-card {
    background: white;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 32px;
    padding: 34px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    background: #020617;
    color: white;
}

.popular-label {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.pricing-card h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.pricing-card p {
    color: #64748b;
    margin-bottom: 24px;
    min-height: 90px;
}

.pricing-card.featured p {
    color: #cbd5e1;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-card li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-card.featured li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.price {
    display: none !important;
}

/* =========================
   PRE FOOTER CTA
========================= */

.pre-footer-cta {
    background: #020617;
    color: white;
    padding: 70px 0;
}

.pre-footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.pre-footer-grid h2 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 16px;
}

.pre-footer-grid p {
    color: #cbd5e1;
}

/* =========================
   FINAL CTA
========================= */

.cta {
    background: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -2px;
    color: #071b3b;
}

.cta p {
    color: #64748b;
    margin: 12px 0 24px;
}

.center-actions {
    justify-content: center;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 70px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: white;
}

.footer-grid p {
    color: #94a3b8;
    margin-top: 18px;
}

.footer-grid h4 {
    margin-bottom: 16px;
}

.footer-grid a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* =========================
   FLOATING / MOBILE CTA
========================= */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 90px;
    background: #22c55e;
    color: white;
    padding: 16px 18px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 20px 50px rgba(34, 197, 94, 0.35);
    z-index: 999;
}

.mobile-bottom-cta {
    display: none;
}

/* =========================
   ANIMATIONS
========================= */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav a {
        font-size: 12px;
    }

    .logo {
        font-size: 28px;
    }
}

@media (max-width: 980px) {

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        min-height: 72px;
    }

    .hero-grid,
    .dealer-hero-grid,
    .calculator-grid,
    .badge-grid,
    .stats-grid,
    .steps,
    .ecosystem-grid,
    .dashboard-grid,
    .split-grid,
    .why-grid,
    .proof-grid,
    .proof-mini-grid,
    .journey-line,
    .faq-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 80px;
        background-position: center;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-content,
    .hero-card {
        max-width: 100%;
    }

    .hero h1,
    .sales-hero h1,
    .dealer-hero h1 {
        font-size: clamp(48px, 12vw, 72px);
        line-height: 0.96;
        letter-spacing: -2px;
    }

    .hero p,
    .sales-hero p,
    .dealer-hero p {
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .trust-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .match-card,
    .dealer-glass-card {
        max-width: 100%;
    }

    .sales-hero,
    .dealer-hero {
        padding: 72px 0;
    }

    .section {
        padding: 70px 0;
    }

    .pricing-card {
        min-height: auto;
    }

    .pricing-card p {
        min-height: auto;
    }

    .pre-footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .mobile-bottom-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 14px;
        border-top: 1px solid #e5e7eb;
        z-index: 999;
    }

    .mobile-bottom-cta a {
        width: 100%;
        background: #2563eb;
        color: white;
        text-align: center;
        padding: 16px;
        border-radius: 18px;
        font-weight: 900;
    }

    .whatsapp-float {
        bottom: 90px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 32px, 1180px);
    }

    .logo {
        font-size: 25px;
    }

    .hero {
        padding: 96px 0 76px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -2px;
    }

    .match-card {
        padding: 28px;
        border-radius: 28px;
    }

    .match-card h2 {
        font-size: 34px;
    }

    .section-heading h2,
    .calculator-grid h2,
    .split h2,
    .trust-section h2,
    .pre-footer-grid h2,
    .cta h2 {
        letter-spacing: -1.5px;
    }

    .badge-grid div,
    .step,
    .why-card,
    .journey-step,
    .faq-card,
    .calculator-card,
    .feature-box {
        border-radius: 24px;
        padding: 26px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 86px;
        padding: 13px 15px;
        font-size: 13px;
    }
}

/* =========================
   LEGAL / COMPLIANCE PAGES
   Add to bottom of automatch-style.css
========================= */

.legal-hero{
    background:
        linear-gradient(135deg, rgba(2,6,23,.96), rgba(15,23,42,.90), rgba(37,99,235,.45)),
        url("images/hero-buyer.jpg");
    background-size:cover;
    background-position:center;
    color:#fff;
    padding:110px 0 76px;
}

.legal-hero h1{
    font-size:clamp(44px,6vw,76px);
    line-height:.95;
    letter-spacing:-3px;
    margin:12px 0 18px;
}

.legal-hero p{
    max-width:760px;
    color:#dbeafe;
    font-size:18px;
    line-height:1.7;
}

.legal-content{
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.07), transparent 28%),
        linear-gradient(180deg,#f8fafc,#eef4ff);
    padding:70px 0 90px;
}

.legal-card{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:34px;
    padding:46px;
    box-shadow:0 30px 80px rgba(15,23,42,.10);
}

.legal-card h2{
    color:#071b3b;
    font-size:28px;
    letter-spacing:-.6px;
    margin:32px 0 12px;
}

.legal-card h2:first-child{
    margin-top:0;
}

.legal-card h3{
    color:#071b3b;
    font-size:20px;
    margin-bottom:8px;
}

.legal-card p,
.legal-card li{
    color:#475569;
    font-size:16px;
    line-height:1.8;
}

.legal-card ul{
    margin:14px 0 20px 22px;
}

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

.contact-grid div{
    background:#f8fafc;
    border:1px solid rgba(15,23,42,.08);
    border-radius:22px;
    padding:22px;
}

@media(max-width:780px){
    .legal-hero{
        padding:92px 0 60px;
    }

    .legal-card{
        padding:28px;
        border-radius:26px;
    }

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

/* =========================
   MOBILE FINAL FIX - AUTOMATCHSA
   Strong compact mobile layout
========================= */

@media (max-width: 640px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .container {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .nav {
        min-height: 58px !important;
        padding: 8px 0 !important;
        gap: 12px !important;
    }

    .logo {
        font-size: 21px !important;
        letter-spacing: -0.8px !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .mobile-menu-btn span {
        width: 24px !important;
        height: 2.5px !important;
        margin: 4px 0 !important;
    }

    .mobile-menu {
        padding: 10px 14px 14px !important;
    }

    .mobile-menu a {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }

    .hero {
        min-height: auto !important;
        padding: 34px 0 28px !important;
        align-items: flex-start !important;
        background-position: center top !important;
    }

    .hero::after {
        height: 44px !important;
    }

    .hero-grid,
    .dealer-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        align-items: start !important;
    }

    .hero-content {
        max-width: 100% !important;
    }

    .badge {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
        padding: 6px 9px !important;
        margin-bottom: 10px !important;
        letter-spacing: 0.2px !important;
    }

    .hero h1,
    .sales-hero h1,
    .dealer-hero h1 {
        font-size: 30px !important;
        line-height: 0.98 !important;
        letter-spacing: -1px !important;
        margin-bottom: 10px !important;
    }

    .hero p,
    .sales-hero p,
    .dealer-hero p {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 12px !important;
        max-width: 100% !important;
    }

    .hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    .btn,
    .hero-actions .btn {
        width: 100% !important;
        min-height: 38px !important;
        padding: 9px 10px !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    .trust-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px 8px !important;
        margin-bottom: 0 !important;
    }

    .trust-row span {
        font-size: 9.5px !important;
        line-height: 1.25 !important;
    }

    .hero-card {
        margin-top: 2px !important;
        justify-content: flex-start !important;
    }

    .match-card,
    .dealer-glass-card {
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.28) !important;
    }

    .small-title {
        font-size: 9.5px !important;
        margin-bottom: 8px !important;
        letter-spacing: 0.45px !important;
    }

    .match-card h2,
    .dealer-glass-card h2 {
        font-size: 21px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.7px !important;
        margin-bottom: 8px !important;
    }

    .match-card p,
    .dealer-glass-card p {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
    }

    .progress {
        height: 8px !important;
        margin-bottom: 8px !important;
    }

    .match-card li,
    .dealer-glass-card li {
        font-size: 10.5px !important;
        padding: 5px 0 !important;
        line-height: 1.35 !important;
    }

    .sales-hero,
    .dealer-hero {
        min-height: auto !important;
        padding: 36px 0 30px !important;
    }

    .trust-badges {
        padding: 24px 0 16px !important;
    }

    .section,
    .packages-section,
    .cta,
    .pre-footer-cta,
    .stats-section,
    .trust-section,
    .faq-section,
    .journey-section,
    .dashboard-preview-section,
    .ecosystem-section,
    .calculator-section,
    .support-section {
        padding-top: 38px !important;
        padding-bottom: 38px !important;
    }

    .section-heading {
        margin-bottom: 22px !important;
    }

    .section-heading h2,
    .calculator-grid h2,
    .split h2,
    .trust-section h2,
    .proof-card h2,
    .dashboard-copy h2,
    .pre-footer-grid h2,
    .cta h2 {
        font-size: 26px !important;
        line-height: 1.06 !important;
        letter-spacing: -1px !important;
        margin-bottom: 10px !important;
    }

    .section-heading p,
    .calculator-grid p,
    .split p,
    .trust-section p,
    .proof-card p,
    .dashboard-copy p,
    .cta p,
    .pre-footer-grid p {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }

    .badge-grid,
    .stats-grid,
    .steps,
    .ecosystem-grid,
    .dashboard-grid,
    .calculator-grid,
    .split-grid,
    .why-grid,
    .proof-grid,
    .proof-mini-grid,
    .journey-line,
    .faq-grid,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .badge-grid div,
    .step,
    .why-card,
    .journey-step,
    .faq-card,
    .calculator-card,
    .feature-box,
    .ecosystem-card,
    .pricing-card,
    .stat-card,
    .proof-card,
    .proof-mini-grid div,
    .dashboard-mockup {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .badge-grid strong,
    .step h3,
    .why-card h3,
    .journey-step h3,
    .ecosystem-card h3,
    .faq-card h3 {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }

    .badge-grid span,
    .step p,
    .why-card p,
    .journey-step p,
    .ecosystem-card p,
    .faq-card p,
    .pricing-card p,
    .feature-box li {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .step span,
    .why-card span,
    .journey-step span,
    .ecosystem-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    .stat-card h3 {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }

    .pricing-card {
        min-height: auto !important;
    }

    .pricing-card h3 {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    .pricing-card li {
        padding: 8px 0 !important;
        font-size: 12.5px !important;
    }

    .calc-row {
        padding: 10px 0 !important;
    }

    .calc-row span {
        font-size: 12.5px !important;
    }

    .calc-row strong {
        font-size: 15px !important;
    }

    .calc-result {
        padding: 16px !important;
        border-radius: 16px !important;
        margin-top: 16px !important;
    }

    .calc-result h3 {
        font-size: 24px !important;
        margin: 8px 0 !important;
    }

    .pre-footer-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    footer {
        padding: 38px 0 86px !important;
    }

    .footer-grid {
        gap: 20px !important;
    }

    .footer-grid p,
    .footer-grid a {
        font-size: 12.5px !important;
        margin-bottom: 9px !important;
    }

    .footer-grid h4 {
        margin-bottom: 9px !important;
    }

    .whatsapp-float {
        right: 8px !important;
        bottom: 72px !important;
        padding: 10px 12px !important;
        font-size: 11px !important;
        box-shadow: 0 12px 30px rgba(34, 197, 94, 0.30) !important;
    }

    .mobile-bottom-cta {
        display: flex !important;
        padding: 8px !important;
    }

    .mobile-bottom-cta a {
        padding: 10px !important;
        border-radius: 12px !important;
        font-size: 11.5px !important;
    }

    .legal-hero {
        padding: 42px 0 30px !important;
    }

    .legal-hero h1 {
        font-size: 30px !important;
        line-height: 1 !important;
        letter-spacing: -1px !important;
    }

    .legal-hero p {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
    }

    .legal-content {
        padding: 32px 0 48px !important;
    }

    .legal-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .legal-card h2 {
        font-size: 19px !important;
        margin: 24px 0 8px !important;
    }

    .legal-card p,
    .legal-card li {
        font-size: 12.8px !important;
        line-height: 1.6 !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 390px) {
    .hero h1,
    .sales-hero h1,
    .dealer-hero h1 {
        font-size: 28px !important;
    }

    .match-card h2,
    .dealer-glass-card h2 {
        font-size: 20px !important;
    }
}


/* =========================
   DEALER PAGE RESTORE / PREMIUM V4
   Fixes dealer-onboarding styling after master-nav migration
========================= */
.dealer-page{
    background:#f5f9ff;
    color:#061b3a;
}

.dealer-hero-upgrade{
    position:relative;
    overflow:hidden;
    color:#fff;
    min-height:calc(100vh - 84px);
    display:flex;
    align-items:center;
    padding:128px 0 86px;
    background:
        linear-gradient(90deg, rgba(2,6,23,.92) 0%, rgba(2,6,23,.86) 34%, rgba(2,6,23,.68) 62%, rgba(2,6,23,.48) 100%),
        radial-gradient(circle at 18% 22%, rgba(37,99,235,.22), transparent 34%),
        url('images/dealer-hero.jpg') center/cover no-repeat;
    border-bottom:1px solid rgba(15,23,42,.08);
}

.dealer-hero-upgrade:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg, rgba(2,6,23,.18), transparent 48%, rgba(248,250,252,.95) 100%),
        radial-gradient(circle at 82% 18%, rgba(96,165,250,.18), transparent 28%);
    pointer-events:none;
}

.dealer-hero-inner{
    position:relative;
    z-index:2;
    max-width:980px;
    margin-left:auto;
    margin-right:auto;
}

.dealer-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 15px;
    border-radius:999px;
    background:rgba(255,255,255,.13);
    color:#dbeafe;
    border:1px solid rgba(255,255,255,.22);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.45px;
    margin-bottom:22px;
}

.dealer-hero-upgrade h1{
    max-width:980px;
    margin:0 0 22px;
    font-size:clamp(46px,5.9vw,82px);
    line-height:.96;
    letter-spacing:-3.6px;
    color:#fff;
    text-shadow:0 18px 50px rgba(0,0,0,.42);
}

.dealer-hero-upgrade p{
    max-width:780px;
    color:#eaf2ff;
    font-size:18px;
    line-height:1.72;
    margin:0 0 32px;
}

.dealer-stat-row{
    margin-top:34px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    max-width:900px;
}

.dealer-stat-row div{
    background:rgba(255,255,255,.11);
    border:1px solid rgba(255,255,255,.18);
    border-radius:22px;
    padding:18px;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 22px 60px rgba(0,0,0,.18);
}

.dealer-stat-row strong{
    display:block;
    font-size:14px;
    color:#fff;
    margin-bottom:6px;
}

.dealer-stat-row span{
    display:block;
    font-size:12px;
    color:#dbeafe;
    line-height:1.45;
}

.dealer-section{
    padding:84px 0;
    background:#fff;
    position:relative;
}

.dealer-section.alt{
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.08), transparent 30%),
        linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%);
}

.dealer-section.dark{
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.25), transparent 32%),
        linear-gradient(135deg,#020617,#071b3b 58%,#0b2554);
    color:#fff;
}

.dealer-head{
    text-align:center;
    max-width:850px;
    margin:0 auto 44px;
}

.dealer-head h2{
    font-size:clamp(34px,4.4vw,60px);
    line-height:1;
    letter-spacing:-2.1px;
    color:#071b3b;
    margin:10px 0 15px;
}

.dealer-section.dark .dealer-head h2,
.dealer-section.dark .dealer-head p{
    color:#fff;
}

.dealer-head p{
    color:#52647a;
    font-size:16px;
    line-height:1.68;
}

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

.dealer-grid.four{
    grid-template-columns:repeat(4,1fr);
}

.dealer-card{
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:30px;
    padding:32px;
    box-shadow:0 18px 50px rgba(15,23,42,.08), 0 38px 90px rgba(37,99,235,.06);
    transition:.25s ease;
}

.dealer-card:hover{
    transform:translateY(-6px);
    box-shadow:0 28px 75px rgba(15,23,42,.14), 0 45px 110px rgba(37,99,235,.10);
}

.dealer-card .num{
    width:48px;
    height:48px;
    border-radius:16px;
    background:linear-gradient(135deg,#0b56c5,#2563eb);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:950;
    margin-bottom:22px;
    box-shadow:0 14px 34px rgba(37,99,235,.28);
}

.dealer-card h3{
    color:#061b3a;
    font-size:23px;
    line-height:1.14;
    letter-spacing:-.55px;
    margin:0 0 12px;
}

.dealer-card p{
    color:#52647a;
    line-height:1.66;
    font-size:15px;
    margin:0;
}

.dealer-fee{
    display:grid;
    grid-template-columns:1fr .82fr;
    gap:34px;
    align-items:center;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.13);
    border-radius:38px;
    padding:46px;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:0 28px 90px rgba(0,0,0,.24);
}

.dealer-fee h2{
    font-size:clamp(36px,4.8vw,60px);
    line-height:1;
    letter-spacing:-2px;
    margin:10px 0 16px;
    color:#fff;
}

.dealer-fee p{
    color:#dbeafe;
    line-height:1.7;
    font-size:16px;
}

.dealer-fee-list{
    display:grid;
    gap:14px;
}

.dealer-fee-list div{
    background:rgba(255,255,255,.11);
    border:1px solid rgba(255,255,255,.15);
    border-radius:20px;
    padding:18px;
    color:#fff;
    font-weight:900;
}

.dealer-fee-list span{
    display:block;
    color:#dbeafe;
    font-weight:500;
    font-size:13px;
    line-height:1.45;
    margin-top:5px;
}

.dealer-final{
    text-align:center;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:38px;
    padding:58px 28px;
    box-shadow:0 26px 80px rgba(15,23,42,.10);
}

.dealer-final h2{
    color:#071b3b;
    font-size:clamp(34px,4.6vw,58px);
    line-height:1;
    letter-spacing:-2px;
    margin-bottom:16px;
}

.dealer-final p{
    max-width:760px;
    margin:0 auto 28px;
    color:#52647a;
    font-size:16px;
    line-height:1.7;
}

@media(max-width:1180px){
    .dealer-grid.four{grid-template-columns:repeat(2,1fr)}
    }

@media(max-width:900px){
    .dealer-hero-upgrade{min-height:auto;padding:92px 0 70px;background-position:center}
    .dealer-hero-upgrade h1{font-size:clamp(40px,11vw,66px);letter-spacing:-2px}
    .dealer-stat-row,.dealer-grid,.dealer-grid.four,.dealer-fee{grid-template-columns:1fr}
    .dealer-section{padding:58px 0}
    .dealer-fee{padding:30px;border-radius:28px}
}

@media(max-width:640px){
    .dealer-hero-upgrade{padding:82px 0 54px!important}
    .dealer-badge{font-size:10px;padding:7px 10px;margin-bottom:13px}
    .dealer-hero-upgrade h1{font-size:34px!important;line-height:1!important;letter-spacing:-1.2px!important;margin-bottom:13px!important}
    .dealer-hero-upgrade p{font-size:13px!important;line-height:1.55!important;margin-bottom:16px!important}
    .dealer-stat-row{gap:10px;margin-top:18px}
    .dealer-stat-row div,.dealer-card{padding:18px!important;border-radius:18px!important}
    .dealer-head{margin-bottom:22px!important}
    .dealer-head h2,.dealer-final h2,.dealer-fee h2{font-size:27px!important;letter-spacing:-1px!important;line-height:1.06!important}
    .dealer-head p,.dealer-final p,.dealer-fee p,.dealer-card p{font-size:12.8px!important;line-height:1.5!important}
    .dealer-card h3{font-size:18px!important}
    .dealer-final{padding:26px 18px;border-radius:22px}
}


/* =====================================================
   AutoMatchSA Design System - Header v3
   ===================================================== */

.master-header{
position:sticky;
top:0;
z-index:9999;
background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(9,17,34,.88));
backdrop-filter:blur(28px);
-webkit-backdrop-filter:blur(28px);
border-bottom:1px solid rgba(255,255,255,.10);
box-shadow:0 10px 35px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.05);
}

.master-nav{
min-height:100px;
display:flex;
align-items:center;
justify-content:space-between;
gap:48px;
}

.brand-logo{display:flex;align-items:center;min-width:340px;background:none!important;padding-left:12px}
.brand-logo img{height:78px;width:auto;display:block;filter:drop-shadow(0 4px 12px rgba(0,0,0,.25))}

.master-links{
margin-left:auto;
display:flex;
align-items:center;
gap:14px;
padding:9px 14px;
background:rgba(255,255,255,.09);
border:1px solid rgba(255,255,255,.12);
border-radius:22px;
backdrop-filter:blur(26px);
-webkit-backdrop-filter:blur(26px);
box-shadow:0 10px 24px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08);
}

.master-links a{
padding:15px 28px;
border-radius:14px;
font-size:11px;
font-weight:800;
letter-spacing:.6px;
text-transform:uppercase;
color:#eef5ff!important;
transition:.25s;
}

.master-links a:hover{background:rgba(255,255,255,.09)}
.master-links .nav-login{
background:linear-gradient(135deg,#3b82f6,#2563eb)!important;
border-radius:14px;
padding:15px 28px!important;
box-shadow:0 12px 28px rgba(37,99,235,.35)!important,inset 0 1px 0 rgba(255,255,255,.18);
}

.footer-brand img{height:58px;width:auto}


/* =====================================================
   AutoMatchSA Premium Site Alignment + Mobile Nav Fix
   Added after Header v3 so it overrides older mobile rules
   ===================================================== */

/* Keep every premium-site section on the same rail as the header */
.site-header .container,
.master-header .container,
section > .container,
footer .container,
.premium-footer .container {
    width: min(1180px, 92%) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Prevent the new premium header from visually crushing the home hero */
body .hero {
    padding-top: 132px !important;
}

/* Desktop header balance */
.master-nav {
    width: min(1180px, 92%) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.brand-logo {
    min-width: 260px !important;
    padding-left: 0 !important;
}

.brand-logo img {
    height: 64px !important;
    width: auto !important;
}

.master-links {
    max-width: calc(100% - 285px) !important;
}

.master-links a {
    padding-left: 22px !important;
    padding-right: 22px !important;
}

/* Tablet and mobile: show hamburger, hide desktop pill nav, make mobile menu usable */
@media (max-width: 980px) {
    .master-nav {
        min-height: 72px !important;
        padding: 10px 0 !important;
        gap: 14px !important;
    }

    .brand-logo {
        min-width: 0 !important;
        padding-left: 0 !important;
        flex: 0 1 auto !important;
    }

    .brand-logo img {
        height: 54px !important;
        max-width: 210px !important;
    }

    .master-links,
    .desktop-nav.master-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        margin-left: auto !important;
        padding: 8px !important;
        position: relative !important;
        z-index: 10001 !important;
    }

    .mobile-menu-btn span {
        display: block !important;
        background: #ffffff !important;
    }

    .mobile-menu {
        display: none !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        z-index: 10000 !important;
        background: rgba(2, 6, 23, .98) !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
        padding: 14px 4% 18px !important;
        box-shadow: 0 22px 45px rgba(0,0,0,.32) !important;
    }

    .mobile-menu.open {
        display: flex !important;
    }

    .mobile-menu a {
        display: block !important;
        color: #f8fafc !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        padding: 13px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }

    .mobile-menu .mobile-cta {
        margin-top: 12px !important;
        padding: 14px !important;
        border-bottom: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg,#3b82f6,#2563eb) !important;
        text-align: center !important;
    }

    body .hero {
        padding-top: 78px !important;
    }
}

@media (max-width: 640px) {
    .site-header .container,
    .master-header .container,
    section > .container,
    footer .container,
    .premium-footer .container {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
    }

    .master-nav {
        min-height: 62px !important;
        padding: 7px 0 !important;
    }

    .brand-logo img {
        height: 46px !important;
        max-width: 185px !important;
    }

    .mobile-menu-btn span {
        width: 25px !important;
        height: 3px !important;
        margin: 4px 0 !important;
    }

    body .hero {
        padding-top: 42px !important;
    }
}


/* =====================================================
   AutoMatchSA Header CTA + Mobile Nav Repair
   Added 2026-06-27
   Purpose:
   - Stop the "Check Buying Power" CTA from sitting outside the nav pill
   - Keep header/logo/nav on the same rail
   - Restore visible mobile hamburger and dropdown links
   ===================================================== */

.master-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
}

.master-header .master-nav {
    width: min(1180px, 92%) !important;
    max-width: 1180px !important;
    min-height: 88px !important;
    padding: 10px 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 26px !important;
}

.master-header .brand-logo {
    min-width: 260px !important;
    width: 260px !important;
    flex: 0 0 260px !important;
    padding-left: 0 !important;
}

.master-header .brand-logo img {
    height: 62px !important;
    width: auto !important;
    max-width: 245px !important;
}

.master-header .master-links {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    overflow: hidden !important;
}

.master-header .master-links a {
    flex: 0 1 auto !important;
    padding: 13px 14px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.master-header .master-links .nav-login {
    flex: 0 0 auto !important;
    padding: 13px 20px !important;
    margin-left: 4px !important;
}

/* Slightly tighter desktop nav before switching to mobile */
@media (max-width: 1240px) {
    .master-header .master-nav {
        gap: 18px !important;
    }

    .master-header .brand-logo {
        min-width: 230px !important;
        width: 230px !important;
        flex-basis: 230px !important;
    }

    .master-header .brand-logo img {
        height: 58px !important;
        max-width: 220px !important;
    }

    .master-header .master-links {
        gap: 4px !important;
        padding: 7px 8px !important;
    }

    .master-header .master-links a {
        padding: 12px 11px !important;
        font-size: 9.8px !important;
    }

    .master-header .master-links .nav-login {
        padding: 12px 16px !important;
    }
}

/* Mobile and tablet navigation */
@media (max-width: 980px) {
    .master-header .master-nav {
        width: calc(100% - 28px) !important;
        max-width: 100% !important;
        min-height: 68px !important;
        padding: 8px 0 !important;
        gap: 12px !important;
    }

    .master-header .brand-logo {
        min-width: 0 !important;
        width: auto !important;
        flex: 0 1 auto !important;
    }

    .master-header .brand-logo img {
        height: 48px !important;
        max-width: 190px !important;
    }

    .master-header .desktop-nav,
    .master-header .master-links,
    .master-header .desktop-nav.master-links {
        display: none !important;
    }

    .master-header .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 46px !important;
        height: 46px !important;
        margin-left: auto !important;
        padding: 0 !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,.16) !important;
        background: rgba(255,255,255,.08) !important;
        position: relative !important;
        z-index: 100001 !important;
    }

    .master-header .mobile-menu-btn span {
        display: block !important;
        width: 24px !important;
        height: 3px !important;
        margin: 3px 0 !important;
        border-radius: 999px !important;
        background: #ffffff !important;
    }

    .master-header .mobile-menu {
        display: none !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        z-index: 100000 !important;
        padding: 14px 4% 18px !important;
        background: rgba(2, 6, 23, .98) !important;
        border-top: 1px solid rgba(255,255,255,.10) !important;
        box-shadow: 0 22px 45px rgba(0,0,0,.32) !important;
    }

    .master-header .mobile-menu.open {
        display: flex !important;
        flex-direction: column !important;
    }

    .master-header .mobile-menu a {
        display: block !important;
        color: #f8fafc !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        padding: 13px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }

    .master-header .mobile-menu .mobile-cta {
        margin-top: 12px !important;
        padding: 14px !important;
        border-bottom: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg,#3b82f6,#2563eb) !important;
        text-align: center !important;
    }
}

@media (max-width: 640px) {
    .master-header .master-nav {
        min-height: 62px !important;
    }

    .master-header .brand-logo img {
        height: 42px !important;
        max-width: 170px !important;
    }

    .master-header .mobile-menu-btn {
        width: 42px !important;
        height: 42px !important;
    }
}

/* =====================================================
   AutoMatchSA Premium Info Cards Fix
   Restores the buyer-first intelligence section layout
   ===================================================== */
.premium-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: stretch;
}

.premium-info-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .09);
}

.premium-info-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    right: -80px;
    top: -90px;
    background: rgba(37, 99, 235, .08);
    pointer-events: none;
}

.premium-info-card.dark {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .24), transparent 34%),
        linear-gradient(135deg, #020617 0%, #071b3b 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 28px 80px rgba(2, 6, 23, .24);
}

.premium-info-card h3 {
    position: relative;
    margin: 0 0 14px;
    color: #071b3b;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.8px;
    font-weight: 950;
}

.premium-info-card.dark h3 {
    color: #ffffff;
}

.premium-info-card p {
    position: relative;
    margin: 0 0 22px;
    color: #53657c;
    font-size: 15.5px;
    line-height: 1.72;
}

.premium-info-card.dark p {
    color: rgba(226, 236, 255, .82);
}

.premium-info-card ul {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.premium-info-card li {
    position: relative;
    padding-left: 24px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
}

.premium-info-card.dark li {
    color: rgba(226, 236, 255, .9);
}

.premium-info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-weight: 950;
}

.premium-info-card.dark li::before {
    color: #60a5fa;
}

@media (max-width: 980px) {
    .premium-info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .premium-info-card {
        padding: 22px !important;
        border-radius: 22px !important;
    }

    .premium-info-card h3 {
        font-size: 21px !important;
        line-height: 1.12 !important;
        margin-bottom: 10px !important;
    }

    .premium-info-card p,
    .premium-info-card li {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
    }
}
