/* =============================================
   MOBILE DOCK, SLIDE-UP MENU & MOBILE HERO
   Bill Layne Insurance - Shared Mobile Styles
   ============================================= */

/* --- CSS Variables --- */
:root {
    --dock-navy: #0c1a2e;
    --dock-blue: #2563eb;
    --dock-gold: #f59e0b;
    --dock-gold-light: #fbbf24;
    --dock-green: #22c55e;
    --dock-gray-100: #f1f5f9;
    --dock-gray-200: #e2e8f0;
    --dock-gray-400: #94a3b8;
    --dock-gray-500: #64748b;
    --dock-gray-600: #475569;
    --dock-gray-900: #0f172a;
}

/* =============================
   MOBILE DOCK (Fixed Bottom Bar)
============================= */
.mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 80;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 8px;
}
.dock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s;
    border: none;
    flex-shrink: 0;
    font-family: 'DM Sans', sans-serif;
}
.dock-btn:active { transform: scale(0.96); }
.dock-btn i { font-size: 14px; }

.dock-call {
    flex: 1;
    background: var(--dock-blue);
    color: white;
}
.dock-call i { color: white; }

.dock-quote {
    flex: 2.5;
    background: linear-gradient(135deg, var(--dock-gold) 0%, #e68a00 100%);
    color: var(--dock-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.dock-menu {
    flex: 1;
    background: var(--dock-navy);
    color: white;
    cursor: pointer;
}

/* Dock Spacer */
.dock-spacer { height: 72px; }

/* =============================
   MENU OVERLAY
============================= */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* =============================
   SLIDE-UP MENU PANEL
============================= */
.menu-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 95;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 12px 20px 20px;
    padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}
.menu-panel.open {
    transform: translateY(0);
}
.menu-handle {
    width: 36px;
    height: 4px;
    background: var(--dock-gray-200);
    border-radius: 4px;
    margin: 0 auto 16px;
}
.menu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.menu-panel-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--dock-gray-900);
}
.menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dock-gray-100);
    border: none;
    color: var(--dock-gray-600);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-links li { border-bottom: 1px solid var(--dock-gray-100); }
.menu-links li:last-child { border-bottom: none; }
.menu-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--dock-gray-900);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}
.menu-links a:active { color: var(--dock-blue); }
.menu-links .menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.menu-icon.blue { background: #eff6ff; color: var(--dock-blue); }
.menu-icon.red { background: #fef2f2; color: #ef4444; }
.menu-icon.green { background: #f0fdf4; color: #16a34a; }
.menu-icon.purple { background: #faf5ff; color: #9333ea; }
.menu-icon.amber { background: #fffbeb; color: var(--dock-gold); }
.menu-links .menu-arrow {
    margin-left: auto;
    color: var(--dock-gray-400);
    font-size: 12px;
}

/* =============================
   MOBILE HERO (index.html only)
============================= */
.mobile-hero {
    background: url("https://i.imgur.com/DDGMV4c.png") center 35% / cover no-repeat;
    position: relative;
    overflow: hidden;
    padding: 22px 20px 24px;
}
.mobile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(168deg, rgba(10,22,40,0.80) 0%, rgba(18,34,68,0.75) 40%, rgba(26,52,96,0.72) 100%);
    pointer-events: none;
}
.mobile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}
.mobile-hero .hero-inner {
    position: relative;
    z-index: 2;
}

/* Trust Row */
.mobile-hero .trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.mobile-hero .agent-photo {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.25);
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.mobile-hero .google-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 12px;
}
.mobile-hero .google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mobile-hero .google-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.mobile-hero .google-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.mobile-hero .google-stars i {
    font-size: 9px;
    color: var(--dock-gold);
}
.mobile-hero .google-stars span {
    font-size: 12px;
    font-weight: 800;
    color: white;
    margin-left: 3px;
}
.mobile-hero .google-location {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* H1 Eyebrow */
.mobile-hero .mobile-hero-h1 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(191, 219, 254, 0.9);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Headline */
.mobile-hero .hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 1.05;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}
.mobile-hero .hero-headline .highlight {
    background: linear-gradient(135deg, var(--dock-gold-light) 0%, var(--dock-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-hero .hero-sub {
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    margin-bottom: 4px;
    max-width: 340px;
    font-family: 'DM Sans', sans-serif;
}
.mobile-hero .hero-sub strong {
    color: rgba(255,255,255,0.95);
    font-weight: 700;
}

/* Carrier Mention */
.mobile-hero .carrier-mention {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}
.mobile-hero .carrier-mention span {
    color: rgba(255,255,255,0.6);
}

/* Primary CTA */
.mobile-hero .hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, var(--dock-gold) 0%, #e68a00 100%);
    color: var(--dock-navy);
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.mobile-hero .hero-cta:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.mobile-hero .hero-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: mobile-cta-shine 4s infinite;
}
@keyframes mobile-cta-shine {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}
.mobile-hero .hero-cta i { margin-left: 8px; font-size: 13px; }

/* Savings Stat — hidden to tighten above-fold (duplicates CTA copy) */
.mobile-hero .savings-stat {
    display: none;
}
.mobile-hero .savings-stat strong {
    color: var(--dock-gold-light);
    font-weight: 800;
}
.mobile-hero .savings-stat .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* Trust Chips */
.mobile-hero .trust-chips {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.mobile-hero .trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 9999px;
    padding: 5px 10px;
}
.mobile-hero .trust-chip i {
    font-size: 8px;
    color: var(--dock-green);
}

/* Hero Proof Row — hidden on mobile to tighten above-fold (stats appear in Trust Timeline) */
.mobile-hero .hero-proof-row {
    display: none;
}
.mobile-hero .hero-proof-item {
    flex: 1;
    text-align: center;
}
.mobile-hero .hero-proof-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}
.mobile-hero .hero-proof-number.gold { color: var(--dock-gold-light); }
.mobile-hero .hero-proof-number.blue { color: #60a5fa; }
.mobile-hero .hero-proof-number.green { color: var(--dock-green); }
.mobile-hero .hero-proof-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}
.mobile-hero .hero-proof-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Carrier Strip */
.carrier-strip {
    background: #f8fafc;
    border-bottom: 1px solid var(--dock-gray-200);
    padding: 14px 20px;
    text-align: center;
}
.carrier-strip-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dock-gray-400);
    margin-bottom: 10px;
}
.carrier-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}
.carrier-logos::-webkit-scrollbar { display: none; }
.carrier-logos img {
    height: 22px;
    opacity: 0.7;
    flex-shrink: 0;
    filter: grayscale(20%);
}

/* Proof Bar */
.proof-bar {
    background: var(--dock-gray-100);
    padding: 16px 20px;
    border-bottom: 1px solid var(--dock-gray-200);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}
.proof-item-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
}
.proof-item-number.blue { color: var(--dock-blue); }
.proof-item-number.gold { color: var(--dock-gold); }
.proof-item-number.green { color: var(--dock-green); }
.proof-item-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dock-gray-500);
    margin-top: 2px;
}

/* Mobile Nav Override */
.mobile-nav-simplified {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav-simplified .nav-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}
.mobile-nav-simplified .nav-brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 18px;
    color: var(--dock-gray-900);
    letter-spacing: -0.02em;
}
.mobile-nav-simplified .nav-brand-name span { color: var(--dock-blue); }
.mobile-nav-simplified .nav-brand-sub {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dock-gray-500);
}
.mobile-nav-simplified .nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-nav-simplified .nav-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dock-gray-900);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--dock-gray-100);
}
.mobile-nav-simplified .nav-phone i { color: var(--dock-blue); font-size: 12px; }
.mobile-nav-simplified .nav-cta {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    background: var(--dock-blue);
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* =============================
   RESPONSIVE — LARGER PHONES
============================= */
@media (min-width: 390px) {
    .mobile-hero .hero-headline { font-size: 36px; }
    .mobile-hero .hero-sub { font-size: 16px; }
}
@media (min-width: 430px) {
    .mobile-hero { padding: 26px 24px 28px; }
    .mobile-hero .hero-headline { font-size: 40px; }
}

/* =============================
   HIDE ON DESKTOP (768px+)
============================= */
@media (min-width: 768px) {
    .mobile-dock { display: none !important; }
    .dock-spacer { display: none !important; }
    .menu-overlay { display: none !important; }
    .menu-panel { display: none !important; }
    .mobile-hero { display: none !important; }
    .mobile-hero-carrier-strip { display: none !important; }
    .mobile-hero-proof-bar { display: none !important; }
    .mobile-nav-simplified { display: none !important; }
}

/* =============================
   FOOTER MOBILE PADDING
============================= */
@media (max-width: 767px) {
    footer { padding-bottom: 80px !important; }
}
