/*
 Theme Name:   Kadence Child
 Theme URI:    https://www.kadencewp.com/
 Description:  Kadence Child Theme - Aurora Edition v3.0
 Template:     kadence
 Version:      3.0.0
 Text Domain:  kadence-child
*/

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('./assets/fonts/cairo.woff2') format('woff2');
}

/* ==================================
   CSS Variables — Aurora Tokens
================================== */
:root {
    --color-primary: #0A192F;
    --color-primary-light: #172a45;
    --color-primary-dark: #050E1C;
    --color-gold: #D4AF37;
    --color-gold-light: #F5D77A;
    --color-gold-hover: #AA8114;
    --color-green: #10B981;
    --color-green-dark: #059669;
    --color-cyan: #06B6D4;
    --color-blue: #3B82F6;
    --color-red: #EF4444;
    --color-amber: #F59E0B;

    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-text-soft: #94a3b8;
    --color-bg-base: #f7f9fc;
    --color-bg-soft: #eef2f7;
    --color-border: #e2e8f0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.92);
    --glass-bg-dark: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    --glass-shadow-lg: 0 25px 60px -15px rgba(15, 23, 42, 0.15);

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #D4AF37 0%, #F5D77A 50%, #B8860B 100%);
    --grad-primary: linear-gradient(135deg, #0A192F 0%, #172a45 60%, #1e3a5f 100%);
    --grad-aurora: linear-gradient(135deg, #0A192F 0%, #16284a 35%, #1e3a8a 70%, #0A192F 100%);
    --grad-mesh: radial-gradient(at 20% 30%, rgba(212,175,55,0.18) 0px, transparent 50%),
                 radial-gradient(at 80% 20%, rgba(59,130,246,0.18) 0px, transparent 50%),
                 radial-gradient(at 60% 80%, rgba(16,185,129,0.12) 0px, transparent 50%);

    /* Easing */
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: all 0.4s var(--ease-out);

    /* Radii */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
}

/* ==================================
   Base
================================== */
body.page-template-page-custom-home {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    overflow-x: hidden;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.page-template-page-custom-home::selection,
body.page-template-page-custom-home *::selection {
    background: var(--color-gold);
    color: #fff;
}

.premium-home.aurora-edition .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ffeaa7 50%, var(--color-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-padding { padding: 110px 0; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212,175,55,0.14), rgba(212,175,55,0.06));
    color: var(--color-gold-hover);
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 16px;
    border: 1px solid rgba(212,175,55,0.25);
    letter-spacing: 0.2px;
}
.section-title {
    font-size: clamp(1.85rem, 3.4vw, 2.85rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.title-divider {
    width: 90px;
    height: 5px;
    background: var(--grad-gold);
    margin: 22px auto 28px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}
.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.85;
}

/* Utility */
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 56px; }
.text-center { text-align: center; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.inline-block { display: inline-block; }
.mr-2 { margin-right: 8px; }
.max-w-700 { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.z-10 { z-index: 10; position: relative; }

/* ==================================
   Glassmorphism
================================== */
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.glass-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid rgba(255,255,255,0.95);
    border-left: 1px solid rgba(255,255,255,0.95);
    box-shadow: var(--glass-shadow-lg);
    border-radius: var(--r-xl);
}

/* ==================================
   Animations
================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 220ms; }
.delay-3 { transition-delay: 340ms; }
.delay-4 { transition-delay: 460ms; }

@keyframes shimmerText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(212,175,55,0.4)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(212,175,55,0.85)); }
}
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(40px, -60px) scale(1.12); }
    66%  { transform: translate(-25px, 25px) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes meshDrift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(40px,-30px,0) scale(1.15); }
    100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes badgeDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.7); }
    50% { box-shadow: 0 0 0 8px rgba(212,175,55,0); }
}

.pulse-soft { animation: pulseGlow 3.4s infinite ease-in-out; display: inline-block; }
.relative-glow:hover .pulse-soft {
    animation-play-state: paused;
    transform: scale(1.18) rotate(-6deg);
    transition: 0.3s var(--ease-spring);
}

/* Decorative ambient blobs */
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
    animation: blobFloat 18s infinite alternate ease-in-out;
}
.blob-blue { width: 420px; height: 420px; background: var(--color-blue); top: 8%; right: 4%; }
.blob-gold { width: 360px; height: 360px; background: var(--color-gold); bottom: 8%; left: 0%; animation-delay: -6s; }

/* ==================================
   Hide auto Kadence page title on custom home
================================== */
body.sc-hide-page-title .methaly-services-block,
body.sc-hide-page-title .methaly-main-h1,
body.sc-hide-page-title .entry-hero,
body.sc-hide-page-title .entry-hero-container-inner,
body.sc-hide-page-title #inner-wrap > .entry-hero,
body.sc-hide-page-title .site-main > .entry-header,
body.sc-hide-page-title .site .entry-header .entry-title,
body.sc-hide-page-title .page-title,
body.sc-hide-page-title .content-title-style-above .entry-hero,
body.sc-hide-page-title .content-title-style-normal > .site-main > article > .entry-header,
body.page-template-page-custom-home .methaly-services-block,
body.page-template-page-custom-home .methaly-main-h1,
body.page-template-page-custom-home .entry-hero,
body.page-template-page-custom-home > .site > .site-inner > .entry-hero,
body.page-template-page-custom-home .site-main > article > .entry-header {
    display: none !important;
}

/* ==================================
   1. HERO — Aurora
================================== */
.hero-section {
    position: relative;
    padding: 200px 0 180px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(59,130,246,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(212,175,55,0.18) 0%, transparent 50%),
        linear-gradient(135deg, rgba(5, 14, 28, 0.96) 0%, rgba(10, 25, 47, 0.92) 60%, rgba(23, 42, 69, 0.95) 100%);
    z-index: 1;
}
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}
.aurora-mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    will-change: transform;
}
.mesh-blob.mesh-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    top: -120px; left: -100px;
    animation: meshDrift 16s ease-in-out infinite alternate;
}
.mesh-blob.mesh-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation: meshDrift 22s ease-in-out infinite alternate;
    animation-delay: -6s;
}
.mesh-blob.mesh-3 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
    top: 35%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    animation: meshDrift 18s ease-in-out infinite alternate;
    animation-delay: -10s;
}
.hero-container {
    position: relative;
    z-index: 3;
}
.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 8px 24px rgba(0,0,0,0.2);
}
.badge-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--color-gold);
    animation: badgeDot 2s infinite;
}
.hero-pretitle {
    display: inline-block;
    margin: 18px 0 14px;
    padding: 0 18px;
    color: var(--color-gold-light);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.hero-pretitle::before,
.hero-pretitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 36px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold-light));
    opacity: 0.7;
}
.hero-pretitle::before { right: -42px; transform: scaleX(-1); }
.hero-pretitle::after  { left: -42px; }

.hero-title {
    font-size: clamp(2.2rem, 5.6vw, 4.4rem);
    font-weight: 900;
    margin: 0 0 26px;
    color: #fff;
    text-shadow: 0 12px 40px rgba(0,0,0,0.55);
    letter-spacing: -1px;
    line-height: 1.2;
}
.hero-title .text-gradient { display: inline-block; }
@media (max-width: 640px) {
    .hero-pretitle::before, .hero-pretitle::after { display: none; }
}
.text-gradient {
    background: linear-gradient(135deg, var(--color-gold) 0%, #fff 50%, var(--color-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 5s linear infinite;
}
.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 42px;
    opacity: 0.95;
    line-height: 1.85;
}
.hero-subtitle strong { color: var(--color-gold-light); font-weight: 800; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.08rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    line-height: 1;
}
.btn .btn-icon { font-size: 1.2rem; line-height: 1; }
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease-out);
    z-index: -1;
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-4px); }

.btn-glass-gold {
    background: var(--grad-gold);
    background-size: 200% 200%;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.45), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-glass-gold:hover {
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255,255,255,0.5);
    background-position: 100% 100%;
}
.btn-glass-outline {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.32);
    color: #fff !important;
}
.btn-glass-outline:hover { border-color: #fff; }

/* Hero mini stats */
.hero-mini-stats {
    margin-top: 56px;
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 18px 32px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 16px 50px rgba(0,0,0,0.35);
}
.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    color: #fff;
}
.mini-stat strong {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--color-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mini-stat .plus {
    font-size: 1.1rem;
    color: var(--color-gold-light);
    font-weight: 900;
    margin-right: 2px;
}
.mini-stat em {
    font-style: normal;
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 6px;
    font-weight: 600;
}
.mini-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
}

/* Shape divider */
.hero-shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 4;
}
.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.hero-shape-divider .shape-fill { fill: var(--color-bg-base); }

/* ==================================
   2. TRUST BAR
================================== */
.trust-bar-section {
    margin-top: -70px;
    position: relative;
    z-index: 20;
}
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 36px 32px;
    gap: 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 0;
    position: relative;
}
.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}
.trust-icon { font-size: 2.4rem; }
.trust-text { display: flex; flex-direction: column; }
.trust-text strong { color: var(--color-primary); font-size: 1.08rem; line-height: 1.3; }
.trust-text span { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 4px; }

@media (max-width: 1024px) {
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
    .trust-bar { grid-template-columns: 1fr; padding: 24px; }
    .trust-item::after { display: none !important; }
}

/* ==================================
   3. MICRO-SERVICES — 3D Tilt Cards
================================== */
.micro-services-section { background: var(--color-bg-base); }
.css-grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.micro-card {
    position: relative;
    border-radius: var(--r-lg);
    text-decoration: none;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 30px -15px rgba(15, 23, 42, 0.08);
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
    isolation: isolate;
}
.micro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent 30%, rgba(212, 175, 55, 0.55), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
    z-index: 2;
}
.micro-card:hover::before { opacity: 1; }

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,55,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.micro-card:hover .card-glow { opacity: 1; }

.micro-card-inner {
    position: relative;
    z-index: 3;
    padding: 32px 28px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 18px;
}
.micro-card:hover {
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.18);
}
.micro-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.micro-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-bg-soft), #fff);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 1px 0 #fff, 0 10px 20px -10px rgba(15,23,42,0.15);
    transition: transform 0.5s var(--ease-spring);
}
.micro-card:hover .micro-icon-wrap { transform: scale(1.08) rotate(-6deg); }
.micro-emoji { line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18)); }

.micro-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--color-gold-hover);
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.micro-card[data-color="blue"] .micro-tag { color: #1d4ed8; background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }
.micro-card[data-color="red"] .micro-tag { color: #b91c1c; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.micro-card[data-color="amber"] .micro-tag { color: #b45309; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.micro-card[data-color="green"] .micro-tag { color: #047857; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
.micro-card[data-color="cyan"] .micro-tag { color: #0e7490; background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.3); }

.micro-content { flex-grow: 1; }
.micro-content h3 {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--color-primary);
    margin: 0 0 12px 0;
    transition: color 0.3s;
    line-height: 1.4;
}
.micro-card:hover .micro-content h3 { color: var(--color-gold-hover); }
.micro-content p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    margin: 0;
    line-height: 1.75;
}
.micro-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px dashed var(--color-border);
}
.micro-cta {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.micro-card:hover .micro-cta { color: var(--color-gold-hover); }
.micro-arrow {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.4s var(--ease-spring);
}
.micro-card:hover .micro-arrow { transform: translateX(-6px); }

/* ==================================
   4. STATS STRIP
================================== */
.stats-strip-section {
    padding: 30px 0;
    background: var(--color-bg-base);
}
.stats-strip {
    background: var(--grad-aurora);
    border-radius: var(--r-xl);
    padding: 50px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(10, 25, 47, 0.45);
    isolation: isolate;
}
.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-mesh);
    opacity: 0.7;
    z-index: -1;
}
.stats-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    z-index: -1;
}
.stat-cell {
    text-align: center;
    color: #fff;
    position: relative;
}
.stat-cell:not(:last-child)::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18), transparent);
}
.stat-cell .stat-icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.stat-cell strong {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-cell .suffix {
    font-size: 1.6rem;
    color: var(--color-gold-light);
    font-weight: 900;
    margin-right: 4px;
}
.stat-cell em {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-top: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; gap: 32px; }
    .stat-cell:nth-child(2)::after { display: none; }
}

/* ==================================
   5. METHODOLOGY
================================== */
.methodology-section { background: #fff; }
.flex-methodology {
    display: flex;
    align-items: center;
    gap: 70px;
}
.methodology-text { flex: 1; }
.methodology-image { flex: 1; position: relative; }

.steps-list { list-style: none; padding: 0; margin: 0; position: relative; }
.steps-list::before {
    content: '';
    position: absolute;
    right: 24px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    opacity: 0.4;
}
.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 32px;
    position: relative;
}
.steps-list li:last-child { margin-bottom: 0; }
.step-num {
    width: 52px;
    height: 52px;
    background: var(--grad-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 14px 28px rgba(212,175,55,0.4), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    z-index: 2;
}
.step-info h4 { font-size: 1.28rem; font-weight: 900; color: var(--color-primary); margin: 6px 0 10px; }
.step-info p { color: var(--color-text-muted); font-size: 1rem; margin: 0; line-height: 1.8; }

.glass-image-wrapper {
    position: relative;
    border-radius: var(--r-xl);
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 30px 60px -20px rgba(10, 25, 47, 0.18);
}
.img-placeholder {
    width: 100%;
    height: 520px;
    background: url(https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=900&q=80) center/cover no-repeat;
    border-radius: var(--r-lg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.floating-badge {
    position: absolute;
    padding: 18px 22px;
    text-align: center;
    border-radius: var(--r-md);
    color: var(--color-primary);
    animation: float 4.5s ease-in-out infinite;
    box-shadow: 0 20px 40px -15px rgba(10,25,47,0.25);
}
.floating-badge.badge-1 { bottom: 50px; right: -22px; }
.floating-badge.badge-2 { top: 40px; left: -22px; animation-delay: -2s; }
.floating-badge .badge-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-gold-hover);
}
.floating-badge .badge-cap {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 992px) {
    .flex-methodology { flex-direction: column; gap: 60px; }
    .floating-badge.badge-1 { right: 20px; }
    .floating-badge.badge-2 { left: 20px; }
}

/* ==================================
   6. CERTIFICATIONS
================================== */
.certifications-section {
    background: #fff;
    padding: 70px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.cert-title {
    text-align: center;
    font-weight: 800;
    color: var(--color-text-soft);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 36px;
}
.cert-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.cert-circle {
    background: var(--color-bg-base);
    color: var(--color-primary);
    font-weight: 800;
    padding: 16px 32px;
    border-radius: 999px;
    border: 2px dashed #cbd5e1;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}
.cert-circle:hover {
    border-color: var(--color-gold);
    color: var(--color-gold-hover);
    transform: translateY(-4px) scale(1.04);
    background: #fff;
    box-shadow: 0 14px 30px -12px rgba(212,175,55,0.4);
    border-style: solid;
}

/* ==================================
   7. TESTIMONIALS
================================== */
.testimonials-section {
    background: var(--color-bg-base);
    position: relative;
    overflow: hidden;
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.testi-card {
    padding: 44px 32px 32px;
    border-radius: var(--r-xl);
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px -25px rgba(15, 23, 42, 0.15);
    transition: var(--transition-smooth);
}
.testi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.22);
    border-color: rgba(212, 175, 55, 0.35);
}
.testi-quote-mark {
    position: absolute;
    top: 12px;
    right: 24px;
    font-size: 6rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.15;
    font-family: Georgia, serif;
    font-weight: 900;
}
.testi-stars { color: var(--color-amber); font-size: 1.4rem; letter-spacing: 3px; margin-bottom: 18px; }
.testi-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-main);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.25);
    flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 1.1rem; color: var(--color-primary); }
.testi-author span { color: var(--color-text-muted); font-size: 0.88rem; }

/* ==================================
   8. FAQ ACCORDION
================================== */
.faq-section { background: #fff; }
.faq-wrap {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}
.faq-head .section-desc a {
    color: var(--color-gold-hover);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.faq-list {
    margin-top: 44px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-item[open] {
    background: #fff;
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.15);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-gold-hover); }
.faq-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-spring);
    box-shadow: 0 8px 18px -6px rgba(212,175,55,0.5);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
    padding: 0 28px 26px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.9;
    border-top: 1px dashed var(--color-border);
    padding-top: 20px;
    margin: 0 0;
}

/* ==================================
   9. SEO ARTICLES
================================== */
.latest-articles-section { background: var(--color-bg-base); }
.articles-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 12px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.post-card {
    background: #fff;
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px -25px rgba(15, 23, 42, 0.12);
    transition: var(--transition-smooth);
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.2);
    border-color: rgba(212, 175, 55, 0.35);
}
.post-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: block;
}
.post-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.post-card:hover .post-img { transform: scale(1.12); }
.post-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,25,47,0.55) 0%, transparent 50%);
    pointer-events: none;
}
.post-cat-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--grad-gold);
    color: #fff;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.82rem;
    z-index: 2;
    box-shadow: 0 10px 22px -8px rgba(212,175,55,0.6);
}
.fallback-gradient { width: 100%; height: 100%; background: var(--grad-aurora); }
.post-card-content { padding: 28px 28px 26px; flex-grow: 1; display: flex; flex-direction: column; }
.post-meta {
    display: flex;
    gap: 18px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
    font-weight: 600;
}
.post-title a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.55;
    transition: color 0.3s;
    display: block;
    margin-bottom: 18px;
}
.post-title a:hover { color: var(--color-gold-hover); }
.read-more-modern {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-blue);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.3s;
}
.read-more-modern span {
    font-size: 1.2rem;
    transition: transform 0.4s var(--ease-spring);
}
.read-more-modern:hover { color: var(--color-primary); }
.read-more-modern:hover span { transform: translateX(-6px); }

/* ==================================
  10. CTA SECTION
================================== */
.cta-section { padding: 100px 0 130px; background: #fff; }
.cta-glass-box {
    background: var(--grad-aurora);
    border-radius: 36px;
    padding: 90px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -30px rgba(10, 25, 47, 0.55);
    isolation: isolate;
}
.cta-glass-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.18) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.cta-glass-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: -1;
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: blobFloat 18s ease-in-out infinite alternate;
}
.cta-orb.orb-1 { width: 360px; height: 360px; background: var(--color-gold); top: -100px; right: -80px; }
.cta-orb.orb-2 { width: 320px; height: 320px; background: var(--color-blue); bottom: -100px; left: -80px; animation-delay: -8s; }

.cta-badge {
    background: rgba(212,175,55,0.18) !important;
    color: var(--color-gold-light) !important;
    border-color: rgba(212,175,55,0.4) !important;
}
.cta-glass-box h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin: 14px 0 18px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.cta-glass-box p {
    color: #cbd5e1;
    font-size: 1.18rem;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.85;
}
.cta-glass-box strong { color: var(--color-gold-light); font-weight: 900; }
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}
.btn-glass-green {
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
}
.shadow-glow { box-shadow: 0 16px 40px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255,255,255,0.3); }
.shadow-glow:hover { box-shadow: 0 22px 50px rgba(16, 185, 129, 0.6); }
.shadow-glow-navy { box-shadow: 0 14px 36px rgba(255, 255, 255, 0.08); }
.shadow-glow-navy:hover { box-shadow: 0 20px 50px rgba(255, 255, 255, 0.18); }

@media (max-width: 768px) {
    .cta-glass-box { padding: 60px 24px; border-radius: 24px; }
    .cta-actions .btn { width: 100%; }
}

/* ==================================
   Sticky Mobile CTA Bar
================================== */
.sc-sticky-bar {
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 9999;
    display: none;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 18px;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.25);
}
.sc-sticky-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 12px;
    color: #fff !important;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.3s var(--ease-spring);
}
.sc-sticky-btn .sb-ic { font-size: 1.15rem; }
.sc-sticky-btn:active { transform: scale(0.96); }
.sc-call { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); }
.sc-wa { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }

@media (max-width: 768px) {
    .sc-sticky-bar { display: flex; }
    body.page-template-page-custom-home { padding-bottom: 90px; }
}

/* ==================================
   Mobile Tweaks
================================== */
@media (max-width: 992px) {
    .section-padding { padding: 80px 0; }
    .hero-section { padding: 150px 0 140px; }
}
@media (max-width: 768px) {
    .hero-mini-stats { gap: 16px; padding: 14px 18px; flex-wrap: wrap; }
    .mini-divider { display: none; }
    .hero-actions .btn { width: 100%; }
    .hero-actions { flex-direction: column; }
    .articles-head { flex-direction: column; align-items: flex-start; }
    .testi-quote-mark { font-size: 4.5rem; }
}

/* ============================================================
   FORCE FULL-WIDTH for custom home (kill leftover white edges)
   The parent theme constrains #inner-wrap with section-bg.
   We force the home template to take 100% width and unified bg.
============================================================ */
body.page-template-page-custom-home,
body.page-template-page-custom-home #wrapper.site {
    background-color: #ffffff !important;
}
body.page-template-page-custom-home main#inner-wrap,
body.page-template-page-custom-home #inner-wrap.wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background-color: transparent !important;
}
body.page-template-page-custom-home #primary.site-main.premium-home,
body.page-template-page-custom-home main#primary.premium-home {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    overflow-x: clip;
}
/* Make the hero & all full-bleed sections truly edge-to-edge */
body.page-template-page-custom-home .premium-home > section {
    width: 100%;
    max-width: 100%;
}
/* Sections that previously used the off-white bg now match unified white */
body.page-template-page-custom-home .micro-services-section,
body.page-template-page-custom-home .stats-strip-section,
body.page-template-page-custom-home .testimonials-section,
body.page-template-page-custom-home .latest-articles-section {
    background-color: #ffffff !important;
}

/* ============================================================
   GLOBAL HEADER & MENU — Aurora Premium (applies site-wide)
============================================================ */

/* ----- Unified background, kill the parent's forced gray container ----- */

/* The site itself */
html, body,
body #wrapper.site,
body div#wrapper {
    background-color: #ffffff !important;
}

/* Parent custom.css forces #f4f7fa on .site-container & main#inner-wrap.
   Reset to transparent so the unified body color shows through. */
body .site-container,
body main#inner-wrap,
body #inner-wrap.wrap,
body #masthead .site-container,
body #masthead .site-header-row-inner,
body #masthead .site-header-wrap,
body #masthead .site-main-header-wrap {
    background-color: transparent !important;
    background-image: none !important;
}

/* Header wrapper: clean white, soft shadow on scroll */
#masthead.site-header,
body #masthead.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #ffffff !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    transition: box-shadow 0.35s var(--ease-out, ease);
}

/* Slightly stronger shadow once user scrolls */
body.sc-scrolled #masthead.site-header {
    background-color: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.15);
}

/* Logo: smooth scale + spacing */
#masthead .site-branding {
    transition: transform 0.35s var(--ease-out, ease);
}
#masthead .site-branding img,
#masthead .site-branding .custom-logo,
#masthead .site-branding .kadence-custom-logo {
    transition: transform 0.4s var(--ease-out, ease), filter 0.4s var(--ease-out, ease);
    filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.08));
}
#masthead .site-branding:hover img,
#masthead .site-branding:hover .custom-logo,
#masthead .site-branding:hover .kadence-custom-logo {
    transform: scale(1.04);
}

/* ============================================================
   Primary Menu — premium pills with gradient hover
============================================================ */
.header-navigation .header-menu-container > ul,
.header-navigation .header-menu-container > div > ul {
    gap: 6px;
}
.header-navigation .header-menu-container ul li.menu-item > a {
    position: relative;
    padding: 12px 22px !important;
    border-radius: 999px;
    font-weight: 800 !important;
    font-size: 0.98rem;
    color: var(--color-primary, #0A192F) !important;
    transition: color 0.35s var(--ease-out, ease),
                background 0.35s var(--ease-out, ease),
                transform 0.35s var(--ease-out, ease),
                box-shadow 0.4s var(--ease-out, ease);
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

/* Animated gradient background that fades in */
.header-navigation .header-menu-container ul li.menu-item > a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212,175,55,0.15) 0%, rgba(59,130,246,0.10) 100%);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s var(--ease-out, ease), transform 0.4s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1));
    z-index: -1;
}

/* Animated gradient underline */
.header-navigation .header-menu-container ul li.menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold, #D4AF37), #F5D77A);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width 0.4s var(--ease-out, ease);
    opacity: 0.9;
}

/* Hover state */
.header-navigation .header-menu-container ul li.menu-item > a:hover,
.header-navigation .header-menu-container ul li.menu-item > a:focus,
.header-navigation .header-menu-container ul li.menu-item.current-menu-item > a,
.header-navigation .header-menu-container ul li.menu-item.current_page_item > a,
.header-navigation .header-menu-container ul li.menu-item.current-menu-ancestor > a {
    color: var(--color-gold-hover, #AA8114) !important;
    transform: translateY(-2px);
}
.header-navigation .header-menu-container ul li.menu-item > a:hover::before,
.header-navigation .header-menu-container ul li.menu-item > a:focus::before,
.header-navigation .header-menu-container ul li.menu-item.current-menu-item > a::before,
.header-navigation .header-menu-container ul li.menu-item.current_page_item > a::before {
    opacity: 1;
    transform: scale(1);
}
.header-navigation .header-menu-container ul li.menu-item > a:hover::after,
.header-navigation .header-menu-container ul li.menu-item > a:focus::after,
.header-navigation .header-menu-container ul li.menu-item.current-menu-item > a::after,
.header-navigation .header-menu-container ul li.menu-item.current_page_item > a::after {
    width: 26px;
}

/* Dropdown caret styling */
.header-navigation .header-menu-container ul li.menu-item-has-children > a > .dropdown-nav-special-toggle,
.header-navigation .header-menu-container ul li.menu-item.menu-item-has-children > a .ks-svg-iconset {
    transition: transform 0.4s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1));
}
.header-navigation .header-menu-container ul li.menu-item-has-children:hover > a > .dropdown-nav-special-toggle,
.header-navigation .header-menu-container ul li.menu-item-has-children:hover > a .ks-svg-iconset {
    transform: rotate(180deg);
}

/* ============================================================
   Submenus / Dropdowns — premium glass cards
============================================================ */
.header-navigation .header-menu-container ul ul.sub-menu,
.header-navigation .header-menu-container ul ul.submenu {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.2),
                0 0 0 1px rgba(255,255,255,0.6) inset !important;
    padding: 10px !important;
    margin-top: 14px !important;
    overflow: hidden;
}
.header-navigation .header-menu-container ul ul li.menu-item {
    margin: 2px 0 !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
    padding: 12px 18px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.94rem !important;
    color: var(--color-text-main, #1e293b) !important;
    transition: all 0.3s var(--ease-out, ease) !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a::before,
.header-navigation .header-menu-container ul ul li.menu-item > a::after {
    display: none !important;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover,
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
    background: linear-gradient(135deg, rgba(212,175,55,0.16), rgba(212,175,55,0.06)) !important;
    color: var(--color-gold-hover, #AA8114) !important;
    transform: translateX(-4px) !important;
    padding-right: 22px !important;
}

/* ============================================================
   Header buttons (cart, search, etc.) — subtle premium look
============================================================ */
#masthead .header-button,
#masthead .header-search-button,
#masthead .header-cart-button {
    border-radius: 999px !important;
    transition: all 0.35s var(--ease-out, ease) !important;
}
#masthead .header-button:hover,
#masthead .header-search-button:hover,
#masthead .header-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.25);
}

/* ============================================================
   Mobile menu polish
============================================================ */
.mobile-toggle-open-button {
    border-radius: 12px !important;
    transition: all 0.3s var(--ease-out, ease) !important;
}
.mobile-toggle-open-button:hover {
    background: rgba(212, 175, 55, 0.12) !important;
    color: var(--color-gold-hover, #AA8114) !important;
}

#mobile-drawer .drawer-inner,
#mobile-drawer .drawer-content {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-base, #f7f9fc) 100%) !important;
}
#mobile-drawer .menu-item > a {
    font-weight: 800 !important;
    color: var(--color-primary, #0A192F) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    transition: all 0.3s var(--ease-out, ease) !important;
}
#mobile-drawer .menu-item > a:hover,
#mobile-drawer .menu-item.current-menu-item > a {
    color: var(--color-gold-hover, #AA8114) !important;
    background: linear-gradient(135deg, rgba(212,175,55,0.10), transparent) !important;
    padding-right: 22px !important;
}

/* ============================================================
   OVERRIDE parent theme custom.css blue menu colors
   Parent uses #primary-menu (id) — we need equal/higher specificity
============================================================ */
#wrapper #masthead #primary-menu > .menu-item > a,
#wrapper #masthead #secondary-menu > .menu-item > a {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--color-primary, #0A192F) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transform: none;
    border-radius: 999px !important;
    padding: 12px 22px !important;
    font-weight: 800 !important;
    transition: color 0.35s var(--ease-out, ease),
                background 0.4s var(--ease-out, ease),
                box-shadow 0.4s var(--ease-out, ease),
                transform 0.35s var(--ease-out, ease),
                border-color 0.35s var(--ease-out, ease) !important;
}

/* Hover & active — premium gold gradient */
#wrapper #masthead #primary-menu > .menu-item:hover > a,
#wrapper #masthead #primary-menu > .menu-item:focus-within > a,
#wrapper #masthead #primary-menu > .menu-item.current-menu-item > a,
#wrapper #masthead #primary-menu > .menu-item.current_page_item > a,
#wrapper #masthead #primary-menu > .menu-item.current-menu-ancestor > a,
#wrapper #masthead #secondary-menu > .menu-item:hover > a,
#wrapper #masthead #secondary-menu > .menu-item.current-menu-item > a {
    background-image: linear-gradient(135deg, #D4AF37 0%, #F5D77A 50%, #B8860B 100%) !important;
    background-color: #D4AF37 !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.45) !important;
    box-shadow: 0 12px 28px -10px rgba(212, 175, 55, 0.55),
                inset 0 1px 0 rgba(255,255,255,0.45) !important;
    transform: translateY(-3px);
}

/* Caret/arrow color inside active items */
#wrapper #masthead #primary-menu > .menu-item:hover > a svg,
#wrapper #masthead #primary-menu > .menu-item.current-menu-item > a svg,
#wrapper #masthead #primary-menu > .menu-item:hover > a .kadence-arrow-down-svg,
#wrapper #masthead #primary-menu > .menu-item.current-menu-item > a .kadence-arrow-down-svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Submenu container override (parent uses .main-navigation .sub-menu) */
#wrapper .main-navigation ul .sub-menu,
#wrapper #masthead .main-navigation ul .sub-menu {
    background-color: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.22),
                0 0 0 1px rgba(255,255,255,0.6) inset !important;
    padding: 10px !important;
    min-width: 280px !important;
}
#wrapper .main-navigation ul .sub-menu li a {
    border-radius: 12px !important;
    padding: 12px 18px !important;
    color: var(--color-primary, #0A192F) !important;
    font-weight: 700 !important;
    background: transparent !important;
    transition: all 0.3s var(--ease-out, ease) !important;
}
#wrapper .main-navigation ul .sub-menu li a:hover,
#wrapper .main-navigation ul .sub-menu li.current-menu-item > a {
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05)) !important;
    color: var(--color-gold-hover, #AA8114) !important;
    transform: translateX(-4px) !important;
}


/* ============================================================
   Honor reduced motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
    #masthead.site-header,
    #masthead .site-branding img,
    .header-navigation .header-menu-container ul li.menu-item > a,
    .header-navigation .header-menu-container ul li.menu-item > a::before,
    .header-navigation .header-menu-container ul li.menu-item > a::after {
        transition: none !important;
    }
}

/* ==================================
   Reduced Motion (page-scoped)
================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in-up { opacity: 1 !important; transform: none !important; }
}
