/*
Theme Name:   linsa-child
Template:     linsa
Description:  linsa Child Theme
*/

/* ── LOCAL FONTS ──────────────────────────────────────────────── */
@font-face {
    font-family: 'DM Serif Text';
    src: url('fonts/DMSerifText-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'DM Serif Text';
    src: url('fonts/DMSerifText-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Italic-VariableFont_opsz,wght.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, select, textarea {
    font-display: swap !important;
}

.page-template-page-services,
.page-template-page-services body {
    background-color: #ffffff !important;
}

/* Header intentionally left untouched. The theme's .wgl-theme-header.header_overlap
   is position:absolute with no background of its own — it's transparent by design,
   floating over .bureau-wrapper. Since .bureau-wrapper is #ffffff below, the area
   behind the header inherits that automatically. Footer is also left untouched —
   it already renders correctly on its own. */

/* ── GRAIN / TEXTURE SAFETY NET ──────────────────────────────────
   Belt-and-braces alongside the wp_head override in functions.php,
   in case the texture is applied via a CSS class rather than an
   inline body background. */
.page-template-page-services body,
.page-template-page-services body::before,
.page-template-page-services body::after {
    background-image: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.bureau-wrapper {
    --bg: #ffffff;
    --surface: #edeae2;
    --rule: #d6d2c8;
    --accent: #0a0a08;
    --text: #0a0a08;
    --muted: #7a766f;
    --f-display: 'DM Serif Text', Georgia, serif;
    --f-body: 'Inter', system-ui, sans-serif;

    background-color: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-weight: 300;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-bottom: 160px;
    position: relative;
}

.bureau-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.bureau-wrapper *,
.bureau-wrapper *::before,
.bureau-wrapper *::after { box-sizing: border-box; }

.bureau-wrapper .progress {
    position: fixed;
    top: 0; left: 0;
    height: 1px;
    width: 100%;
    background: var(--accent);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    pointer-events: none;
}

.bureau-hero {
    /* 100px is your exact distance from the top. 64px sides, 80px bottom */
    padding: 100px 64px 80px; 
    min-height: 40vh; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* This forces the text to obey the top padding */
}

.bureau-headline {
    font-family: var(--f-display);
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 400;
    line-height: 0.95;
    margin: 0;
}
.bureau-headline b {
    font-weight: 400;
    font-style: italic;
    color: var(--text);
}

.bureau-service {
    border-top: 1px solid var(--rule);
    padding: 80px 64px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 64px;
    transition: background-color 0.4s ease;
}
.bureau-service:hover { background-color: var(--surface); }

.bureau-num {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 6px;
}

.bureau-title {
    font-family: var(--f-display);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    line-height: 1;
    margin: 0 0 28px 0;
}

.bureau-desc {
    font-size: 17px;
    line-height: 1.78;
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 36px;
}

.bureau-deliverables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}

.bureau-d-item {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bureau-d-item::before {
    content: '';
    flex-shrink: 0;
    width: 14px;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

.bureau-cta {
    border-top: 1px solid var(--rule);
    padding: 120px 64px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
    text-align: center;
}

.bureau-cta-text {
    font-size: 17px;
    color: var(--muted);
    max-width: 50ch;
    line-height: 1.75;
    margin: 0;
}

button.bureau-link {
    display: inline-block;
    padding: 17px 44px 16px;
    border: 1px solid rgba(10,10,8,0.3);
    background: transparent;
    font-family: var(--f-display);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    border-radius: 0;
    line-height: 1;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
}
button.bureau-link:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ==========================================================================
   NATIVE HTML5 DIALOG
   (outside .bureau-wrapper in the DOM, so custom properties don't inherit —
   font names are set explicitly here instead of via var())
   ========================================================================== */

.bureau-dialog {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    width: 92%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 50px 40px;
    margin: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    color: #0a0a08;
}

.bureau-dialog::backdrop {
    background: rgba(10, 10, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#bureau-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9a9690;
    transition: color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
#bureau-modal-close:hover { color: #0a0a08; }

.bureau-dialog .bm-eyebrow {
    font-family: 'DM Serif Text', Georgia, serif;
    font-style: italic;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b0aca5;
    margin: 0 0 14px 0;
}

.bureau-dialog .bm-title {
    font-family: 'DM Serif Text', Georgia, serif;
    font-size: clamp(26px, 5vw, 32px);
    font-weight: 400;
    margin: 0 0 8px 0;
}

.bureau-dialog .bm-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #8a8680;
    margin: 0 0 28px 0;
}

.bureau-dialog .bm-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.bureau-dialog a.bm-contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: #0a0a08;
    border-radius: 100px;
    transition: background 0.2s, border-color 0.2s;
}
.bureau-dialog a.bm-contact-row:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(10, 10, 8, 0.15);
}

.bureau-dialog .bm-contact-icon {
    width: 20px;
    display: flex;
    justify-content: center;
}

.bureau-dialog .bm-contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.bureau-dialog .bm-contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #7a766f;
    flex: 1;
    text-align: right;
}

.bureau-dialog .bm-contact-arrow {
    width: 18px;
    color: #b0aca5;
    display: flex;
    transition: transform 0.3s ease, color 0.3s ease;
}
.bureau-dialog a.bm-contact-row:hover .bm-contact-arrow {
    color: #0a0a08;
    transform: translate(3px, -3px);
}

.bureau-dialog .bm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
}
.bureau-dialog .bm-divider::before,
.bureau-dialog .bm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(10, 10, 8, 0.08);
}
.bureau-dialog .bm-divider span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #b0aca5;
}

.bureau-dialog .wpcf7-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9a9690;
    margin-bottom: 6px;
    padding-left: 16px;
}

.bureau-dialog .wpcf7-form input[type="text"],
.bureau-dialog .wpcf7-form input[type="email"],
.bureau-dialog .wpcf7-form input[type="tel"],
.bureau-dialog .wpcf7-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0a0a08;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}
.bureau-dialog .wpcf7-form input[type="text"],
.bureau-dialog .wpcf7-form input[type="email"],
.bureau-dialog .wpcf7-form input[type="tel"] {
    border-radius: 100px;
}

.bureau-dialog .wpcf7-form textarea {
    min-height: 100px;
    max-height: 240px;
    resize: none;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bureau-dialog .wpcf7-form .wpcf7-submit {
    margin-top: 10px;
    width: 100%;
    background: #0a0a08;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.bureau-dialog .wpcf7-form .wpcf7-submit:hover { opacity: 0.85; }

@media (max-width: 960px) {
    .bureau-hero { padding: 100px 32px 60px; }
    .bureau-service { grid-template-columns: 1fr; gap: 16px; padding: 60px 32px; }
    .bureau-deliverables { grid-template-columns: 1fr; }
    .bureau-cta { padding: 80px 32px; }
}

@media (max-width: 600px) {
    .bureau-hero { padding: 90px 22px 48px; }
    .bureau-service { padding: 48px 22px; }
    .bureau-cta { padding: 64px 22px; }
    .bureau-dialog { padding: 40px 24px; border-radius: 24px; }
}