/* Vivere Agency Master Framework v1.0 */
/* Lead Developer: Joseph Sutliff */

:root {
    /* Vivere Grayscale Palette */
    --primary-950: #000000;
    --primary-900: #171717;
    --primary-800: #262626;
    --primary-700: #404040;
    --primary-100: #f5f5f5;
    --primary-50: #fafafa;
    
    /* Semantic Colors - Red, White & Blue Theme (matched to live tenfourfunding.com brand) */
    --bg-primary: #ffffff;
    --fg-primary: #1a2a4a;
    --border: #dce3f0;
    --accent: #C8102E; /* Red */
    --accent-blue: #0B1F4A; /* Navy Blue */
    --accent-light: #f0f2f7; /* Light Blue-Gray */

    /* The 4px Spacing Engine */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-2xl: 3rem;    /* 48px */
    --space-3xl: 4rem;    /* 64px */
    --space-4xl: 5rem;    /* 80px */

    /* Typography (matched to live tenfourfunding.com brand) */
    --font-main: 'Barlow', system-ui, -apple-system, sans-serif;
    --font-display: 'Bebas Neue', 'Barlow Condensed', Impact, sans-serif;
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --letter-spacing-heading: 0.06em;
    
    /* UI Tokens */
    --vivere-glass: rgba(255, 255, 255, 0.98);
    --vivere-blur: 12px;
    --radius-vivere: 1rem;
    --radius-lg: 1.25rem;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06);
    /* Layered elevation */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.1);
    --shadow-elevated: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.1);

    /* Section Grid */
    --section-max: 1280px;
    --grid-gap: var(--space-lg);
}

/* Layout Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    font-size: 16px;
}
body {
    background: var(--bg-primary);
    color: var(--fg-primary);
    line-height: 1.65;
    font-feature-settings: 'kern' 1, 'liga' 1;
    padding-top: 88px; /* Reserve space for fixed header so banner/hero are not cut off */
    scroll-behavior: smooth;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-blue);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 var(--space-xs) 0;
}
.skip-link:focus { top: 0; }

/* A11y: skip-link target – reserve space so content is not hidden under fixed nav */
#main-content { scroll-margin-top: 100px; }

/* Typography */
h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: var(--letter-spacing-heading);
    margin-bottom: var(--space-lg);
}
h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: var(--letter-spacing-heading);
    margin-bottom: var(--space-md);
}
h3 {
    font-family: var(--font-main);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: var(--space-md);
}
p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--primary-800);
}
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
}
a:hover { color: var(--accent-blue); }

/* Tel links – interactive hover feedback */
a[href^="tel:"] {
    transition: color 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}
a[href^="tel:"]:hover {
    opacity: 0.9;
}

/* Content links – animated underline (exclude CTAs and tel links) */
main a:not(.cta-button):not(.phone-link):not([href^="tel"]) {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(178, 34, 52, 0.3);
}
main a:not(.cta-button):not(.phone-link):not([href^="tel"]):hover {
    text-decoration-color: var(--accent-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Navigation – fixed header with blur and shadow */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(var(--vivere-blur));
    -webkit-backdrop-filter: blur(var(--vivere-blur));
    border-bottom: 1px solid rgba(0, 51, 102, 0.08);
    padding: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 51, 102, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.navbar-toggle {
    position: absolute;
    left: var(--space-md);
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    font-size: 1.5rem;
    color: var(--fg-primary);
}

@media (min-width: 768px) {
    .navbar-toggle { display: none; }
}

.navbar-mobile {
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vivere-glass);
    backdrop-filter: blur(var(--vivere-blur));
    border-bottom: 1px solid var(--border);
    padding: var(--space-md);
}

.navbar-mobile.active {
    display: flex;
}

@media (min-width: 768px) {
    .navbar-mobile {
        display: flex;
        flex-direction: row;
        position: static;
        border: none;
        padding: 0;
        justify-content: center;
        align-items: center;
        gap: 0;
        margin: 0 auto;
    }
}

.navbar-mobile a {
    padding: var(--space-sm) var(--space-lg);
    margin: 0 var(--space-xs);
    border-radius: var(--radius-vivere);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    background: rgba(64, 64, 64, 0.06);
    border: 1px solid rgba(64, 64, 64, 0.12);
}

.navbar-mobile a:hover {
    background: rgba(0, 51, 102, 0.08);
    border-color: rgba(0, 51, 102, 0.2);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Prominent Call button in header */
.navbar-mobile .phone-link {
    font-weight: 700;
    font-size: 1.0625rem;
    color: white;
    background: linear-gradient(180deg, #c42a3d 0%, var(--accent) 50%, #9b1c2a 100%);
    border-color: var(--accent);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: 0 2px 8px rgba(178, 34, 52, 0.35);
}

.navbar-mobile .phone-link:hover {
    background: linear-gradient(180deg, #003d7a 0%, var(--accent-blue) 50%, #002244 100%);
    border-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
}

.navbar-mobile a.active {
    background: rgba(0, 51, 102, 0.1);
    border-color: rgba(0, 51, 102, 0.25);
    color: var(--accent-blue);
    font-weight: 600;
}

/* CTA Banner */
.cta-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-md);
    min-height: 48px;
    background: var(--accent-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-banner-link {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--space-xs);
}

.cta-banner-link:hover {
    opacity: 1;
    color: white;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

/* Container & Grid */
.container {
    max-width: var(--section-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-xl); }
}

.section-grid {
    display: grid;
    gap: var(--grid-gap);
    align-items: start;
}

@media (min-width: 1024px) {
    .section-grid--12 {
        grid-template-columns: repeat(12, 1fr);
    }
}

section[id] {
    scroll-margin-top: 100px;
}

/* Section Architecture */
section {
    position: relative;
    padding: var(--space-3xl) var(--space-md);
}

@media (min-width: 768px) {
    section { padding: var(--space-4xl) var(--space-xl); }
}

/* Section Dividers – wave and curve breaks for visual rhythm and depth */
.section-divider {
    position: relative;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* Wave divider – flowing wave with accent gradient */
.section-divider--wave {
    height: var(--space-3xl);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32 Q180 0 360 32 T720 32 T1080 32 T1440 32 L1440 64 L0 64 Z' fill='%23B22234' opacity='0.15'/%3E%3Cpath d='M0 40 Q180 8 360 40 T720 40 T1080 40 T1440 40 L1440 64 L0 64 Z' fill='%23003366' opacity='0.12'/%3E%3Cpath d='M0 48 Q180 16 360 48 T720 48 T1080 48 T1440 48 L1440 64 L0 64 Z' fill='%23B22234' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Accent wave – stronger gradient, more prominent */
.section-divider--wave-accent {
    height: var(--space-4xl);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23B22234' stop-opacity='0'/%3E%3Cstop offset='25%25' stop-color='%23B22234' stop-opacity='0.4'/%3E%3Cstop offset='50%25' stop-color='%23003366' stop-opacity='0.5'/%3E%3Cstop offset='75%25' stop-color='%23B22234' stop-opacity='0.4'/%3E%3Cstop offset='100%25' stop-color='%23B22234' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 40 C360 0 720 80 1080 40 C1260 60 1350 50 1440 40 L1440 80 L0 80 Z' fill='url(%23g)'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Half-moon curve – gentle arc for softer transitions */
.section-divider--curve {
    height: var(--space-3xl);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48 Q720 0 1440 48 L1440 48 L0 48 Z' fill='%23003366' opacity='0.1'/%3E%3Cpath d='M0 48 Q720 12 1440 48 L1440 48 L0 48 Z' fill='%23B22234' opacity='0.15'/%3E%3Cpath d='M0 48 Q720 20 1440 48 L1440 48 L0 48 Z' fill='%23003366' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Inverted curve – arc dips opposite direction */
.section-divider--curve-invert {
    height: var(--space-3xl);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q720 48 1440 0 L1440 48 L0 48 Z' fill='%23B22234' opacity='0.12'/%3E%3Cpath d='M0 0 Q720 36 1440 0 L1440 48 L0 48 Z' fill='%23003366' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Section Header – unified heading treatment */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.services .section-header h2,
.about .section-header h2 { color: var(--primary-900); }

.appointment .section-header h2 { color: var(--accent-blue); }

.section-intro {
    text-align: center;
    font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
    max-width: 720px;
    margin: var(--space-xl) auto 0;
    color: var(--primary-700);
    line-height: 1.7;
}

/* Hero Section – full-height impact */
.hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: var(--space-2xl) var(--space-md);
}

@media (min-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: var(--space-3xl) var(--space-xl);
    }
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Video hidden on reduced-motion or small screens; image fallback always available */
@media (prefers-reduced-motion: reduce), (max-width: 640px) {
    .hero-video { display: none; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 30%),
        linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 51, 102, 0.45) 50%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: var(--letter-spacing-heading);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-md);
}

.hero-description {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* Brand banner – logo above Our Services */
.brand-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-primary);
}

.brand-banner-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-banner-logo img,
.brand-banner-logo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 640px) {
    .brand-banner-logo { width: 120px; height: 120px; }
}

.cta-button {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(180deg, #c42a3d 0%, var(--accent) 50%, #9b1c2a 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--space-xs);
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(178, 34, 52, 0.3);
}

.cta-button:hover {
    background: linear-gradient(180deg, #003d7a 0%, var(--accent-blue) 50%, #002244 100%);
    border-color: rgba(0, 0, 0, 0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.35);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(178, 34, 52, 0.25);
    transform: translateY(-2px);
}

/* Schedule Appointment links – interactive hover */
a[href="#appointment"]:not(.cta-button) {
    transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}
a[href="#appointment"]:not(.cta-button):hover {
    transform: translateY(-1px);
}

/* Section Backgrounds – alternating rhythm */
.services {
    background: var(--bg-primary);
}

.why-choose-us {
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--accent-light) 100%);
}

.about {
    background: var(--bg-primary);
}

.appointment {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--primary-50) 100%);
}

/* Section Backgrounds (decorative imagery) */
.services,
.about {
    position: relative;
}

.section-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.12;
    pointer-events: none;
}

.section-media--about {
    opacity: 0.7;
}

.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section videos hidden on reduced-motion or small screens; image fallback always available */
@media (prefers-reduced-motion: reduce), (max-width: 768px) {
    .section-video { display: none; }
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.section-bg--services {
    opacity: 0.35;
}

.section-bg--about {
    opacity: 0.5;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0.5;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.services .container,
.about .container {
    position: relative;
    z-index: 1;
}

.about .container {
    background: linear-gradient(180deg, rgba(248, 249, 251, 0.97) 0%, rgba(245, 247, 250, 0.94) 100%);
    backdrop-filter: blur(8px);
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-vivere);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 51, 102, 0.06);
}

/* Bento Grid System – 4px grid, 1→2→4 columns */
.bento-container {
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bento-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .bento-container { grid-template-columns: repeat(4, 1fr); }
}

.bento-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(var(--vivere-blur));
    border: 1px solid rgba(0, 51, 102, 0.08);
    box-shadow: var(--shadow-card);
    padding: var(--space-xl);
    border-radius: var(--radius-vivere);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.bento-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(0, 51, 102, 0.12);
}

.bento-item.feature {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #002244 100%);
    color: white;
    border: none;
}

.bento-item.feature h3,
.bento-item.feature p,
.bento-item.feature a { color: inherit; }

.bento-item--feature {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .bento-item--feature {
        grid-column: span 2;
        background: linear-gradient(135deg, var(--accent-blue) 0%, #002244 100%);
        color: white;
        border: none;
    }

    .bento-item--feature h3,
    .bento-item--feature p { color: white; }

    .bento-item--feature:hover { box-shadow: var(--shadow-xl); }
}

/* Services: equal 2x2 grid for balanced page fit */
.services .bento-container {
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .services .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services .bento-item--feature {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Animation Initial States */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section header scroll-in animation */
.section-header {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-up,
    .section-header {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Why Choose Us Section */
.why-choose-us .section-header h2 { color: var(--accent-blue); }

.why-choose-us .bento-container {
    grid-auto-rows: 1fr;
}

.why-choose-us .bento-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(var(--vivere-blur));
    border: 1px solid rgba(0, 51, 102, 0.1);
    box-shadow: var(--shadow-card);
}

.why-choose-us .bento-item h3 {
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.why-choose-us .bento-item:hover {
    border-color: rgba(178, 34, 52, 0.3);
    box-shadow: var(--shadow-card-hover);
}

/* Hero stats (48hr / Multi / $0) */
.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-lg);
    border-left: 3px solid var(--accent);
    background: rgba(11, 31, 74, 0.55);
    backdrop-filter: blur(6px);
    border-radius: var(--space-xs);
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.1;
}

.hero-stat-lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

/* Who We Serve + Sample Deal */
.who-we-serve {
    padding: var(--space-4xl) 0;
}

.who-we-serve .section-header h2 { color: var(--accent-blue); }

.sample-deal {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--accent-blue);
    color: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
}

.sample-deal h3 {
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    font-size: 1.4rem;
    margin-bottom: var(--space-lg);
    color: #fff;
}

.sample-deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.sample-deal-grid dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}

.sample-deal-grid dd {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.sample-deal-note {
    margin-top: var(--space-lg);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Process steps */
.process {
    padding: var(--space-4xl) 0;
    background: var(--accent-light);
}

.process .section-header h2 { color: var(--accent-blue); }

.process-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--grid-gap);
    counter-reset: step;
}

.process-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-vivere);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
}

.process-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    display: block;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.process-step h3 {
    color: var(--accent-blue);
    margin-bottom: var(--space-sm);
}

/* Referral banner */
.referral-banner {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--accent) 0%, #8B0B1F 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-elevated);
}

.referral-banner h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: var(--space-sm);
}

.referral-banner p {
    max-width: 46em;
    margin: 0 auto var(--space-lg);
    color: rgba(255, 255, 255, 0.92);
}

.referral-banner .cta-button {
    background: #fff;
    color: var(--accent);
}

.referral-banner .cta-button:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Trust section */
.trust-quote {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px dashed rgba(178, 34, 52, 0.35);
    box-shadow: var(--shadow-card);
}

.trust-quote p:first-child {
    font-style: italic;
    color: var(--fg-primary);
}

.trust-quote-attr {
    margin-top: var(--space-sm);
    font-weight: 600;
    color: var(--accent-blue);
}

/* Mascot intro (appointment section) */
.mascot-intro {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0 var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--accent-light);
    border-radius: var(--radius-vivere);
}

.mascot-intro img {
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
}

.mascot-intro p {
    margin: 0;
}

/* Owner Info */
.owner-info {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--space-xs);
}

.owner-info p {
    margin-bottom: var(--space-sm);
}

.owner-info a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.25s ease;
}

/* Forms */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--space-xs);
    font-family: inherit;
    font-size: max(1rem, 16px); /* Prevents iOS zoom on focus */
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: var(--bg-primary);
}

.form-group label {
    position: absolute;
    left: var(--space-md);
    top: var(--space-md);
    color: var(--primary-700);
    pointer-events: none;
    transition: all 0.2s ease;
    background: var(--bg-primary);
    padding: 0 var(--space-xs);
    font-size: 0.875rem;
    z-index: 1;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23404040' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-xl);
    cursor: pointer;
}

.form-group select:focus + label,
.form-group select.has-value + label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.form-group select.has-value {
    color: var(--fg-primary);
}

.form-group select option[value=""] {
    color: var(--primary-700);
}

.form-success {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--space-xs);
}

.form-success p {
    margin-bottom: 0;
    color: var(--accent-blue);
}

/* Appointment Section */
.appointment .section-header h2::after { background: var(--accent-blue); }

.appointment-form {
    max-width: 720px;
    margin: var(--space-2xl) auto 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 253, 255, 0.98) 100%);
    backdrop-filter: blur(var(--vivere-blur));
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(0, 51, 102, 0.06);
}

.form-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--accent-blue);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-submit {
    text-align: center;
    margin-top: var(--space-xl);
}

.submit-button {
    background: linear-gradient(180deg, #c42a3d 0%, var(--accent) 50%, #9b1c2a 100%);
    color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--space-xs);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(178, 34, 52, 0.3);
}

.submit-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #003d7a 0%, var(--accent-blue) 50%, #002244 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.35);
}

.submit-button:disabled,
.submit-button.loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.submit-button.loading {
    position: relative;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin-left: var(--space-sm);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: submit-spin 0.7s linear infinite;
}

@keyframes submit-spin {
    to { transform: rotate(360deg); }
}

.form-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--primary-700);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(178, 34, 52, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545;
}

button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--space-xs);
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button[type="submit"]:hover {
    background: var(--accent-blue);
}

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

/* Footer */
footer {
    position: relative;
    color: white;
    padding: var(--space-4xl) var(--space-md) var(--space-3xl);
    margin-top: 0;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--vivere-blur));
    padding: var(--space-xl);
    border-radius: var(--radius-vivere);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-section--brand {
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: var(--space-md);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.footer-logo:hover {
    opacity: 0.9;
}

.footer-section h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: var(--letter-spacing-heading);
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.25s ease;
}

.footer-section a:hover {
    color: var(--accent-light);
}

.vcard-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--space-xs);
    color: white;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vcard-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.vcard-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-qr-card {
    margin-top: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-vivere);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.contact-qr-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-qr-card-qr {
    display: block;
    border-radius: var(--space-xs);
    background: white;
    padding: var(--space-sm);
}

.contact-qr-card-text {
    font-weight: 600;
    color: white;
    margin-bottom: 0;
    font-size: 0.9375rem;
}

.contact-qr-card-sub {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.footer-disclaimer {
    text-align: center;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-vivere);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    line-height: 1.6;
    max-width: 60em;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-vivere);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
}

footer a {
    color: white;
}

footer a:hover {
    color: var(--accent-light);
}

/* Brand Bar – trust building */
.brand-bar {
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(180deg, var(--primary-50) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-top: 1px solid rgba(0, 51, 102, 0.06);
}

.brand-bar .container {
    text-align: center;
}

.brand-bar-heading {
    font-family: var(--font-main);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-700);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.brand-bar-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg) var(--space-2xl);
}

.brand-bar-item {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-700);
    opacity: 0.75;
    filter: grayscale(1);
}

/* Utilities */
.text-center { text-align: center; }

/* Language toggle (nav, top right, all breakpoints) */
.lang-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: rgba(0, 51, 102, 0.06);
    border: 1px solid rgba(0, 51, 102, 0.2);
    border-radius: 999px;
    color: var(--accent-blue);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.lang-toggle:hover { background: rgba(0, 51, 102, 0.14); }
.lang-toggle-sep { opacity: 0.4; }
.lang-toggle-en, .lang-toggle-es { opacity: 0.4; transition: opacity 0.2s ease; }
.lang-toggle[data-lang="en"] .lang-toggle-en { opacity: 1; color: var(--accent); }
.lang-toggle[data-lang="es"] .lang-toggle-es { opacity: 1; color: var(--accent); }

/* Assessment banner (under navbar) */
.assessment-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(90deg, var(--accent-blue), #16326b);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.assessment-banner:hover { background: linear-gradient(90deg, #16326b, var(--accent-blue)); }
.assessment-banner-icon { font-size: 1rem; }
.assessment-banner-cta {
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

/* Assessment widget */
.assessment-section {
    padding: var(--space-4xl) 0;
    background: var(--accent-light);
}

.assessment-widget {
    max-width: 640px;
    margin: var(--space-xl) auto 0;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    padding: var(--space-xl);
}

.assessment-progress {
    height: 6px;
    background: var(--primary-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.assessment-progress-bar {
    display: block;
    height: 100%;
    width: 20%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.assessment-step h3 {
    color: var(--accent-blue);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.assessment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.assessment-options button {
    text-align: left;
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-vivere);
    background: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--fg-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.assessment-options button:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.assessment-result h3 {
    color: var(--accent-blue);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.assessment-result p {
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.assessment-result .cta-button {
    display: inline-block;
    margin-right: var(--space-md);
}

.assessment-restart {
    background: none;
    border: none;
    color: var(--accent-blue);
    text-decoration: underline;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    padding: var(--space-sm) 0;
}

/* Lease-escape section */
.lease-escape {
    padding: var(--space-4xl) 0;
    background: var(--navy, var(--accent-blue));
    color: #fff;
}

.lease-escape .section-header h2 { color: #fff; }
.lease-escape .section-intro { color: rgba(255, 255, 255, 0.88); max-width: 60em; }

.lease-escape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--grid-gap);
    margin: var(--space-xl) 0;
}

.lease-escape-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-vivere);
    padding: var(--space-lg);
}

.lease-escape-card h3 { color: #fff; margin-bottom: var(--space-sm); }
.lease-escape-card p { color: rgba(255, 255, 255, 0.85); margin: 0; }

.lease-escape-cta {
    background: var(--accent);
    border-color: var(--accent);
}

/* Footer legal links */
.footer-legal-links {
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: var(--space-sm);
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

.footer-legal-links span {
    margin: 0 var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
}
