/* ═══════════════════════════════════════════════
   GORDIJNSTUDIO CHRISTOPHE KIEKENS
   Styleguide & Global Styles — LUXE REDESIGN
   Geïnspireerd door exclusiviteit, vakmanschap, tijdloze elegantie
   ═══════════════════════════════════════════════ */

html {
    scrollbar-gutter: stable;
}

:root {
    /* ── Kleuren — Nieuw minimalistisch palet ── */
    --color-primary: #848374;
    /* Grijsgroen */
    --color-primary-dark: #000000;
    /* Zwart */
    --color-green: #3a5c3a;
    /* Donkergroen — button hover */

    --color-dark: #000000;
    /* Zwart */

    --color-text: #000000;
    /* Hoofdtekst */
    --color-text-light: #848374;
    /* Lichtere tekst */
    --color-text-muted: #848374;
    /* Gedisabled/muted */

    --color-bg: #EEEDEA;
    /* Warm wit achtergrond */
    --color-cream: #EEEDEA;
    /* Diepere crème */
    --color-cream-dark: #EEEDEA;
    /* Donkere crème secties */
    --color-white: #FFFFFF;
    /* Wit */

    --color-border: #848374;
    /* Border */
    --color-border-light: #EEEDEA;
    /* Lichte border */
    --color-accent: #848374;
    /* Accent */
    --color-accent-light: #EEEDEA;
    /* Licht accent */

    /* ── Typografie ── */
    --font-heading: 'Suranna', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* ── Layout ── */
    --max-width: 1280px;
    --section-pad: clamp(7rem, 12vw, 12rem);

    /* ── Animatie — Verfijnd, langzaam ── */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition: 0.5s var(--ease);
    --transition-slow: 0.8s var(--ease-slow);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

/* ── Typografie — Luxe, exclusief ── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1.5rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

p:last-child {
    margin-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ── Section Label — Luxe uitstraling ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-primary);
}

.section-label::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border: 1px solid var(--color-primary);
    transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════
   BUTTONS — Lecrance style: rustig, elegant
   ═══════════════════════════════════════════════ */

/* Primary: outline met arrow, subtiele fill on hover */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn .arrow {
    display: inline-block;
    width: 16px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: width var(--transition);
}

.btn .arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: rotate(45deg);
}

.btn:hover {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.btn:hover .arrow {
    width: 22px;
}

/* Dark variant (voor lichte achtergronden) */
.btn--dark {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn--dark:hover {
    background: var(--color-green);
    color: var(--color-white);
    border-color: var(--color-green);
}

/* Light variant (voor donkere achtergronden) */
.btn--light {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.btn--light:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

/* Filled variant */
.btn--filled {
    background: var(--color-primary);
    color: var(--color-cream);
    border-color: var(--color-primary);
}

.btn--filled:hover {
    background: #6b7168;
    border-color: #6b7168;
    color: var(--color-white);
}

/* Text link met arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-text);
    text-decoration: none;
    transition: gap var(--transition);
}

.link-arrow::after {
    content: '\2192';
    font-size: 0.85rem;
    transition: transform var(--transition);
}

.link-arrow:hover {
    gap: 1rem;
}

.link-arrow:hover::after {
    transform: translateX(2px);
}

.link-arrow--light {
    color: var(--color-white);
}

/* ═══════════════════════════════════════════════
   HEADER / NAV — Studio 11 Style
   ═══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Header always visible with subtle background */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--transition);
}

.site-header.scrolled::before {
    opacity: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    transition: filter var(--transition), transform var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

/* Logo is altijd zichtbaar - wit op hero, donker op scrolled */
.site-header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.site-header.scrolled .logo-img {
    filter: brightness(0) contrast(1.2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    transition: color var(--transition);
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.site-header:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-header:not(.scrolled) .nav-links a:hover {
    color: var(--color-white);
}

/* Hide mobile menu elements on desktop */
.mobile-menu-footer,
.mobile-cms-login {
    display: none;
}

/* Nav Button - Uses .btn.btn--filled classes now */
.nav .btn--filled {
    font-size: 0.65rem;
    padding: 0.75rem 1.5rem;
}

.site-header:not(.scrolled) .nav .btn--filled {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
}

.site-header:not(.scrolled) .nav .btn--filled:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.mobile-menu-wrapper {
    display: none;
}

/* ── HAMBURGER ── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.hamburger-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    transition: color var(--transition);
}

.site-header:not(.scrolled) .menu-label {
    color: var(--color-white);
}

.hamburger {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition);
}

.site-header:not(.scrolled) .hamburger,
.site-header:not(.scrolled) .hamburger::before,
.site-header:not(.scrolled) .hamburger::after {
    background: var(--color-white);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 1px;
    background: var(--color-text);
    transition: transform var(--transition), background var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.menu-toggle.active .hamburger {
    background: transparent !important;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
    background: var(--color-dark) !important;
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--color-dark) !important;
}

/* ═══════════════════════════════════════════════
   FOOTER — Donker, minimalistisch
   ═══════════════════════════════════════════════ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 4rem 0 2.5rem;
}

.site-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a,
.footer-links span {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal p {
    margin: 0;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-links .separator {
    opacity: 0.3;
}

.footer-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.creator-separator {
    opacity: 0.3;
}

.cms-lock-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.cms-lock-link:hover {
    color: var(--color-white);
}

.cms-link {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: auto;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .menu-toggle {
        display: block;
    }

    .mobile-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(238, 237, 234, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s var(--ease), visibility 0.5s;
        z-index: 99;
        pointer-events: none;
    }

    .mobile-menu-wrapper.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        gap: 1.5rem;
        width: 100%;
        /* Let the wrapper handle visibility */
        position: static;
        background: transparent;
        height: auto;
        opacity: 1;
        visibility: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Remove the old .nav-links.open since the wrapper handles it now but keep the stagger logic working on the wrapper open state */

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    }

    .mobile-menu-wrapper.open .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links a {
        font-family: var(--font-heading);
        font-size: 2rem;
        color: var(--color-dark) !important;
        font-weight: 400;
        letter-spacing: 0.02em;
        text-transform: none;
        padding: 0;
        border-bottom: none;
        width: auto;
        text-align: center;
        display: inline-block;
        transition: color var(--transition), transform var(--transition), opacity var(--transition);
        position: relative;
    }

    /* Subtiel lijntje onder actieve/hovered elementen */
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background: var(--color-primary);
        transition: width var(--transition);
        display: block;
    }

    .nav-links:hover a {
        /* When hovering the list, fade out the others */
        opacity: 0.4;
    }

    .nav-links a:hover {
        color: var(--color-primary) !important;
        padding-left: 0;
        transform: scale(1.05);
        opacity: 1;
    }

    .nav-links a:hover::after {
        width: 50%;
    }

    /* Mobile CMS Login */
    .mobile-cms-login {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
        transition-delay: 0.3s;
    }

    .mobile-menu-wrapper.open .mobile-cms-login {
        opacity: 1;
        transform: translateY(0);
    }

    .cms-login-label {
        font-family: var(--font-body);
        font-size: 0.65rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--color-text-muted);
        margin: 0;
    }

    .cms-login-input-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .cms-code-input {
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--color-border);
        padding: 0.5rem 0;
        font-family: var(--font-body);
        font-size: 0.9rem;
        color: var(--color-text);
        outline: none;
        width: 120px;
        text-align: center;
        transition: border-color var(--transition);
    }

    .cms-code-input:focus {
        border-color: var(--color-primary);
    }

    .cms-code-input::placeholder {
        color: var(--color-text-muted);
        opacity: 0.6;
    }

    .cms-submit-btn {
        padding: 0.45rem 1rem;
        font-size: 0.55rem;
    }

    /* Mobile Contact Footer */
    .mobile-menu-footer {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
        transition-delay: 0.35s;
    }

    .mobile-menu-wrapper.open .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-contact-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .mobile-contact-item {
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--color-primary);
        text-decoration: none;
        transition: color var(--transition);
    }

    .mobile-contact-item:hover {
        color: var(--color-dark);
    }

    .mobile-social-links {
        display: flex;
        gap: 1.5rem;
        margin-top: 0.5rem;
    }

    .mobile-social-links a {
        color: var(--color-primary);
        transition: color var(--transition), transform var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-social-links a:hover {
        color: var(--color-dark);
        transform: translateY(-2px);
    }

    .nav .btn--filled {
        display: none;
    }

    /* Hide desktop nav-links on mobile — mobile-menu-wrapper takes over */
    .nav > .nav-links {
        display: none;
    }

    .site-footer .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-creator {
        flex-direction: column;
        gap: 0.5rem;
    }

    .creator-separator {
        display: none;
    }
}