/* ===== RESET MINIMAL ===== */
*, *::before, *::after { box-sizing: border-box; }

/* ===== VARIABLES ===== */
:root {
    --its-primary: #6366f1;
    --its-primary-dark: #4f46e5;
    --its-dark: #0f172a;
    --its-dark-light: #1e293b;
    --its-gray: #64748b;
    --its-light: #f8fafc;
    --its-white: #ffffff;
    --its-radius: 12px;
    --its-transition: 0.3s ease;
    --its-header-height: 70px;
}

/* ===== BODY ===== */
body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.its-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: var(--its-header-height);
    transition: box-shadow var(--its-transition);
}

.its-header.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

.its-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.its-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.its-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Navigation */
.its-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.its-nav a {
    color: var(--its-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--its-transition);
}

.its-nav a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--its-primary);
}

.its-nav .current-menu-item a {
    color: var(--its-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Mobile menu */
.its-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--its-dark);
}

.its-mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .its-nav { display: none; }
    .its-menu-toggle { display: block; }

    .its-mobile-nav.open {
        display: block;
        position: absolute;
        top: var(--its-header-height);
        left: 0;
        right: 0;
        background: var(--its-white);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .its-mobile-nav a {
        display: block;
        color: var(--its-dark);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        padding: 12px 16px;
        border-radius: 8px;
        transition: all var(--its-transition);
    }

    .its-mobile-nav a:hover {
        background: rgba(99, 102, 241, 0.08);
        color: var(--its-primary);
    }
}

/* ===== MAIN CONTENT ===== */
.its-main {
    min-height: calc(100vh - var(--its-header-height));
}

/* ===== FOOTER ===== */
.its-footer {
    background: var(--its-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 24px 30px;
}

.its-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.its-footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
}

.its-footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.its-footer h4 {
    color: var(--its-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

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

.its-footer li {
    margin-bottom: 8px;
}

.its-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--its-transition);
}

.its-footer a:hover {
    color: var(--its-white);
}

.its-footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.its-footer-bottom a {
    color: var(--its-primary);
}

@media (max-width: 768px) {
    .its-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .its-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ===== HERO BACKGROUND ===== */
.wp-block-cover {
    isolation: isolate;
}

.wp-block-cover > .wp-block-cover__background {
    z-index: 1 !important;
}

.wp-block-cover > .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 3 !important;
}

.its-main > .wp-block-group:first-child .wp-block-cover {
    background-image: url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
}

.its-main > .wp-block-group:first-child .wp-block-cover > .wp-block-cover__background {
    opacity: 0.55 !important;
}

@keyframes heroFadeIn {
    0% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    /* Global mobile overflow prevention */
    html, body { overflow-x: hidden; }
    .its-main { overflow-x: hidden; }

    /* Cover block (hero) */
    .wp-block-cover {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .wp-block-cover .wp-block-cover__inner-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .wp-block-cover .wp-block-cover__inner-container > * {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .wp-block-cover .wp-block-cover__inner-container > * > * {
        max-width: 100% !important;
    }
    .wp-block-cover h1.wp-block-heading {
        font-size: 28px !important;
        line-height: 1.2 !important;
        overflow-wrap: break-word !important;
    }
    .wp-block-cover p {
        font-size: 15px !important;
        overflow-wrap: break-word !important;
    }
    .wp-block-cover .wp-block-buttons { width: 100% !important; }
    .wp-block-cover .wp-block-buttons .wp-block-button { width: 100%; }
    .wp-block-cover .wp-block-button__link { width: 100% !important; text-align: center; }

    /* Content sections */
    .wp-block-group.has-background {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .wp-block-columns:not(.is-not-stacked-on-mobile) { gap: 16px !important; }
    .wp-block-column.has-background { padding: 24px 20px !important; }
    h2.wp-block-heading { font-size: 24px !important; }
    h3.wp-block-heading { font-size: 18px !important; }
}

/* ===== FIX: Navigation list styling ===== */
.its-nav ul,
.its-nav li,
.its-mobile-nav ul,
.its-mobile-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.its-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.its-nav li a {
    color: var(--its-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--its-transition);
}

.its-nav li a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--its-primary);
}

.its-nav .current-menu-item a,
.its-nav .current_page_item a {
    color: var(--its-primary);
    background: rgba(99, 102, 241, 0.08);
}

.its-mobile-nav ul {
    padding: 0;
}

.its-mobile-nav li a {
    display: block;
    color: var(--its-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all var(--its-transition);
}

.its-mobile-nav li a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--its-primary);
}

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
