/* wp-base.css */
:root {
    /* Core RGB colors */
    --color-white: 255, 255, 255;
    --color-black: 0, 0, 0;
    --color-bright-cyan: 63, 193, 193; /* Accent */

    /* Greek Blue shades */
    --color-primary: 8, 68, 128;    /* Dark Blue */
    --color-secondary: 13, 94, 175; /* Medium Blue */
    --color-third: 30, 121, 203;    /* Light Blue */
    --z-sticky: 100;
    --z-dropdown: 1000;
    --z-modal: 9999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    background-color: rgba(var(--color-white), 1);
    min-height: 100vh;
}

body {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    font-family: "Fira Sans";
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.8s ease 0s;
}



a {
    text-decoration: none;
    color: rgba(var(--color-black), 1);
}


/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 154px);
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    color: #fff;
}

.hero::before {
    content: "";

}

.hero::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    border-bottom: 2px solid rgba(var(--color-secondary), 1);
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;

    /* Multiple background layers for horizontal wave effect */
    background:
            url(https://drepistatu.go.ro/wp-content/themes/drepistatu/assets/img/layout-hero.png) center / cover no-repeat;

    /* Horizontal wave animation */
    animation: waveAnimation 8s ease-in-out infinite;
    background-blend-mode: overlay;
}

.hero::after {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;

    /* Multiple background layers for horizontal wave effect */
    background:
            url(https://drepistatu.go.ro/wp-content/themes/drepistatu/assets/img/layout-hero.png) center / cover no-repeat;

    /* Horizontal wave animation */
    animation: waveAnimation 8s ease-in-out infinite;
    background-blend-mode: overlay;
}


@keyframes waveAnimation {
    0%, 100% {
        background-position:
                -10px center,
                0px center,
                10px center;
    }
    25% {
        background-position:
                -5px center,
                5px center,
                15px center;
    }
    50% {
        background-position:
                0px center,
                10px center,
                20px center;
    }
    75% {
        background-position:
                -7px center,
                3px center,
                13px center;
    }
}

.hero-img {
    display: flex;
    justify-content: center;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    left: 50px;
}

/* Left side */
.hero-left {
    position: relative;
    width: 300px;
    height: 300px;
}

/* Main circle */
.hero-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.main-circle {
    width: 250px;
    height: 250px;
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.main-circle h1 {
    font-size: 1.9rem;
    color: #fff;
    padding: 15px;
    line-height: 1.3;
    font-weight: 700;
    font-family: "Fira Sans";
}

/* Small circles */
.small-circle {
    position: absolute;
    opacity: 0.85;
    transform-origin: center center;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* Circle colors and initial animation */
.circle-1 { width: 100px; height: 100px; top: -40px; left: 200px; background: #ffcc1e; animation: move1 12s infinite; }
.circle-2 { width: 80px; height: 80px; bottom: -20px; left: 50px; background: #f54f2d; animation: move2 14s infinite; }
.circle-3 { width: 120px; height: 120px; top: 60px; left: -90px; background: #53e6eb; animation: move3 16s infinite; }
.circle-4 { width: 70px; height: 70px; bottom: -20px; left: 190px; background: #81e5bb; animation: move4 13s infinite; }
.circle-5 { width: 60px; height: 60px; top: 10px; left: -40px; background: #dbadff; animation: move5 15s infinite; }
.circle-6 { width: 90px; height: 90px; top: 5px; left: 150px; background: #90bfe7; animation: move6 17s infinite; }
.circle-7 { width: 70px; height: 70px; bottom: 60px; left: 240px; background: #ffa34f; animation: move4 17s infinite; }
.circle-8 { width: 70px; height: 70px; bottom: 150px; left: 250px; background: #489d41; animation: move4 17s infinite; }

/* Floating + rotation + scale animations */
@keyframes move1 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    20%  { transform: translate(20px,-15px) rotate(30deg) scale(1.05); }
    40%  { transform: translate(-25px,-25px) rotate(-15deg) scale(0.95); }
    60%  { transform: translate(15px,-5px) rotate(20deg) scale(1.1); }
    80%  { transform: translate(-10px,-10px) rotate(-10deg) scale(1); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

@keyframes move2 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    25%  { transform: translate(-20px,-20px) rotate(-25deg) scale(1.1); }
    50%  { transform: translate(15px,-15px) rotate(15deg) scale(0.95); }
    75%  { transform: translate(-10px,-5px) rotate(-10deg) scale(1); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

@keyframes move3 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    20%  { transform: translate(25px,-10px) rotate(15deg) scale(1.05); }
    40%  { transform: translate(-15px,-30px) rotate(-20deg) scale(0.9); }
    60%  { transform: translate(20px,-5px) rotate(25deg) scale(1.1); }
    80%  { transform: translate(-10px,-15px) rotate(-10deg) scale(1); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

/* Circle-4: WAY further from main circle */
@keyframes move4 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    20%  { transform: translate(18px,-12px) rotate(12deg) scale(1.05); }
    40%  { transform: translate(-15px,8px) rotate(-15deg) scale(0.98); }
    60%  { transform: translate(10px,-10px) rotate(8deg) scale(1.02); }
    80%  { transform: translate(-8px,5px) rotate(-5deg) scale(0.97); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

@keyframes move5 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    25%  { transform: translate(10px,-25px) rotate(10deg) scale(1.05); }
    50%  { transform: translate(-10px,-20px) rotate(-10deg) scale(0.95); }
    75%  { transform: translate(15px,-5px) rotate(5deg) scale(1); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

/* Circle-6: WAY further from main circle */
@keyframes move6 {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    25%  { transform: translate(-140px,-100px) rotate(-15deg) scale(1.1); }
    50%  { transform: translate(120px,-70px) rotate(20deg) scale(0.95); }
    75%  { transform: translate(-90px,-50px) rotate(-10deg) scale(1); }
    100% { transform: translate(0,0) rotate(0deg) scale(1); }
}

/* Right side */
.hero-right {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
}

.hero-right p {
    font-size: 26px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    font-weight: 500;
    font-family: "Fira Sans";
    color: rgba(var(--color-third), 0.80);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; align-items: center; gap: 30px; left: 0; }
    .hero-left { width: 220px; height: 220px; }
    .main-circle { width: 180px; height: 180px; top: 15px; left: 15px; }
    .main-circle h1 { font-size: 1.5rem; padding: 10px; }

    .circle-1 { width: 70px; height: 70px; top: -30px; left: 150px; }
    .circle-2 { width: 50px; height: 50px; bottom: -15px; left: 140px; }
    .circle-3 { width: 90px; height: 90px; top: 40px; left: -60px; }
    .circle-4 { width: 60px; height: 60px; top: 120px; left: 80px; }
    .circle-5 { width: 50px; height: 50px; top: 0px; left: -30px; }
    .circle-6 { width: 70px; height: 70px; bottom: 20px; left: 40px; }
    .circle-7 { width: 70px; height: 70px; bottom: 20px; left: 40px; }
    .circle-8 { width: 70px; height: 70px; bottom: 20px; left: 40px; }

    .hero-right { flex: none; text-align: center; }
    .hero-right p { font-size: 24px; }
}

@media (max-width: 768px) {
    .hero { height: calc(100vh - 76px); padding: 0 10px; flex-direction: column; justify-content: center; }
    .hero-content { flex-direction: column; gap: 20px; left: 0; width: 100%; }
    .hero-left { width: 180px; height: 180px; }
    .main-circle { width: 150px; height: 150px; top: 10px; left: 10px; }
    .main-circle h1 { font-size: 1.3rem; padding: 8px; }

    .circle-1 { width: 50px; height: 50px; top: -20px; left: 120px; }
    .circle-2 { width: 40px; height: 40px; bottom: -10px; left: 110px; }
    .circle-3 { width: 60px; height: 60px; top: 30px; left: -40px; }
    .circle-4 { width: 50px; height: 50px; top: 100px; left: 120px; }
    .circle-5 { width: 40px; height: 40px; top: 0px; left: -20px; }
    .circle-6 { width: 50px; height: 50px; bottom: 10px; left: 30px; }
    .circle-7 { width: 35px; height: 35px; bottom: 20px; left: -25px; }
    .circle-8 { width: 50px; height: 50px; bottom: -25px; left: 0px; }

    .hero-right p { font-size: 18px; }
}

/* 404 Page Styling */
.custom-404-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 154px);
    text-align: center;
    padding: 20px;
}

/* 404 Hero Section */
.hero-404 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    justify-content: space-around;
}

/* Left Circles */
.hero-404-left {
    position: relative;
    width: 300px;
    height: 300px;
}

.hero-404-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.main-circle-404 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-circle-404 h1 {
    font-size: 3rem;
    color: #fff;
    font-weight: 700;
}

/* Small Circles Animations */
.small-circle-404 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.85;
}

/* Small Circles Sizes and Colors */
.circle-404-1 { width: 100px; height: 100px; top: -40px; left: 200px; background: #f4be26; }
.circle-404-2 { width: 70px; height: 70px; bottom: -20px; left: 190px; background: #f2511e; }
.circle-404-3 { width: 120px; height: 120px; top: 60px; left: -90px; background: #e57b72; }
.circle-404-4 { width: 80px; height: 80px; bottom: -20px; left: 50px; background: #33b578; }
.circle-404-5 { width: 60px; height: 60px; top: 10px; left: -40px; background: #7986cb; }
.circle-404-6 { width: 90px; height: 90px; top: 5px; left: 150px; background: #039ae4; }

/* Floating Animations */
@keyframes float-1 { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-20px) translateX(10px);} }
@keyframes float-2 { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-15px) translateX(-10px);} }
@keyframes float-3 { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-25px) translateX(15px);} }
@keyframes float-4 { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-10px) translateX(-5px);} }
@keyframes float-5 { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-18px) translateX(8px);} }
@keyframes float-6 { 0%,100%{transform:translateY(0) translateX(0);} 50%{transform:translateY(-22px) translateX(-12px);} }

.circle-404-1 { animation: float-1 6s ease-in-out infinite; }
.circle-404-2 { animation: float-2 5s ease-in-out infinite; }
.circle-404-3 { animation: float-3 7s ease-in-out infinite; }
.circle-404-4 { animation: float-4 6.5s ease-in-out infinite; }
.circle-404-5 { animation: float-5 5.5s ease-in-out infinite; }
.circle-404-6 { animation: float-6 6.8s ease-in-out infinite; }

/* Right Text */
.hero-404-right p {
    font-size: 1.5rem;
    color: rgba(var(--color-third), 0.95);
    margin-bottom: 1.5rem;
font-weight: 500;
}

/* Button */
.cta-button-404 {
    background: linear-gradient(145deg, rgba(var(--color-secondary), 0.87), rgba(var(--color-third), 0.67));
    border: 1px solid rgba(var(--color-third), 0.5);
    color: rgba(var(--color-white), 1);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 1.875rem;
    transition: 0.3s all ease;
}

.cta-button-404:hover {
    background: linear-gradient(145deg, rgba(var(--color-secondary), 0.95), rgba(var(--color-third), 0.6));
    box-shadow: 0 6px 18px rgba(var(--color-black), 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-404 { flex-direction: column; align-items: center; gap: 30px; }
    .hero-404-left { width: 220px; height: 220px; }
    .main-circle-404 { width: 180px; height: 180px; }
    .main-circle-404 h1 { font-size: 2.2rem; }
    .hero-404-right p { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .hero-404-left { width: 180px; height: 180px; }
    .main-circle-404 { width: 150px; height: 150px; }
    .main-circle-404 h1 { font-size: 1.8rem; }
    .hero-404-right p { font-size: 1rem; }
}

/* 125% Scaling */
@media (-webkit-device-pixel-ratio: 1.25), (resolution: 120dpi) {
    .wp-landing-stats__container
    {
        transform: scale(0.8);
    }

    .header-nav,
    .header_top_outer,
    .wp-landing-row-inner,
    .wp-video__container,
    .footer-container {
        transform: scale(0.9);
    }
    .team-orbit-container,
    .team-button {
        transform: scale(0.8);
    }
}

/* 150% Scaling */
@media (-webkit-device-pixel-ratio: 1.5), (resolution: 144dpi) {
    .wp-landing-stats__container
    {
        transform: scale(0.7);
    }

    .header-nav,
    .header_top_outer,
    .wp-landing-row-inner,
    .wp-video__container,
    .footer-container {
        transform: scale(0.8);
    }
    .team-section,
    .team-button {
        transform: scale(0.7);
    }
}

/* 170% Scaling */
@media (-webkit-device-pixel-ratio: 1.75), (resolution: 168dpi) {
    .wp-landing-stats__container
    {
        transform: scale(0.6);
    }

    .header-nav,
    .header_top_outer,
    .wp-landing-row-inner,
    .wp-video__container,
    .footer-container,
    .hero,
    .custom-404-container {
        transform: scale(0.75);
    }
    .team-section,
    .team-button {
        transform: scale(0.7);
    }
}





/* wp-header.css */
/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== BASE HEADER STYLES ===== */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    pointer-events: auto;
    width: 100%;
    will-change: transform; /* Performance optimization */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: rgba(var(--color-third, 94, 234, 212), 0.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
    box-shadow: 0 2px 6px rgba(var(--color-black, 0, 0, 0), 0.15);
    z-index: -1;
    pointer-events: none;
}

/* ===== HEADER TOP SECTION ===== */
header .header_top_outer {
    width: 100%;
    height: 3rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(var(--color-third, 94, 234, 212), 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.header_top_outer.hide {
    height: 0;
    padding: 0;
    border-width: 0;
    margin: 0;
}

header .header_top_inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header_top_outer.hide .header_top_inner {
    transform: translateY(-100%);
    opacity: 0;
}

/* ===== HEADER META & CONTACT INFO ===== */
header .header_top_meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

header .header_top_meta .meta_wrap a,
header .header_top_meta .meta_wrap span {
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    border-right: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
    color: rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 2px rgba(var(--color-black, 0, 0, 0), 0.3), 0 0 6px rgba(var(--color-white, 255, 255, 255), 0.2);
    gap: 0.5rem;
    padding: 0 1rem;
    transition: all 0.3s ease;
    align-items: center;
    text-decoration: none;
}

header .header_top_meta .meta_wrap a:hover,
header .header_top_meta .meta_wrap span:hover {
    color: rgba(var(--color-white, 255, 255, 255), 1);
    text-shadow: 0 1px 2px rgba(var(--color-black, 0, 0, 0), 0.3), 0 0 10px rgba(var(--color-white, 255, 255, 255), 0.4);
}

header .header_top_meta .meta_wrap a:focus-visible,
header .header_top_meta .meta_wrap span:focus-visible {
    outline: 2px solid rgba(var(--color-white, 255, 255, 255), 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SOCIAL LINKS ===== */
header .social_wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 1rem;
    border-left: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
}

header .social_wrap ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
}

header .social_wrap li {
    margin: 0;
}

header .social_wrap li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: rgba(var(--color-white, 255, 255, 255), 1);
    border-radius: 50%;
    font-size: 1rem;
    background-color: rgba(var(--color-third, 94, 234, 212), 0.2);
    border: 1px solid rgba(var(--color-third, 94, 234, 212), 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    transform: translateZ(0); /* Hardware acceleration */
}

header .social_wrap li a:hover {
    background-color: rgba(var(--color-third, 94, 234, 212), 0.3);
    color: rgba(var(--color-white, 255, 255, 255), 1);
    transform: scale(1.1);
}

header .social_wrap li a:focus-visible {
    outline: 2px solid rgba(var(--color-white, 255, 255, 255), 0.8);
    outline-offset: 2px;
    transform: scale(1.1);
}

/* ===== HEADER RIGHT GROUP ===== */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
}

.header-right span {
    display: block;
    padding: 0.2rem 0.5rem;
    color: rgba(var(--color-white, 255, 255, 255), 1);
    font-weight: 600;
    font-size: 0.95rem;
    background-color: rgba(var(--color-third, 94, 234, 212), 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.header-right span:hover {
    background-color: rgba(var(--color-third, 94, 234, 212), 0.3);
    color: rgba(var(--color-secondary, 59, 130, 246), 1);
}

.header-right {
    display: flex;
    align-items: flex-start;
    gap: 0.1rem;
    flex-direction: column;
    justify-content: flex-end;
    border-left: 2px solid rgba(var(--color-white, 255, 255, 255), 1);
    padding-left: 0.5rem;
}

.flag-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.phone-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* ===== LOGO ===== */
#logo {
    flex-shrink: 0;
    flex: 0 0 auto;
    color: rgba(var(--color-white, 255, 255, 255), 1);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

#logo img {
    width: 20vw;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 0.5rem 0;
}

/* ===== MAIN NAVIGATION ===== */
.header-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0.3rem;
    gap: 0.2rem;
}

nav a {
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    color: rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 2px rgba(var(--color-black, 0, 0, 0), 0.4);
    border: 1px solid transparent;
    transform: translateZ(0); /* Hardware acceleration */
}

nav a:hover,
nav a:focus-visible {
    color: rgba(var(--color-white, 255, 255, 255), 1);
    background-color: rgba(var(--color-white, 255, 255, 255), 0.25);
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 3px rgba(var(--color-black, 0, 0, 0), 0.5);
    transform: scale(1.05);
    outline: none;
}

/* ===== DROPDOWN SUBMENU SYSTEM ===== */
#nav-list > li {
    position: relative;
    max-width: 210px;
    white-space: nowrap;
}

#nav-list .sub-menu::before {
    content: "";
    position: absolute;
    display: grid;
    grid-template-rows: repeat(3, auto);
    top: -4rem; /* Reduced from 4rem for better positioning */
    left: 0;
    width: 100%;
    height: 4rem;
    background: transparent;
}

#nav-list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4rem); /* Fixed positioning */
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 180px; /* Slightly increased for better touch targets */
    white-space: nowrap;
    background-color: rgba(var(--color-third, 94, 234, 212), 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
    padding: 0.7rem;
    z-index: var(--z-dropdown);
    text-align: left;
    box-shadow: 0 8px 32px rgba(var(--color-black, 0, 0, 0), 0.15);
}

/* Show submenu on hover and focus-within for accessibility */
#nav-list li.menu-item-has-children:hover > .sub-menu,
#nav-list li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
}

#nav-list .sub-menu li {
    display: block;
    padding-bottom: 0.4rem;
}

#nav-list .sub-menu a {
    display: block;
    padding: 0.6rem 0.8rem; /* Increased padding for better touch targets */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 2px rgba(var(--color-black, 0, 0, 0), 0.4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    transform: translateZ(0);
}

#nav-list .sub-menu a:hover,
#nav-list .sub-menu a:focus-visible {
    color: rgba(var(--color-white, 255, 255, 255), 1);
    background-color: rgba(var(--color-white, 255, 255, 255), 0.25);
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 3px rgba(var(--color-black, 0, 0, 0), 0.5);
    transform: scale(1.05);
    outline: none;
}

/* ===== CTA BUTTON ===== */
.cta-button1 {
    background: linear-gradient(145deg, rgba(var(--color-secondary, 59, 130, 246), 0.87), rgba(var(--color-third, 94, 234, 212), 0.67));
    border: 1px solid rgba(var(--color-third, 94, 234, 212), 0.5);
    color: rgba(var(--color-white, 255, 255, 255), 1);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 1.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    transform: translateZ(0);
}

.cta-button1:hover,
.cta-button1:focus-visible {
    background: linear-gradient(145deg, rgba(var(--color-secondary, 59, 130, 246), 0.95), rgba(var(--color-third, 94, 234, 212), 0.6));
    box-shadow: 0 6px 18px rgba(var(--color-black, 0, 0, 0), 0.1);
    transform: translateY(-2px);
    outline: none;
}

/* ===== ACTIVE STATES ===== */
#nav-list .sub-menu li.active-hover > a,
.menu-item-has-children.active-hover> a {
    color: rgba(var(--color-white, 255, 255, 255), 1);
    background-color: rgba(var(--color-white, 255, 255, 255), 0.25);
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 3px rgba(var(--color-black, 0, 0, 0), 0.5);
    transform: scale(1.05);
}

.active-hover> a {
    color: rgba(var(--color-white, 255, 255, 255), 1);
    background-color: rgba(var(--color-white, 255, 255, 255), 0.25);
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.9);
    text-shadow: 0 1px 3px rgba(var(--color-black, 0, 0, 0), 0.5);
    transform: scale(1.05);
}



/* ===== TABLET STYLES ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    #logo img {
        width: 25vw;
        max-width: 240px;
    }

    header .header_top_meta {
        font-size: 0.8rem;
    }

    header .header_top_meta .meta_wrap a,
    header .header_top_meta .meta_wrap span {
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }

    header .header_top_meta .meta_wrap span:not(.phone-link) {
        display: none; /* Hide non-essential spans */
    }

    nav ul {
        gap: 0.1rem;
    }

    nav a {
        font-size: 0.8rem; /* Increased from 0.65rem for accessibility */
        padding: 0.4rem 0.6rem;
        text-align: center;
    }

    .cta-button1 {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .header-right-group {
        gap: 0.75rem;
        transform: scale(0.88);
    }

    header .social_wrap li a {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    /* Improved tablet submenu */
    #nav-list .sub-menu {
        min-width: 160px;
    }

    #nav-list .sub-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 767px) {
    nav,
    .header_top_outer,
    .header-right-group {
        display: none !important;
    }

    #logo img {
        width: 40vw;
        max-width: 180px;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 1rem;
    }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 0.3rem;
    z-index: var(--z-modal);
    background-color: rgba(var(--color-third, 94, 234, 212), 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
    box-shadow: 0 4px 12px rgba(var(--color-black, 0, 0, 0), 0.1);
    transition: all 0.3s ease;
}

.hamburger span {
    width: 2rem;
    height: 0.2rem;
    background-color: rgba(var(--color-white, 255, 255, 255), 1);
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger:focus-visible {
    outline: 2px solid rgba(var(--color-white, 255, 255, 255), 0.8);
    outline-offset: 2px;
}

/* ===== MOBILE DROPDOWN NAV ===== */
#dropdown-nav {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: calc(var(--z-modal) - 1);
    /* Remove background styles from container */
    /* background-color: rgba(var(--color-third, 94, 234, 212), 0.85); */
    /* backdrop-filter: blur(12px); */
    /* -webkit-backdrop-filter: blur(6px); */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 5rem;
    /* Move border and shadow to ::before */
    /* border-bottom: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2); */
    /* box-shadow: 0 4px 16px rgba(var(--color-black, 0, 0, 0), 0.15); */
}

#dropdown-nav::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: rgba(var(--color-third, 94, 234, 212), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--color-white, 255, 255, 255), 0.2);
    box-shadow: 0 4px 16px rgba(var(--color-black, 0, 0, 0), 0.15);
    z-index: -1;
    pointer-events: none;
}

#dropdown-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#dropdown-nav ul {
    list-style: none;
    padding: 1rem 1.5rem 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    max-height: 95%;
    border-radius: 25px;
    color: #ffff;
    position: relative;

    /* Remove solid borders */
    border: none;

    /* Glass morphism top border */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);

    /* Glass effect shadows for borders only */
    box-shadow:
        /* Top border glass effect */
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 20px 30px -15px rgba(255, 255, 255, 0.1),
                /* Bottom border glass effect */
            inset 0 -1px 0 rgba(255, 255, 255, 0.15),
            inset 0 -20px 30px -15px rgba(255, 255, 255, 0.05);
    align-items: center;
}


#dropdown-nav ul li {
    width: 100%;
    position: relative;
    max-width: 400px;
}

#dropdown-nav ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem; /* Increased padding for mobile touch */
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(var(--color-white, 255, 255, 255), 0.95);
    text-decoration: none;
    border-left: 4px solid transparent;
    border-radius: 0.75rem;
    background-color: rgba(var(--color-white, 255, 255, 255), 0.05);
    transition: all 0.3s ease;
}

#dropdown-nav ul li a:hover,
#dropdown-nav ul li a:focus-visible {
    background-color: rgba(var(--color-white, 255, 255, 255), 0.15);
    color: rgba(var(--color-white, 255, 255, 255), 1);
    border-left: 4px solid rgba(var(--color-secondary, 59, 130, 246), 0.8);
    outline: none;
}

#dropdown-nav ul li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

#dropdown-nav ul li.menu-item-has-children.open > a::after {
    transform: rotate(-180deg);
}

#dropdown-nav ul li .sub-menu {
    display: none;
    flex-direction: column;
    padding-left: 0.5rem;
    margin-top: 0.5rem;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(var(--color-third, 94, 234, 212), 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

#dropdown-nav ul li.menu-item-has-children.open .sub-menu {
    display: flex;
    max-height: 100%;
    padding: 0.75rem;
}

#dropdown-nav ul li .sub-menu li a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: rgba(var(--color-white, 255, 255, 255), 0.9);
    background-color: rgba(var(--color-white, 255, 255, 255), 0.05);
    border-radius: 0.5rem;
}

#dropdown-nav ul li .sub-menu li a:hover {
    background-color: rgba(var(--color-white, 255, 255, 255), 0.15);
    color: rgba(var(--color-white, 255, 255, 255), 1);
}

/* ===== MOBILE SPECIFIC STYLES ===== */
@media (max-width: 768px) and (max-height: 1020px) {
    #logo,
    .hamburger {
        position: relative;
        z-index: var(--z-modal);
    }

    .hamburger {
        display: flex;
    }

    /* Improved mobile submenu transitions */
    #dropdown-nav ul li .sub-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        opacity: 1;
        padding: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }

    #dropdown-nav ul li.menu-item-has-children.open .sub-menu {
        max-height: 100%;
        opacity: 1;
    }

    /* Better touch targets for mobile */
    #dropdown-nav ul li a {
        min-height: 54px; /* Minimum touch target size */
        align-items: center;
    }

    #dropdown-nav ul li .sub-menu li a {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header {
        position: static;
    }

    .hamburger,
    #dropdown-nav {
        display: none !important;
    }
}

/* wp-footer.css */
/* FOOTER */
.site-footer {
    background-color: transparent;
    color: rgba(var(--color-white), 1);
    padding: 3rem 0 2rem 0;
    width: 100%;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(to bottom, rgba(var(--color-primary), 0.85), rgba(var(--color-secondary), 0.85));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(var(--color-white), 0.15);
    border-bottom: 1px solid rgba(var(--color-secondary), 0.35);
    z-index: -1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(var(--color-white), 0.2);
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(var(--color-white), 1);
    margin: 0;
    line-height: 1.2;
}

.footer-logo p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 280px;
    color: rgba(var(--color-white), 0.8);
    text-shadow:
            0 0 3px rgba(var(--color-white), 0.4),
            0 0 6px rgba(var(--color-primary), 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-logo p:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow:
            0 0 4px rgba(var(--color-white), 0.6),
            0 0 8px rgba(var(--color-primary), 0.35);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-icons img {
    padding: 0.1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--color-white), 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-white), 0.25);
    box-shadow: 0 2px 6px rgba(var(--color-black), 0.15);
    color: rgba(var(--color-white), 1);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(var(--color-secondary), 0.25);
    border-color: rgba(var(--color-secondary), 0.5);
    box-shadow: 0 4px 10px rgba(var(--color-secondary), 0.4);
    color: rgba(var(--color-white), 1);
}

.footer-links,
.footer-contact {
    flex: 0 1 max-content; /* don't grow, shrink if needed, width based on content */
}


.footer-links .menu-item-has-children {
    display: none;
}

.footer-contact img {
    padding: 0.1rem;
    height: 20px;
    width: 20px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgba(var(--color-white), 0.9);
    font-size: 0.95rem;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links ul li a:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
}

.footer-contact p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: rgba(var(--color-white), 0.9);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-contact p:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
}

.footer-contact a {
    color: rgba(var(--color-white), 0.9);
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-contact a:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
}

.footer-contact i {
    margin-right: 0.6rem;
    font-size: 1rem;
    min-width: 18px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(var(--color-white), 0.9);
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding-top: 1.5rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-bottom:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
}

.footer-terms {
    margin-top: 0.5rem;
}

.footer-gap {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 2rem;
}

.footer-terms a {
    color: rgba(var(--color-white), 0.9);
    margin: 0 0.5rem;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(var(--color-black), 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-terms a:hover {
    color: rgba(var(--color-white), 0.95);
    text-shadow: 0 1px 3px rgba(var(--color-black), 0.5);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }
    .footer-gap {
        gap: 2.5rem;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        width: 100%;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}


