/* ============================================================
   MARIA PAULA SERRA — Production CSS
   Cross-browser · Cross-device · Centered · Boutique Legal
   ============================================================ */

/* --- Variables --- */
:root {
    --gold:          #C9A364;
    --slate:         #2A2D34;
    --accent:        #0E3B43;
    --accent-glow:   rgba(14, 59, 67, 0.22);
    --accent-light:  rgba(14, 59, 67, 0.06);
    --ivory:         #FDFBF7;
    --white:         #FFFFFF;
    --border:        rgba(42, 45, 52, 0.12);
    --serif:         'Bodoni Moda', Georgia, serif;
    --sans:          'Montserrat', Arial, sans-serif;
    --header-h:      130px;
    --topbar-h:      40px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--sans); background: var(--ivory); color: var(--slate); 
    overflow-x: hidden; line-height: 1.8; 
    -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
input, textarea, select {
    -webkit-user-select: auto; -moz-user-select: auto; -ms-user-select: auto; user-select: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); }

/* Custom cursor — dot only, no ring */
.cursor-dot, .cursor-outline { display: none; }
@media (hover: hover) and (pointer: fine) {
    * { cursor: none !important; }
    .cursor-dot {
        display: block; width: 8px; height: 8px; background: var(--accent);
        position: fixed; border-radius: 50%; z-index: 10000; pointer-events: none;
        transform: translate(-50%, -50%); top: 0; left: 0;
    }
    /* Outline intentionally removed per client request */
    .cursor-outline { display: none !important; }
}

/* --- Layout Util --- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 60px; }
.section-label { display: block; font-size: 0.65rem; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; margin-top: 15px; }
.section-header h2 em { color: var(--accent); font-style: italic; }
.section-desc { opacity: 0.55; font-size: 1rem; margin-top: 15px; }

/* --- Top Bar --- */
.top-bar {
    background: var(--slate); color: rgba(253,251,247,0.8);
    position: fixed; top: 0; width: 100%; z-index: 950;
    font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; height: var(--topbar-h);
    display: flex; align-items: center;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.top-bar-inner i { color: var(--gold); }
.top-bar-right { display: block; }

/* --- Header --- */
header {
    position: fixed; top: var(--topbar-h); width: 100%; z-index: 900;
    background: rgba(253, 251, 247, 0.97);
    padding: 28px 0;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: padding 0.5s ease;
}
header.scrolled { padding: 14px 0; }

.logo { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--slate); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }

.nav-wrap { display: flex; gap: 40px; list-style: none; }
.nav-wrap a { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: var(--slate); position: relative; padding-bottom: 4px; transition: color 0.3s; }
.nav-wrap a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.nav-wrap a:hover { color: var(--accent); }
.nav-wrap a:hover::after { width: 100%; }
.nav-cta { 
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important; 
    padding: 8px 22px !important; 
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.nav-cta:hover { 
    background: var(--gold); 
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgba(201, 163, 100, 0.2);
    transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding-top: calc(var(--header-h) + var(--topbar-h));
    background: var(--ivory);
}
.hero-content {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 5vw;
}
.hero-inner {
    max-width: 580px;
    width: 100%;
}
.hero-image {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--ivory);
    position: relative;
    overflow: hidden;
}
.hero-main-img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.15));
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.hero-image:hover .hero-main-img {
    transform: scale(1.02);
}
.hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.1; margin: 20px 0 30px; font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 1.05rem; opacity: 0.65; margin: 0 0 50px 0; }
.hero-actions { display: flex; gap: 20px; justify-content: flex-start; flex-wrap: wrap; }

/* --- BUTTONS (BOX STYLE) --- */
.btn-agency {
    display: inline-block; padding: 20px 55px;
    background: var(--slate); color: var(--white);
    border: none; border-radius: 0;
    font-family: var(--sans); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 4px; font-weight: 600;
    cursor: pointer;
    transition: background 0.4s, transform 0.3s, box-shadow 0.4s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.btn-agency:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 20px 45px var(--accent-glow);
}
.btn-agency:active { transform: translateY(0); box-shadow: 0 4px 12px var(--accent-glow); }

.btn-light { background: var(--white); color: var(--accent); }
.btn-light:hover { background: var(--ivory); color: var(--accent); }

.btn-ghost {
    display: inline-block; padding: 20px 45px;
    background: transparent; color: var(--slate);
    border: 2px solid var(--border); border-radius: 0;
    font-family: var(--sans); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 3px;
    transition: border-color 0.4s, color 0.4s;
    cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost-sm {
    background: none; border: none; color: var(--slate);
    font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; opacity: 0.5; transition: opacity 0.3s;
    padding: 10px 20px;
}
.btn-ghost-sm:hover { opacity: 1; }

/* --- Tool Cards --- */
.tools-section { background: var(--white); }
.tools-grid { display: grid; grid-template-columns: 1fr; max-width: 650px; margin: 0 auto; gap: 40px; }
.tool-card {
    border: 1px solid var(--border); padding: 70px 50px;
    text-align: center; cursor: pointer; background: var(--white);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.4s, box-shadow 0.5s;
}
.tool-card:hover { transform: translateY(-12px); border-color: var(--accent); box-shadow: 0 40px 80px rgba(14,59,67,0.1); }
.tool-icon { margin-bottom: 25px; }
.tool-icon i { font-size: 2.5rem; color: var(--accent); }
.tool-card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; margin-bottom: 20px; }
.tool-card h3 em { color: var(--accent); font-style: italic; }
.tool-card p { font-size: 0.9rem; opacity: 0.65; margin-bottom: 35px; line-height: 1.8; }

/* --- Document Checklist Modal --- */
.docs-progress-wrap {
    background: var(--border); height: 6px; border-radius: 0;
    margin-bottom: 12px; position: relative;
}
.docs-progress-bar {
    height: 100%; background: var(--accent); width: 0%;
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.docs-progress-label {
    display: block; font-size: 0.65rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 35px; text-align: center;
}
.docs-checklist { list-style: none; margin: 0; padding: 0; }
.doc-item {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 18px 20px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background 0.3s;
}
.doc-item:hover { background: var(--accent-light); }
.doc-item.checked { background: var(--accent-light); }
.doc-check {
    width: 28px; height: 28px; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px; transition: 0.3s;
}
.doc-check i { font-size: 0.7rem; color: var(--white); opacity: 0; transition: 0.3s; }
.doc-item.checked .doc-check { background: var(--accent); border-color: var(--accent); }
.doc-item.checked .doc-check i { opacity: 1; }
.doc-info strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.doc-info span { font-size: 0.78rem; opacity: 0.5; }

/* --- Triage Grid (Fase 01 Triagem) --- */
.triage-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.triage-topic { position: relative; }
.triage-btn {
    width: 100%; text-align: left; background: var(--white); border: 1px solid var(--border);
    padding: 20px 25px; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
    font-family: var(--sans); transition: border-color 0.3s, box-shadow 0.3s;
}
.triage-btn:hover { border-color: var(--accent); }
.triage-btn-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.triage-label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--slate); }
.triage-label i { color: var(--gold); margin-right: 12px; font-size: 1.1rem; }
.triage-arrow { color: var(--slate); opacity: 0.4; transition: transform 0.3s; font-size: 0.8rem; }
.triage-selected { font-size: 0.8rem; color: var(--accent); opacity: 0.6; font-style: italic; transition: 0.3s; }
.triage-btn.active .triage-arrow { transform: rotate(180deg); color: var(--accent); opacity: 1; }
.triage-btn.filled { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.triage-btn.filled .triage-selected { opacity: 1; font-weight: 500; font-style: normal; }
.triage-btn.filled .triage-label i { color: var(--accent); }

/* Drodown Options */
.triage-dropdown {
    display: none; background: var(--white); border: 1px solid var(--border);
    border-top: none; padding: 15px 25px; gap: 10px; flex-wrap: wrap; margin-top: -1px;
}
.triage-dropdown.open { display: flex; animation: stepIn 0.2s ease forwards; }
.triage-opt {
    padding: 10px 18px; border: 1px solid var(--border); font-size: 0.75rem; 
    cursor: pointer; transition: 0.3s; border-radius: 4px;
}
.triage-opt:hover { border-color: var(--accent); color: var(--accent); }
.triage-opt.selected { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Single Triage Btn (Não Iniciado) */
.triage-single { justify-content: center; align-items: flex-start; }
.triage-single.filled .triage-check-icon { display: inline-block !important; margin-left: auto; }


/* --- Timeline Biography --- */
/* --- Timeline Biography --- */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: flex-start; }
.bio-text h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; margin: 20px 0 25px; }
.bio-text h2 em { color: var(--accent); font-style: italic; }
.bio-text p { font-size: 0.95rem; opacity: 0.7; line-height: 1.9; }
.bio-credentials { margin-top: 40px; display: flex; flex-direction: column; gap: 15px; }
.credential-item { display: flex; align-items: center; gap: 15px; font-size: 0.85rem; }
.credential-item i { color: var(--gold); font-size: 1rem; width: 20px; text-align: center; }
.bio-timeline { margin-top: 50px; }
.timeline-item { display: flex; gap: 25px; margin-bottom: 35px; position: relative; }
.timeline-year {
    flex-shrink: 0; width: 55px; font-family: var(--serif); font-size: 1rem;
    font-weight: 700; color: var(--accent); padding-top: 3px;
}
.timeline-content { border-left: 2px solid var(--border); padding-left: 25px; }
.timeline-content strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; }
.timeline-content span { font-size: 0.8rem; opacity: 0.55; line-height: 1.7; }
.timeline-dot {
    position: absolute; left: 55px; top: 6px; width: 10px; height: 10px;
    background: var(--accent); border-radius: 50%; transform: translateX(20px);
}

/* --- Quote Section --- */
.quote-section { background: var(--accent); color: var(--ivory); text-align: center; }
.quote-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.quote-portrait { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin-bottom: 30px; border: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.quote-portrait img { width: 100%; height: 100%; object-fit: cover; }
.quote-section .section-label { color: var(--gold); }
blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.6rem); font-weight: 400; line-height: 1.4; margin: 30px 0; }
blockquote em { color: var(--gold); font-style: italic; }
.quote-divider { width: 60px; height: 1px; background: var(--gold); margin: 30px auto; }
.quote-author { font-size: 0.75rem; letter-spacing: 3px; opacity: 0.7; text-transform: uppercase; }

/* --- Services Grid --- */
.services-section { background: var(--ivory); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; margin-top: 20px; }
.service-item { padding: 40px; border-left: 3px solid var(--accent); }
.service-num { font-family: var(--serif); font-size: 3rem; color: var(--accent); opacity: 0.2; display: block; margin-bottom: 15px; line-height: 1; }
.service-item h4 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.service-item p { font-size: 0.9rem; opacity: 0.65; line-height: 1.8; }

/* --- CTA Band --- */
.cta-band { 
    background: linear-gradient(to right, rgba(14, 59, 67, 0.92), rgba(14, 59, 67, 0.98)), url('torre-clerigos.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0; 
    text-align: center; 
    position: relative;
}
.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 40px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}
.cta-box:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}
.cta-band p { 
    color: var(--ivory); 
    font-family: var(--serif); 
    font-size: clamp(1.5rem, 3vw, 2.4rem); 
    margin-bottom: 40px; 
    font-weight: 400; 
    line-height: 1.3;
}
.cta-box .btn-agency {
    background: var(--gold);
    border: 1px solid var(--gold);
}
.cta-box:hover .btn-agency {
    background: var(--ivory);
    color: var(--accent);
    border-color: var(--ivory);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(42, 45, 52, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 2000; display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--white); width: 100%; max-width: 920px;
    padding: 80px 100px; position: relative;
    max-height: 92vh; overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 40px 120px rgba(0,0,0,0.15);
}
.modal-overlay {
    background: rgba(14, 59, 67, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.form-meta {
    position: absolute;
    top: 40px;
    left: 100px;
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 600;
}
.form-security {
    position: absolute;
    top: 40px;
    right: 100px;
    font-family: var(--sans);
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--slate);
    opacity: 0.4;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.form-security i {
    font-size: 0.7rem;
    color: var(--gold);
}

.close-modal {
    position: absolute; top: 24px; right: 32px;
    font-size: 2rem; background: none; border: none;
    color: var(--slate); opacity: 0.3; cursor: pointer;
    transition: opacity 0.3s; line-height: 1;
}
.close-modal:hover { opacity: 1; }

.progress-track { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--border); }
.progress-bar { height: 100%; background: var(--accent); width: 33.33%; transition: width 0.6s cubic-bezier(0.19, 1, 0.22, 1); }

/* Form Steps */
.form-step { display: none; text-align: center; animation: stepIn 0.6s ease forwards; }
.form-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.step-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; margin: 20px 0; }
.step-title em { color: var(--accent); font-style: italic; }
.step-sub { font-size: 0.9rem; opacity: 0.55; margin-bottom: 45px; }

.form-field { margin-bottom: 35px; }
.form-field label { display: block; font-size: 0.62rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 15px; }
.form-input {
    width: 100%; border: none; border-bottom: 2px solid var(--border);
    background: transparent; padding: 18px 0;
    font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
    text-align: center; outline: none;
    color: var(--slate); transition: border-color 0.3s;
    -webkit-appearance: none; appearance: none;
    opacity: 1 !important;
}
.form-input:focus { border-bottom-color: var(--accent); }
.form-input::placeholder { color: var(--slate); font-style: italic; opacity: 0.6; }
.form-textarea {
    text-align: left; font-family: var(--sans); font-size: 1rem; border: 1px solid var(--border);
    padding: 15px; border-radius: 4px; line-height: 1.6; height: auto; min-height: 120px;
}

.time-btn {
    padding: 12px 20px; border: 1px solid var(--border); background: var(--white);
    color: var(--slate); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
    border-radius: 4px; font-weight: 600; width: 100%;
}
.time-btn:hover { border-color: var(--accent); color: var(--accent); }
.time-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

.custom-select {
    cursor: pointer; font-size: 1.3rem; text-align-last: center;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232A2D34%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px auto;
}
.custom-select option { font-family: var(--sans); font-size: 1rem; color: var(--slate); }

/* Icon Options */
.icon-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 30px 0 50px; }
.icon-option {
    border: 2px solid var(--border); padding: 35px 28px;
    width: 160px; cursor: pointer;
    transition: border-color 0.35s, background 0.35s;
    background: var(--white);
}
.icon-option:hover, .icon-option.active { border-color: var(--accent); background: var(--accent-light); }
.icon-option i { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 18px; }
.icon-option span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Calendar */
.calendar-wrap { max-width: 440px; margin: 30px auto 20px; border: 1px solid var(--border); padding: 30px; background: var(--white); }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.month-title { font-family: var(--serif); font-size: 1.3rem; }
.cal-nav { background: none; border: none; cursor: pointer; color: var(--slate); padding: 8px 12px; opacity: 0.5; transition: opacity 0.3s; font-size: 0.9rem; }
.cal-nav:hover { opacity: 1; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day-name { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 8px 0; color: var(--slate); opacity: 0.4; }
.day-num { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.88rem; cursor: pointer; border: 1px solid transparent; transition: background 0.25s, color 0.25s, border-color 0.25s; border-radius: 0; }
.day-num:hover:not(.disabled) { background: var(--accent-light); border-color: var(--accent); }
.day-num.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
.day-num.disabled { opacity: 0.12; cursor: default; }

.confirm-note { font-size: 0.75rem; opacity: 0.5; margin: 20px 0 35px; }
.confirm-note i { color: var(--gold); margin-right: 6px; }

.step-actions { text-align: center; margin-top: 40px; }
.step-actions.two-col { display: flex; align-items: center; justify-content: center; gap: 20px; }

/* --- Footer --- */
footer { padding: 100px 0; border-top: 8px solid var(--accent); background: var(--white); text-align: center; }
.footer-logo { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 3px; }
.footer-sub { font-size: 0.82rem; opacity: 0.5; margin-top: 12px; }
.footer-copy { font-size: 0.7rem; opacity: 0.3; margin-top: 40px; letter-spacing: 2px; }
.footer-credit { font-size: 0.75rem; opacity: 0.9; margin-top: 15px; letter-spacing: 1px; color: var(--slate); }
.footer-credit a { color: var(--accent); font-weight: 500; text-decoration: none; transition: 0.3s; border-bottom: 1px solid transparent; }
.footer-credit a:hover { border-bottom-color: var(--gold); color: var(--gold); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--accent); }

.footer-legal-links { margin: 25px 0 15px; font-size: 0.75rem; opacity: 0.6; }
.footer-legal-links a { text-decoration: none; transition: 0.3s; }
.footer-legal-links a:hover { color: var(--gold); }
.dot-sep { margin: 0 10px; opacity: 0.5; }

/* RGPD Consent */
.rgpd-consent { margin-top: 30px; margin-bottom: 10px; text-align: left; }
.rgpd-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.rgpd-label input { margin-top: 5px; cursor: pointer; }
.rgpd-label span { font-size: 0.75rem; opacity: 0.7; line-height: 1.6; }
.rgpd-label a { color: var(--gold); text-decoration: underline; }
.rgpd-label a:hover { opacity: 0.8; }

/* --- Testimonials --- */
.testimonials-section { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.testimonial-card {
    background: var(--ivory); padding: 60px 45px; border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s, border-color 0.4s;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative;
}
.testimonial-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(14,59,67,0.08); border-color: var(--accent); }
.testimonial-quote { color: var(--gold); font-size: 1.8rem; margin-bottom: 25px; display: block; opacity: 0.4; }
.testimonial-content p { font-size: 1.1rem; font-family: var(--serif); font-style: italic; color: var(--slate); line-height: 1.8; margin-bottom: 30px; }
.testimonial-footer { display: flex; align-items: center; gap: 15px; padding-top: 25px; border-top: 1px solid var(--border); }
.testimonial-author { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .container { padding: 0 40px; }
    .bio-grid { gap: 50px; }
}

@media (max-width: 1024px) {
    .tools-grid, .services-grid, .bio-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { padding: 40px; }
}

@media (max-width: 768px) {
    :root { 
        --header-h: 80px; 
        --topbar-h: 0px; 
    }
    
    body { font-size: 15px; }

    /* Fix potential horizontal overflow */
    html, body { overflow-x: hidden; width: 100%; position: relative; }

    .top-bar { display: none; }
    
    header { 
        top: 0; 
        padding: 15px 0; 
        gap: 8px; 
        height: var(--header-h);
        justify-content: center;
    }
    
    header.scrolled { padding: 10px 0; height: 70px; }
    
    .container { padding: 0 20px; }
    
    .logo { font-size: 1.2rem; letter-spacing: 2px; }

    /* Navigation: Horizontal Scroll for a cleaner look without wrapping */
    nav { 
        width: 100%; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding: 5px 0;
        scrollbar-width: none; /* Firefox */
    }
    nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */

    .nav-wrap { 
        gap: 20px; 
        flex-wrap: nowrap; 
        justify-content: flex-start; 
        padding: 0 20px;
        width: max-content;
        margin: 0 auto;
    }
    
    .nav-wrap a { font-size: 0.6rem; white-space: nowrap; letter-spacing: 2px; }
    .nav-cta { display: none; } /* Hidden in header, will show in bottom bar */

    /* Hero Refinement */
    .hero { 
        flex-direction: column-reverse; 
        padding-top: var(--header-h); 
        min-height: auto; 
        background: var(--ivory);
    }
    
    .hero-content { 
        padding: 40px 20px 60px; 
        text-align: center; 
        flex: 0 0 auto; 
        width: 100%; 
    }
    
    .hero-image { 
        height: 45vh; 
        min-height: 300px; 
        width: 100%; 
        flex: 0 0 auto; 
        padding: 30px 20px 0; 
    }
    
    .hero-main-img { 
        max-height: 100%; 
        width: auto; 
        max-width: 100%;
        object-fit: contain;
    }
    
    .hero-inner { max-width: 100%; }
    
    .hero h1 { font-size: 2.4rem; margin-bottom: 20px; line-height: 1.2; }
    .hero-sub { font-size: 0.95rem; margin-bottom: 35px; }
    
    .hero-actions { 
        flex-direction: column; 
        gap: 12px; 
        width: 100%; 
        align-items: center; 
    }
    
    .btn-agency, .btn-ghost { 
        width: 100%; 
        max-width: 100%; 
        padding: 18px 30px; 
        font-size: 0.68rem;
    }

    /* Section Spacing */
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 2rem; }

    /* Modal Optimization */
    .modal-box { 
        padding: 60px 20px 40px; 
        margin: 10px;
        max-height: 95vh;
    }
    
    .form-meta { left: 20px; top: 20px; font-size: 0.55rem; }
    .form-security { display: none; }
    
    .step-title { font-size: 1.8rem; }
    .step-sub { font-size: 0.85rem; margin-bottom: 30px; }
    
    .triage-btn { padding: 15px 20px; }
    .triage-label { font-size: 0.75rem; }
    .triage-opt { padding: 8px 12px; font-size: 0.7rem; }
    
    .docs-checklist { gap: 10px; }
    .doc-item { padding: 15px; }
    .doc-info strong { font-size: 0.85rem; }
    
    .calendar-wrap { padding: 15px; margin-top: 20px; }
    .day-num { font-size: 0.75rem; }
    
    .form-input { font-size: 1.1rem; }
    .custom-select { font-size: 1rem; }

    /* Footer */
    footer { padding: 60px 0 100px; } /* Extra bottom padding for the bar */

    /* Premium Mobile Bottom Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        z-index: 1500;
        padding: 10px 15px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        justify-content: space-between;
        align-items: center;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.55rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--slate);
        opacity: 0.7;
    }
    
    .mobile-nav-item i { font-size: 1.2rem; color: var(--accent); }
    
    .mobile-nav-cta {
        flex: 2;
        background: var(--accent);
        color: var(--white);
        padding: 12px 20px;
        border-radius: 4px;
        font-size: 0.65rem;
        font-weight: 600;
        text-align: center;
        letter-spacing: 1px;
        margin-left: 10px;
        box-shadow: 0 4px 15px var(--accent-glow);
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    .section-header h2 { font-size: 1.8rem; }
    .hero-image { height: 40vh; }
    .form-input { font-size: 1rem; }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%; background: var(--slate); color: var(--ivory);
    padding: 20px 0; z-index: 11000; transform: translateY(100%); transition: transform 0.5s ease;
}
.cookie-banner.active { transform: translateY(0); }
.cookie-flex { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cookie-flex p { font-size: 0.85rem; opacity: 0.8; margin: 0; }
.cookie-flex a { text-decoration: underline; }
.btn-sm { padding: 10px 25px; font-size: 0.75rem; letter-spacing: 1px; }

@media (max-width: 768px) {
    .cookie-flex { flex-direction: column; text-align: center; gap: 20px; }
}
