/* =========================================
   SAFER HAVEN.AI - DESIGN SYSTEM
   Person-Centered AI Training Website
   ========================================= */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --color-primary: #1E0B4D;
    /* Deep Navy Purple */
    --color-primary-light: #4A1D8E;
    /* Lighter Purple */
    --color-primary-dark: #120733;
    /* Darker Purple */
    --color-gold: #FDB71A;
    /* Vibrant Gold */
    --color-gold-light: #FDC94A;
    /* Light Gold */
    --color-gold-dark: #E5A515;
    /* Dark Gold */

    /* Secondary Colors */
    --color-accent: #FF6B35;
    /* Warm Orange */
    --color-accent-light: #FF8C66;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-off-white: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Typography — unified on Inter to match the hero treatment site-wide */
    --font-heading: 'Inter', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.5rem;
    /* 24px */
    --space-6: 2rem;
    /* 32px */
    --space-8: 3rem;
    /* 48px */
    --space-10: 4rem;
    /* 64px */
    --space-12: 6rem;
    /* 96px */
    --space-16: 8rem;
    /* 128px */
    --space-20: 10rem;
    /* 160px */
    --space-24: 12rem;
    /* 192px */
    --space-32: 16rem;
    /* 256px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max-width: 1200px;
    --section-padding: 5rem;

    /* Z-Index */
    --z-index-header: 1000;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    color: var(--color-gold);
}

strong {
    font-weight: 600;
    color: var(--color-gray-900);
}

.lead {
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--color-gray-100);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-10);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--text-4xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-10);
}

.section-cta p {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: var(--z-index-header);
    background-color: var(--color-primary);
    /* Deep Purple #1E0B4D */
    box-shadow: 0 4px 12px rgba(30, 11, 77, 0.3);
    transition: all var(--transition-base);
    padding: var(--space-2) 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4); /* Reduced from space-6 to shift menu left */
}

.nav-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    /* Prevent hard overlap by fading out the right edge */
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
    animation: fadeIn 0.8s ease-out forwards;
}

.nav-pattern svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shimmer-gold {
    animation: gold-pulse 4s infinite ease-in-out;
}

@media (max-width: 768px) {
    .nav-pattern {
        width: 80px;
        /* Reduced for mobile */
    }
}

@media (max-width: 480px) {
    .nav-pattern {
        width: 60px;
        /* Even smaller for tiny screens */
    }
}

@keyframes gold-pulse {

    0%,
    100% {
        fill: #FDB71A;
    }

    50% {
        fill: #FDC94A;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Crucial: Clips the shimmer effect to the logo bounds */
}

.logo:hover {
    /* Subtle lift and glow */
    transform: translateY(-1px);
    filter: drop-shadow(0 0 8px rgba(253, 183, 26, 0.2));
}

/* Professional Shimmer Effect */
.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 60%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 10;
    /* Run once on load */
    animation: shimmer-sweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

.logo:hover::after {
    /* Re-trigger animation on hover */
    animation: none;
    height: 200.1%; /* Subtle change to force browser re-render of the animation */
    animation: shimmer-sweep 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes shimmer-sweep {
    0% {
        left: -150%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 250%; /* Move further out */
        opacity: 0;
    }
}

.logo-img {
    height: 90px; /* Reduced further to match previous volume */
    width: auto;
    max-height: 110px; /* Adjusted max-height */
    transition: all 0.3s ease;
    /* Ensures sharp logo rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo-accent {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-4); /* Reduced from space-6 to tighten items */
    list-style: none;
}

.nav-link {
    position: relative;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-white);
    /* Changed to white for purple background */
    padding: var(--space-2) var(--space-1);
    display: inline-block;
    transition: color var(--transition-base), transform var(--transition-base);
    white-space: nowrap; /* Prevents wrapping */
    cursor: pointer;
}

/* --- Professional Dropdown System --- */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(30, 11, 77, 0.96);
    backdrop-filter: blur(12px);
    min-width: 260px;
    padding: var(--space-4) 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(253, 183, 26, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* Arrow indicator on top of dropdown */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(253, 183, 26, 0.2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-6);
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap; /* Keep each item on one line; the hover padding shift must not force a wrap */
}

.dropdown-link:hover {
    background: rgba(253, 183, 26, 0.1);
    color: var(--color-gold);
    padding-left: var(--space-8);
}

/* Chevron indicator for dropdown toggle */
.dropdown-toggle::after {
    content: '▾';
    margin-left: 6px;
    font-size: 0.8em;
    vertical-align: middle;
    color: var(--color-gold);
    opacity: 0.7;
}

/* Mobile Dropdown Adjustments */
@media (max-width: 768px) {
    /* Mobile Dropdown Adjustments - Forced Overrides */
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none; /* Overridden by .active below */
        transform: none !important; /* Prevents the desktop translateX(-50%) shift */
        left: 0 !important;
        min-width: 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        margin-top: var(--space-2) !important;
        animation: slideDown 0.3s ease-out;
    }

    .dropdown-menu::after {
        display: none !important; /* Hide desktop arrow on mobile */
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .dropdown-link {
        padding: var(--space-3) var(--space-4) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        text-align: center !important; /* Centered for mobile */
        display: block !important;
    }

    .dropdown-link:hover {
        padding-left: var(--space-4) !important; /* Prevent shifting left on mobile hover */
        background: rgba(253, 183, 26, 0.15) !important;
        color: var(--color-gold) !important;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Simplified AI-Themed Hover Effect - Gradient Underline with Glow */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--color-gold);
}

/* Shimmer animation for gradient - only on hover */
@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Hover state */
@media (hover: hover) {
    .nav-link:hover {
        color: var(--color-gold);
        /* Gold on hover */
        transform: translateY(-1px);
    }

    .nav-link:hover::before {
        transform: scaleX(1);
        animation: shimmer 2s ease-in-out infinite;
    }
}

/* Active state with pulsing effect */
.nav-link.active {
    color: var(--color-gold);
    /* Gold for active */
    font-weight: 600;
}

.nav-link.active::before {
    transform: scaleX(1);
    animation: shimmer 2s ease-in-out infinite, pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 8px var(--color-gold);
    }

    50% {
        box-shadow: 0 0 15px var(--color-gold), 0 0 25px rgba(253, 183, 26, 0.5);
    }
}

/* CTA Button - Restored Original Clean Style */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* Fixed height to prevent vertical distortion */
    padding: 0 var(--space-6);
    background-color: var(--color-gold);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(253, 183, 26, 0.25);
    white-space: nowrap;
}

.nav-cta:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(253, 183, 26, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    /* Changed to white for purple background */
    transition: all var(--transition-base);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-primary);
    padding: var(--space-4) var(--space-6);
}

@media (hover: hover) {
    .btn-primary:hover {
        background-color: var(--color-gold-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        color: var(--color-primary);
    }

    .btn-secondary:hover {
        background-color: var(--color-primary);
        color: var(--color-white);
        transform: translateY(-2px);
    }
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: calc(var(--space-4) - 2px) calc(var(--space-6) - 2px);
}



.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: calc(var(--space-3) - 2px) calc(var(--space-5) - 2px);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-lg {
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-12) 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-gold) 100%);
    opacity: 0.95;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(253, 183, 26, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 29, 142, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--text-6xl);
    color: var(--color-white);
    margin-bottom: var(--space-5);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-off-white);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin-top: var(--space-8);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-off-white);
    font-size: var(--text-sm);
    font-weight: 500;
}

.trust-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.service-card {
    position: relative;
    background-color: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.service-card:hover {
    border-color: var(--color-gold);
    /* Shadow added by 3D tilt script */
}

.service-card.featured {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: var(--space-6);
    background-color: var(--color-gold);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    color: var(--color-gold);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5px;
}

.service-title {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.service-description {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
}

.service-price {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-gold);
    font-size: var(--text-base);
}

@media (hover: hover) {
    .service-link:hover {
        color: var(--color-gold-dark);
        gap: var(--space-3);
    }
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: center;
}

.feature-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.feature-quote {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background-color: var(--color-white);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-gray-700);
    box-shadow: var(--shadow-sm);
}

.feature-quote cite {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--text-base);
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== FEATURE LIST ===== */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.feature-item {
    display: flex;
    gap: var(--space-4);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--color-gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2px;
}

.feature-title {
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.feature-item p {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    margin: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0 0 var(--space-6);
    /* Perfectly symmetrical with the gap above the cards */
}

.testimonial-banner {
    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);
    margin-bottom: var(--space-6);
    /* Reduced to pull cards higher */
    text-align: center;
}

.testimonial-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    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%);
    transform: skewX(-25deg);
    animation: shine-sweep 6s infinite ease-in-out;
}

.testimonials-dark .section-header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.testimonials-dark .section-label {
    color: var(--color-gold-light);
    margin-bottom: 0;
}

.testimonial-banner .section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    font-style: italic;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.testimonial-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    line-height: 1.3;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background-color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.testimonial-card:hover {
    border-color: var(--color-gold);
    /* Shadow and transform added by 3D tilt script */
}

.testimonial-rating {
    margin-bottom: var(--space-4);
    color: var(--color-gold);
    font-size: var(--text-lg);
}

.star {
    margin-right: 2px;
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.testimonial-author {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--text-base);
}

.author-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--text-base);
}

.author-title {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-12) 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-text {
    font-size: var(--text-xl);
    color: var(--color-off-white);
    margin-bottom: var(--space-6);
}

.cta-note {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-off-white);
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-off-white);
    padding: var(--space-6) 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-logo {
    display: block;
    margin-bottom: var(--space-2);
    /* Further reduced from space-4 */
}

.footer-logo-img {
    height: 100px;
    /* Increased from 70px */
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0;
    /* Removed redundant bottom margin */
}

.footer-description {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    /* Slightly dimmer for contrast */
    line-height: 1.7;
}

.footer-description strong {
    color: #ffffff;
    /* Reverted to crisp white pop */
    font-weight: 750;
    /* Extra bold pop */
}

.footer-heading {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a,
.footer-contact a,
.footer-legal a {
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-size: var(--text-sm);
    color: var(--color-gray-300);
    text-decoration: none;
    display: inline-block;
    padding: var(--space-1) 0;
    transition: color 0.4s ease, transform 0.4s ease;
}

/* Shimmering Gold Underline Animation - Match Navigation */
.footer-links a::after,
.footer-contact a::after,
.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--color-gold);
}

@media (hover: hover) {
    .footer-links a:hover,
    .footer-contact a:hover,
    .footer-legal a:hover {
        color: var(--color-gold);
        transform: translateY(-2px);
    }

    .footer-links a:hover::after,
    .footer-contact a:hover::after,
    .footer-legal a:hover::after {
        transform: scaleX(1);
        animation: shimmer 2s infinite linear;
    }
}

.footer-cta {
    margin-top: var(--space-6);
    /* Pushed down as requested */
}

.btn-footer-bling {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-gold);
    color: var(--color-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(253, 183, 26, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@media (hover: hover) {
    .btn-footer-bling:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(253, 183, 26, 0.5);
        color: var(--color-primary-dark);
    }

    .btn-footer-bling:hover::before {
        left: 150%;
        transition: left 0.8s ease-in-out;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

.footer-legal {
    display: flex;
    gap: var(--space-5);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --text-6xl: 3rem;
        /* 48px */
        --text-5xl: 2.5rem;
        /* 40px */
        --text-4xl: 2rem;
        /* 32px */
        --section-padding: 4rem;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        /* 40px */
        --text-5xl: 2rem;
        /* 32px */
        --text-4xl: 1.75rem;
        /* 28px */
        --section-padding: 3rem;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        /* Below navbar */
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: stretch; /* Stretching to full width */
        padding: var(--space-8) var(--space-6);
        gap: var(--space-6);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link, .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        min-width: 30px; /* Ensure it doesn't squash */
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%; /* Spans full 30px width of the button */
        height: 2px; /* Thinner lines for a cleaner burger look */
        background-color: var(--color-white);
        border-radius: 2px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-img {
        height: 50px; /* Further reduced height for mobile to fit volume */
    }

    /* Clear the absolute nav-pattern */
    .nav-wrapper {
        padding-left: 60px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-trust-badges {
        flex-direction: column;
        gap: var(--space-4);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-6: 1.5rem;
        --section-padding: 2.5rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .logo-img {
        height: 80px;
    }

    .nav-wrapper {
        padding-left: 45px;
    }

    .footer-logo-img {
        height: 90px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

/* ===== ANIMATIONS ===== */
@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);
    }
}

/* ===== REGULATED PAGE GOLD CTA BANNER ===== */
.gold-cta-banner {
    width: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #F2D381 50%, #D4AF37 100%);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.15), 0 4px 20px rgba(212, 175, 55, 0.15);
    z-index: 10;
}

.gold-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-sweep 6s infinite ease-in-out;
    pointer-events: none;
}

.gold-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.gold-cta-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gold-cta-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 11, 77, 0.2);
    text-align: center;
    cursor: pointer;
}

.gold-cta-btn:hover {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 11, 77, 0.35);
}

@media (max-width: 768px) {
    .gold-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .gold-cta-text {
        font-size: var(--text-lg);
    }
    
    .gold-cta-btn {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box;
    }
}