/* ImmoClarif — Shared Header & Footer
   Included on every page. Uses the same design system variables.
   Variables must be defined in each page's :root before this is loaded,
   or they fall back to the hardcoded values below. */

/* ─── HEADER ─────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 26, 46, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    transition: box-shadow 0.2s;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

/* Logo */
.header-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #faf8f2;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.header-logo span {
    color: #c9a227;
}

/* Desktop nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-dropdown {
    position: relative;
}

.header-nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav-dropdown > .nav-link::after {
    content: '▾';
    font-size: 11px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.header-nav-dropdown:hover > .nav-link::after,
.header-nav-dropdown:focus-within > .nav-link::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #132240;
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 10px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 200;
}

.header-nav-dropdown:hover .nav-dropdown-menu,
.header-nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: rgba(250, 248, 242, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
    background: rgba(201, 162, 39, 0.1);
    color: #faf8f2;
}

.nav-dropdown-menu a small {
    display: block;
    font-size: 12px;
    color: #8b95a5;
    margin-top: 2px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: rgba(250, 248, 242, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #faf8f2;
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #c9a227;
    color: #0b1a2e !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 8px;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    background: #c9a227 !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    color: #faf8f2;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #faf8f2;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #132240;
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    padding: 16px 24px 24px;
    gap: 4px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: block;
    padding: 12px 8px;
    color: rgba(250, 248, 242, 0.8);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.15s;
}

.mobile-nav a:hover {
    color: #faf8f2;
}

.mobile-nav .mobile-cta {
    display: block;
    margin-top: 16px;
    padding: 14px;
    background: #c9a227;
    color: #0b1a2e;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    border-radius: 10px;
    border-bottom: none;
}

.mobile-nav .mobile-section-label {
    padding: 12px 8px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8b95a5;
    border-bottom: none;
    pointer-events: none;
}

/* ─── FOOTER ─────────────────────────────────────────────── */

.site-footer {
    background: #0b1a2e;
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    padding: 56px 48px 40px;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #faf8f2;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand .footer-logo span {
    color: #c9a227;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.6;
    color: #8b95a5;
    max-width: 220px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #faf8f2;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #8b95a5;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.15s;
    line-height: 1.4;
}

.footer-col ul li a:hover {
    color: #c9a227;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: #8b95a5;
    font-family: 'DM Sans', sans-serif;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 13px;
    color: #8b95a5;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    transition: color 0.15s;
}

.footer-legal-links a:hover {
    color: #c9a227;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .site-footer {
        padding: 48px 24px 32px;
        margin-top: 60px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}
