/* ─────────────────────────────────────────────
   Sovereign Vault Logistics - Premium Gold Design System
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --gold-primary: #a38438;
    --gold-light: #cba74b;
    --gold-dark: #6e551c;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #a38438 50%, #6e551c 100%);
    --gold-glow: 0 8px 32px rgba(163, 132, 56, 0.25);
    
    --bg-dark: #121316;
    --bg-pill: #2b2d31;
    --bg-card: #ffffff;
    --bg-light: #f8f6f0;

    --text-main: #1f2023;
    --text-muted: #65676e;
    --text-light: #a0a2ab;

    --border: #e6e1d5;
    --border-gold: rgba(163, 132, 56, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ─────────────────────────────────────────────
   Utility Classes & Buttons
   ───────────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(163, 132, 56, 0.3);
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(163, 132, 56, 0.45);
}

.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gold-primary);
    font-weight: 700;
    padding: 0.8rem 1.7rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--gold-primary);
    cursor: pointer;
    transition: var(--transition);
}

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

.nav-pill a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-pill a.active {
    background: var(--gold-gradient);
    color: #ffffff;
}

.btn-pill-gold {
    background: var(--gold-gradient) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Mobile Menu Hamburger Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: var(--bg-pill);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    font-size: 1.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--gold-primary);
    color: #ffffff;
}

.btn-gold-sm {
    background: var(--gold-gradient);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold-sm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   Top Header & Dark Pill Navigation
   ───────────────────────────────────────────── */
.top-header {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.25rem;
}

.top-header-link {
    color: var(--text-light);
    font-weight: 500;
}

.top-header-link:hover {
    color: #ffffff;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-pill {
    display: flex;
    align-items: center;
    background-color: var(--bg-pill);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.nav-pill a {
    color: #e2e4e9;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.nav-pill a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.nav-pill a.active {
    color: #ffffff;
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

.nav-pill a.btn-pill-gold {
    background: var(--gold-gradient);
    color: #ffffff !important;
    font-weight: 700;
    margin-left: 0.4rem;
}

.nav-pill a.btn-pill-gold:hover {
    box-shadow: 0 4px 12px rgba(163, 132, 56, 0.4);
}

/* ─────────────────────────────────────────────
   Hero Section with Gold Storage Visual Overlay
   ───────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 7rem 0 6rem 0;
    background: linear-gradient(135deg, rgba(18, 19, 22, 0.92) 0%, rgba(31, 32, 35, 0.88) 100%),
                url('https://images.unsplash.com/photo-1610375461246-83df859d849d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    border-bottom: 2px solid var(--gold-primary);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0e6cf 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #d1d5db;
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

/* ─────────────────────────────────────────────
   Cards & Layout Components
   ───────────────────────────────────────────── */
.section-padding {
    padding: 5rem 0;
}

.section-bg-white { background-color: #ffffff; }
.section-bg-light { background-color: var(--bg-light); }

.heading-gold {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3rem;
    position: relative;
}

.heading-gold::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 0.75rem auto 0 auto;
    border-radius: var(--radius-pill);
}

.card-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.card-box:hover {
    border-color: var(--border-gold);
    box-shadow: var(--gold-glow);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.step-card {
    background: #ffffff;
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
}

.step-card-num {
    width: 52px;
    height: 52px;
    background: var(--gold-gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 15px rgba(163, 132, 56, 0.3);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
}

.pricing-header {
    background: var(--bg-pill);
    color: #ffffff;
    padding: 1.75rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light);
}

.pricing-body {
    padding: 2rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0eae0;
    font-size: 0.98rem;
}

.pricing-action-text {
    color: var(--gold-primary);
    font-weight: 700;
}

.pricing-action-text:hover { text-decoration: underline; }

.pricing-footer-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Trusted Carriers */
.carriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.carrier-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
}

.carrier-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 0.75rem;
}

.carrier-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Insurance Section */
.insurance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .insurance-grid { grid-template-columns: 1fr; }
}

.insurance-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.insurance-box {
    background: linear-gradient(135deg, #1f2023 0%, #2b2d31 100%);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.insurance-box h3 {
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.insurance-list {
    list-style: none;
}

.insurance-list li {
    margin-bottom: 0.85rem;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.insurance-list .check {
    color: var(--gold-light);
    font-weight: 800;
}

/* Security Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.badge-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.badge-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.badge-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   Interactive FAQ Accordion
   ───────────────────────────────────────────── */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-gold);
}

.faq-question {
    padding: 1.35rem 1.75rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-toggle-icon {
    font-size: 1.3rem;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    background: #faf8f4;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 1rem 1.75rem 1.5rem 1.75rem;
}

/* ─────────────────────────────────────────────
   5-Stage Shipment Pipeline Visual Bar
   ───────────────────────────────────────────── */
.pipeline-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pipeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0.85rem 0.5rem;
    background: #f3f4f6;
    border-radius: var(--radius-pill);
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.pipeline-step.active {
    background: var(--gold-gradient);
    color: #ffffff;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(163, 132, 56, 0.35);
}

.pipeline-step-name { display: block; }

.pipeline-arrow {
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .pipeline-steps { flex-direction: column; }
    .pipeline-step { width: 100%; }
    .pipeline-arrow { transform: rotate(90deg); margin: 0.25rem 0; }
}

/* Status Stage Badges */
.badge-stage {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending_approval { background: #fef3c7; color: #92400e; }
.badge-approved         { background: #e0e7ff; color: #3730a3; }
.badge-ready_for_shipment { background: #fae8ff; color: #86198f; }
.badge-in_transit       { background: #dbeafe; color: #1e40af; }
.badge-delivered        { background: #dcfce7; color: #166534; }

/* ─────────────────────────────────────────────
   Premium Admin Dashboard Widgets & Components
   ───────────────────────────────────────────── */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-stat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.admin-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-primary);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.25rem;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(163, 132, 56, 0.1);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

/* Custom Data Tables */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.table-custom th {
    background: var(--bg-pill);
    color: var(--gold-light);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.table-custom td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #f0eae0;
    font-size: 0.92rem;
    color: var(--text-main);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background-color: #faf8f2;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(163, 132, 56, 0.15);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1f2023 0%, #121316 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
    border-top: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: #d1d5db;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 4.5rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* ─────────────────────────────────────────────
   Comprehensive Mobile & Tablet Media Queries
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .hero-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .top-header .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .nav-wrapper {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-pill {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2023;
        padding: 1rem 0.75rem;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        z-index: 1000;
        gap: 0.4rem;
        border: 1px solid var(--border-gold);
    }
    
    .nav-pill.active {
        display: flex !important;
    }
    
    .nav-pill a {
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-sm);
    }
    
    .hero-section {
        padding: 4rem 0 3.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .hero-subtitle {
        font-size: 0.98rem;
    }

    #about .container > div,
    .insurance-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 1rem; /* Prevents auto-zoom on iOS */
        padding: 0.75rem 0.9rem;
    }

    .table-custom th, .table-custom td {
        padding: 0.75rem 0.85rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .btn-gold, .btn-gold-outline {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.25rem;
    }

    .card-box {
        padding: 1.5rem 1.1rem;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-steps {
        flex-direction: column;
    }

    .pipeline-step {
        width: 100%;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }
}
