/* ============================================================
   STUDIO WESTONIA — Global Styles
   ============================================================ */

/* --- Fonts (inline @font-face — no @import to avoid blocking chain) --- */
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NeueHaasDisplayRoman.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NeueHaasDisplayRomanItalic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NeueHaasDisplayMediu.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NeueHaasDisplayBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('../fonts/NeueHaasDisplayBlack.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- Custom Properties --- */
:root {
    --blue: #0000FF;
    --deep-blue: #0000A1;
    --black: #000000;
    --white: #FFFFFF;
    --grey-dark: #111111;
    --grey-mid: #1a1a1a;
    --grey-light: #f5f5f5;

    --font: 'Neue Haas Grotesk', system-ui, -apple-system, sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 700;
    --font-black: 900;

    --nav-height: 72px;
    --section-padding: clamp(4rem, 8vw, 10rem);
    --container-width: 1320px;
    --container-padding: clamp(1.25rem, 4vw, 3rem);

    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-pill: 0;

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font);
    font-weight: var(--font-regular);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}

.section--dark {
    background: var(--white);
    color: var(--black);
}

.section--light {
    background: var(--white);
    color: var(--black);
}

.section--blue {
    background: var(--blue);
    color: var(--white);
}

/* Reserve height for the two include placeholders so the fetch-and-
   inject pattern in main.js does not trigger a layout shift when
   _includes/cta.html and _includes/footer.html arrive. Values match
   the approximate rendered height of each block at the breakpoint;
   real content overrides the placeholder rule once injected (so a
   slightly taller section just grows naturally without shifting
   content above it). The nav-placeholder is fixed-position so no
   reservation is needed. */
/* CTA permanently removed — collapse the placeholder so the empty
   <div id="cta-placeholder"> on every page doesn't leave 70vh of
   blank space between content and footer. */
#cta-placeholder {
    display: none;
}
#footer-placeholder {
    min-height: clamp(380px, 55vh, 460px);
}
@media (max-width: 768px) {
    #footer-placeholder { min-height: 720px; }
}

/* CTA Section (used on all pages via _includes/cta.html) */
.cta-section { text-align: left; }
.cta-section__title {
    margin-bottom: 2.25rem;
    color: #FFFFFF;
    line-height: 1.22;
    font-size: clamp(2.2rem, 5.7vw, 6rem);
    letter-spacing: -0.01em;
}
.cta-section__subtitle { font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, 0.6); margin-bottom: 2.75rem; line-height: 1.55; }
@media (max-width: 768px) {
    .cta-section__title {
        margin-bottom: 2.5rem;
    }
    .cta-section__title.reveal.is-visible {
        transform: translateY(0) !important;
    }
    .cta-section__subtitle {
        margin-top: 0;
        margin-bottom: 2.25rem;
    }
}
.cta-section__contact-info { display: flex; justify-content: flex-start; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-section__contact-info a { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; transition: color var(--transition); }
@media (hover:hover){
.cta-section__contact-info a:hover { color: var(--white); }
}

/* --- Typography --- */
.heading-display {
    font-weight: var(--font-black);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.02em;
    font-size: clamp(3rem, 8.5vw, 9.5rem);
    overflow-wrap: break-word;
}

.heading-xl {
    font-weight: var(--font-black);
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-size: clamp(2.2rem, 6vw, 6rem);
}

.heading-lg {
    font-weight: var(--font-bold);
    line-height: 1.05;
    letter-spacing: -0.01em;
    font-size: clamp(2rem, 4vw, 4rem);
}

.heading-md {
    font-weight: var(--font-medium);
    line-height: 1.15;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

/* On mobile, headings sit too close to the nav above and the body
   copy below — paragraphs run flush against the H1/H2. Add explicit
   bottom space so every heading breathes on small screens. Desktop
   has enough room from clamp() font sizes + section padding so we
   don't need it there.
   The padding-bottom is a small internal "lucht" below the title
   text itself; combined with the margin-bottom it gives noticeable
   but subtle breathing room on phones. */
@media (max-width: 768px) {
    .heading-display,
    .heading-xl,
    .heading-lg,
    .heading-md {
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
        padding-bottom: clamp(0.4rem, 1.2vw, 0.6rem);
    }
}

.heading-sm {
    font-weight: var(--font-medium);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-body {
    font-weight: var(--font-regular);
    font-size: clamp(0.95rem, 1.2vw, 1.125rem);
    line-height: 1.65;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-blue {
    color: var(--blue);
}

.text-white {
    color: var(--white);
}

.text-black {
    color: var(--black);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: var(--font-medium);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn--blue {
    background: var(--blue);
    color: var(--white);
}

@media (hover:hover){
.btn--blue:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}
}

.btn--black {
    background: var(--black);
    color: var(--white);
}

@media (hover:hover){
.btn--black:hover {
    background: var(--grey-dark);
    transform: translateY(-2px);
}
}

.btn--white {
    background: var(--white);
    color: var(--black);
}

@media (hover:hover){
.btn--white:hover {
    background: var(--grey-light);
    transform: translateY(-2px);
}
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

@media (hover:hover){
.btn--outline:hover {
    background: var(--white);
    color: var(--black);
}
}

.btn__arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
}

@media (hover:hover){
.btn:hover .btn__arrow {
    transform: translateX(4px);
}
}

/* --- Brand Watermark (W-logo as a large background element) ---
   Brand blue at very low opacity — these are big section-scale W
   shapes that sit behind workflow chaos boxes and pakketten cards.
   At anything above ~0.08 they pull focus away from the actual
   content, so they're kept whisper-quiet here. Smaller logo
   placements (team card badges, the 404 wordmark, the 404 corner
   ident) stay at full opacity — only the big background versions
   get this tone-down. */
.brand-watermark {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
}

.brand-watermark svg {
    width: 100%;
    height: 100%;
    fill: var(--blue);
}

.brand-watermark--section {
    width: clamp(160px, 28vw, 400px);
}

.brand-watermark--left {
    left: -8%;
    top: 10%;
}

.brand-watermark--right {
    right: -8%;
    bottom: 10%;
}

/* --- Utility --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.reveal {
    transform: translateY(30px);
    transition: transform 0.7s ease;
    will-change: transform;
}

.reveal.is-visible {
    transform: translateY(0);
}

/* --- Breadcrumbs (site-wide, subtle, house style) ---
   Sits above the H1 of each page. Small uppercase, low contrast,
   blue accent on hover, slightly stronger color on the current page. */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.4;
}

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

@media (hover:hover){
.breadcrumbs a:hover {
    color: var(--blue);
}
}

.breadcrumbs__sep {
    color: rgba(0, 0, 0, 0.2);
    user-select: none;
}

.breadcrumbs [aria-current="page"] {
    color: var(--black);
}

.section--blue .breadcrumbs,
.hero .breadcrumbs {
    color: rgba(255, 255, 255, 0.55);
}
.section--blue .breadcrumbs__sep,
.hero .breadcrumbs__sep {
    color: rgba(255, 255, 255, 0.3);
}
.section--blue .breadcrumbs [aria-current="page"],
.hero .breadcrumbs [aria-current="page"] {
    color: var(--white);
}

/* --- Word-break for long links/emails --- */
.contact-info__block a,
.footer__nav-link,
.footer a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --section-padding: clamp(3rem, 6vw, 6rem);
    }
}

@media (max-width: 480px) {
    .btn {
        white-space: normal;
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Hero CTA stays on a single line — text + arrow next to each other */
    .hero__cta .btn {
        white-space: nowrap;
    }
}

/* ============================================================
   Floating CTA Button
   ============================================================ */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 997;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-family: var(--font);
    font-weight: var(--font-medium);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background var(--transition),
                bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover:hover){
.floating-cta:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}
}

.floating-cta.is-hidden-menu {
    opacity: 0 !important;
    pointer-events: none !important;
}

.floating-cta__text-short {
    display: none;
}

.floating-cta__arrow {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
}

@media (hover:hover){
.floating-cta:hover .floating-cta__arrow {
    transform: translateX(4px);
}
}

@media (max-width: 900px) {
    .floating-cta {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }

    .floating-cta__text-full {
        display: none;
    }

    .floating-cta__text-short {
        display: inline;
    }
}

/* --- FAQ accordion (site-wide) ---------------------------------
   Native <details> / <summary> styled to match the brand. Zero JS,
   fully accessible, keyboard-navigable. Lives in global.css so any
   page (not just /diensten/*) can drop in a .faq-list block. */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    border-left: 3px solid var(--blue);
    background: rgba(0, 0, 255, 0.04);
    transition: background 0.2s ease;
}
.faq-item[open] {
    background: rgba(0, 0, 255, 0.07);
}
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.25rem 0.95rem 1.5rem;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: var(--font-bold);
    line-height: 1.4;
    color: var(--black);
    user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: '+';
    flex-shrink: 0;
    display: inline-block;
    width: 1em;
    font-size: 1.5em;
    font-weight: 400;
    line-height: 0.7;
    color: var(--blue);
    text-align: center;
    transform: translateY(2px);
    transition: transform 0.25s ease;
}
.faq-item[open] > summary::after {
    content: '−';
    transform: translateY(2px) rotate(180deg);
}
.faq-item > summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}
.faq-item__a {
    padding: 0.25rem 1.5rem 1.1rem 1.5rem;
    border-left: 3px solid rgba(0, 0, 255, 0.18);
    margin-left: -3px;
}
.faq-item__a p {
    margin: 0;
    font-size: clamp(0.9rem, 1.15vw, 1rem);
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.68);
}
.faq-item__a p + p {
    margin-top: 0.75rem;
}
.faq-item__a a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
