/*
Theme Name: RAASTA - Travel Safety
Theme URI: https://raasta.thecetqap.com/
Author: CETQAP
Author URI: https://thecetqap.com/
Description: Official WordPress theme for RAASTA — Pakistan's travel safety app by CETQAP. One-page immersive design featuring a splash intro animation, 2026 glassmorphism, glossy gradient buttons, feature grid, and a dedicated privacy policy page. Fully Elementor-compatible so every section can be edited visually. Colors are drawn directly from the RAASTA shield logo (navy blue + safety green).
Version: 1.8.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raasta
Tags: one-page, custom-logo, custom-menu, custom-colors, editor-style, elementor, translation-ready, threaded-comments, wide-blocks
*/

/* ============================================================
   CSS VARIABLES — colors pulled directly from the RAASTA logo
   ============================================================ */
:root {
    --raasta-navy:        #1E3A8A;
    --raasta-navy-deep:   #172554;
    --raasta-navy-mid:    #1E40AF;
    --raasta-blue:        #2563EB;
    --raasta-blue-light:  #3B82F6;
    --raasta-green:       #10B981;
    --raasta-green-light: #34D399;
    --raasta-green-dark:  #059669;
    --raasta-white:       #FFFFFF;
    --raasta-off-white:   #F8FAFC;
    --raasta-dark:        #0F172A;
    --raasta-gray:        #64748B;
    --raasta-gray-light:  #94A3B8;
    --raasta-border:      #E2E8F0;
    --raasta-bg:          #F1F5F9;

    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
    --gradient-green:   linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-hero:    linear-gradient(135deg, #172554 0%, #1E3A8A 45%, #2563EB 100%);
    --gradient-cta:     linear-gradient(135deg, #10B981 0%, #059669 50%, #10B981 100%);
    --gradient-glossy:  linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 100%);

    --shadow-glossy: 0 12px 32px rgba(30, 58, 138, 0.35), 0 4px 12px rgba(30, 58, 138, 0.20), inset 0 1px 0 rgba(255,255,255,0.35);
    --shadow-green:  0 12px 32px rgba(16, 185, 129, 0.45), 0 4px 12px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
    --shadow-card:   0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 20px 60px rgba(30, 58, 138, 0.22);
    --shadow-glass:  0 8px 32px rgba(30, 58, 138, 0.18);

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   22px;
    --radius-xl:   32px;
    --radius-full: 999px;

    --header-h: 78px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--raasta-navy-deep);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--raasta-dark);
    background: var(--raasta-white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--raasta-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--raasta-green); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
    color: var(--raasta-dark);
    line-height: 1.2;
    margin: 0 0 0.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1em; }

.raasta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; position: relative; }

.section-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--raasta-green-dark);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.section-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 64px;
}
.section-title .section-eyebrow { margin-bottom: 16px; }
.section-title p { color: var(--raasta-gray); font-size: 1.1rem; margin-top: 12px; }

/* ============================================================
   SPLASH INTRO OVERLAY
   ============================================================ */
#raasta-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: splashFade 2.6s ease-in forwards;
    animation-delay: 1.8s;
}
#raasta-splash::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(16,185,129,0.25) 0%, transparent 45%),
                radial-gradient(circle at 70% 70%, rgba(37,99,235,0.35) 0%, transparent 50%);
    animation: splashRotate 8s linear infinite;
}
#raasta-splash .splash-logo {
    width: min(180px, 40vw);
    height: auto;
    animation: splashLogo 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
    position: relative;
    z-index: 2;
}
#raasta-splash .splash-title {
    color: white;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    margin-top: 28px;
    opacity: 0;
    animation: splashText 1.2s ease-out 0.6s forwards;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}
#raasta-splash .splash-sub {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: 0;
    animation: splashText 1.2s ease-out 0.9s forwards;
    position: relative;
    z-index: 2;
}
@keyframes splashLogo {
    0%   { transform: scale(0.3) rotate(-20deg); opacity: 0; }
    60%  { transform: scale(1.08) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes splashText {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashFade {
    0%,60% { opacity: 1; visibility: visible; }
    100%   { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes splashRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
body.splash-done #raasta-splash { display: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.raasta-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all .3s ease;
}
.raasta-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08);
}
.raasta-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.raasta-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.raasta-brand img { width: 46px; height: 46px; }
.raasta-brand .brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--raasta-navy);
    letter-spacing: 0.05em;
}
.raasta-brand .brand-text span { color: var(--raasta-green); }

.raasta-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.raasta-menu li a {
    padding: 10px 16px;
    color: var(--raasta-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
.raasta-menu li a:hover {
    color: var(--raasta-navy);
    background: rgba(30, 58, 138, 0.06);
}

/* CTA menu item — add CSS class "cta" to any menu item in WP Admin
   Appearance → Menus (Screen Options → CSS Classes). Also applied
   automatically to Download/Get-the-App items via raasta_menu_item_class. */
.raasta-menu li.cta,
.raasta-menu li.menu-item-cta {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.raasta-menu li.cta > a,
.raasta-menu li.menu-item-cta > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-left: 6px;
    background: linear-gradient(180deg, #14C08A 0%, #059669 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 1px 2px rgba(5, 105, 65, 0.3),
        0 6px 16px -4px rgba(16, 185, 129, 0.45);
    transition: transform .2s cubic-bezier(0.4,0,0.2,1), box-shadow .3s ease, background .2s ease;
}
.raasta-menu li.cta > a:hover,
.raasta-menu li.menu-item-cta > a:hover {
    color: white;
    background: linear-gradient(180deg, #1BCA96 0%, #0AA271 100%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 2px 4px rgba(5, 105, 65, 0.35),
        0 12px 26px -6px rgba(16, 185, 129, 0.55);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--raasta-navy);
    border-radius: 3px;
    transition: all .3s ease;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .mobile-toggle { display: flex; }
    .raasta-menu {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform .35s ease, visibility 0s linear .35s, opacity .25s ease;
        border-bottom: 1px solid var(--raasta-border);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    .raasta-menu.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: transform .35s ease, visibility 0s linear 0s, opacity .2s ease;
    }
    .raasta-menu li a { padding: 14px 16px; }
    .raasta-menu li.cta > a,
    .raasta-menu li.menu-item-cta > a { margin: 8px 0 0; text-align: center; justify-content: center; padding: 14px 16px; }
}

/* ============================================================
   BUTTONS — clean 2026: subtle gradient, layered soft shadow
   ============================================================ */
.btn-glossy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.96rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: transform .2s cubic-bezier(0.4,0,0.2,1), box-shadow .3s ease, background .2s ease;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.005em;
    will-change: transform;
}
.btn-glossy > span { position: relative; z-index: 2; }
.btn-glossy > i { font-size: 1em; opacity: 0.95; }

/* ---------- Primary (navy) ---------- */
.btn-primary {
    background: linear-gradient(180deg, #2A4BC0 0%, #1E3A8A 100%);
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 1px 2px rgba(23, 37, 84, 0.25),
        0 8px 20px -4px rgba(30, 58, 138, 0.45);
}
.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    background: linear-gradient(180deg, #3358D0 0%, #1E40AF 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 2px 4px rgba(23, 37, 84, 0.3),
        0 14px 30px -6px rgba(30, 58, 138, 0.55);
}
.btn-primary:active { transform: translateY(0); transition-duration: 0.1s; }

/* ---------- Green (safety) ---------- */
.btn-green {
    background: linear-gradient(180deg, #14C08A 0%, #059669 100%);
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 1px 2px rgba(5, 105, 65, 0.3),
        0 8px 20px -4px rgba(16, 185, 129, 0.5);
}
.btn-green:hover {
    color: white;
    transform: translateY(-2px);
    background: linear-gradient(180deg, #1BCA96 0%, #0AA271 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 2px 4px rgba(5, 105, 65, 0.35),
        0 14px 30px -6px rgba(16, 185, 129, 0.6);
}
.btn-green:active { transform: translateY(0); transition-duration: 0.1s; }

/* ---------- Ghost (outline) ---------- */
.btn-ghost {
    background: white;
    color: var(--raasta-navy);
    border: 1.5px solid var(--raasta-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-ghost:hover {
    color: var(--raasta-navy);
    transform: translateY(-2px);
    border-color: var(--raasta-navy);
    box-shadow: 0 8px 20px -4px rgba(30, 58, 138, 0.18);
}
.btn-ghost:active { transform: translateY(0); transition-duration: 0.1s; }

/* ---------- Sizes ---------- */
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    padding: calc(var(--header-h) + 60px) 0 80px;
    background: var(--gradient-hero);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.hero::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.35), transparent 70%);
    top: -100px; right: -100px;
    animation: float 12s ease-in-out infinite;
}
.hero::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 70%);
    bottom: -80px; left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(40px,30px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px;
    background: var(--raasta-green-light);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--raasta-green-light);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
}
.hero h1 .accent {
    background: linear-gradient(135deg, #10B981 0%, #6EE7B7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p.lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .stat strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--raasta-green-light);
    line-height: 1;
}
.hero-stats .stat span {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 6px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-wrap {
    width: min(420px, 90%);
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, rgba(16,185,129,0.4), rgba(37,99,235,0.4), rgba(16,185,129,0.4));
    border-radius: 50%;
    filter: blur(40px);
    animation: rotate 20s linear infinite;
}
.hero-logo-wrap img {
    position: relative;
    z-index: 2;
    width: 82%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
    animation: floatLogo 6s ease-in-out infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatLogo {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%     { transform: translateY(-20px) rotate(2deg); }
}

/* Floating badges around the hero logo */
.hero-badge {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--raasta-dark);
    z-index: 3;
    animation: floatBadge 5s ease-in-out infinite;
}
.hero-badge .icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.1rem;
}
.hero-badge.b1 { top: 8%; left: -5%; animation-delay: 0s; }
.hero-badge.b1 .icon { background: var(--gradient-green); }
.hero-badge.b2 { bottom: 15%; right: -5%; animation-delay: 1.5s; }
.hero-badge.b2 .icon { background: var(--gradient-primary); }
.hero-badge.b3 { bottom: 40%; left: -8%; animation-delay: 3s; }
.hero-badge.b3 .icon { background: linear-gradient(135deg, #F59E0B, #EF4444); }
@keyframes floatBadge {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-12px); }
}

@media (max-width: 900px) {
    .hero { padding-top: calc(var(--header-h) + 40px); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-stats { gap: 24px; }
    .hero-logo-wrap { width: min(300px, 70%); }
    .hero-badge.b1 { left: 0; }
    .hero-badge.b2 { right: 0; }
    .hero-badge.b3 { left: 0; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--raasta-off-white); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--raasta-border);
    box-shadow: var(--shadow-card);
    transition: all .35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(16, 185, 129, 0.25);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.6rem;
    margin-bottom: 22px;
    box-shadow: var(--shadow-glossy);
    position: relative;
    overflow: hidden;
}
.feature-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-glossy);
    border-radius: inherit;
    pointer-events: none;
}
.feature-card:nth-child(2) .feature-icon { background: var(--gradient-green); box-shadow: var(--shadow-green); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #EF4444, #F97316); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #8B5CF6, #6366F1); }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, #F59E0B, #EAB308); }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(135deg, #06B6D4, #0EA5E9); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--raasta-gray); font-size: 0.98rem; margin: 0; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    background: white;
    position: relative;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    position: relative;
}
.step-card {
    text-align: center;
    padding: 40px 24px 32px;
    background: var(--raasta-off-white);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all .3s ease;
    border: 1px solid var(--raasta-border);
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}
.step-number {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-glossy);
    position: relative;
}
.step-number::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-glossy);
    border-radius: inherit;
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { color: var(--raasta-gray); font-size: 0.95rem; margin: 0; }

/* ============================================================
   SAFETY / SPLIT SECTION
   ============================================================ */
.safety {
    background: linear-gradient(180deg, var(--raasta-off-white) 0%, white 100%);
}
.safety-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.safety-row:last-child { margin-bottom: 0; }
.safety-row.reverse { direction: rtl; }
.safety-row.reverse > * { direction: ltr; }
.safety-row h2 { margin-bottom: 20px; }
.safety-row .checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.safety-row .checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    color: var(--raasta-dark);
    font-weight: 500;
}
.safety-row .checklist li::before {
    content: "✓";
    flex-shrink: 0;
    width: 26px; height: 26px;
    background: var(--gradient-green);
    color: white;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    margin-top: 2px;
}
.safety-visual {
    position: relative;
    padding: 32px;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    min-height: 420px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.25);
    overflow: hidden;
}
.safety-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(16,185,129,0.3), transparent 60%);
}
.safety-visual .icon-big {
    font-size: 6rem;
    color: white;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}
.safety-visual .safety-screenshot {
    position: relative;
    z-index: 2;
    max-height: 480px;
    width: auto;
    max-width: 78%;
    height: auto;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
    transition: transform .4s cubic-bezier(0.4,0,0.2,1);
}
.safety-row:hover .safety-screenshot {
    transform: translateY(-6px);
}

@media (max-width: 900px) {
    .safety-visual { min-height: 340px; padding: 24px; }
    .safety-visual .safety-screenshot { max-height: 380px; max-width: 70%; }
    .safety-row { grid-template-columns: 1fr; gap: 32px; }
    .safety-row.reverse { direction: ltr; }
}

/* ============================================================
   CTA / DOWNLOAD (page section — scoped to <section class="cta">
   so it never collides with the header's li.cta menu button)
   ============================================================ */
section.cta {
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    overflow: hidden;
    position: relative;
}
section.cta::before, section.cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
}
section.cta::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.4), transparent 70%);
    top: -100px; left: -100px;
}
section.cta::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.4), transparent 70%);
    bottom: -100px; right: -100px;
}
section.cta .raasta-container { position: relative; z-index: 1; }
section.cta h2 { color: white; margin-bottom: 16px; }
section.cta p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 40px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.raasta-footer {
    background: var(--raasta-dark);
    color: rgba(255,255,255,0.75);
    padding: 72px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand .brand-text { font-family: 'Poppins',sans-serif; font-size: 1.35rem; font-weight: 800; color: white; letter-spacing: 0.05em; }
.footer-brand .brand-text span { color: var(--raasta-green-light); }
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--raasta-green-light); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   PRIVACY / CONTENT PAGE
   ============================================================ */
.page-hero {
    padding: calc(var(--header-h) + 80px) 0 60px;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(16,185,129,0.3), transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(37,99,235,0.3), transparent 60%);
}
.page-hero .raasta-container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin: 0; }

.page-content-wrap {
    padding: 80px 0;
    background: var(--raasta-off-white);
}
.policy-card {
    background: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 56px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--raasta-border);
}
.policy-card h2 {
    color: var(--raasta-navy);
    font-size: 1.5rem;
    padding-bottom: 12px;
    margin-top: 40px;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-green) 1;
    display: inline-block;
}
.policy-card h2:first-of-type, .policy-card > h2:nth-child(2) { margin-top: 0; }
.policy-card h3 { color: var(--raasta-navy); font-size: 1.15rem; margin-top: 24px; }
.policy-card p, .policy-card li { color: var(--raasta-gray); line-height: 1.75; }
.policy-card strong { color: var(--raasta-dark); }
.policy-card ul { padding-left: 22px; }
.policy-card li { margin-bottom: 8px; }

/* .meta / .policy-meta — first paragraph block above the sections */
.policy-card .meta,
.policy-card .policy-meta,
.policy-card > p:first-child {
    color: var(--raasta-gray-light);
    font-size: 0.92rem;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--raasta-border);
}
.policy-card .meta strong,
.policy-card .policy-meta strong,
.policy-card > p:first-child strong {
    color: var(--raasta-navy);
    font-size: 1rem;
}

.policy-card a {
    color: var(--raasta-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.35);
    text-underline-offset: 3px;
}
.policy-card a:hover { color: var(--raasta-green-dark); text-decoration-color: var(--raasta-green); }

@media (max-width: 700px) {
    .policy-card { padding: 32px 24px; }
}

/* ============================================================
   BILINGUAL (EN/UR) SUPPORT
   Every translatable string is rendered twice — .i18n-en / .i18n-ur.
   Only one shows at a time, based on <html data-lang="en|ur">.
   ============================================================ */
.i18n-ur {
    display: none;
    font-family: 'Gulzar', 'Noto Naskh Arabic', serif;
    line-height: 1.75;
}
html[data-lang="ur"] .i18n-en { display: none !important; }
html[data-lang="ur"] .i18n-ur { display: inline !important; }

/* RTL fine-tuning — text-align defaults to logical "start" almost
   everywhere already, so this auto-flips with dir="rtl". The one
   spot with an explicit physical value needs a manual override. */
html[dir="rtl"] .footer-col ul { text-align: right; }

/* Urdu script rendered in Gulzar — a clean, professional Nastaliq-
   inspired typeface with a more natural reading rhythm than a plain
   sans-serif transliteration would give. */
html[data-lang="ur"] body { line-height: 1.9; }
html[data-lang="ur"] h1, html[data-lang="ur"] h2, html[data-lang="ur"] h3 {
    font-family: 'Gulzar', 'Noto Naskh Arabic', serif;
    line-height: 1.5;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-full);
    padding: 3px;
}
.lang-switch .lang-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--raasta-gray);
    transition: all .2s ease;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}
.lang-switch .lang-btn[data-lang-btn="ur"] {
    font-family: 'Gulzar', 'Noto Naskh Arabic', serif;
    font-size: 0.85rem;
}
.lang-switch .lang-btn.active {
    background: var(--raasta-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}
.lang-switch .lang-btn:hover:not(.active) { color: var(--raasta-navy); }

/* Mobile header is navy — give the switcher matching contrast */
@media (max-width: 900px) {
    .raasta-header .lang-switch { background: rgba(255,255,255,0.15); }
    .raasta-header .lang-switch .lang-btn { color: rgba(255,255,255,0.75); }
    .raasta-header .lang-switch .lang-btn.active { background: var(--raasta-green); color: #fff; }
    .nav-right { gap: 10px; }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section { background: var(--raasta-white); }
.video-embed {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
    background: #000;
}
.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   FOOTER SOCIAL ICONS
   ============================================================ */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    transition: all .25s ease;
}
.social-icon:hover {
    transform: translateY(-3px);
}
.social-youtube:hover {
    background: #FF0000;
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   WORDPRESS DEFAULTS
   ============================================================ */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; overflow: hidden; padding: 0; position: absolute;
    width: 1px; word-wrap: normal !important;
}
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ============================================================
   MOBILE OPTIMIZATION — comprehensive pass
   Covers: nav/hamburger polish, section spacing, hero badges,
   button stacking, image scaling, small-phone breakpoints.
   ============================================================ */

/* Prevent any accidental horizontal scroll on mobile browsers */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }

/* Lock background scroll while the mobile menu is open */
body.menu-open { overflow: hidden; }

/* ---------- Tablet & large phone (≤900px) ---------- */
@media (max-width: 900px) {
    section { padding: 64px 0; }
    .raasta-container { padding: 0 20px; }

    /* AGGRESSIVE mobile-top fix: every layer that could show white is forced navy.
       body itself becomes navy so overscroll bounce, safe-area insets, or fixed-
       header rendering gaps can't reveal white. Header is forced navy with
       !important to defeat any plugin overrides or cached CSS. */
    html, body {
        background: var(--raasta-navy-deep) !important;
    }
    .raasta-header,
    .raasta-header.scrolled {
        background: var(--gradient-hero) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
    }
    .raasta-header.scrolled {
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35) !important;
    }
    .raasta-brand .brand-text { color: #ffffff !important; }
    .raasta-brand .brand-text span { color: var(--raasta-green-light) !important; }
    .mobile-toggle span { background: #ffffff !important; }

    /* Ensure page sections that ARE white/off-white keep their light backgrounds
       (we only forced body navy for the top area — sections have their own bg). */
    .features, .safety, .page-content-wrap { background: var(--raasta-off-white); }
    .how-it-works, .raasta-footer + *, section:not(.hero):not(.cta):not(.page-hero):not(.features):not(.safety) {
        /* fallback white for any other section, just in case */
    }

    /* Hamburger touch target + menu polish */
    .mobile-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .raasta-brand img { width: 40px; height: 40px; }
    .raasta-brand .brand-text { font-size: 1.2rem; }

    .raasta-menu li a { font-size: 1rem; }

    /* Hero badges: shrink and pull fully inside the visual so nothing clips */
    .hero-badge { font-size: 0.8rem; padding: 10px 14px; gap: 8px; }
    .hero-badge .icon { width: 28px; height: 28px; font-size: 0.9rem; }

    /* Stacked, full-width, easy-to-tap buttons on hero + CTA */
    .hero-actions, .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn-glossy, .cta-actions .btn-glossy {
        width: 100%;
    }
}

/* ---------- Standard phones (≤600px) ---------- */
@media (max-width: 600px) {
    :root { --header-h: 66px; }

    section { padding: 48px 0; }
    .raasta-container { padding: 0 18px; }

    h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* Splash screen — keep logo/title readable without overflowing narrow screens */
    #raasta-splash .splash-logo { width: min(140px, 34vw); }
    #raasta-splash .splash-title { font-size: clamp(1.6rem, 8vw, 2.2rem); letter-spacing: 0.2em; }
    #raasta-splash .splash-sub { font-size: 0.8rem; letter-spacing: 0.14em; text-align: center; padding: 0 24px; }

    /* Force single-column grids explicitly (defensive — avoids any edge-case overflow from auto-fit) */
    .features-grid,
    .steps-grid { grid-template-columns: 1fr; }

    .feature-card { padding: 26px 22px; }
    .step-card { padding: 32px 20px 26px; }

    /* Hero stat blocks: center and don't crowd on narrow screens */
    .hero-stats { justify-content: center; gap: 20px 28px; }
    .hero-stats .stat { min-width: 90px; text-align: center; }
    .hero-stats .stat strong { font-size: 1.5rem; }
    .hero-stats .stat span { font-size: 0.78rem; }

    /* Hero logo + floating badges: keep everything inside view */
    .hero-logo-wrap { width: min(220px, 62vw); margin: 0 auto; }
    .hero-badge { font-size: 0.72rem; padding: 8px 12px; }
    .hero-badge .icon { width: 24px; height: 24px; font-size: 0.8rem; }
    .hero-badge.b1 { top: 4%; left: 2%; }
    .hero-badge.b2 { bottom: 8%; right: 2%; }
    .hero-badge.b3 { display: none; } /* third badge dropped on very small screens to reduce clutter */

    /* Safety visuals: comfortable height for a phone-shaped screenshot without dominating the screen */
    .safety-visual { min-height: 300px; padding: 20px; border-radius: var(--radius-lg); }
    .safety-visual .safety-screenshot { max-height: 320px; max-width: 72%; }
    .safety-row { gap: 24px; margin-bottom: 56px; }

    /* Policy card padding for narrow phones */
    .policy-card { padding: 24px 18px; }
    .policy-card h2 { font-size: 1.25rem; }

    /* Footer centered and comfortably spaced */
    .raasta-footer { padding: 48px 0 20px; }
    .footer-grid { gap: 28px; margin-bottom: 32px; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-col ul { display: inline-block; text-align: left; }
}

/* ---------- Small phones (≤400px, e.g. older/compact devices) ---------- */
@media (max-width: 400px) {
    .raasta-container { padding: 0 16px; }
    section { padding: 40px 0; }

    .btn-glossy { padding: 13px 22px; font-size: 0.92rem; }
    .btn-lg { padding: 15px 24px; }

    .hero-brand-row, .raasta-brand .brand-text { font-size: 1.05rem; }
    .hero-stats { gap: 16px 22px; }
    .hero-logo-wrap { width: min(180px, 58vw); }

    .section-eyebrow { font-size: 0.72rem; padding: 5px 12px; }
}

/* Reduce hero min-height on short mobile viewports so the fold isn't awkwardly empty */
@media (max-width: 900px) and (max-height: 700px) {
    .hero { min-height: auto; padding-bottom: 56px; }
}
