/* =========================================
   PROBLEM HERO & STATISTICS SECTIONS
   ========================================= */

/* Problem Hero Section */
.hero-problem {
    padding: var(--space-12) 0 0;
    /* Changed bottom padding to 0 for seamless bar transition */
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* 3D Technical Mesh - Premium AI & Data Wireframe */
.hero-problem-mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    perspective: 1000px;
    opacity: 0.7; /* Increased from 0.4 for visibility */
}

.mesh-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(to right, rgba(30, 11, 77, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.1) 1.5px, transparent 1.5px);
    background-size: 80px 80px; 
    transform: rotateX(60deg);
    transform-origin: center center;
    animation: mesh-scroll 35s linear infinite;
}

@keyframes mesh-scroll {
    0% { transform: rotateX(60deg) translateY(0); }
    100% { transform: rotateX(60deg) translateY(80px); }
}

/* Technological Grain - Simplified for visibility */
.hero-problem::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

.hero-problem-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Ensures text is always crisp and on top */
}

.hero-problem-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    background: rgba(255, 107, 53, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
}

.hero-problem-bullets {
    max-width: 850px;
    margin: 0 auto var(--space-8);
    background: transparent;
    padding: 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bullet-reality {
    position: relative;
    padding-left: 3rem;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 40%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Soft depth to pop against Bloom */
    filter: drop-shadow(0 2px 4px rgba(30, 11, 77, 0.05));
    transition: transform 0.3s ease;
}

.bullet-reality::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-gold);
    -webkit-text-fill-color: var(--color-gold);
    font-size: 1.2em;
    line-height: 1;
}

.bullet-reality:hover {
    transform: translateX(10px);
}

.hero-problem-lead {
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 300;
    color: var(--color-gray-600);
    max-width: 900px;
    margin: 0 auto var(--space-6);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Cascading Typography for Hero Problem */
.hero-problem-headline {
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.problem-line-1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}

.problem-line-2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-primary-light);
    opacity: 0.9;
    line-height: 1.2;
}

.problem-line-3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-top: var(--space-2);
}

.problem-line-details {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--color-gray-600);
    line-height: 1.6;
    max-width: 850px;
    margin: var(--space-6) auto 0;
}

/* Statistics Section */
.stats-impact {
    padding: var(--space-10) 0 var(--space-4); /* Reduced bottom padding */
    background-color: var(--color-off-white);
    border-top: none;
    /* Removed border for seamless transition */
    border-bottom: none; /* Removed bottom border too */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number-wrapper {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: baseline;
}

.stat-number {
    display: inline-block;
    min-width: 1.5ch;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 0.6em;
    margin-left: 2px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-gray-800);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.stat-description {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Solution Transition Section */
.solution-transition {
    padding: var(--space-10) 0 var(--space-6);
    background-color: var(--color-white);
    text-align: center;
}

.solution-title {
    font-size: var(--text-5xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    font-weight: 800;
}

.solution-divider {
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-full);
}

/* Transition Gold Bar */
.transition-bar {
    width: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #F2D381 50%, #D4AF37 100%);
    padding: var(--space-6) 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    z-index: 5;
}

/* Shine Effect Animation */
.transition-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    /* GPU-composited equivalent of the old left -100%->150% sweep (element is 50% wide) */
    transform: translateX(-200%) skewX(-25deg);
    will-change: transform;
    animation: bar-shine 6s infinite ease-in-out;
}

@keyframes bar-shine {
    0% {
        transform: translateX(-200%) skewX(-25deg);
    }

    20% {
        transform: translateX(300%) skewX(-25deg);
    }

    100% {
        transform: translateX(300%) skewX(-25deg);
    }
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transition-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.transition-focus {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    font-style: italic;
    color: var(--color-primary);
    margin: 0 0 var(--space-2);
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.transition-sub {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(30, 11, 77, 0.8);
    /* Slightly softer purple for subtext */
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@media (max-width: 768px) {
    .transition-focus {
        font-size: var(--text-2xl);
        padding: 0 var(--space-4);
    }

    .transition-sub {
        font-size: var(--text-xs);
        letter-spacing: 0.15em;
        padding: 0 var(--space-4);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .hero-problem-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .hero-problem {
        padding: var(--space-8) 0 var(--space-4);
    }

    .stats-impact {
        padding: var(--space-6) 0 var(--space-8);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .stat-card {
        padding: var(--space-4) var(--space-2);
        text-align: center;
    }

    .stat-number-wrapper {
        justify-content: center;
        font-size: var(--text-5xl);
    }

    .hero-problem-title {
        font-size: var(--text-3xl);
        padding: 0 var(--space-2);
    }

    .solution-title {
        font-size: var(--text-4xl);
    }
}

/* =========================================
   VIDEO HERO ADDITIONS
   ========================================= */

/* Dark fallback for the section itself */
.hero-problem {
    background-color: #0a051e;
    padding: 0;
}

/* Wrapper that the video fills — sits above the gold bar.
   Extra top padding clears the absolutely positioned glass nav. */
.hero-video-area {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 150px 0 var(--space-8);
}

/* Video container */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0d0821;
}

/* Video element — black & white cinematic render */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: grayscale(100%);
    display: block;
}

/* Dark gradient overlay on top of the video */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Subtle brand tint — purple wash from top left */
.hero-brand-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 27, 94, 0.25) 0%, transparent 52%);
    z-index: 2;
    pointer-events: none;
}

/* Mesh texture sits above overlay for subtle depth */
.hero-problem .hero-problem-mesh {
    z-index: 2;
    opacity: 0.18;
}

/* Override headline colours for dark background */
.problem-line-1 {
    color: #ffffff;
}

.problem-line-2 {
    color: var(--color-gold);
    opacity: 1;
}

/* New subtitle line — smaller, light purple */
.problem-line-sub {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 600;
    color: #c4aff0;
    letter-spacing: 0.02em;
    line-height: 1.55;
    margin-top: 0;
}

/* "We Fix All This!" — Caveat handwritten on gold pill */
.problem-line-3 {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #1e0b4d;
    background: #F5C518;
    padding: 6px 26px 10px;
    border-radius: 100px;
    margin-top: var(--space-5);
    letter-spacing: 0.01em;
    line-height: 1.25;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.65),
        0 6px 28px rgba(212, 175, 55, 0.65),
        0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Repeating shine sweep across the pill */
.problem-line-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    /* GPU-composited equivalent of the old left -100%->140% sweep (element is 60% wide) */
    transform: translateX(-166.667%) skewX(-20deg);
    will-change: transform;
    animation: pill-shine 4s infinite ease-in-out;
}

@keyframes pill-shine {
    0%   { transform: translateX(-166.667%) skewX(-20deg); }
    30%  { transform: translateX(233.333%)  skewX(-20deg); }
    100% { transform: translateX(233.333%)  skewX(-20deg); }
}

/* Mobile — video hidden, dark gradient used instead */
@media (max-width: 768px) {
    .hero-bg-video {
        display: none;
    }

    /* No video on mobile, so the video-treatment layers go too */
    .hero-brand-tint {
        display: none;
    }

    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(30, 11, 77, 0.97) 0%,
            rgba(20, 8, 55, 0.95) 100%
        );
    }

    .hero-video-area {
        min-height: 60vh;
    }
}

/* =========================================
   NEW HERO HEADLINE ELEMENTS
   ========================================= */

/* Remove gap from headline — individual margin-tops control spacing */
.hero-problem .hero-problem-headline {
    gap: 0;
}

/* Accented word within line 1 */
.hero-accent-word {
    color: #e6d2ae;
    text-shadow: 0px 6px 25px rgba(0, 0, 0, 1), 0px 0px 60px rgba(0, 0, 0, 0.95), 2px 2px 0px rgba(0, 0, 0, 0.8), 0px 0px 20px rgba(230, 210, 174, 0.4);
}

/* Element 1 — main hook */
.hero-line-a {
    font-family: 'Inter', sans-serif;
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    white-space: nowrap;
    display: block;
}

/* Element 2 — sub hook in gold */
.hero-line-b {
    font-family: 'Inter', sans-serif;
    font-size: 50px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #F5C518;
    text-align: center;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
    line-height: 1.15;
    margin-top: 8px;
    display: block;
}

/* Element 3 — italic pause line */
.hero-line-c {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.2px;
    text-align: center;
    text-shadow: 0px 2px 12px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
    margin-top: 16px;
    display: block;
}

/* Element 4 — beneath the pill */
.hero-line-d {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.2px;
    text-align: center;
    margin-top: 10px;
    display: block;
    white-space: nowrap;
}

.hero-line-e {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0px;
    text-align: center;
    margin-top: 18px;
    display: block;
    white-space: nowrap;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-line-e-sep {
    color: var(--color-gold);
    font-weight: 400;
    margin: 0 8px;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .hero-line-a {
        /* Capped so the nowrap line fits small viewports in Inter 800 */
        font-size: min(36px, 8vw);
        white-space: nowrap;
        text-shadow: 0 2px 32px rgba(0, 0, 0, 0.6);
    }
    .hero-line-b {
        font-size: 26px;
        white-space: nowrap;
    }
    .hero-line-c { font-size: 18px; font-style: italic; }
    .hero-line-d { font-size: min(22px, 5vw); white-space: nowrap; }
    .hero-line-e { font-size: 15px; white-space: normal; line-height: 1.5; margin-top: 14px; }
    .hero-line-e-sep { margin: 0 5px; }
}

/* =========================================
   CURRENCY STAT PANELS — BALANCED SIZING
   ========================================= */

/* Panels 3 & 4: reduce number size to balance visually with 71% and 79% */
.stat-number-wrapper:has(.stat-number--currency) {
    font-size: 36px;
}

@media (max-width: 1024px) {
    .stat-number-wrapper:has(.stat-number--currency) {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .stat-number-wrapper:has(.stat-number--currency) {
        font-size: 22px;
    }
}
/* =========================================
   HOMEPAGE GLASS NAV
   Overrides the shared .navbar styles from style.css.
   Loaded only by index.html, so other pages keep the
   solid purple sticky nav.
   ========================================= */

/* Transparent glass bar floating over the hero video */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Above the hero text (z-index:10) so dropdown + mobile menu render on top */
    background: rgba(45, 27, 94, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

/* The mosaic pattern clashes with the glass look */
.navbar .nav-pattern {
    display: none;
}

/* Nav links */
.navbar .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

/* Reinstated gold underline on hover (desktop) */
.navbar .nav-link::before {
    display: block;
}

@media (hover: hover) {
    .navbar .nav-link:hover {
        color: var(--color-gold);
        transform: none;
    }

    .navbar .nav-link:hover::before {
        transform: scaleX(1);
    }
}

.navbar .nav-link.active {
    color: #fff;
    font-weight: 500;
}

/* Dropdown panel — washed-out purple matching the glass nav bar,
   sits above the hero text via the navbar's raised stacking context */
.navbar .dropdown-menu {
    background: rgba(45, 27, 94, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1001;
}

/* Dropdown links pick up Inter too */
.navbar .dropdown-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* Booking CTA — ghost button, amber fill on hover */
.navbar .nav-cta {
    height: auto;
    padding: 8px 22px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;
    border-radius: 3px;
    box-shadow: none;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.navbar .nav-cta:hover {
    background: #D4AF37; /* Matches the UK & EU landscape banner gold */
    border-color: #D4AF37;
    color: #1a0f3a;
    transform: none;
    box-shadow: none;
}
