/* ========================================
   SINDHU360 GUIDE PAGE - STANDARDIZED UI/UX
   ======================================== */

/* ========================================
   1. CSS VARIABLES - DESIGN SYSTEM
   ======================================== */

:root {
    /* Spacing Scale */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    --spacing-4xl: 140px;

    /* Section Padding */
    --section-padding-desktop: 140px 0;
    --section-padding-tablet: 100px 0;
    --section-padding-mobile: 80px 0;

    /* Container */
    --container-max-width: 1200px;

    /* Grid Gaps */
    --grid-gap-desktop: 32px;
    --grid-gap-mobile: 24px;

    /* Typography Scale */
    --font-size-hero: 4.8rem;
    --font-size-hero-mobile: 3.2rem;
    --font-size-h1: 3rem;
    --font-size-h1-mobile: 2.5rem;
    --font-size-h2: 1.3rem;
    --font-size-h2-mobile: 1.15rem;
    --font-size-h3: 1.35rem;
    --font-size-body: 1.05rem;
    --font-size-small: 0.85rem;

    /* Font Weights */
    --font-weight-black: 900;
    --font-weight-extra-bold: 800;
    --font-weight-bold: 700;
    --font-weight-semi-bold: 600;
    --font-weight-medium: 500;
    --font-weight-regular: 400;

    /* Line Heights */
    --line-height-tight: 1.15;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 60px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. GLOBAL RESETS & BASE STYLES
   ======================================== */

* {
    scroll-behavior: smooth;
}

/* ========================================
   3. LAYOUT STANDARDIZATION
   ======================================== */

/* Section Padding */
.section-light,
.section-gray,
.section-dark {
    padding: var(--section-padding-desktop);
}

/* Container Standardization */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Grid Standardization */
.row {
    display: grid;
    gap: var(--grid-gap-desktop);
}

/* ========================================
   4. TYPOGRAPHY STANDARDIZATION
   ======================================== */

/* Hero Title */
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: var(--font-weight-black);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
}

/* Section Titles */
.section-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-extra-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xl);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* Center underline for centered text sections */
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Section Subtitles */
.section-subtitle {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

/* Card Titles */
.feature-card h4,
.step-card h4,
.tip-card h5 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-sm);
}

/* Body Text */
.feature-card p,
.step-card p,
.tip-card p,
.hero-desc {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   5. COMPONENT STANDARDIZATION
   ======================================== */

/* Feature Cards - Standardized */
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 40px;
    height: 100%;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

/* Icons - Standardized */
.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-md);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(8deg);
    box-shadow: var(--shadow-lg);
}

/* Buttons - Standardized */
.btn-primary-lg {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: white;
    padding: 20px 48px;
    border-radius: 14px;
    font-weight: var(--font-weight-bold);
    font-size: 1.15rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition-slow);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary-lg:hover::before {
    left: 100%;
}

.btn-primary-lg:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
    color: white;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: var(--font-weight-semi-bold);
    font-size: 1.05rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Badges - Standardized */
.badge-label {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.badge-label:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    color: var(--primary);
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.badge-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
    color: var(--secondary);
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.badge-teal {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: var(--success);
    border: 2px solid rgba(5, 150, 105, 0.2);
}

/* Stats - Standardized */
.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-slow);
    text-align: center;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-medium);
}

/* Step Cards - Standardized */
.step-card {
    text-align: center;
    padding: 48px 36px;
    transition: all var(--transition-base);
}

.step-card:hover {
    transform: translateY(-8px);
}

.step-number {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    color: white;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-slow);
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

/* Tip Cards - Standardized */
.tip-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 48px 36px;
    text-align: center;
    height: 100%;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.tip-card:hover::before {
    opacity: 1;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.tip-card i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Benefit Highlights - Standardized */
.benefit-highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-top: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.benefit-highlight:hover {
    transform: translateX(12px);
    box-shadow: var(--shadow-md);
}

.benefit-highlight.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(239, 68, 68, 0.08) 100%);
    border-left-color: var(--secondary);
}

.benefit-highlight.teal {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-left-color: var(--success);
}

.benefit-highlight i {
    font-size: 1.8rem;
    color: var(--primary);
}

.benefit-highlight.amber i {
    color: var(--secondary);
}

.benefit-highlight.teal i {
    color: var(--success);
}

.benefit-highlight span {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semi-bold);
}

/* ========================================
   6. RESPONSIVE STANDARDIZATION
   ======================================== */

@media (max-width: 991px) {
    :root {
        --font-size-hero: var(--font-size-hero-mobile);
        --font-size-h1: var(--font-size-h1-mobile);
        --font-size-h2: var(--font-size-h2-mobile);
    }

    .section-light,
    .section-gray,
    .section-dark {
        padding: var(--section-padding-tablet);
    }

    .row {
        gap: var(--grid-gap-mobile);
    }

    .stat-number {
        font-size: 2.75rem;
    }
}

@media (max-width: 767px) {

    .section-light,
    .section-gray,
    .section-dark {
        padding: var(--section-padding-mobile);
    }

    .feature-card {
        padding: 32px;
    }

    .feature-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .stat-item:hover {
        transform: translateY(-5px);
    }

    .btn-primary-lg {
        padding: 18px 36px;
        font-size: 1.05rem;
    }

    .btn-primary-lg:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

/* ========================================
   7. GRID SYSTEM STANDARDIZATION
   ======================================== */

/* Stats Grid - 3 columns on desktop */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

/* Feature Cards Grid - 2 columns on desktop */
.row.g-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* Steps Grid - 3 columns on desktop */
.row.g-4:has(.step-card) {
    grid-template-columns: repeat(3, 1fr);
}

/* Tips Grid - 3 columns on desktop */
.row.g-4:has(.tip-card) {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .row.g-4 {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
}

/* ========================================
   10. UTILITY CLASSES (Start Missing Deps)
   ======================================== */
.text-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.w-100 {
    width: 100% !important;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.gap-3 {
    gap: 1rem !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

@media (min-width: 992px) {
    .text-lg-start {
        text-align: left !important;
    }

    .mx-lg-0 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .w-lg-auto {
        width: auto !important;
    }

    .flex-lg-row {
        flex-direction: row !important;
    }

    .justify-content-lg-start {
        justify-content: flex-start !important;
    }

    .d-lg-block {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .d-none {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .row.g-4 {
        grid-template-columns: 1fr;
        /* Force single column on tablet/mobile */
    }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 cols for stats on tablet */
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {

    /* Global Layout Fixes */
    .container {
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: hidden;
        /* Prevent horizontal scroll from container */
    }

    body,
    html {
        overflow-x: hidden;
        /* Force no horizontal scroll */
    }

    /* Grid System Overrides - Force Single Column */
    .row.g-4,
    .row.g-4:has(.step-card),
    .row.g-4:has(.tip-card),
    .stats-row {
        grid-template-columns: 1fr !important;
        /* Force stack everywhere */
        gap: var(--spacing-sm);
    }

    /* Hero Section */
    .hero {
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    /* Hero Buttons - Stack them */
    .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        width: 100%;
        gap: 16px !important;
    }

    .btn-primary-lg,
    .btn-outline-light {
        width: 100%;
        justify-content: center;
    }

    /* Stats on Mobile */
    .stats-row {
        margin-top: 40px;
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        /* Keep stats horizontal but smaller */
        gap: 10px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Feature Cards (Users/Drivers/Business) */
    .feature-card {
        padding: 24px;
        /* Reduce padding */
        text-align: center;
        /* Center text on mobile for better balance */
    }

    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    /* Step Cards (How It Works) */
    .step-card {
        padding: 24px 16px;
    }

    /* Benefit Highlight */
    .benefit-highlight {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    /* Vector Images */
    .section-vector {
        margin-top: 30px;
        max-width: 80%;
        /* Don't take full width */
    }
}

/* ========================================
   11. GLOBAL MOBILE CENTERING
   ======================================== */
@media (max-width: 767px) {

    /* Headers */
    .section-title,
    .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Cards (Features, Tips, Steps) */
    .feature-card,
    .tip-card,
    .step-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
    }

    /* Centers icons and images inside cards */
    .feature-icon,
    .step-number,
    .tip-card i,
    .benefit-highlight i {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 16px !important;
        display: inline-flex;
    }

    /* Ensure content inside cards is centered */
    .feature-card p,
    .tip-card p,
    .step-card p,
    .feature-card h4,
    .tip-card h5 {
        text-align: center !important;
    }

    /* Center Buttons in various contexts */
    .d-flex:not(.nav):not(.stats-row) {
        justify-content: center !important;
    }

    /* Benefits Highlight Box */
    .benefit-highlight {
        flex-direction: column;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Mobile Comparison Redesign */
    .compare-table {
        background: transparent;
        box-shadow: none;
    }

    .compare-header {
        display: none !important;
    }

    .compare-row {
        display: block;
        margin-bottom: 20px;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--gray-100);
    }

    .compare-cell {
        padding: 15px 24px;
        border-bottom: 1px solid var(--gray-100);
    }

    .compare-cell:last-child {
        border-bottom: none;
    }

    .compare-feature {
        background: var(--gray-900);
        color: white;
        font-size: 1.1rem;
        text-align: center;
        justify-content: center;
    }

    .compare-us::before {
        content: 'Sindhu360: ';
        font-weight: 700;
        color: var(--primary);
        margin-right: 8px;
    }

    .compare-them::before {
        content: 'Other: ';
        font-weight: 700;
        color: var(--gray-500);
        margin-right: 8px;
    }

    .compare-us {
        background: rgba(37, 99, 235, 0.05);
        color: var(--dark);
        font-weight: 500;
    }

    .compare-them {
        background: rgba(255, 255, 255, 0.5);
        color: var(--gray-500);
    }
}

/* ========================================
   12. HEADER VISIBILITY FIXES
   ======================================== */
.navbar .fa-globe,
.navbar .fa-user,
.navbar .fa-search {
    color: white !important;
}

.dropdown-toggle::after {
    color: rgba(255, 255, 255, 0.7) !important;
}