/* ============================================================
   Revival Theme — Design System
   All brand tokens, base styles, and component patterns.
   ============================================================ */

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

/* ── CSS Custom Properties (Design Tokens) ─────────────────── */
:root {
    /* Brand colors — theme-invariant (Revival Theme System Specification §3.1) */
    --revival-navy:        #0E2340;
    --revival-navy-dark:   #071524;
    --revival-cyan:        #F5821F;
    --revival-cyan-h:      #D96B12;
    --revival-amber:       #F0A830;
    --revival-off-white:   #FAFAFA;
    --revival-light-gray:  #EBEBEB;
    --revival-white:       #FFFFFF;

    /* Semantic aliases matching the spec's token names */
    --primary:   var(--revival-navy);
    --accent:    var(--revival-cyan);
    --accent-h:  var(--revival-cyan-h);
    --gold:      var(--revival-amber);

    /* Light mode surface tokens (§3.2) */
    --bg:            #F4F7FB;
    --bg-alt:        #EBF0F8;
    --surface:       #FFFFFF;
    --text:          #0A1628;
    --muted:         #5A6A80;
    --subtle:        #94A3B8;
    --border:        #DDE4EF;
    --border-light:  #E8EDF5;
    --shadow-s:  0 2px 8px rgba(14,35,64,.07);
    --shadow:    0 6px 28px rgba(14,35,64,.10);
    --shadow-l:  0 16px 56px rgba(14,35,64,.14);
    --shadow-xl: 0 32px 80px rgba(14,35,64,.18);

    /* Radii */
    --radius-s:  8px;
    --radius:    14px;
    --radius-l:  20px;
    --radius-xl: 28px;

    /* Typography */
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic:  'Noto Kufi Arabic', sans-serif;

    /* Spacing */
    --section-py:  clamp(3rem, 6vw, 6rem);

    /* Transitions */
    --transition-base:   200ms ease;
    --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-theme:  background-color .28s cubic-bezier(.4,0,.2,1),
                         color .28s cubic-bezier(.4,0,.2,1),
                         border-color .28s cubic-bezier(.4,0,.2,1),
                         box-shadow .28s cubic-bezier(.4,0,.2,1);
}

/* ── Dark Mode Overrides (Revival Theme System Specification §3.3) ── */
[data-theme="dark"] {
    --bg:            #080F18;
    --bg-alt:        #0D1825;
    --surface:       #0F1E30;
    --text:          #E2EBF8;
    --muted:         #8AAACF;
    --subtle:        #4A6A8A;
    --border:        #1A2E48;
    --border-light:  #1A2E48;
    --shadow-s:  0 2px 8px rgba(0,0,0,.35);
    --shadow:    0 6px 28px rgba(0,0,0,.45);
    --shadow-l:  0 16px 56px rgba(0,0,0,.5);
    --shadow-xl: 0 32px 80px rgba(0,0,0,.6);
}

/* Respect reduced-motion preference: theme changes become instant (§13.4) */
@media (prefers-reduced-motion: reduce) {
    :root { --transition-theme: none; }
}

/* ── Base Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition-theme);
}

body.font-arabic { font-family: var(--font-arabic); }

/* ── Header ────────────────────────────────────────────────── */
.revival-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-s);
    transition: var(--transition-theme);
}

/* Scrolled state: slightly deeper shadow when sticky */
.revival-header.scrolled {
    box-shadow: var(--shadow);
}

.revival-main { padding-top: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.revival-nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition-base);
}

.revival-nav-link:hover {
    color: var(--accent);
}

.revival-nav-link.active-nav-link {
    color: var(--accent);
}

.revival-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.revival-nav-link:hover::after,
.revival-nav-link.active-nav-link::after {
    width: 70%;
}

/* Mobile nav links */
.revival-mobile-nav li a {
    display: block;
    padding: 0.625rem 0.75rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background var(--transition-base), color var(--transition-base);
}

.revival-mobile-nav li a:hover { color: white; background: rgba(255,255,255,0.07); }

.revival-mobile-nav .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.revival-mobile-nav .sub-menu {
    padding-left: 1rem;
    border-left: 2px solid rgba(245,130,31, 0.3);
    margin-top: 0.25rem;
}

[dir="rtl"] .revival-mobile-nav .sub-menu {
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
    border-right: 2px solid rgba(245,130,31, 0.3);
}

/* Language switcher */
.revival-lang-switcher a {
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color var(--transition-base);
    text-decoration: none;
}
.revival-lang-switcher a:hover,
.revival-lang-switcher a.current-lang { color: var(--accent); }

/* ── Sections ───────────────────────────────────────────────── */
.revival-section { padding: var(--section-py) 0; }

.revival-section-gray { background-color: var(--bg-alt); transition: var(--transition-theme); }

.revival-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Inline "Book a Demo" collapse (HubSpot calendar) ─────────
   Collapsed by default; expanded in place via initBookingToggle()
   in main.js when a "#booking" CTA is clicked, instead of
   navigating to a separate page. ─────────────────────────────── */
.revival-booking-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}
.revival-booking-collapse.is-open {
    max-height: 4000px;
}

/* ── Section Headers ────────────────────────────────────────── */
.revival-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
/* Override: when section-title sits on a dark background, force white */
.revival-gradient-bg .revival-section-title,
[style*="background:#0E2340"] .revival-section-title,
[style*="background: #0E2340"] .revival-section-title,
.revival-section-title.text-white {
    color: #ffffff;
}

.revival-section-subtitle {
    color: var(--muted);
    font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
    line-height: 1.75;
    max-width: 48rem;
}

.revival-amber-bar {
    display: block;
    width: 3.5rem;
    height: 4px;
    background: var(--revival-amber);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.revival-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-s);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), var(--transition-theme);
}

.revival-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-l);
}

.revival-service-card-link { color: var(--revival-cyan); }

/* Service cards hover state */
.revival-service-card:hover { background: linear-gradient(135deg, var(--accent), var(--gold)); color: white; }
.revival-service-card:hover .revival-service-card-icon { background: rgba(255,255,255,0.2); }
.revival-service-card:hover .revival-service-card-desc { color: rgba(255,255,255,0.85); }
.revival-service-card:hover .revival-service-card-link { color: white; }

/* Dark mode: cards switch to the dark surface, but their text uses the
   hardcoded light-mode utilities (.text-navy / .text-gray-600) — remap
   those to theme tokens so titles/descriptions stay readable. */
[data-theme="dark"] .revival-card .text-navy { color: var(--text); }
[data-theme="dark"] .revival-card .text-gray-600 { color: var(--muted); }
[data-theme="dark"] .revival-service-card:hover .revival-service-card-desc { color: rgba(255,255,255,0.88); }

/* ── Buttons ────────────────────────────────────────────────── */
.revival-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(245, 130, 31, 0.3);
    position: relative;
    text-decoration: none;
}
.revival-btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,130,31,0.4); color: white; }

.revival-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(255,255,255,0.5);
    transition: all var(--transition-base);
    text-decoration: none;
}
.revival-btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

.revival-btn-secondary-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--border);
    transition: all var(--transition-base);
    text-decoration: none;
}
.revival-btn-secondary-light:hover { background: var(--bg-alt); border-color: var(--primary); color: var(--text); }

/* ── Checklist bullets ──────────────────────────────────────── */
.revival-checklist { list-style: none; padding: 0; margin: 0; }
.revival-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.4rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.revival-checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.revival-crosslist li::before {
    content: '\f00d';
    color: #EF4444;
}

/* ── Comparison Table ───────────────────────────────────────── */
.revival-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .revival-comparison-grid { grid-template-columns: 1fr; }
}

/* ── Testimonial Cards ──────────────────────────────────────── */
.revival-testimonial-card { border-radius: 1rem; }

/* ── Partner logos ──────────────────────────────────────────── */
.revival-partner-logo {
    filter: grayscale(100%) opacity(0.6);
    transition: filter var(--transition-base), transform var(--transition-base);
}
.revival-partner-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

/* ── Service Tabs ───────────────────────────────────────────── */
.revival-service-tab {
    color: var(--text);
    border-inline-start: 4px solid transparent;
    background: transparent;
    cursor: pointer;
    border-radius: 0.75rem;
}

.revival-service-tab:hover {
    background: rgba(245, 130, 31, 0.05);
    color: var(--accent);
}

.revival-service-tab.active {
    border-inline-start-color: var(--accent);
    background: rgba(245, 130, 31, 0.07);
    color: var(--accent);
}

/* Service card icon — background via CSS so hover override works */
.revival-service-card-icon {
    background: var(--revival-amber);
    transition: background var(--transition-smooth);
}

/* ── Career listing ─────────────────────────────────────────── */
.revival-career-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: rgba(245, 130, 31, 0.1);
    color: var(--accent);
}

/* ── Mega-menu component styles ─────────────────────────────── */
.revival-megamenu-item {
    cursor: pointer;
}
.revival-megamenu-item:hover {
    background: var(--bg-alt);
}
.revival-megamenu-item:hover .revival-megamenu-icon {
    background: var(--revival-cyan) !important;
}
.revival-megamenu-item:hover .revival-megamenu-icon i {
    color: white !important;
}
.revival-megamenu-item:hover span[style*="#2C3E50"] {
    color: var(--revival-cyan) !important;
}
.revival-megamenu-cta {
    background: var(--revival-navy);
    text-decoration: none;
}
.revival-megamenu-cta:hover {
    background: var(--revival-cyan) !important;
    color: white;
}
.revival-megamenu-cta-amber:hover {
    background: #cf7e14 !important;
    color: white;
}
.revival-megamenu-icon {
    background: rgba(245, 130, 31, 0.1);
}
.revival-megamenu-flyout {
    display: flex;
    left: 100%;
    margin-left: 0.5rem;
    min-width: 200px;
    flex-direction: column;
    gap: 0.125rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.revival-megamenu-flyout--rtl {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.5rem;
    transform: translateX(8px);
}
.revival-megamenu-item-wrap:hover .revival-megamenu-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* ── Page Hero (About / Products / Careers) ─────────────────── */
.revival-page-hero {
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding-top: 10px;
}

/* Tablets: iPad mini 768px → Surface Pro 7 912px → iPad Air 820px
   → Asus Zenbook Fold 853px → iPad Pro 1024px → iPad Pro 12.9" 1366px */
@media (max-width: 1366px) {
    .revival-page-hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: 0;
    }
    .revival-page-hero .revival-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Restore full-height only on proper desktop screens */
@media (min-width: 1367px) {
    .revival-page-hero {
        min-height: 68vh;
        align-items: center;
    }
}

/* ── Hero Slider ────────────────────────────────────────────── */
.revival-hero-slider {
    position: relative;
    min-height: calc(100vh - 5rem);
    overflow: hidden;
    background: #020c1a;
    color: white;
}

/* Slides track — explicit height so absolutely-positioned slides have a container */
.hero-slides-track {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 5rem);
}

/* Each slide: absolutely stacked, full size */
.hero-slide {
    position: absolute;
    inset: 0;
    min-height: calc(100vh - 5rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.5s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
/* Outgoing slide must start fading out the instant it's marked .exiting —
   otherwise (fade transition) it stays fully opaque under the incoming
   slide's fade-in for the whole duration, and the two texts cross-fade
   on top of each other instead of one replacing the other. */
.hero-slide.active.exiting {
    opacity: 0;
    pointer-events: none;
}

/* ── Transition variants ────────────────────────────────────── */
/* slide */
.hero-slide[data-transition="slide"] {
    transform: translateX(8%);
    opacity: 0;
}
.hero-slide[data-transition="slide"].active {
    transform: translateX(0);
    opacity: 1;
}
.hero-slide[data-transition="slide"].exiting {
    transform: translateX(-8%);
    opacity: 0;
}

/* zoom */
.hero-slide[data-transition="zoom"] {
    transform: scale(0.94);
    opacity: 0;
}
.hero-slide[data-transition="zoom"].active {
    transform: scale(1);
    opacity: 1;
}

/* flip */
.hero-slide[data-transition="flip"] {
    transform: perspective(1200px) rotateY(8deg);
    opacity: 0;
}
.hero-slide[data-transition="flip"].active {
    transform: perspective(1200px) rotateY(0deg);
    opacity: 1;
}

/* fade (default) — background/overlay layers use the base opacity transition
   above for a smooth cross-fade. The TEXT content gets its own faster,
   staggered fade so outgoing text is fully gone before incoming text starts
   appearing — a true simultaneous cross-fade of overlapping text is
   unreadable for the ~300ms both are mid-opacity at once. */
.hero-slide[data-transition="fade"] .hero-slide-content {
    opacity: 0;
    transition: opacity 0.25s ease;
}
.hero-slide[data-transition="fade"].active.exiting .hero-slide-content {
    opacity: 0;
    transition-delay: 0s;
}
.hero-slide[data-transition="fade"].active:not(.exiting) .hero-slide-content {
    opacity: 1;
    transition-delay: 0.3s;
}

/* ── Slide background image ─────────────────────────────────── */
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* ── Overlay layers (reused from original hero) ─────────────── */
.revival-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
        rgba(2,12,26,0.55)  0%,
        rgba(2,12,26,0.35) 35%,
        rgba(2,12,26,0.55) 70%,
        rgba(2,12,26,0.85) 100%
    );
}
.revival-hero-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at top right,  rgba(245,130,31,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(240,168,48,0.10) 0%, transparent 60%);
    mix-blend-mode: overlay;
}
.revival-hero-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.012) 2px,
        rgba(255,255,255,0.012) 3px
    );
}

/* ── Slide split layout ─────────────────────────────────────── */
.hero-slide-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: calc(100vh - 5rem);
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    gap: 3rem;
}

/* Left column */
.hero-slide-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Right column */
.hero-slide-right {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide-right img {
    max-height: 480px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 24px 60px rgba(0,0,0,0.55));
    border-radius: 1rem;
}
.hero-slide-right model-viewer {
    width: 100%;
    height: 480px;
    background: transparent;
    --poster-color: transparent;
}

/* ── Slide text elements ────────────────────────────────────── */
.slide-prebadge {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
}
.slide-headline {
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.slide-subtitle {
    font-size: clamp(0.92rem, 1.6vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 2rem;
    max-width: 540px;
}

/* ── CTA buttons ────────────────────────────────────────────── */
.slide-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.slide-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    background: var(--revival-amber);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 0 36px rgba(240,168,48,0.45), 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.25s, box-shadow 0.25s;
}
.slide-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(240,168,48,0.6), 0 6px 24px rgba(0,0,0,0.45);
}
.slide-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.75rem;
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: transform 0.25s, background 0.25s;
}
.slide-cta-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

/* ── Navigation dots ────────────────────────────────────────── */
.hero-nav-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.3);
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}
.hero-dot.active {
    background: #F5821F;
    transform: scale(1.25);
    width: 24px;
    border-radius: 5px;
}

/* ── Prev / Next arrows ─────────────────────────────────────── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.hero-arrow:hover {
    background: rgba(245,130,31,0.35);
    transform: translateY(-50%) scale(1.08);
}
.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }

/* ── Responsive ─────────────────────────────────────────────── */
/* ── iPad Air / Pro (769px – 1024px) ───────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .revival-hero-slider,
    .hero-slides-track {
        min-height: auto;
    }
    .hero-slide.active:not(.exiting) {
        position: relative;
        inset: auto;
        min-height: auto;
    }
    .hero-slide:not(.active),
    .hero-slide.exiting {
        position: absolute;
        inset: 0;
        min-height: 0;
    }
    .hero-slide-content {
        min-height: auto;
        padding: 3rem 2rem 4.5rem;
        gap: 2rem;
    }
    .hero-slide-right img {
        max-height: 320px;
        width: 100%;
        object-fit: contain;
    }
    .hero-slide-right model-viewer {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .revival-hero-slider,
    .hero-slides-track {
        min-height: auto;
    }
    /* Incoming active slide: normal flow so it drives the container height */
    .hero-slide.active:not(.exiting) {
        position: relative;
        inset: auto;
        min-height: auto;
    }
    /* Outgoing (.active.exiting) and all inactive slides: absolute so they
       layer behind the active one without affecting layout */
    .hero-slide:not(.active),
    .hero-slide.exiting {
        position: absolute;
        inset: 0;
        min-height: 0;
    }
    .hero-slide-content {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem 1.25rem 4.5rem;
        gap: 1.5rem;
    }
    .hero-slide-right {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero-slide-right img {
        max-height: 220px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    .hero-slide-right model-viewer {
        height: 220px;
    }
    .hero-arrow { display: none; }
}

/* ── Hero stats (kept for other sections that may reference it) ─ */
.revival-stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--accent);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.revival-reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.revival-reveal.revealed {
    opacity: 1;
    transform: none;
}
.revival-reveal-left  { transform: translateX(-2rem); }
.revival-reveal-right { transform: translateX(2rem);  }
.revival-reveal-left.revealed,
.revival-reveal-right.revealed { transform: none; }

/* ── HubSpot embed ──────────────────────────────────────────── */
.meetings-iframe-container { min-height: 700px; }
.meetings-iframe-container iframe { width: 100% !important; min-height: 700px; }

/* ── Theme Toggle Button (light/dark) ───────────────────────── */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-s);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-theme), transform var(--transition-base);
    flex-shrink: 0;
}
.nav-icon-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
@media (max-width: 480px) {
    .nav-icon-btn { width: 30px; height: 30px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.revival-footer .menu li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: color var(--transition-base);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
}
.revival-footer .menu li a:hover { color: var(--revival-cyan); }

/* ── Utilities ──────────────────────────────────────────────── */
.revival-amber-accent { color: var(--revival-amber); }
.revival-cyan-accent  { color: var(--revival-cyan);  }
.text-navy            { color: var(--revival-navy);  }

.revival-gradient-bg {
    background: linear-gradient(135deg, var(--revival-navy) 0%, var(--revival-navy-dark) 100%);
}

/* About page blob decoration */
.revival-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

/* ── Products / Solutions / Careers / Contact additions ─────── */
.text-cyan            { color: var(--revival-cyan); }

/* Float animations for hero orbs */
@keyframes revival-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-20px) scale(1.05); }
}
@keyframes revival-float-delayed {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(20px) scale(1.05); }
}
.animate-float         { animation: revival-float 8s ease-in-out infinite; }
.animate-float-delayed { animation: revival-float-delayed 10s ease-in-out infinite; }

/* HubSpot form reset — inherits Revival design tokens */
.hs-form fieldset { max-width: 100% !important; }
.hs-form .hs-input,
.hs-form select,
.hs-form textarea {
    width: 100% !important;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text);
    transition: border-color 200ms, box-shadow 200ms, var(--transition-theme);
    outline: none;
    font-family: var(--font-sans);
}
.hs-form .hs-input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,130,31,0.15);
}
.hs-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.hs-form .hs-form-field { margin-bottom: 1.25rem; }
.hs-form .hs-error-msgs { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.hs-form .hs-error-msgs label { color: #e53e3e; font-size: 0.75rem; text-transform: none; font-weight: 400; }
.hs-form .hs-button,
.hs-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition-base), transform var(--transition-base);
    box-shadow: 0 4px 16px rgba(245,130,31,0.3);
    font-family: var(--font-sans);
}
.hs-form .hs-button:hover,
.hs-form input[type="submit"]:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
}

/* ============================================================
   Footer Newsletter (Newsletter Frontend Design Spec v4.0)
   ============================================================ */
.newsletter-block {
    text-align: left;
    max-width: 80%;
}
.newsletter-block .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 5px 14px;
    border-radius: 100px;
    margin: 0 0 12px;
}
.newsletter-block .section-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    flex-shrink: 0;
}
.newsletter-block .newsletter-heading {
    font-size: clamp(1.15rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 10px;
}
.newsletter-block .newsletter-desc {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
.newsletter-block .newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.newsletter-block .newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 13px 18px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: var(--font-sans);
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.newsletter-block .newsletter-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.newsletter-block .newsletter-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}
.newsletter-block .newsletter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(245,130,31,0.3);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.newsletter-block .newsletter-submit:hover:not(:disabled) {
    background: var(--accent-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,130,31,0.4);
}
.newsletter-block .newsletter-submit:disabled {
    cursor: default;
    pointer-events: none;
}
.newsletter-block .newsletter-submit.is-success {
    background: #10b981;
    box-shadow: none;
}
.newsletter-block .newsletter-submit.is-error {
    background: #ef4444;
    box-shadow: none;
}
@media (max-width: 768px) {
    .newsletter-block {
        max-width: 100%;
    }
    .newsletter-block .newsletter-form {
        flex-direction: column;
    }
    .newsletter-block .newsletter-submit {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .newsletter-block .section-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* ============================================================
   Service Details Page (Service Details Frontend Spec v4.0)
   ============================================================ */

.svc2-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(245,130,31,0.1);
    border: 1px solid rgba(245,130,31,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin: 0 0 16px;
}
.svc2-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.svc2-section-header { margin-bottom: 3rem; }
.svc2-section-header .revival-section-title { margin-bottom: 0.75rem; }

.svc2-narrow-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--muted);
}
.svc2-narrow-body p { margin: 0 0 1rem; }
.svc2-narrow-body p:last-child { margin-bottom: 0; }

/* ── Hero ───────────────────────────────────────────────────── */
.svc2-hero {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    padding: 6rem 0 8rem;
    transition: var(--transition-theme);
}
.svc2-hero-particle { position: absolute; pointer-events: none; border-radius: 50%; }
.svc2-hero-particle-1 { top: 10%; left: 5%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(59,130,246,0.12), transparent 70%); }
.svc2-hero-particle-2 { bottom: 15%; right: 8%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%); }
.svc2-hero-particle-3 { top: 40%; right: 25%; width: 200px; height: 200px; background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 70%); }

.svc2-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.svc2-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.svc2-breadcrumb a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.svc2-breadcrumb a:hover { color: var(--primary); }
[data-theme="dark"] .svc2-breadcrumb a:hover { color: var(--accent); }
.svc2-breadcrumb i { font-size: 0.6rem; color: var(--muted); }
.svc2-breadcrumb span { font-size: 0.85rem; color: var(--text); font-weight: 500; }

.svc2-category-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    margin-bottom: 16px;
}
[data-theme="dark"] .svc2-category-tag { background: rgba(255,255,255,0.08); color: var(--muted); }

.svc2-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 16px;
}
.svc2-hero-subtitle { font-size: 1.15rem; color: var(--primary); font-weight: 500; margin: 0 0 12px; }
[data-theme="dark"] .svc2-hero-subtitle { color: var(--accent); }
.svc2-hero-desc { font-size: 1.05rem; color: var(--muted); line-height: 1.8; max-width: 540px; margin: 0 0 28px; }
.svc2-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.svc2-hero-visual { position: relative; display: flex; justify-content: center; }
.svc2-hero-image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.15);
    transition: var(--transition-theme);
}
[data-theme="dark"] .svc2-hero-image-wrap { box-shadow: var(--shadow-l); }
.svc2-hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc2-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--surface), var(--bg-alt));
}
[data-theme="dark"] .svc2-hero-placeholder { color: var(--accent); }
.svc2-hero-visual-glow {
    position: absolute;
    inset: -20px;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.15), transparent 60%);
    pointer-events: none;
}

.svc2-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; }

/* ── Overview ───────────────────────────────────────────────── */
.svc2-overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.svc2-overview-title { text-align: left; }
.svc2-overview-body { margin-top: 20px; }
.svc2-overview-body p { font-size: 1.02rem; line-height: 1.85; color: var(--muted); margin: 0 0 16px; }
.svc2-overview-body p:last-child { margin-bottom: 0; }

.svc2-value-card {
    padding: 32px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s, var(--transition-theme);
}
.svc2-value-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1); }
[data-theme="dark"] .svc2-value-card:hover { box-shadow: var(--shadow-l); }
.svc2-value-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(99,102,241,0.12));
    color: var(--primary);
    margin-bottom: 16px;
}
[data-theme="dark"] .svc2-value-icon { color: var(--accent); background: rgba(245,130,31,0.12); }
.svc2-value-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.svc2-value-card p { font-size: 0.95rem; line-height: 1.75; color: var(--muted); margin: 0; }

.svc2-detail-box {
    margin-top: 40px;
    padding: 32px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.svc2-detail-box h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.svc2-detail-box p { font-size: 0.95rem; line-height: 1.85; color: var(--muted); margin: 0 0 12px; }
.svc2-detail-box p:last-child { margin-bottom: 0; }

/* ── Benefits ───────────────────────────────────────────────── */
.svc2-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.svc2-benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.svc2-benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #071524 0%, #0E2340 100%);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 0;
}
[data-theme="dark"] .svc2-benefit-card::before { background: linear-gradient(145deg, #162840 0%, #1e3a58 100%); }
.svc2-benefit-card > * { position: relative; z-index: 1; }
.svc2-benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.1));
    color: var(--primary);
    transition: all 0.3s;
}
[data-theme="dark"] .svc2-benefit-icon { color: var(--accent); background: rgba(245,130,31,0.12); }
.svc2-benefit-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 8px; transition: color 0.3s; }
.svc2-benefit-card p { font-size: 0.9rem; line-height: 1.7; color: var(--muted); margin: 0; transition: color 0.3s; }

.svc2-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--gold));
}
.svc2-benefit-card:hover::before { opacity: 0; }
.svc2-benefit-card:hover .svc2-benefit-icon { background: rgba(255,255,255,0.15); color: #fff; }
.svc2-benefit-card:hover h3 { color: #fff; }
.svc2-benefit-card:hover p { color: rgba(255,255,255,0.78); }

@media (min-width: 769px) and (max-width: 1024px) {
    .svc2-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── How We Help (center-spine timeline) ────────────────────── */
.svc2-steps {
    position: relative;
    max-width: 900px;
    margin: 48px auto 0;
    padding: 8px 0;
}
.svc2-steps-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--accent), var(--primary));
    opacity: 0.35;
    border-radius: 2px;
}
.svc2-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
    align-items: center;
    margin-bottom: 28px;
}
.svc2-step:last-child { margin-bottom: 0; }
.svc2-step-card {
    grid-column: 1;
    grid-row: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.svc2-step:nth-child(odd) .svc2-step-card { grid-column: 3; }
.svc2-step:hover .svc2-step-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.35);
}
.svc2-step-num {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25), 0 0 0 5px var(--bg, #fff);
    z-index: 1;
}
[data-theme="dark"] .svc2-step-num {
    background: linear-gradient(135deg, #1e3a5f, #4f46e5);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), 0 0 0 5px var(--bg, #0f172a);
}
.svc2-step-text {
    font-size: 1.0625rem;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

@media (max-width: 768px) {
    .svc2-steps { margin-top: 36px; }
    .svc2-steps-spine {
        left: auto;
        inset-inline-start: 20px;
        transform: none;
    }
    .svc2-step {
        grid-template-columns: 40px 1fr;
        gap: 14px;
        margin-bottom: 16px;
    }
    .svc2-step-num,
    .svc2-step:nth-child(odd) .svc2-step-num {
        grid-column: 1;
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    .svc2-step-card,
    .svc2-step:nth-child(odd) .svc2-step-card {
        grid-column: 2;
        padding: 16px 18px;
        border-radius: 14px;
    }
    .svc2-step-text { font-size: 0.975rem; }
}

/* ── Comparison ─────────────────────────────────────────────── */
.svc2-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 3rem;
}
.svc2-compare-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s;
}
[data-theme="dark"] .svc2-compare-card { border-color: rgba(255,255,255,0.08); }
.svc2-compare-with:hover { border-color: rgba(34,197,94,0.3); box-shadow: 0 8px 32px -8px rgba(34,197,94,0.1); }
.svc2-compare-without:hover { border-color: rgba(239,68,68,0.2); box-shadow: 0 8px 32px -8px rgba(239,68,68,0.08); }

.svc2-compare-header { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.svc2-compare-badge { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.svc2-badge-with { color: #16a34a; }
.svc2-badge-without { color: #dc2626; }
.svc2-compare-badge i { font-size: 1.1rem; }

.svc2-compare-body { padding: 20px 24px; }
.svc2-compare-body .revival-checklist li { padding: 8px 0; font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.svc2-compare-body .revival-checklist li:last-child { border-bottom: none; }

.svc2-compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}
.svc2-compare-vs span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}
[data-theme="dark"] .svc2-compare-vs span { background: var(--bg-alt); color: var(--muted); }

@media (max-width: 768px) {
    .svc2-compare-grid { grid-template-columns: 1fr; }
    .svc2-compare-vs { padding: 8px 0; }
}

/* ── Demo CTA ───────────────────────────────────────────────── */
.svc2-demo-cta { text-align: center; }

/* ── Responsive: hero + overview grids ─────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .svc2-hero-grid { gap: 32px; }
    .svc2-overview-grid { gap: 32px; }
}

@media (max-width: 768px) {
    .svc2-hero { padding: 100px 0 60px; }
    .svc2-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .svc2-hero-visual { order: -1; }
    .svc2-hero-image-wrap { max-width: 100%; }
    .svc2-overview-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .svc2-tag { font-size: 0.7rem; padding: 4px 10px; }
}

/* ============================================================
   About Page — Redesign (spec v4.0)
   ============================================================ */

/* ── Shared: section tag / title / description ─────────────── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(245,130,31,.1);
    color: var(--accent);
    border: 1px solid rgba(245,130,31,.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
[data-theme="dark"] .section-tag { background: rgba(245,130,31,.12); border-color: rgba(245,130,31,.25); }

.section-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 16px;
}
.section-title span { color: var(--accent); font-style: normal; }

.section-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 600px;
}
.about-section-center { text-align: center; }
.about-section-center .section-desc { margin-inline: auto; }

.about-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    text-decoration: none;
}
.btn-lg { padding: 15px 36px; font-size: .98rem; }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(245,130,31,.3);
}
.btn-primary:hover {
    background: var(--accent-h);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,130,31,.4);
}
.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,.5);
    color: #fff;
}
.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}

/* ── Main About Section ─────────────────────────────────────── */
.about-enterprise { background: var(--bg); transition: var(--transition-theme); }

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-tag { margin-bottom: 16px; }

.about-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--text);
    font-weight: 600;
}
.about-hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--muted);
    margin: 0;
}
.about-hero-desc p { margin: 0 0 1em; }
.about-hero-desc p:last-child { margin-bottom: 0; }

.about-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.vm-card-elevated {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 28px 24px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.vm-card-elevated::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--gold));
    border-radius: 0 2px 2px 0;
}
.vm-card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(245,130,31,.25);
}

.vm-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.vm-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(245,130,31,.1);
    color: var(--accent);
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.vm-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.vm-card-text { font-size: .9rem; color: var(--muted); line-height: 1.75; margin: 0; }

.about-hero-actions { margin-top: 36px; }

.about-hero-visual { position: relative; }
.about-hero-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.about-accent-shape {
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    opacity: .08;
    pointer-events: none;
    z-index: 0;
}
.about-accent-shape.shape-1 { top: -20px; right: -20px; transform: rotate(15deg); }
.about-accent-shape.shape-2 { bottom: -20px; left: -20px; transform: rotate(-10deg); }

.about-hero-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: block;
    position: relative;
    z-index: 1;
    transition: transform .5s ease, box-shadow .5s ease;
}
.about-hero-image-wrap:hover .about-hero-img {
    transform: scale(1.02);
    box-shadow: 0 40px 100px rgba(14,35,64,.22);
}

.about-badge-enhanced {
    position: absolute;
    bottom: 24px; left: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-l);
    border: 1px solid var(--border);
    z-index: 2;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 14px;
}
.about-badge-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-badge-text { display: flex; align-items: baseline; gap: 5px; }
.about-badge-text strong {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-badge-text span {
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .about-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-hero-visual { order: 0; }
    .about-hero-content { order: 1; }
}

@media (max-width: 768px) {
    .about-enterprise { padding: 60px 0 40px; }
    .about-vm-grid { grid-template-columns: 1fr; margin-top: 24px; }
    .about-hero-actions { margin-top: 24px; }
    .about-accent-shape.shape-1 { width: 100px; height: 100px; right: -10px; }
    .about-hero-img { aspect-ratio: 16/10; object-position: center 25%; }
}

/* ── Values Section ──────────────────────────────────────────── */
.about-values { background: var(--bg-alt); transition: var(--transition-theme); }

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.about-value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.about-value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(245,130,31,.04), rgba(240,168,48,.02));
    transition: opacity .4s ease;
}
.about-value-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,130,31,.1), rgba(240,168,48,.06));
    color: var(--accent);
    font-size: 1.3rem;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: transform .4s ease, background .4s ease;
}
.about-value-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--text); position: relative; }
.about-value-desc { font-size: .85rem; color: var(--muted); line-height: 1.65; margin: 0; position: relative; }

.about-value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-l);
    border-color: rgba(245,130,31,.2);
}
.about-value-card:hover::before { opacity: 1; }
.about-value-card:hover .about-value-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(245,130,31,.18), rgba(240,168,48,.1));
}

.about-value-card.revival-reveal {
    opacity: 0;
    transform: none;
}
.about-value-card.revival-reveal.revealed {
    animation: fadeScaleUp .5s ease forwards;
}
@keyframes fadeScaleUp {
    from { opacity: 0; transform: scale(.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
    .about-values-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .about-value-card { padding: 22px 16px; }
    .about-value-icon { width: 44px; height: 44px; }
    .about-value-title { font-size: .95rem; }
}
@media (max-width: 480px) {
    .about-values-grid { grid-template-columns: 1fr; }
}

/* ── Perspective Section ─────────────────────────────────────── */
.about-perspective { background: var(--bg); transition: var(--transition-theme); }

.about-perspective-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.perspective-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), box-shadow .45s ease, border-color .45s ease, background .45s ease;
}
.perspective-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity .35s;
    z-index: 2;
}
.perspective-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.perspective-card-text { font-size: .92rem; color: var(--muted); line-height: 1.75; margin: 0; position: relative; }

@media (hover: hover) {
    .perspective-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: transparent;
        background: linear-gradient(135deg, var(--accent), var(--gold));
    }
    .perspective-card:hover::before { opacity: 1; }
    .perspective-card:hover .perspective-card-icon { background: rgba(255,255,255,.15); color: #fff; transform: scale(1.08); }
    .perspective-card:hover .perspective-card-text { color: #fff; }
}

@media (max-width: 991px) {
    .about-perspective-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .about-perspective-grid { grid-template-columns: 1fr; }
}

/* ── Stats Section ───────────────────────────────────────────── */
.about-stats {
    background: linear-gradient(135deg, #071524 0%, #0E2340 50%, #122c50 100%);
    position: relative;
    overflow: hidden;
}
.about-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(245,130,31,.06), transparent 60%);
    pointer-events: none;
}
.about-stats .section-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.15); }
.about-stats .section-tag::before { background: rgba(255,255,255,.55); }
.about-stats .section-title { color: #fff; }

.stats-grid {
    display: flex;
    flex-wrap: nowrap;
    text-align: center;
    gap: 1px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 40px 24px;
    flex: 1;
    min-width: 160px;
    background: rgba(255,255,255,.02);
    position: relative;
    z-index: 1;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(255,255,255,.04);
    transition: opacity .4s ease;
    z-index: -1;
}
.stat-item:hover::before { opacity: 1; }
.stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,.06); }

.stat-icon { font-size: 1.3rem; color: var(--accent); margin-bottom: 10px; opacity: .7; transition: opacity .3s ease; display: block; }
.stat-item:hover .stat-icon { opacity: 1; }

.stat-value {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #fff 30%, rgba(245,130,31,.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .stats-grid { flex-wrap: wrap; border: none; border-radius: 0; }
    .stat-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.06); }
    .stat-item + .stat-item { border-left: none !important; }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 640px) {
    .stat-item { flex: 0 0 100%; min-width: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .stat-item:last-child { border-bottom: none; }
}

/* ── Methodology Section ─────────────────────────────────────── */
.about-methodology { background: var(--bg); transition: var(--transition-theme); }

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 56px;
    position: relative;
}
.methodology-steps::before {
    content: '';
    position: absolute;
    top: 40px; left: 80px; right: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(245,130,31,.2), var(--accent));
    z-index: 0;
    border-radius: 2px;
}

.methodology-step {
    text-align: center;
    padding: 32px 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    position: relative;
    z-index: 1;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), box-shadow .45s ease, border-color .45s ease, background .45s ease;
}
.step-number {
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(245,130,31,.35);
}

.step-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(245,130,31,.1);
    color: var(--accent);
    font-size: 1.3rem;
    margin: 16px auto 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.step-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.step-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; margin: 0; }

@media (hover: hover) {
    .methodology-step:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: transparent;
        background: linear-gradient(135deg, var(--accent), var(--gold));
    }
    .methodology-step:hover .step-icon { background: rgba(255,255,255,.15); color: #fff; transform: scale(1.08); }
    .methodology-step:hover .step-title { color: #fff; }
    .methodology-step:hover .step-desc { color: rgba(255,255,255,.78); }
}

@media (max-width: 991px) {
    .methodology-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .methodology-steps::before { display: none; }
}
@media (max-width: 576px) {
    .methodology-steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Success Stories Section ─────────────────────────────────── */
.about-success { background: var(--bg-alt); transition: var(--transition-theme); }

.about-success-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.success-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .45s cubic-bezier(.25,.46,.45,.94), box-shadow .45s ease, border-color .45s ease, background .45s ease;
}
.success-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity .35s;
    z-index: 2;
}
.success-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(245,130,31,.1);
    color: var(--accent);
    font-size: 1.3rem;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.success-card-value {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    display: block;
}
.success-card-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; margin: 0; }

@media (hover: hover) {
    .success-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: transparent;
        background: linear-gradient(135deg, var(--accent), var(--gold));
    }
    .success-card:hover::before { opacity: 1; }
    .success-card:hover .success-card-icon { background: rgba(255,255,255,.15); color: #fff; transform: scale(1.08); }
    .success-card:hover .success-card-value { color: #fff; -webkit-text-fill-color: #fff; }
    .success-card:hover .success-card-desc { color: rgba(255,255,255,.78); }
}

@media (max-width: 768px) {
    .about-success-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .about-success-grid { grid-template-columns: 1fr; }
}

/* ── Services Grid Section ───────────────────────────────────── */
.services-grid-section {
    background: var(--bg);
    padding: var(--section-py) 0;
    transition: var(--transition-theme);
}
.services-grid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}
.services-empty {
    text-align: center;
    padding: 5rem 1.5rem;
    color: var(--subtle);
}
.services-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.3;
}
.services-empty p { margin-bottom: 1.5rem; }

/* Grid section header (shared by services & solutions) */
.services-grid-header {
    margin-bottom: 40px;
}

/* Service Card */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    padding: 36px 28px;
    text-decoration: none;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.25,.46,.45,.94),
                box-shadow .28s cubic-bezier(.25,.46,.45,.94),
                border-color .28s cubic-bezier(.4,0,.2,1),
                background .28s cubic-bezier(.4,0,.2,1);
}
.service-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Spotlight glow pseudo-element */
.spotlight-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
    background: radial-gradient(circle at center, transparent 0%, rgba(245,130,31,.10) 35%, rgba(245,130,31,.06) 65%, transparent 100%);
    transform: translate(-50%, -50%);
    left: var(--mouse-x, -999px);
    top: var(--mouse-y, -999px);
    z-index: 0;
}
.service-card:hover .spotlight-glow { opacity: 1; }

/* Card children (above glow) */
.service-num,
.service-icon,
.service-cat,
.service-title,
.service-desc,
.service-link { position: relative; z-index: 1; }

.service-num {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: var(--font-sans);
}
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(245,130,31,.1);
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.service-cat {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(245,130,31,.08);
    padding: 3px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: 0 0 10px;
    transition: color .28s cubic-bezier(.4,0,.2,1);
}
.service-desc {
    font-size: .9rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 auto;
    transition: color .28s cubic-bezier(.4,0,.2,1);
}
.service-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .28s cubic-bezier(.4,0,.2,1);
}
.service-link::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .75rem;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
[dir="rtl"] .service-link::after { content: '\f060'; }

/* Hover state: accent gradient background */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
        border-color: transparent;
        background: linear-gradient(135deg, var(--accent), var(--gold));
    }
    .service-card:hover .service-num { color: rgba(255,255,255,.65); }
    .service-card:hover .service-icon { background: rgba(255,255,255,.15); color: #fff; transform: scale(1.08); }
    .service-card:hover .service-cat { background: rgba(255,255,255,.15); color: #fff; }
    .service-card:hover .service-title { color: #fff; }
    .service-card:hover .service-desc { color: rgba(255,255,255,.78); }
    .service-card:hover .service-link { color: #fff; }
    .service-card:hover .service-link::after { transform: translateX(4px); }
    [dir="rtl"] .service-card:hover .service-link::after { transform: translateX(-4px); }
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1),
                transform .65s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1023px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .services-grid-container { padding: 0 20px; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid-section { padding: 68px 0; }
}
@media (max-width: 480px) {
    .services-grid-container { padding: 0 16px; }
    .services-grid-section { padding: 48px 0; }
}

/* ── CTA Banner Section ──────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(140deg, #071524 0%, #0E2340 50%, #122c50 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%; right: -5%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(245,130,31,.14) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.cta-banner .section-tag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.15); }
.cta-banner .section-tag::before { background: rgba(255,255,255,.55); }
.cta-banner .section-title { color: #fff; }
.cta-banner .section-desc { color: rgba(255,255,255,.7); max-width: 600px; margin-inline: auto; }

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .cta-banner { padding: var(--section-py) 0; }
}

/* ── Section anchor offsets ──────────────────────────────────── */
#about-main, #about-values, #about-perspective, #about-methodology,
#about-success, #about-cta, #about-stats, #after-hero {
    scroll-margin-top: 90px;
}
