:root {
    --violet: #6c517a;
    --violet-dark: #5C3372FF;
    --lavender-bg: #f4f0fa;
    --white-bg: #ffffff;
    --text-color: #333;
    --button-radius: 8px;
    --transition-speed: 0.3s;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--white-bg);
    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; /* Needed for positioning context */
    font-family: Verdana, sans-serif;
}

/* Base box sizing */
*, *::after, *::before {
    box-sizing: border-box;
}

body {
    position: relative;
    overflow-x: hidden;
    opacity: 1; /* visible immediately */
    transition: opacity 0.8s ease 0s; /* optional fade if you want */
}

/* Violet wave overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    width: 200vw;
    height: 100vh;
    background: var(--violet-dark);
    transform-origin: center center;
    transform: translateX(-50%) skew(-25deg);
    z-index: 10000;
    pointer-events: all; /* block clicks while visible */
    transition: transform 0.4s ease 0s, opacity 0.1s ease 0.7s;
    opacity: 1;
}

/* After reveal: slide overlay away and hide pointer-events */
body.reveal::before {
    transform: translateX(calc(-50% - 150vw)) skew(-25deg);
    pointer-events: none;
    opacity: 0;
}


/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* Start from the center and adjust */
    transform: translateX(-50%); /* Center the pseudo-element */
    width: 100vw; /* Full viewport width */
    height: 100%; /* Matches header height */
    background-color: var(--violet-dark);
    z-index: -1; /* Behind header content */
}

header, h2 {
    /* minimal styles needed to render visible content ASAP */
    font-family: Arial, sans-serif;
    /* other critical styles */
}

.cta-button {
    background: var(--violet-dark);
    color: var(--white-bg);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(110, 15, 121, 0.6);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
    background: var(--violet);
    box-shadow: 0 7px 25px rgba(82, 11, 90, 0.9);
    outline: none;
}

#logo {
    color: var(--white-bg);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo img {
    width: 320px; /* or use max-width: 100% for responsiveness */
    height: auto;
    object-fit: contain;
    display: block;
    padding: 0.5rem;
}

/* NAVIGATION BASE STYLES */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white-bg);
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--white-bg);
    transition: width 0.3s;
}

nav a:hover,
nav a:focus {
    color: #d9b3e6;
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

/* POSITION RELATIVE FOR DROPDOWN ALIGNMENT */
#nav-list > li {
    position: relative;
}

/* SUBMENU CONTAINER */
#nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--violet-dark); /* 🔮 Custom background */
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    z-index: 999;
    text-align: left;
    min-width: 180px;
}

/* SHOW SUBMENU ON HOVER */
#nav-list li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* SUBMENU LIST ITEMS */
#nav-list .sub-menu li {
    display: block;
    background-color: transparent; /* 👈 Transparent li background */
}

/* SUBMENU LINKS */
#nav-list .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--white-bg);
    font-weight: 600;
    font-size: 0.95rem;
    background-color: transparent; /* 👈 Transparent a background */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* SUBMENU HOVER EFFECT */
#nav-list .sub-menu a:hover {
    color: #d9b3e6;
}

/* UNDERLINE HOVER EFFECT */
#nav-list .sub-menu a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 0;
    background-color: #d9b3e6;
    transition: width 0.3s;
}

#nav-list .sub-menu a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    /* Hide submenu by default */
        #dropdown-nav .sub-menu {
            display: none !important;
            /* ... other reset styles */
        }
    #dropdown-nav .sub-menu.open {
        display: block !important;
    }
}


.flag-icon {
    width: 25px;
    height: 25px; /* exact height matching width */
    display: inline-block;
    vertical-align: middle;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 110;
    margin-right: 1rem;

    /* Button reset */
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--white-bg);
    border-radius: 2px;
    transition: all 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);
}

/* MOBILE MENU DROPDOWN – LAW FIRM STYLE */
#dropdown-nav {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
    z-index: 99;
    background-color: #f9f9f9; /* Neutral background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e0e0e0;
}

#dropdown-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dropdown menu container */
#dropdown-nav ul {
    list-style: none;
    padding: 2rem 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Each list item */
#dropdown-nav ul li {
    width: 100%;
    border-bottom: 1px solid #eaeaea;
}

/* Style links as elegant nav items */
#dropdown-nav ul li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2e2e2e;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

/* Hover and focus styles */
#dropdown-nav ul li a:hover,
#dropdown-nav ul li a:focus {
    background-color: #f0f0f0;
    border-left: 4px solid var(--violet-dark);
    color: var(--violet-dark);
    outline: none;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        display: none; /* Hide desktop nav */
    }

    .hamburger {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }
}


/* FOOTER */
.site-footer {
    background-color: transparent; /* No background, handled by pseudo-element */
    color: var(--white-bg);
    padding: 3rem 1.5rem 2rem;
    width: 100%;
    margin-top: auto;
    position: relative; /* Context for pseudo-element */
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: var(--violet-dark);
    z-index: -1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Critical CSS for the h2 */
.footer-logo h2 {
    font-size: 1.5rem; /* Clear visible size */
    font-weight: 700; /* Bold for impact */
    color: var(--white-bg);
    margin: 0; /* Avoid margin causing layout shifts */
    line-height: 1.2; /* Tight line height */
}

.footer-logo p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 280px;
}

/* Social Icons */
.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;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: #d9b3e6;
    color: var(--violet-dark);
}

/* Explore Links */
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 200px;
}
.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: var(--white-bg);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #d9b3e6;
}

/* Contact Info */
.footer-contact p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--white-bg);
    text-decoration: none;
}

.footer-contact a:hover {
    color: #d9b3e6;
}

.footer-contact i {
    margin-right: 0.6rem;
    font-size: 1rem;
    min-width: 18px;
    text-align: center;
}

/* Bottom Strip */
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--white-bg);
    padding-top: 1.5rem;
}

.footer-terms {
    margin-top: 0.5rem;
}

.footer-terms a {
    color: var(--white-bg);
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-terms a:hover {
    text-decoration: underline;
    color: var(--white-bg);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        width: 100%;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}


a {
    text-decoration: none;
    color: inherit;
}

body.admin-bar #wpadminbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 99999;
}

body.admin-bar .site-header {
    position: fixed; /* or whatever your header uses */
    top: 32px !important; /* push below admin bar */
    width: 100%;
    z-index: 9998;
}

/* === HERO SECTION === */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
}

.hero-section img{
    min-width: 70px;
}

.hero-section h1 {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--violet-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;

    /* New additions for consistent appearance */
    min-height: 4rem;           /* Adjust this based on expected line height */
    display: flex;
    align-items: center;
    justify-content: center;    /* Center the text horizontally */
    text-align: center;
    padding: 1rem 0;            /* Vertical padding */
}

.hero-section p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
