/* 
   RAKAYEZ NAJD DESIGN SYSTEM VERSION 3 (ركايز نجد لنقل العفش بالرياض)
   Visually Dominant, Motion-Driven, Conversion-Focused Styling Engine
*/

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

:root {
    /* Color Tokens - V3 Design System */
    --brand-primary: #C59B27;         /* Najd Gold / Ochre - Heritage and Trust */
    --brand-primary-hover: #A47D1C;
    --brand-primary-light: #FAF2D8;
    
    --brand-secondary: #1E2229;       /* Deep Charcoal - Stability and Professionalism */
    --brand-secondary-dark: #12141C;
    --brand-secondary-light: #2D333E;
    
    --brand-accent: #E65F2B;          /* Amber Orange - Safe movement, warnings and highlights */
    --brand-accent-light: #FFEFEA;
    
    --bg-warm-neutral: #FAF8F5;       /* Desert Warm Sand - Light mode base */
    --bg-white: #FFFFFF;
    
    --text-primary: #20242C;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;
    
    --border-color: #E2E8F0;
    --border-color-rich: #E8DCC0;     /* Gold-infused borders for active components */
    --success-color: #10B981;
    --success-bg: #E6FBF4;
    
    /* Spacing Tokens */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Borders & Shadows - Premium Glassmorphism */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 4px rgba(30, 34, 41, 0.03);
    --shadow-md: 0 10px 30px rgba(30, 34, 41, 0.06);
    --shadow-lg: 0 20px 50px rgba(30, 34, 41, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(30, 34, 41, 0.08);
    
    /* Animation Timing & Easing */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-warm-neutral);
    color: var(--text-primary);
    line-height: 1.9;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Typography Tokens & Hierarchies */
.display-xxl { font-size: 3.5rem; font-weight: 900; line-height: 1.2; letter-spacing: 0; }
.display-xl  { font-size: 2.75rem; font-weight: 800; line-height: 1.25; }
h1, .h1      { font-size: 2.25rem; font-weight: 800; line-height: 1.3; color: var(--brand-secondary-dark); }
h2, .h2      { font-size: 1.75rem; font-weight: 800; line-height: 1.35; color: var(--brand-secondary-dark); margin-bottom: var(--space-md); }
h3, .h3      { font-size: 1.35rem; font-weight: 700; line-height: 1.4; color: var(--brand-secondary); }
.lead-text   { font-size: 1.2rem; font-weight: 500; line-height: 1.7; color: var(--text-secondary); }
.body-large  { font-size: 1.1rem; line-height: 1.8; }
.body        { font-size: 1rem; line-height: 1.9; color: #334155; }
.small       { font-size: 0.875rem; line-height: 1.6; }
.eyebrow     { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--brand-primary); display: inline-block; margin-bottom: var(--space-xs); }

@media (max-width: 768px) {
    .display-xxl { font-size: 2.5rem; }
    .display-xl  { font-size: 2.15rem; }
    h1, .h1      { font-size: 1.85rem; }
    h2, .h2      { font-size: 1.5rem; }
    h3, .h3      { font-size: 1.2rem; }
}

/* Dynamic Page Curtain/Loader */
.page-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--brand-secondary-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform var(--transition-slow);
    transform-origin: top;
}
.curtain-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: white;
}
.curtain-logo svg {
    width: 80px;
    height: 80px;
}
.curtain-logo .curtain-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--brand-primary);
    letter-spacing: 0;
}

/* Text Importance Engine (Levels 1-5 & Treatments) */
.text-lvl-1 { font-size: 1.35rem; font-weight: 800; color: var(--brand-secondary-dark); line-height: 1.6; border-right: 4px solid var(--brand-primary); padding-right: var(--space-xs); margin-bottom: var(--space-md); }
.text-lvl-2 { font-size: 1.15rem; font-weight: 700; color: var(--brand-secondary); margin-bottom: var(--space-sm); }
.text-lvl-3 { font-weight: 700; color: var(--brand-secondary-dark); }
.text-lvl-4 { font-size: 1rem; color: #475569; }
.text-lvl-5 { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.accent-underline {
    position: relative;
    display: inline-block;
}
.accent-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(197, 155, 39, 0.2);
    border-radius: var(--radius-xs);
    z-index: -1;
}

.animated-underline {
    position: relative;
    display: inline-block;
    color: var(--brand-secondary-dark);
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--brand-accent);
    transition: width var(--transition-normal);
}
.animated-underline.active-motion::after,
a:hover .animated-underline::after {
    width: 100%;
}

.highlight-bg {
    background: linear-gradient(120deg, var(--brand-primary-light) 0%, rgba(244, 232, 193, 0.3) 100%);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    color: var(--brand-secondary-dark);
    font-weight: 700;
}

.inline-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background-color: var(--brand-secondary-light);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.pull-quote {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.8;
    color: var(--brand-secondary);
    padding: var(--space-md) var(--space-lg);
    border-right: 6px solid var(--brand-primary);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-md) 0;
    position: relative;
}
.pull-quote::before {
    content: '“';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    right: 15px;
    color: rgba(197, 155, 39, 0.15);
    font-family: serif;
}

.side-note {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 3px solid var(--brand-accent);
}

.callout {
    background-color: var(--brand-primary-light);
    border-right: 5px solid var(--brand-primary);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin: var(--space-md) 0;
    box-shadow: var(--shadow-sm);
}

/* Contextual Link UX System */

/* Style 1: Money / Commercial Service Links */
.link-service {
    color: var(--brand-accent);
    font-weight: 800;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.1rem;
    transition: var(--transition-fast);
}
.link-service::after {
    content: ' ←';
    font-family: sans-serif;
    font-weight: 900;
    opacity: 0.7;
    transition: transform var(--transition-fast);
}
.link-service:hover {
    color: #b23a0d;
}
.link-service:hover::after {
    transform: translateX(-4px);
}

/* Style 2: Local Area / Neighborhood Links */
.link-local {
    color: var(--brand-primary-hover);
    font-weight: 700;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.link-local::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    border: 2px solid var(--brand-secondary);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}
.link-local:hover {
    color: var(--brand-secondary-dark);
}
.link-local:hover::before {
    transform: scale(1.4);
    background-color: var(--brand-accent);
}

/* Style 3: Guides & Informational Links */
.link-guide {
    color: var(--brand-secondary);
    font-weight: 600;
    position: relative;
    border-bottom: 2px dashed rgba(30, 34, 41, 0.4);
    transition: var(--transition-fast);
}
.link-guide:hover {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    background-color: rgba(197, 155, 39, 0.05);
}

/* Motion Engine Styles & Transitions */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.93);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.morph-bg {
    transition: background-color var(--transition-slow);
}

.active-motion {
    opacity: 1 !important;
    transform: none !important;
}

/* Content must stay readable even if motion JavaScript is delayed or blocked. */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 1;
    transform: none;
}
.motion-ready .reveal-up:not(.active-motion) {
    opacity: 0;
    transform: translateY(30px);
}
.motion-ready .reveal-left:not(.active-motion) {
    opacity: 0;
    transform: translateX(-30px);
}
.motion-ready .reveal-right:not(.active-motion) {
    opacity: 0;
    transform: translateX(30px);
}
.motion-ready .reveal-scale:not(.active-motion) {
    opacity: 0;
    transform: scale(0.93);
}

/* Layout Containers & Grids */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-sm);
    padding-left: var(--space-sm);
}

.section {
    padding: var(--space-xl) 0;
}
.section-dark {
    background-color: var(--brand-secondary-dark);
    color: var(--text-white);
}
.section-dark h2, .section-dark h3 {
    color: var(--text-white);
}
.section-dark p {
    color: #A0AEC0;
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .section { padding: var(--space-xxl) 0; }
}

/* Header & Glass Navigation */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem var(--space-sm);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(42vw, 260px);
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    box-shadow: 0 10px 24px rgba(197, 155, 39, 0.28);
    position: relative;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.brand-mark span {
    position: relative;
    z-index: 1;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 900;
    transform: translateY(-1px);
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    line-height: 1.15;
    text-align: right;
}

.brand-wordmark strong {
    color: var(--brand-secondary-dark);
    font-size: 1.15rem;
    font-weight: 900;
    white-space: nowrap;
}

.brand-wordmark small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-logo-img,
.brand-logo img,
.brand-logo svg {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

@media (min-width: 1200px) {
    .brand-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .brand-wordmark strong {
        font-size: 1.22rem;
    }

    .brand-logo-img,
    .brand-logo img,
    .brand-logo svg {
        height: 52px;
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        gap: 0.45rem;
        max-width: 58vw;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .brand-mark::after {
        inset: 7px;
        border-radius: 8px;
    }

    .brand-mark span {
        font-size: 1.35rem;
    }

    .brand-wordmark strong {
        font-size: 1rem;
    }

    .brand-wordmark small {
        font-size: 0.62rem;
    }

    .brand-logo-img,
    .brand-logo img,
    .brand-logo svg {
        height: 42px;
        max-width: 56vw;
    }
}

@media (max-width: 360px) {
    .brand-wordmark small {
        display: none;
    }
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 0.5rem;
}
@media (min-width: 1024px) {
    .nav-menu { display: flex; }
}

.nav-link {
    font-weight: 700;
    color: var(--brand-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.95rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--brand-primary);
    transition: width var(--transition-fast), left var(--transition-fast);
}
.nav-link:hover {
    color: var(--brand-primary-hover);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
    left: 10%;
}
.nav-link.active {
    color: var(--brand-primary);
}

.contact-btn-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform var(--transition-normal);
    z-index: -1;
}
.btn:hover::before {
    transform: skewX(-20deg) translateX(-10%);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.35);
}
.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(197, 155, 39, 0.45);
}
.btn-secondary {
    background-color: var(--brand-secondary);
    color: white;
}
.btn-secondary:hover {
    background-color: var(--brand-secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 34, 41, 0.25);
}
.btn-whatsapp {
    background-color: var(--success-color);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-whatsapp:hover {
    background-color: #0d9668;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}
.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: #FFFFFF;
    border: 1px solid rgba(197, 155, 39, 0.36);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(18, 20, 28, 0.08);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background-color: var(--brand-secondary-dark);
    transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle.is-open {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 24px rgba(197, 155, 39, 0.25);
}
.mobile-nav-toggle:hover span,
.mobile-nav-toggle.is-open span {
    background-color: #FFFFFF;
}
.mobile-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
@media (min-width: 1024px) {
    .mobile-nav-toggle { display: none; }
}

/* Premium Mobile Drawer Navigation */
.mobile-nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: calc(100vh - 66px);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    border-top: 1px solid var(--border-color);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    animation: drawerOpen 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mobile-nav-menu > ul {
    width: min(100%, 420px);
    margin: 0 auto;
    gap: 0.75rem !important;
}
.mobile-nav-menu .nav-link {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    padding: 0.75rem 2rem 0.75rem 1rem !important;
    text-align: right;
}
.mobile-nav-menu .nav-link::after {
    display: none;
}
.mobile-nav-menu .nav-link.active {
    border-color: rgba(197, 155, 39, 0.55);
    background: var(--brand-primary-light);
}
@keyframes drawerOpen {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Flagship Section */
.hero {
    background: radial-gradient(circle at 10% 20%, rgba(30, 34, 41, 0.96) 0%, rgba(18, 20, 28, 0.98) 90%), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: var(--space-xl) 0;
    min-height: 66vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
/* Abstract Structural Grid Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--brand-primary) 1.5px, transparent 1.5px), 
        radial-gradient(var(--brand-primary) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.08;
    pointer-events: none;
}
.hero-container {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 680px;
}
.hero-badge {
    background: linear-gradient(135deg, rgba(197, 155, 39, 0.2), rgba(197, 155, 39, 0.05));
    border: 1px solid rgba(197, 155, 39, 0.4);
    color: var(--brand-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
}
.hero h1 {
    color: var(--text-white);
    margin-bottom: var(--space-sm);
}
.hero p {
    color: #E2E8F0;
    margin-bottom: var(--space-md);
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

/* Homepage Conversion Hero */
.hero-home {
    --hero-image: url('/assets/img/content/flagship-hero-truck.webp');
    min-height: calc(100vh - 68px);
    padding: 5.5rem 0 6.5rem;
    background:
        linear-gradient(90deg, rgba(18, 20, 28, 0.72) 0%, rgba(18, 20, 28, 0.9) 45%, rgba(18, 20, 28, 0.98) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}
.hero-home::before {
    background-image:
        linear-gradient(90deg, rgba(197, 155, 39, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: center;
    opacity: 0.34;
}
.hero-home::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary), var(--success-color));
    transform-origin: right;
    animation: routeBar 3.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes routeBar {
    0%, 100% { transform: scaleX(0.35); opacity: 0.65; }
    50% { transform: scaleX(1); opacity: 1; }
}
.hero-home-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: var(--space-lg);
}
.hero-home-content {
    max-width: 760px;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: var(--space-sm);
    color: #F8E6AC;
    font-weight: 800;
    line-height: 1.5;
}
.hero-kicker span,
.hero-kicker strong {
    border: 1px solid rgba(248, 230, 172, 0.34);
    background: rgba(18, 20, 28, 0.36);
    padding: 0.35rem 0.72rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}
.hero-kicker strong {
    color: #FFFFFF;
    background: rgba(197, 155, 39, 0.2);
}
.hero-home h1 {
    max-width: 780px;
    margin-bottom: var(--space-sm);
    font-size: 3rem;
    line-height: 1.18;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.hero-home .lead-text {
    max-width: 690px;
    color: #F1F5F9;
    font-weight: 600;
}
.hero-promise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    max-width: 720px;
    margin: 0 0 var(--space-md);
}
.hero-promise-grid span {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0.55rem 2.25rem 0.55rem 0.75rem;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    font-weight: 800;
    line-height: 1.45;
}
.hero-promise-grid span::before {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.22);
    transform: translateY(-50%);
}
.hero-trust-strip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 var(--space-sm);
}
.hero-trust-strip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.32rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: #D1FAE5;
    font-size: 0.82rem;
    font-weight: 900;
}
.hero-primary-cta {
    min-width: 230px;
    flex-direction: column;
    line-height: 1.35;
}
.hero-primary-cta small {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0.9;
}
.hero-secondary-cta {
    min-width: 245px;
}
.hero-microcopy {
    max-width: 650px;
    margin: var(--space-sm) 0 0;
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.7;
}
.hero-conversion-panel {
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-secondary-dark);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-top: 5px solid var(--brand-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    padding: var(--space-md);
    backdrop-filter: blur(16px);
}
.hero-panel-heading {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-sm);
}
.hero-panel-heading span {
    display: block;
    color: var(--brand-primary-hover);
    font-size: 0.85rem;
    font-weight: 900;
}
.hero-panel-heading strong {
    display: block;
    color: var(--brand-secondary-dark);
    font-size: 1.22rem;
    line-height: 1.45;
}
.hero-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}
.hero-steps li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}
.hero-steps span {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
}
.hero-steps p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
    font-weight: 700;
}
.hero-panel-proof {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--brand-primary-light);
    border: 1px solid var(--border-color-rich);
    border-radius: var(--radius-sm);
}
.hero-panel-proof strong,
.hero-panel-proof span {
    display: block;
}
.hero-panel-proof strong {
    color: var(--brand-secondary-dark);
    margin-bottom: 0.15rem;
}
.hero-panel-proof span {
    color: #475569;
    line-height: 1.6;
}

/* Stats Floating Bar */
.stats-bar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) var(--space-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
}
.stat-item {
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    border-left: 1px solid var(--border-color);
}
.stat-item:last-child {
    border-left: none;
}
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--brand-secondary-dark);
    font-weight: 800;
}
@media (max-width: 768px) {
    .hero-home {
        min-height: auto;
        padding: 2.15rem 0 3.25rem;
        background:
            linear-gradient(180deg, rgba(18, 20, 28, 0.92), rgba(18, 20, 28, 0.86)),
            var(--hero-image);
        background-size: cover;
        background-position: center;
    }
    .hero-home-container {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    .hero-home .reveal-right,
    .hero-home .reveal-left {
        transform: none;
    }
    .hero-home .hero-home-content {
        text-align: center;
        padding-inline: 0;
    }
    .hero-home h1 {
        font-size: 1.62rem;
        line-height: 1.2;
        max-width: 18.5rem;
        margin-inline: auto;
        text-wrap: balance;
    }
    .hero-home .lead-text {
        max-width: 19.5rem;
        margin-inline: auto;
        font-size: 0.92rem;
        line-height: 1.65;
        margin-bottom: 0.65rem;
    }
    .hero-kicker {
        justify-content: center;
        gap: 0.35rem;
        flex-wrap: wrap;
        max-width: 18.5rem;
        margin-inline: auto;
    }
    .hero-kicker span,
    .hero-kicker strong {
        padding: 0.32rem 0.52rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }
    .hero-promise-grid {
        display: none;
    }
    .hero-trust-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        width: min(100%, 19.5rem);
        margin: 0 auto 0.7rem;
    }
    .hero-trust-strip span {
        min-height: 2.15rem;
        padding: 0.32rem 0.35rem;
        font-size: 0.76rem;
        line-height: 1.35;
        white-space: normal;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 19.5rem;
        margin-inline: auto;
    }
    .hero-secondary-cta {
        order: -1;
        min-height: 3.75rem;
        font-size: 0.98rem;
        box-shadow: 0 14px 28px rgba(16, 185, 129, 0.32);
    }
    .hero-secondary-cta span {
        white-space: nowrap;
    }
    .hero-primary-cta {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.24);
        box-shadow: none;
    }
    .hero-primary-cta small {
        display: none;
    }
    .hero-primary-cta,
    .hero-secondary-cta {
        width: 100%;
        min-width: 0;
        padding: 0.68rem 1rem;
    }
    .hero-microcopy {
        display: none;
    }
    .hero-conversion-panel {
        padding: var(--space-sm);
        max-width: 21rem;
        margin-inline: auto;
    }
    .stat-item {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: var(--space-sm) 0;
    }
    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .hero-home {
        min-height: auto;
        padding: 4.5rem 0 5.25rem;
    }
    .hero-home-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .hero-home-content {
        max-width: 700px;
        padding-inline-end: 0;
        margin-inline: auto;
        text-align: center;
    }
    .hero-home h1 {
        font-size: 2.25rem;
        max-width: 620px;
        margin-inline: auto;
    }
    .hero-home .lead-text {
        max-width: 560px;
        font-size: 1rem;
        margin-inline: auto;
    }
    .hero-promise-grid,
    .hero-ctas,
    .hero-microcopy {
        max-width: 620px;
        margin-inline: auto;
    }
    .hero-kicker {
        justify-content: center;
    }
    .hero-promise-grid span {
        text-align: right;
    }
    .hero-conversion-panel {
        max-width: 760px;
        margin-inline: auto;
    }
    .hero-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .hero-steps li {
        grid-template-columns: 2rem minmax(0, 1fr);
    }
}

/* Premium Card Grid */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background-color: transparent;
    transition: background-color var(--transition-fast);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-rich);
}
.card:hover::after {
    background-color: var(--brand-primary);
}
.card-icon {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: var(--space-sm);
    display: inline-block;
    transition: transform var(--transition-normal);
}
.card:hover class-icon, .card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
}
.card h3 {
    margin-bottom: 0.5rem;
}

/* Timeline Process Modules */
.process-timeline {
    position: relative;
    padding: var(--space-md) 0;
}
.process-step {
    position: relative;
    padding-right: 3.5rem;
    margin-bottom: var(--space-lg);
}
.process-step::before {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 2.25rem;
    bottom: -3.25rem;
    width: 3px;
    background: linear-gradient(to bottom, var(--brand-primary), var(--border-color));
}
.process-step:last-child::before {
    display: none;
}
.process-number {
    position: absolute;
    right: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--brand-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    border: 4px solid var(--bg-warm-neutral);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.process-step:hover .process-number {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary-light);
}

/* Accordion FAQ Styling */
.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast);
}
.faq-item:hover {
    border-color: var(--border-color-rich);
}
.faq-question {
    padding: var(--space-md);
    font-weight: 800;
    color: var(--brand-secondary-dark);
    cursor: pointer;
    background-color: #FAF9F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color var(--transition-fast);
}
.faq-question:hover {
    background-color: #F5F3ED;
}
.faq-question span:last-child {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
    color: var(--brand-primary);
}
.faq-item.active .faq-question span:last-child {
    transform: rotate(180deg);
}
.faq-answer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-white);
    display: none;
}

/* Interactive Components (Widgets) */
.interactive-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}
.panel-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}
.panel-tab {
    padding: 0.6rem var(--space-xs);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-warm-neutral);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.panel-tab.active {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.2);
}

.scenario-display {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}
.layer-explorer {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}
@media (min-width: 768px) {
    .layer-explorer { grid-template-columns: 180px 1fr; }
}

.explorer-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.explorer-btn {
    padding: 0.75rem var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    cursor: pointer;
    font-weight: 700;
    text-align: right;
    transition: var(--transition-fast);
}
.explorer-btn.active {
    background-color: var(--brand-secondary-light);
    color: white;
    border-color: var(--brand-secondary-light);
}

/* Neighborhood Badge System */
.zone-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.tab-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}
.tab-btn:hover, .tab-btn.active {
    background-color: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 10px rgba(197, 155, 39, 0.25);
}

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.75rem;
}
.neighborhood-badge {
    background-color: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    display: block;
    color: var(--brand-secondary);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.neighborhood-badge:hover {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, var(--brand-primary-light), var(--bg-white));
    color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Floating Actions & Badges */
.floating-actions {
    position: fixed;
    bottom: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    gap: 0.5rem;
    z-index: 999;
}
@media (min-width: 768px) {
    .floating-actions { display: none; }
}
.floating-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem var(--space-sm);
    border-radius: var(--radius-full);
    font-weight: 800;
    color: white;
    box-shadow: 0 6px 20px rgba(30, 34, 41, 0.25);
    font-size: 1rem;
    transition: transform var(--transition-fast);
}
.floating-btn:active {
    transform: scale(0.95);
}
.floating-whatsapp { background-color: var(--success-color); }
.floating-call { background-color: var(--brand-accent); }

.desktop-whatsapp-badge {
    display: none;
}
@media (min-width: 768px) {
    .desktop-whatsapp-badge {
        display: flex;
        position: fixed;
        bottom: 2rem;
        left: 2rem;
        background-color: var(--success-color);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
        z-index: 999;
        font-size: 2rem;
        transition: var(--transition-normal);
    }
    .desktop-whatsapp-badge:hover {
        transform: scale(1.15) rotate(10deg);
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
    }
}

/* Footer Section */
footer {
    background-color: var(--brand-secondary-dark);
    color: #A0AEC0;
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 5px solid var(--brand-primary);
    font-size: 0.95rem;
}
footer h3 {
    color: white;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: 0.5rem;
}
footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background-color: var(--brand-primary);
    border-radius: var(--radius-full);
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 0.65rem;
}
footer ul li a {
    color: #A0AEC0;
    transition: var(--transition-fast);
}
footer ul li a:hover {
    color: var(--brand-primary);
    padding-right: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding-top: var(--space-md);
    margin-top: var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
}

/* Breadcrumbs System */
.breadcrumbs {
    background-color: var(--bg-white);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.breadcrumbs-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumbs-item::after {
    content: '/';
    margin-right: 0.5rem;
    color: var(--text-muted);
}
.breadcrumbs-item:last-child::after {
    display: none;
}
.breadcrumbs-item a {
    color: var(--brand-secondary-light);
    font-weight: 600;
}
.breadcrumbs-item a:hover {
    color: var(--brand-primary);
}
.breadcrumbs-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

/* Content Editorial Rhythm & Summaries */
.seo-content-rich {
    line-height: 2.1;
}
.seo-content-rich p {
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
    color: #334155;
}
.seo-content-rich h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
    font-weight: 800;
}
.seo-content-rich ul, .seo-content-rich ol {
    margin-bottom: 1.4rem;
    padding-right: 1.75rem;
}
.seo-content-rich li {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

/* Accessibility features */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .page-curtain {
        display: none !important;
    }
}
