/* ==========================================================================
   SAREXP USA CARGO FORWARDER & MIAMI HUB - MOBILE-FIRST STYLE SYSTEM
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;    /* Slate 900 */
    --text-secondary: #334155;  /* Slate 700 */
    --text-muted: #64748b;     /* Slate 500 */
    --accent-blue: #1e3a8a;    /* Deep Blue "SAR" */
    --accent-red: #dc2626;     /* Vibrant Red "EXP" */
    --cyan: #0ea5e9;           /* Electric Cyan accent */
    --whatsapp-green: #10b981; /* Emerald Green */
    --border-color: #cbd5e1;   /* Slate 300 */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. HEADER & MOBILE NAVIGATION (MOBILE-FIRST)
   ========================================================================== */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-sar {
    color: var(--accent-blue);
}

.logo-exp {
    color: var(--accent-red);
    font-style: italic;
    margin-left: 2px;
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background: #e2e8f0;
}

/* Navigation Links Drawer */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 3px solid var(--accent-blue);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    gap: 16px;
    z-index: 999;
}

.nav-links.active {
    display: flex !important;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: var(--accent-blue);
}

.lang-select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 700;
    background: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
}

/* Desktop Header Adjustments */
@media (min-width: 969px) {
    .mobile-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-bottom: none !important;
        gap: 24px !important;
    }
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 50px 0 60px 0;
    position: relative;
}

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

@media (min-width: 969px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(26px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-desc {
    font-size: clamp(14px, 2vw, 16px);
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.hero-feature-item i {
    color: var(--cyan);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero Estimator Card */
.hero-card {
    background: #ffffff;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--accent-blue);
}

/* ==========================================================================
   3. BUTTON SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 48px;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--accent-blue);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   4. FORM CONTROLS
   ========================================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text-primary);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

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

/* ==========================================================================
   5. SECTIONS & CARDS SYSTEM
   ========================================================================== */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* Workflow Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

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

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.step-body {
    padding: 20px;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Disclaimer Badge */
.disclaimer-badge {
    background: #fffbebf8;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Map Grid */
.map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 969px) {
    .map-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.map-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 380px;
    background: #e2e8f0;
}

.map-info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

@media (min-width: 969px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.contact-info h2 {
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item-icon {
    font-size: 20px;
    color: var(--accent-blue);
    margin-top: 3px;
}

.contact-form-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   6. FLOATING BUTTONS & FOOTER
   ========================================================================== */
.scroll-top-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp-green);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #059669;
    transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 10000;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.2);
}

.cookie-banner.hidden {
    display: none;
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 13px;
    border-top: 1px solid #1e293b;
}

.footer-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .footer-wrap {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}
