/* ============================================
   Hexcellence Consulting — Unified Style System
   Color: Deep Navy + Gold
   Target: High-net-worth executives
   ============================================ */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
    /* Primary Palette — Navy + Gold only */
    --navy-900: #0e1a35;
    --navy-800: #132242;
    --navy-700: #1a2e54;
    --navy-600: #1f3662;
    --navy-500: #264078;
    --navy-400: #30518a;
    --navy-300: #4469a0;
    --navy-200: #6488b8;
    --navy-100: #8fa5c8;
    --navy-50: #c5d3e8;

    --gold-600: #8b6914;
    --gold-500: #a8841c;
    --gold-400: #c9a227;
    --gold-300: #d4b44a;
    --gold-200: #e0c76e;
    --gold-100: #ebd892;
    --gold-50: #f5ebc0;

    /* Neutral */
    --white: #ffffff;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-30: rgba(255, 255, 255, 0.3);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container-max: 1280px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--navy-900);
    color: var(--white-90);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--gold-300);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

a:hover {
    color: var(--gold-100);
}

/* === SELECT / OPTION DARK THEME === */
select {
    background-color: #132242;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #c9a227;
}

/* Force dropdown options to use dark background */
select option {
    background-color: #132242 !important;
    color: #ffffff !important;
    padding: 8px 12px;
}

select option:hover,
select option:checked {
    background-color: #1a2e54 !important;
    color: #f5d170 !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === UTILITY === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.gold-text {
    color: var(--gold-300);
}

.gold-accent {
    color: var(--gold-400);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--white-10);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s var(--ease-smooth);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--white-70);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover {
    color: var(--gold-300);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900) !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-smooth) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white-70);
    transition: all 0.3s;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(22, 36, 71, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(38, 61, 110, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 162, 39, 0.06) 0%, transparent 40%),
        var(--navy-900);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-400);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white-05);
    border: 1px solid var(--gold-400);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 24px;
    animation: pulse-border 3s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: var(--gold-400);
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.2);
    }

    50% {
        border-color: var(--gold-300);
        box-shadow: 0 0 12px 0 rgba(201, 162, 39, 0.15);
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 .gold-line {
    display: block;
    color: var(--gold-300);
    background: linear-gradient(90deg, var(--gold-400), var(--gold-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--white-70);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Stats Visualization */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    padding: 28px 32px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.stat-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}

.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-300);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--white-50);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-smooth);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.3);
    color: var(--navy-900);
}

.btn-outline {
    background: transparent;
    color: var(--gold-300);
    border: 1px solid var(--gold-400);
}

.btn-outline:hover {
    background: var(--white-05);
    border-color: var(--gold-300);
    transform: translateY(-2px);
    color: var(--gold-200);
}

/* === SPLIT SECTION === */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 6vw, 100px);
}

.split-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 4vw, 80px);
    position: relative;
}

.split-dark {
    background: var(--navy-800);
}

.split-darker {
    background: var(--navy-900);
}

/* Section labels */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--white);
}

.section-desc {
    font-size: 1rem;
    color: var(--white-70);
    line-height: 1.8;
    max-width: 520px;
}

/* === SERVICE ICONS === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.service-card {
    padding: 48px 32px;
    text-align: center;
    border: 1px solid var(--white-05);
    background: var(--navy-800);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: all 0.4s var(--ease-smooth);
    transform: translateX(-50%);
}

.service-card:hover {
    background: var(--navy-700);
    transform: translateY(-4px);
}

.service-card:hover::after {
    width: 60%;
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-900);
    font-size: 1.4rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.service-card p {
    font-size: 0.82rem;
    color: var(--white-50);
    line-height: 1.6;
}

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    text-align: center;
    position: relative;
}

.team-photo-wrap {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-400);
    padding: 3px;
    transition: all 0.4s var(--ease-smooth);
}

.team-photo-wrap:hover {
    border-color: var(--gold-300);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 0.85rem;
    color: var(--gold-300);
    margin-bottom: 4px;
}

.team-card .team-certs {
    font-size: 0.75rem;
    color: var(--white-50);
    letter-spacing: 0.04em;
}

/* === TESTIMONIALS === */
.testimonial-track {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 20px 0 32px;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-400) var(--white-10);
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.testimonial-track:active {
    cursor: grabbing;
}

.testimonial-track::-webkit-scrollbar {
    height: 4px;
}

.testimonial-track::-webkit-scrollbar-track {
    background: var(--white-10);
    border-radius: 2px;
}

.testimonial-track::-webkit-scrollbar-thumb {
    background: var(--gold-400);
    border-radius: 2px;
}

.testimonial-card {
    flex: 0 0 min(480px, 85vw);
    scroll-snap-align: start;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transition: all 0.4s var(--ease-smooth);
}

.testimonial-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-4px);
}

.testimonial-card .quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--gold-400);
    line-height: 1;
    opacity: 0.4;
    position: absolute;
    top: 16px;
    left: 28px;
}

.testimonial-card blockquote {
    font-size: 0.92rem;
    color: var(--white-70);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-400);
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
}

.testimonial-author-title {
    font-size: 0.78rem;
    color: var(--gold-300);
}

/* === CLIENT LOGOS === */
.client-scroll {
    display: flex;
    gap: 48px;
    animation: scroll-logos 30s linear infinite;
    will-change: transform;
}

.client-scroll img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: all 0.4s var(--ease-smooth);
}

.client-scroll img:hover {
    opacity: 0.9;
    filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(10deg);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-marquee {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--navy-900), transparent);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--navy-900), transparent);
}

/* === RADAR CHART (CSS) === */
.radar-wrap {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    position: relative;
    margin: 0 auto;
}

/* === DONUT CHART === */
.donut-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart .center-text {
    position: absolute;
    text-align: center;
}

.donut-chart .center-text .big {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-300);
}

/* === PARALLAX === */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    text-align: center;
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.04) 0%, transparent 60%);
}

.cta-section .section-title {
    max-width: 700px;
    margin: 0 auto 16px;
}

.cta-section .section-desc {
    max-width: 560px;
    margin: 0 auto 36px;
}

/* === FOOTER === */
.footer {
    background: var(--navy-800);
    border-top: 1px solid var(--white-10);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 36px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--white-50);
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gold-300);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul a {
    color: var(--white-50);
    font-size: 0.85rem;
}

.footer ul a:hover {
    color: var(--gold-300);
}

.footer-bottom {
    border-top: 1px solid var(--white-10);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--white-30);
}

/* === COUNTER ANIMATION === */
.counter {
    display: inline-block;
}

/* === PROGRESS BAR VISUAL === */
.progress-bar-wrap {
    margin-bottom: 16px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--white-70);
}

.progress-bar-track {
    height: 6px;
    background: var(--white-10);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s var(--ease-out);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 30, 0.98);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--white-10);
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}