:root {
    --blue-dark: #001F54;
    --blue-text: #0A1633;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--blue-text);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */
.site-header {
    background-color: var(--blue-dark);
    color: var(--white);
    height: 100px;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.logo-only {
    position: absolute;
    left: -10px;
    top: 53%;
    transform: translateY(-50%);
}

.logo-img {
    height: 250px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--white);
    opacity: 0.85;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--gold);
    color: var(--blue-dark);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.7);
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--white);
}

/* REUSABLE SECTIONS */
.section {
    padding: 60px 0;
}

.light { background-color: var(--white); }
.gray  { background-color: var(--gray-light); }
.dark  { background-color: var(--blue-dark); color: var(--white); }

.section-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.section-sub {
    margin-bottom: 26px;
    opacity: 0.8;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 20px;
    border-radius: 16px;
    background-color: var(--white);
    box-shadow: 0px 14px 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.card-pill {
    color: var(--gold);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.card-title {
    margin: 6px 0;
    font-size: 18px;
}

.card-text {
    opacity: 0.8;
    font-size: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-text);
    transition: color 0.2s ease;
}

.card-link-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* HOVER EFFECT ON CARD LINK */
.card-link:hover {
    color: var(--gold);
}

.card-link:hover .card-link-arrow {
    transform: translateX(3px);
}

/* FOOTER */
.site-footer {
    background-color: #020c25;
    color: rgba(255,255,255,0.8);
    padding: 30px 0;
    transition: transform 0.3s ease;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-column-title {
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

/* SOCIAL ICONS */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.social-icon img {
    width: 18px;
    height: 18px;
    filter: invert(100%); /* makes SVG white */
    transition: 0.25s ease;
}

.social-icon:hover {
    background-color: var(--gold);
}

.social-icon:hover img {
    filter: invert(0%); /* icon becomes dark when hovered */
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-sitemap-button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-sitemap-button:hover {
    color: var(--gold);
}

/* SITEMAP PANEL + PAGE SHIFT */
main {
    transition: transform 0.3s ease;
}

/* Also move header + footer when sitemap is open */
body.sitemap-open .site-header,
body.sitemap-open .site-footer,
body.sitemap-open main {
    transform: translateX(-220px);
}

/* Sitemap sliding panel on the right */
.sitemap-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    max-width: 70%;
    height: 100%;
    background-color: #020c25;
    color: #ffffff;
    box-shadow: -12px 0 25px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
}

body.sitemap-open .sitemap-panel {
    transform: translateX(0);
}

.sitemap-inner {
    padding: 24px 20px;
    font-size: 14px;
}

.sitemap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sitemap-header h2 {
    font-size: 18px;
    margin: 0;
}

.sitemap-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sitemap-list a {
    color: rgba(255,255,255,0.85);
}

.sitemap-list a:hover {
    color: var(--gold);
}

/* ========= RESPONSIVE HEADER & FOOTER ========== */

/* Base: hide hamburger on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 16px;
}

/* three lines */
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Tablet & mobile */
@media (max-width: 900px) {

    .site-header {
        height: 72px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo-only {
        position: static;
        transform: none;
    }

    .logo-img {
        height: 200px;
    }

    /* Show hamburger */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Make nav a sliding overlay from top */
    .nav-links {
        position: fixed;
        top: 72px;               /* below header */
        left: 0;
        right: 0;
        background-color: var(--blue-dark);
        flex-direction: column;
        gap: 14px;
        padding: 18px 20px 28px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 40;
    }

    .nav-links a {
        font-size: 16px;
    }

    /* When menu open */
    body.nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* animate hamburger to X when open */
    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Small phones: header tighter */
@media (max-width: 480px) {
    .logo-img {
        height: 150px;
    }
}

/* ---------- Footer responsive tweaks ---------- */

@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        text-align: left;
        padding: 24px 0 30px;
    }

    .footer-top {
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-bottom span {
        font-size: 13px;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.language-switcher a {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.language-switcher a:hover {
    background: rgba(202, 161, 42, 0.2);
    color: #d4af37;
}

.language-switcher a.active-lang {
    background: #caa12a;
    color: #04132a;
}

/* Mobile language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }
}
