/* =============================================
   Safar.pk — Global Stylesheet v3
   ============================================= */

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    color: #1e293b;
    background-color: #ffffff;
}

/* ══════════════════════════════════════════
   HIDE ROGUE OVERLAPPING HERO/BANNER BLOCK
   Targets the "Safar.pk / Ride Sharing Across Pakistan"
   logo + 3 icon circles that bleeds over the hero image.
   Covers every class name it could possibly use.
══════════════════════════════════════════ */
header.safar-hero,
.safar-hero,
.hero-slider,
.home-banner,
.page-banner,
.top-banner,
header[class*="hero"],
header[class*="banner"],
header[class*="slider"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Navbar ── */
.navbar {
    z-index: 1000;
    width: 100%;
}

.navbar .container-fluid {
    max-width: 100%;
}

/* Ensure old .container inside navbar is also full width */
.navbar > .container {
    max-width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -0.2px;
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
}

/* ── Shared section layout ── */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.section-bar {
    width: 52px;
    height: 4px;
    background: #16a34a;
    border-radius: 2px;
    margin: 0 auto 3rem;
}

/* ── Hero ── */
.hero-section {
    position: relative;
    width: 100%;
    background-color: #0B192C;
    overflow: hidden;
    display: block;
}

/* Full image — never cropped */
.hero-bg-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: unset !important;
    object-fit: unset !important;
    opacity: 0.52;
}

/* Dark gradient so text stays readable */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11,25,44,0.10) 0%,
        rgba(11,25,44,0.62) 50%,
        rgba(11,25,44,0.78) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Text overlay centered on image */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    text-align: center;
}

.hero-overlay h1 {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.65);
    margin-bottom: 1.1rem;
}

.hero-overlay h1 span {
    color: #34d399;
}

.hero-overlay p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #d1fae5;
    max-width: 580px;
    margin: 0 auto 2.2rem;
    line-height: 1.75;
    text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}

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

/* Mobile: text drops below image */
@media (max-width: 600px) {
    .hero-section {
        display: flex;
        flex-direction: column;
    }
    .hero-bg-img {
        opacity: 0.6;
    }
    .hero-overlay {
        position: relative;
        inset: auto;
        background: #0B192C;
        padding: 2.5rem 1.5rem;
    }
    .hero-section::after {
        display: none;
    }
}

/* ── Buttons ── */
.btn-hero-primary {
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}

.btn-hero-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(22,163,74,0.45);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.50);
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #fff;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 0.9rem 3.5rem;
}

/* ── Why Choose ── */
.why-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.22s, box-shadow 0.22s;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}

.feature-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #64748b;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 2px solid #bbf7d0;
}

/* ── How It Works ── */
.how-section {
    padding: 5rem 0;
    background: #ffffff;
}

.step-wrap {
    position: relative;
}

@media (min-width: 768px) {
    .step-wrap::before {
        content: '';
        position: absolute;
        top: 34px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(to right, #d1fae5, #16a34a, #d1fae5);
        z-index: 0;
    }
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 0.75rem;
}

.step-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    box-shadow: 0 2px 14px rgba(22,163,74,0.14);
}

.step-item h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.step-item p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
}

/* ── Disclaimer ── */
.disclaimer-section {
    padding: 3rem 2rem;
    background: #f8fafc;
}

.disclaimer-box {
    background: #fff;
    border-left: 5px solid #f59e0b;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    max-width: 1100px;
    margin: 0 auto;
}

/* ── CTA ── */
.cta-section {
    padding: 5.5rem 2rem;
    background: linear-gradient(135deg, #0B192C 60%, #0d2a1a 100%);
    text-align: center;
}

.cta-section h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
}

/* ── Footer ── */
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-link:hover {
    color: #34d399;
    padding-left: 4px;
}

/* ── Utility ── */
.hover-lift {
    transition: transform 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
}
