/* =================================================================
   StubGrub Global Design System: Fresh, Modern & High-Velocity
   ================================================================= */

:root {
    --bg-canvas: #ffffff;
    --bg-alt: #f7fafc;
    --bg-tint: #f1f8ec;
    --surface-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-active: #81d742;
    
    --primary-green: #253f12;
    --accent-lime: #81d742;
    --accent-glow: rgba(129, 215, 66, 0.25);
    
    --text-main: #253f12;
    --text-muted: #4a5568;
    
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-canvas);
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Modern Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

.site-logo-container img {
    max-height: 40px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--primary-green);
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    color: var(--accent-lime);
}

/* Modern Action Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-lime);
    color: var(--primary-green);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--accent-lime);
    cursor: pointer;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Modern FAQ Card Grid (Replacing Boring Accordion) */
.faq-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.faq-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--accent-lime);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(37, 63, 18, 0.08);
    border-color: var(--accent-lime);
}

.faq-card h3 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.faq-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Alternating Section Colors */
.section-white {
    background-color: #ffffff;
    padding: 100px 24px;
}

.section-alt {
    background-color: var(--bg-alt);
    padding: 100px 24px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-tint {
    background-color: var(--bg-tint);
    padding: 100px 24px;
}

/* Footer */
.site-footer {
    background-color: #2d333e;
    color: #ffffff;
    text-align: center;
    padding: 30px 24px;
    font-size: 0.9rem;
}

/* ==========================================
   Two-Column Split & Floating Mobile Mockup
   ========================================== */

/* Two-Column Flexbox Layout */
.logistics-split-container {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid #ffd54f;
    border-radius: 0 12px 12px 0;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logistics-text-column {
    flex: 1;
    text-align: left;
}

.logistics-phone-column {
    flex: 0 0 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Smartphone Mockup Frame */
.smartphone-frame {
    position: relative;
    width: 300px;
    height: 620px;
    background: #1a1a1a;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 0 0 3px #444, inset 0 0 0 10px #111;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Dynamic Island / Camera Notch */
.smartphone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.smartphone-notch::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #111;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Smartphone Screen Viewport */
.smartphone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: none;
}

.smartphone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}

/* Mobile Responsive Stacking */
@media (max-width: 900px) {
    .logistics-split-container {
        flex-direction: column;
        padding: 20px;
    }
    .logistics-phone-column {
        width: 100%;
        margin-top: 25px;
    }
    .smartphone-frame {
        width: 280px;
        height: 580px;
    }
}

/* --- Magical Floating Phone Widget --- */
#floating-phone-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #81d742;
    color: #0b170a;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(129, 215, 66, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background 0.2s ease;
}

#floating-phone-trigger:hover {
    transform: scale(1.05);
    background: #a3e635;
}

/* Floating Modal Shell */
#floating-phone-modal {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 340px;
    background: #111e10;
    border: 1px solid rgba(129, 215, 66, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

/* Closed / Hidden State */
.floating-phone-modal-closed {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.2) translateY(50px);
    pointer-events: none;
}

/* Header bar inside the floating popup */
.floating-phone-header {
    background: #1b3b1a;
    color: #ffffff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(129, 215, 66, 0.2);
}

.floating-phone-header button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.floating-phone-body {
    padding: 15px;
    display: flex;
    justify-content: center;
    background: #0b170a;
}

/* Override phone frame sizing specifically for the floating popup */
#floating-phone-modal .smartphone-frame {
    width: 480px;
    height: 600px;
}

/* Mobile screen adjustment */
@media (max-width: 480px) {
    #floating-phone-modal {
        width: 90vw;
        right: 5vw;
        bottom: 80px;
    }
    #floating-phone-modal .smartphone-frame {
        width: 100%;
        height: 520px;
    }
}

