﻿/* 
 * Velmora Global International - Core Design System & Stylesheet
 * Custom Design matching Navy & Gold Brand Identity
 * Optimized for SEO, High-Performance Static Hosting
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --color-navy: #0B1B2B;
    --color-navy-light: #162E48;
    --color-navy-dark: #050D15;
    --color-gold: #C5A880;
    --color-gold-dark: #9C7F57;
    --color-gold-light: #E3D5C1;
    --color-gold-trans: rgba(197, 168, 128, 0.15);
    --color-bg-warm: #FBF9F6;
    --color-bg-white: #FFFFFF;
    --color-text-dark: #1E252D;
    --color-text-muted: #5C6B73;
    --color-text-light: #F4F5F7;
    
    /* Layout & Styling */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -3px rgba(11, 27, 43, 0.05), 0 4px 6px -2px rgba(11, 27, 43, 0.03);
    --shadow-lg: 0 20px 35px -5px rgba(11, 27, 43, 0.08), 0 10px 15px -5px rgba(11, 27, 43, 0.04);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* -------------------------------------------------------------
 * 1. Resets & Core Styles
 * ------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-warm);
    color: var(--color-text-dark);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(250, 246, 238, 0.15), rgba(245, 241, 231, 0.25)), url('../images/bg_clouds.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(1.4) opacity(0.2);
    z-index: -2; /* Sit behind page content */
    transform: scale(1.02); /* Hide blurry viewport boundary edges */
    pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-navy-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: var(--font-body);
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* -------------------------------------------------------------
 * 2. Typography & Common Classes
 * ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p {
    font-size: 1.02rem;
    color: var(--color-text-muted);
}

.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-bg-white); }
.bg-navy { background-color: var(--color-navy); }
.bg-navy-dark { background-color: var(--color-navy-dark); }
.bg-warm { background-color: var(--color-bg-warm); }
.bg-white { 
    background-color: var(--color-bg-warm);
    background-image: linear-gradient(rgba(250, 246, 238, 0.1), rgba(245, 241, 231, 0.2)), url('../images/bg_clouds.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section {
    padding: clamp(3.5rem, 7vw, 7rem) 5%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Common Section Header */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto clamp(2.5rem, 4vw, 4rem);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold-dark);
    font-weight: 600;
    margin-bottom: 0.65rem;
    display: inline-block;
}

.section-title {
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
}

/* Glassmorphic content cards for readable text overlays on backgrounds */
.content-card-glass {
    background: rgba(251, 249, 246, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 3rem 2.5rem !important;
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid rgba(197, 168, 128, 0.2) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-navy-dark);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.btn-primary::before {
    background-color: var(--color-navy);
}

.btn-primary:hover {
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 27, 43, 0.2);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-secondary::before {
    background-color: var(--color-gold-trans);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    transform: translateX(100%);
}

/* Emergency Alert Ribbon */
.emergency-ribbon {
    background-color: var(--color-gold-dark);
    color: var(--color-bg-white);
    padding: 0.55rem 5%;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 1001;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.emergency-ribbon a {
    text-decoration: underline;
    font-weight: 600;
}
.emergency-ribbon .ribbon-left {
    display: flex;
    align-items: center;
}
.emergency-ribbon .ribbon-right {
    display: block;
}

@media (max-width: 1024px) {
    .emergency-ribbon {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    .emergency-ribbon .ribbon-right {
        display: none; /* hide tagline on mobile/tablet to save space */
    }
}

/* -------------------------------------------------------------
 * 3. Header & Navigation (Always Light Navbar to blend Logo Box)
 * ------------------------------------------------------------- */
.header-nav {
    position: relative; /* normal document flow on load */
    width: 100%;
    background-color: rgba(251, 249, 246, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.12);
    z-index: 1050; /* higher than ribbon to prevent logo clipping */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-nav.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background-color: rgba(251, 249, 246, 0.99);
    box-shadow: 0 4px 20px rgba(11, 27, 43, 0.05);
}

.header-nav.scrolled .logo-item .nav-logo {
    top: 0px !important; /* align top edge of circle with the screen viewport to prevent clipping */
    width: 104px !important;
    height: 104px !important;
    box-shadow: 0 4px 15px rgba(11, 27, 43, 0.12) !important;
}

.header-nav.scrolled .logo-img-large {
    width: 75px !important;
    height: 75px !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.6rem 5%;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.25rem; /* Tightened menu gaps to fit all pages */
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-navy);
    position: relative;
    padding: 0.4rem 0;
    text-align: center;
    line-height: 1.25;
    display: inline-block;
}

.nav-br {
    display: inline;
}

@media (max-width: 1024px) {
    .nav-br {
        display: none !important;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

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

.nav-phone {
    font-weight: 600;
    color: var(--color-gold-dark) !important;
}

/* Services Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link i {
    position: absolute !important;
    right: -12px !important;
    bottom: 7px !important;
    margin: 0 !important;
    font-size: 0.65rem !important;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-bg-white);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.6rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-navy);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.nav-dropdown-menu li a:hover {
    background-color: var(--color-bg-warm);
    color: var(--color-gold-dark);
}

/* Burger menu */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1010;
}

.nav-burger span {
    width: 100%;
    height: 2px;
    background-color: var(--color-navy);
    transition: var(--transition-fast);
}

/* -------------------------------------------------------------
 * 4. Hero Section with Ken Burns Pan Motion
 * ------------------------------------------------------------- */
.hero-section {
    background-color: var(--color-navy); /* Fallback color to keep text visible */
    color: var(--color-bg-white);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

/* Ken burns visual background */
.hero-kenburns-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/hero_bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 0;
    animation: kenBurnsAnimation 24s ease-in-out infinite;
}

@keyframes kenBurnsAnimation {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.05) translate(-1%, -1%); }
    100% { transform: scale(1) translate(0, 0); }
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(197, 168, 128, 0.08);
}
.hero-circle-1 { width: 500px; height: 500px; right: -100px; top: -100px; }
.hero-circle-2 { width: 800px; height: 800px; right: -300px; top: -300px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-desc {
    color: rgba(244, 245, 247, 0.75);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-globe-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, rgba(11, 27, 43, 0.2) 70%);
    border: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-globe-img {
    width: 80%;
    height: auto;
    border-radius: 50%;
    opacity: 0.85;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* -------------------------------------------------------------
 * 5. Stats / Global Counter Section
 * ------------------------------------------------------------- */
.stats-section {
    padding: 3rem 5%;
    background-color: var(--color-bg-white);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    border-right: 1px solid rgba(197, 168, 128, 0.2);
}
.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-num span {
    color: var(--color-gold-dark);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* -------------------------------------------------------------
 * 6. Services Grid Cards
 * ------------------------------------------------------------- */
.services-section {
    background-color: var(--color-bg-warm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.2rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(197, 168, 128, 0.1);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--color-gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.3);
}

.service-card:hover .service-image-box img {
    transform: scale(1.06);
}

.service-card:hover::after {
    transform: scaleY(1);
}

.service-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.service-card-desc {
    font-size: 0.96rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card-link svg {
    transition: var(--transition-fast);
}
.service-card-link:hover svg {
    transform: translateX(5px);
}

/* -------------------------------------------------------------
 * 7. Interactive SVG Global reach map
 * ------------------------------------------------------------- */
.map-section {
    background-color: var(--color-bg-warm);
    color: var(--color-navy);
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.map-section .section-title {
    color: var(--color-navy);
}

.map-section .section-desc {
    color: var(--color-text-muted);
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 1.6;
    background-color: #aed3ed; /* Light Blue for ocean */
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px rgba(11, 27, 43, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Map paths styling */
.cls-1 {
    fill: #d2c4b1 !important; /* Muddy color for general land area */
    stroke: #222222 !important; /* Black for outlines */
    stroke-width: 0.35px !important;
    transition: var(--transition-smooth);
}

.interactive-country-path {
    cursor: pointer;
    fill: #2d6a4f !important; /* Rich Green for forest/active area */
    stroke: #222222 !important; /* Black for outlines */
    stroke-width: 0.35px !important;
}

.interactive-country-path:hover,
.interactive-country-path.highlighted {
    fill: #1b4332 !important; /* Deeper Green on hover */
    stroke: #000000 !important;
    stroke-width: 0.5px !important;
}

.map-hub {
    cursor: pointer;
}

.map-hub circle {
    fill: var(--color-gold);
    transition: var(--transition-smooth);
}

.map-hub .pulse-ring {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 1.5px;
    transform-origin: center;
    animation: mapPulse 2s ease-out infinite;
}

.map-hub:hover circle {
    fill: var(--color-bg-white);
    r: 6;
}

/* Connecting paths */
.map-route {
    fill: none;
    stroke: var(--color-gold);
    stroke-dasharray: 8, 4;
    stroke-width: 1.5;
    stroke-linecap: round;
    animation: dashRoute 30s linear infinite;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.map-route.active {
    stroke-width: 2.5;
    stroke: var(--color-gold);
    opacity: 0.95;
    animation: dashRoute 15s linear infinite;
}

@keyframes dashRoute {
    to { stroke-dashoffset: -1000; }
}

@keyframes mapPulse {
    0% { r: 4; opacity: 1; stroke-width: 1.5px; }
    50% { opacity: 0.5; }
    100% { r: 18; opacity: 0; stroke-width: 0.5px; }
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    background-color: var(--color-navy);
    border: 1px solid var(--color-gold);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-fast);
    max-width: 285px;
}

.map-tooltip.visible {
    opacity: 1;
}

.map-tooltip-title {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.map-tooltip-desc {
    font-size: 0.85rem;
    color: rgba(244, 245, 247, 0.85);
    line-height: 1.4;
}

/* Map instruction list */
.map-hubs-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    list-style: none;
}

.legend-item {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-navy-muted); /* Dark text color for light background */
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.legend-item:hover,
.legend-item.active {
    color: var(--color-navy); /* Darker active text color */
    background-color: rgba(197, 168, 128, 0.15);
    border-color: rgba(197, 168, 128, 0.45);
}

.legend-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: inline-block;
}

/* -------------------------------------------------------------
 * 8. Calculator & Documents
 * ------------------------------------------------------------- */
.calc-section {
    background-color: var(--color-bg-white);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.calc-card {
    background-color: var(--color-bg-warm);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-md);
}

.calc-form-group {
    margin-bottom: 2rem;
}

.calc-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-navy);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.calc-select-wrapper {
    position: relative;
}

.calc-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(197, 168, 128, 0.3);
    background-color: var(--color-bg-white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    border-radius: var(--border-radius-sm);
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition-fast);
}

.calc-select:focus {
    outline: none;
    border-color: var(--color-gold-dark);
    box-shadow: 0 0 0 3px var(--color-gold-trans);
}

.calc-select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-gold-dark);
}

/* Results panel styles */
.calc-results-panel {
    background-color: var(--color-navy);
    color: var(--color-bg-white);
    border-radius: var(--border-radius-sm);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(197, 168, 128, 0.2);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.calc-results-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(197, 168, 128, 0.05);
}

.results-placeholder {
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.results-placeholder-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.results-placeholder-title {
    color: var(--color-bg-white);
    margin-bottom: 0.75rem;
}

.results-display {
    display: none;
    flex-direction: column;
    gap: 2.2rem;
    animation: fadeIn 0.5s ease-out;
}

.results-header-info {
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 1.5rem;
}

.results-route-title {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.results-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-gold-trans);
    color: var(--color-gold);
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.results-metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.metric-card {
    background-color: rgba(22, 46, 72, 0.5);
    border: 1px solid rgba(197, 168, 128, 0.15);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
}

/* Document section inside calculator */
.results-documents {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.docs-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 0.75rem;
}

.docs-title {
    color: var(--color-bg-white);
    font-size: 1.1rem;
}

.docs-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.docs-item {
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    color: rgba(244, 245, 247, 0.85);
}

.docs-check-icon {
    color: var(--color-gold);
    font-size: 1.1rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.docs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1.5rem;
}

.btn-calc-cta {
    width: 100%;
}

.calc-disclaimer {
    font-size: 0.75rem;
    color: rgba(244, 245, 247, 0.5);
    line-height: 1.4;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
 * 9. Process Timeline Section
 * ------------------------------------------------------------- */
.process-section {
    background-color: var(--color-bg-warm);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(197, 168, 128, 0.25);
    transform: translateX(-50%);
}

.timeline-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}
.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    width: 50px;
    height: 50px;
    background-color: var(--color-navy);
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px rgba(197,168,128,0.3);
}

.timeline-panel {
    width: 42%;
    background-color: var(--color-bg-white);
    padding: 2.2rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(197, 168, 128, 0.08);
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 168, 128, 0.2);
}

.timeline-step:nth-child(even) .timeline-panel {
    margin-left: auto;
}
.timeline-step:nth-child(odd) .timeline-panel {
    margin-right: auto;
}

.timeline-panel-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.timeline-panel-desc {
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
 * 10. Why Choose Us Section
 * ------------------------------------------------------------- */
.features-section {
    background-color: var(--color-navy);
    color: var(--color-bg-white);
}

.features-section .section-title {
    color: var(--color-bg-white);
}

.features-section .section-desc {
    color: rgba(244, 245, 247, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 168, 128, 0.15);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon-box {
    background-color: var(--color-gold);
    color: var(--color-navy-dark);
    transform: scale(1.05);
}

.feature-title {
    color: var(--color-bg-white);
    margin-bottom: 0.85rem;
    font-size: 1.35rem;
}

.feature-desc {
    font-size: 0.98rem;
    color: rgba(244, 245, 247, 0.75);
}

/* -------------------------------------------------------------
 * 11. FAQ Accordions
 * ------------------------------------------------------------- */
.faq-section {
    background-color: var(--color-bg-warm);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(197, 168, 128, 0.12);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background-color: var(--color-bg-white);
    transition: var(--transition-fast);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-navy);
    font-weight: 500;
}

.faq-icon-state {
    color: var(--color-gold-dark);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--color-bg-white);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    font-size: 0.98rem;
    border-top: 1px solid rgba(197, 168, 128, 0.05);
    padding-top: 1rem;
}

.faq-item.active .faq-icon-state {
    transform: rotate(180deg);
}

/* -------------------------------------------------------------
 * 12. Contact Form & Google Map
 * ------------------------------------------------------------- */
.contact-section {
    background-color: var(--color-bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    list-style: none;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-detail-icon {
    width: 45px;
    height: 45px;
    background-color: var(--color-gold-trans);
    color: var(--color-gold-dark);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}
.contact-detail-text p {
    font-size: 0.98rem;
}

.contact-map-container {
    height: 250px;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form-panel {
    background-color: var(--color-bg-warm);
    border: 1px solid rgba(197, 168, 128, 0.15);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------
 * 13. Footer
 * ------------------------------------------------------------- */
.footer {
    background-color: var(--color-navy-dark);
    color: var(--color-text-light);
    padding: 5rem 5% 2.5rem;
    border-top: 2px solid var(--color-gold-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.95) !important;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(244, 245, 247, 0.6);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(244,245,247,0.05);
    border: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-navy-dark);
    transform: translateY(-2px);
}

.footer-title {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(244, 245, 247, 0.7);
}

.footer-link:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-contacts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-contact-item {
    font-size: 0.92rem;
    color: rgba(244, 245, 247, 0.75);
    display: flex;
    gap: 0.8rem;
    line-height: 1.5;
}

.footer-contact-icon {
    color: var(--color-gold);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(244, 245, 247, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(244, 245, 247, 0.45);
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-legal-link {
    font-size: 0.85rem;
    color: rgba(244, 245, 247, 0.45);
}

.footer-legal-link:hover {
    color: var(--color-gold);
}

/* -------------------------------------------------------------
 * 14. Dual Floating Interactive Actions (Phone + WhatsApp)
 * ------------------------------------------------------------- */
/* Floating Helpline Call Button (Bottom Left, Gold) */
.call-float, .email-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-gold);
    color: var(--color-navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(197, 168, 128, 0.35);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.call-float::before, .email-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: goldPulse 2s infinite;
}

.call-float:hover, .email-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.5);
    background-color: #b5986e;
}

@keyframes goldPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Floating WhatsApp Icon (Bottom Right, Green) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: inherit;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    background-color: #22c35e;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* -------------------------------------------------------------
 * 15. Mobile Menu Navigation Overlay & Collapsible Submenus
 * ------------------------------------------------------------- */
.nav-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
    z-index: 2200; /* Sit above the top navigation header completely */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1.5rem 1.75rem 3rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Premium Mobile Menu Header */
.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.overlay-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.95) !important;
}

.nav-close {
    font-size: 2rem;
    color: var(--color-gold);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-close:hover {
    color: var(--color-bg-white);
    transform: rotate(90deg);
}

/* OVERLAY CSS BUGFIX: Ensure cloned menu is forced display! */
.nav-menu-overlay .nav-menu {
    display: flex !important;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    list-style: none;
    padding: 0;
}

.nav-menu-overlay .nav-link {
    color: var(--color-bg-white);
    font-size: 1.3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: normal;
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.nav-menu-overlay .sub-nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    padding: 0.4rem 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: capitalize !important;
    border-bottom: none !important;
    text-align: center;
    display: block;
}

/* Highlight Human Repatriation link inside the mobile menu overlay */
.nav-menu-overlay .sub-nav-link[href="human-repatriation.html"] {
    color: #38bdf8 !important;
    font-weight: 600 !important;
}

.nav-menu-overlay .nav-dropdown {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.nav-menu-overlay .nav-dropdown-menu {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none; /* Controlled via JS toggle */
    width: 100% !important;
    margin-top: 0.5rem !important;
    padding: 0.5rem 0 !important;
    list-style: none !important;
    text-align: center !important;
}

.nav-menu-overlay .nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

.nav-menu-overlay .nav-dropdown-menu li a {
    color: var(--color-gold-light);
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    white-space: normal;
    display: block;
}

/* -------------------------------------------------------------
 * 16. Resource and Grid Layouts for Inner Pages
 * ------------------------------------------------------------- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
}

.resource-card {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.faq-page-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
}

.faq-categories {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.faq-cat-btn {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-navy);
    border-left: 3px solid transparent;
    transition: var(--transition-fast);
}

.faq-cat-btn:hover,
.faq-cat-btn.active {
    background-color: var(--color-bg-white);
    border-left-color: var(--color-gold);
    color: var(--color-gold-dark);
}

/* -------------------------------------------------------------
 * 17. Media Queries & Responsiveness
 * ------------------------------------------------------------- */

/* Tablet Viewports */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }
    .stat-item {
        border-right: none;
    }
    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(197, 168, 128, 0.2);
    }
    .calc-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .faq-page-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faq-categories {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .faq-cat-btn {
        width: auto;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .faq-cat-btn.active {
        border-bottom-color: var(--color-gold);
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
    .header-nav.mobile-active .nav-burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--color-bg-white);
    }
    .header-nav.mobile-active .nav-burger span:nth-child(2) {
        opacity: 0;
    }
    .header-nav.mobile-active .nav-burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--color-bg-white);
    }

    .hero-section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .timeline-line {
        left: 20px;
    }
    .timeline-badge {
        left: 20px;
        transform: none;
    }
    .timeline-panel {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(197, 168, 128, 0.15);
        padding-bottom: 1.5rem;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 100%;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .call-float, .email-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* -------------------------------------------------------------
 * 18. Scroll-Driven Animations & Micro-motions
 * ------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for grids and timelines */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Micro-animations: list item slides */
ul li {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
ul li:hover {
    transform: translateX(4px);
}

/* -------------------------------------------------------------
 * 19. Hero Slideshow (5 Images Change) & Testimonial Carousel
 * ------------------------------------------------------------- */
.hero-slideshow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 0;
    animation: heroSlideshow 30s ease-in-out infinite, kenBurnsAnimation 35s ease-in-out infinite;
}

@keyframes heroSlideshow {
    0%, 16% { background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/airplane_sky_clouds.jpg'); }
    20%, 36% { background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/memorial_casket_candles.jpg'); }
    40%, 56% { background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/aviation_cargo.jpg'); }
    60%, 76% { background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/funeral_roses_candles.jpg'); }
    80%, 96% { background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/service_ashes.jpg'); }
    100% { background-image: linear-gradient(rgba(5, 13, 21, 0.82) 0%, rgba(11, 27, 43, 0.88) 100%), url('../images/airplane_sky_clouds.jpg'); }
}

/* Testimonial Carousel styles */
.testimonials-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 0;
}

.carousel-wrapper {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(10px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
    text-align: center;
    padding: 0 1rem;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.carousel-quote {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-style: italic;
    line-height: 1.7;
    color: var(--color-navy);
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
}

.carousel-author {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-navy);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.carousel-lane {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(11, 27, 43, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dots .dot:hover,
.carousel-dots .dot.active {
    background-color: var(--color-gold-dark);
    transform: scale(1.2);
}

/* Multi-Item Slider on Testimonials page */
.testimonials-slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
}

.testimonials-slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.testimonials-slider-track .resource-card {
    flex: 0 0 calc((100% - 4rem) / 3); /* Default: 3 items display */
    box-sizing: border-box;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .testimonials-slider-track .resource-card {
        flex: 0 0 calc((100% - 2rem) / 2); /* 2 items on tablet */
    }
}

@media (max-width: 768px) {
    .testimonials-slider-track .resource-card {
        flex: 0 0 100%; /* 1 item on mobile */
    }
}

/* Responsive stats grid for subpages */
.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Centered Logo Split Nav Layout styles */
@media (min-width: 1025px) {
    .mobile-logo-only {
        display: none !important;
    }
    .logo-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 1.5rem !important;
        width: 130px !important;
        height: 50px !important;
        position: static !important; /* static forces absolute children to position relative to .nav-container */
        z-index: 1100 !important;
        transform: none !important;
        transition: none !important;
    }
    .logo-item:hover {
        transform: none !important;
        transition: none !important;
    }
    .logo-item .nav-logo {
        position: absolute !important;
        top: -30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        background-color: #faf6ee !important; /* matches header nav warm background */
        border-radius: 50% !important;
        width: 130px !important;
        height: 130px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 8px 25px rgba(11, 27, 43, 0.15) !important;
        border: 2px solid var(--color-gold) !important;
        transition: none !important; /* Disable hover transitions entirely */
    }
    .logo-item .nav-logo:hover {
        transform: translateX(-50%) scale(1) !important;
        box-shadow: 0 8px 25px rgba(11, 27, 43, 0.15) !important;
    }

    .logo-img-large {
        width: 95px !important;
        height: 95px !important;
        object-fit: contain !important;
        display: block !important;
    }
    .nav-container {
        justify-content: space-between !important;
        max-width: 1200px !important;
        padding: 0.1rem 2rem !important;
    }
    .nav-menu-wrapper {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .nav-menu {
        width: 100%;
        justify-content: space-between !important;
        gap: 0 !important;
    }
}

@media (max-width: 1024px) {
    .logo-item {
        display: none !important;
    }
    .mobile-logo-only {
        display: flex !important;
    }
}

/* -------------------------------------------------------------
 * 20. Protocol Grid (8-step process layout)
 * ------------------------------------------------------------- */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

@media (max-width: 992px) {
    .protocol-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .protocol-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
 * 21. Light Cloud & Funeral Comfort Background Gradients
 * ------------------------------------------------------------- */
.bg-clouds, .bg-lilies, .bg-flight, .bg-memorial {
    position: relative !important;
    background-color: var(--color-bg-warm) !important;
    z-index: 1 !important;
    overflow: hidden !important; /* Hide blurred edges */
}

.bg-clouds::before, .bg-lilies::before, .bg-flight::before, .bg-memorial::before, .bg-paperwork::before, .bg-lilies-sharp::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: blur(5px) brightness(1.4) opacity(0.2) !important;
    z-index: -1 !important;
    transform: scale(1.03) !important; /* Hide blurry edge bleeding */
    pointer-events: none !important;
}

.bg-clouds::before {
    background-image: linear-gradient(rgba(250, 246, 238, 0.1), rgba(245, 241, 231, 0.2)), url('../images/bg_clouds.jpg') !important;
}

.bg-lilies::before {
    background-image: linear-gradient(rgba(250, 246, 238, 0.1), rgba(245, 241, 231, 0.2)), url('../images/bg_lilies.jpg') !important;
}

.bg-flight::before {
    background-image: linear-gradient(rgba(250, 246, 238, 0.1), rgba(245, 241, 231, 0.2)), url('../images/bg_flight.jpg') !important;
}

.bg-memorial::before {
    background-image: linear-gradient(rgba(250, 246, 238, 0.1), rgba(245, 241, 231, 0.2)), url('../images/bg_memorial.jpg') !important;
}

.bg-paperwork::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.75)), url('../images/bg_paperwork.jpg') !important;
    filter: none !important;
}

.bg-lilies-sharp::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.8)), url('../images/bg_lilies.jpg') !important;
    filter: none !important;
}

/* -------------------------------------------------------------
 * 22. Leaflet Map Sat-Hybrid Style and Flight Route Animations
 * ------------------------------------------------------------- */
#global-map {
    background-color: #0b172a !important; /* Matches ocean color of the map screenshot */
}

/* Style satellite imagery tiles to match the exact dark olive land and teal ocean from the screenshot */
.leaflet-tile-container img {
    filter: contrast(1.15) brightness(0.68) saturate(0.8) hue-rotate(10deg) !important;
}

/* Static permanent label for countries visible at first glance */
.static-marker-label {
    background: rgba(11, 27, 43, 0.92) !important;
    color: #faf6ee !important;
    border: 1px solid rgba(197, 168, 128, 0.4) !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    font-family: var(--font-body) !important;
    padding: 2px 6px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45) !important;
    white-space: nowrap !important;
}

.leaflet-tooltip-top:before {
    border-top-color: rgba(11, 27, 43, 0.92) !important;
}

/* Flowing flight route dashed lines animation */
@keyframes flowFlight {
    to {
        stroke-dashoffset: -24;
    }
}

.flight-route-line {
    animation: flowFlight 1.4s linear infinite !important;
    stroke-linecap: round !important;
}

/* Service Card Hover Micro-Animations */
.service-card-interactive {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.service-card-interactive:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--color-gold) !important;
}

/* Dropdown Menu Highlights */
.nav-highlight-blue {
    color: #0b5ed7 !important;
    font-weight: 700 !important;
}

.nav-highlight-blue:hover {
    color: #0a58ca !important;
    background-color: rgba(11, 94, 215, 0.08) !important;
}

/* Blinking dot animation for Speak to an Expert button */
.blinking-dot {
    width: 12px;
    height: 12px;
    background-color: #00ff00; /* Neon Laser Green */
    border-radius: 50%;
    display: inline-block;
    animation: led-blink 1s infinite;
}

@keyframes led-blink {
    0%, 100% {
        background-color: #00ff00;
        box-shadow: 0 0 8px #00ff00, 0 0 15px #00ff00;
    }
    50% {
        background-color: #005000;
        box-shadow: 0 0 2px rgba(0, 255, 0, 0.2);
    }
}

