/* ─── LOPES & ASSOCIADOS — MAIN CSS ─────────────────────────────────────── */
:root {
    --navy:       #0A1628;
    --navy-mid:   #142040;
    --navy-dim:   rgba(10,22,40,0.06);
    --gold:       #C9A84C;
    --gold-mid:   #A8893A;
    --gold-dim:   rgba(201,168,76,0.15);
    --gold-glow:  rgba(201,168,76,0.3);
    --cream:      #F5F0E8;
    --warm:       #FDFBF7;
    --slate:      #2C3A4A;
    --slate-mid:  rgba(44,58,74,0.55);
    --slate-dim:  rgba(44,58,74,0.06);
    --border:     rgba(201,168,76,0.2);
    --shadow:     0 4px 24px rgba(10,22,40,0.10);
    --shadow-lg:  0 12px 48px rgba(10,22,40,0.16);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-body:  'Inter', system-ui, sans-serif;
    --max-w:      1200px;
    --radius:     6px;
    --radius-lg:  12px;
    --header-h:   76px;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    background: var(--warm);
    color: var(--slate);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ─── PRELOADER ───────────────────────────────────────────────────────────── */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1.2rem;
    transition: opacity 0.6s var(--ease);
}
#preloader.is-hidden { opacity: 0; pointer-events: none; }
.preloader__seal { width: 80px; height: 80px; }
.preloader__seal-svg { width: 100%; height: 100%; }
.preloader__name {
    font-family: var(--font-serif);
    font-size: 1.4rem; font-weight: 600;
    color: var(--gold); letter-spacing: 0.05em;
}
.preloader__sub { font-size: 0.7rem; color: rgba(201,168,76,0.55); letter-spacing: 0.12em; text-transform: uppercase; }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: var(--header-h);
    background: rgba(253,251,247,0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header__inner {
    max-width: var(--max-w);
    margin: 0 auto; padding: 0 2rem;
    height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.header__logo {
    display: flex; align-items: center; gap: 0.7rem;
    color: var(--navy);
}
.header__logo-icon { color: var(--gold); flex-shrink: 0; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.header__logo-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.header__logo-sub  { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.header__nav { display: flex; align-items: center; gap: 0.25rem; }
.header__links { display: flex; align-items: center; gap: 0.25rem; }
.header__link {
    font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
    color: var(--slate); padding: 0.5rem 0.8rem; border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
}
.header__link:hover { color: var(--navy); background: var(--gold-dim); }
.header__link--cta {
    background: var(--navy); color: var(--gold);
    padding: 0.5rem 1.1rem; border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.header__link--cta:hover { background: var(--gold); color: var(--navy); }

.header__burger {
    display: none; flex-direction: column; gap: 5px;
    padding: 8px; border-radius: 4px;
}
.header__burger span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: transform 0.3s, opacity 0.3s; }

/* ─── MOBILE MENU ─────────────────────────────────────────────────────────── */
.mobile-menu {
    position: fixed; inset: 0; z-index: 950;
    background: var(--navy);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    font-size: 1.8rem; color: var(--gold); line-height: 1; padding: 0.5rem;
}
.mobile-menu__list { text-align: center; }
.mobile-menu__link {
    display: block; font-family: var(--font-serif);
    font-size: 2rem; font-weight: 500; color: rgba(245,240,232,0.8);
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__tagline {
    position: absolute; bottom: 2rem;
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(201,168,76,0.45);
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
#main { padding-top: var(--header-h); }

.section { padding: 6rem 1.5rem; }
.section--alt { background: var(--cream); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.text-center { text-align: center; }

.section__eyebrow {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.75rem;
}
.section__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600; line-height: 1.15;
    color: var(--navy); margin-bottom: 1rem;
}
.section__body {
    font-size: 1.05rem; color: var(--slate-mid);
    max-width: 600px; margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 600; border-radius: var(--radius);
    padding: 0.75rem 1.75rem; font-size: 0.9rem;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--gold); }
.btn--primary:hover { background: var(--gold); color: var(--navy); }
.btn--outline { border: 1.5px solid var(--gold); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--gold); }

/* ─── GRID ────────────────────────────────────────────────────────────────── */
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--warm); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--border); }
.card__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; }
.card__body  { font-size: 0.92rem; color: var(--slate-mid); line-height: 1.65; }

/* ─── [data-animate] initial state ───────────────────────────────────────── */
[data-animate] { opacity: 0; transform: translateY(20px); }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 92vh;
    display: flex; align-items: center;
    background: var(--navy);
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.96) 0%, rgba(10,22,40,0.75) 60%, rgba(10,22,40,0.5) 100%);
}
.hero__inner {
    position: relative; z-index: 1;
    max-width: var(--max-w); margin: 0 auto; padding: 4rem 2rem;
    max-width: 700px;
}
.hero__trust-badge {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.5rem;
}
.hero__badge-line { display: block; width: 32px; height: 1px; background: var(--gold); }
.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 600; line-height: 1.1;
    color: var(--cream); margin-bottom: 1.25rem;
}
.hero__title em { color: var(--gold); font-style: italic; }
.hero__subtitle {
    font-size: 1.1rem; color: rgba(245,240,232,0.65);
    line-height: 1.7; margin-bottom: 2.5rem; max-width: 560px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── HERO DECORATIVE LINE ────────────────────────────────────────────────── */
.hero::after {
    content: ''; position: absolute;
    left: 0; bottom: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-mid) 60%, transparent 100%);
}

/* ─── SERVICE CARDS ───────────────────────────────────────────────────────── */
.la-service-card { position: relative; transition: transform 0.25s, box-shadow 0.25s; }
.la-service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.la-service-card__icon {
    width: 48px; height: 48px; margin-bottom: 1rem;
    background: var(--gold-dim); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
/* Icon SVGs */
.la-icon-doc::before, .la-icon-building::before,
.la-icon-id::before, .la-icon-family::before {
    content: ''; display: block; width: 24px; height: 24px;
    background: var(--gold); mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
.la-icon-doc::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpolyline points='14,2 14,8 20,8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E"); }
.la-icon-building::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M9 9h6M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.la-icon-id::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Cpath d='M14 9h4M14 13h4'/%3E%3C/svg%3E"); }
.la-icon-family::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Ccircle cx='15' cy='7' r='3'/%3E%3Cpath d='M3 21v-2a6 6 0 0112 0v2M18 21v-2a4 4 0 00-4-4'/%3E%3C/svg%3E"); }

/* ─── ABOUT GRID ──────────────────────────────────────────────────────────── */
.la-about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
    align-items: center; margin-bottom: 4rem;
}
.la-about-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.la-about-body { font-size: 1rem; color: var(--slate-mid); line-height: 1.8; margin-top: 1rem; }

/* ─── STATS ───────────────────────────────────────────────────────────────── */
.la-stats {
    display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
    padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin-bottom: 4rem;
}
.la-stat { text-align: center; }
.la-stat__number {
    display: block; font-family: var(--font-serif);
    font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.la-stat__label { font-size: 0.82rem; color: var(--slate-mid); margin-top: 0.4rem; letter-spacing: 0.04em; }

/* ─── PARTNERS ────────────────────────────────────────────────────────────── */
.la-partners__heading { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 2rem; }
.la-partner-card { text-align: center; }
.la-partner-card__photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; border: 3px solid var(--gold-dim); }
.la-partner-img { width: 100%; height: 100%; object-fit: cover; }
.la-partner-card__name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.la-partner-card__role { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; margin: 0.3rem 0 0.75rem; }
.la-partner-card__bio { font-size: 0.88rem; color: var(--slate-mid); line-height: 1.65; }

/* ─── AREA CARDS ──────────────────────────────────────────────────────────── */
.la-area-card { border-left: 3px solid var(--gold); padding-left: 1.75rem; background: var(--warm); }
.la-area-card .card__title { margin-bottom: 0.6rem; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.la-faq-list { max-width: 760px; margin: 0 auto; }
.la-faq-item {
    border-bottom: 1px solid var(--border);
}
.la-faq-item__question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; padding: 1.25rem 0;
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500;
    color: var(--navy); text-align: left; cursor: pointer;
    transition: color 0.2s;
}
.la-faq-item__question:hover { color: var(--gold); }
.la-faq-item__chevron { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--gold); }
.la-faq-item.is-open .la-faq-item__chevron { transform: rotate(180deg); }
.la-faq-item__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.la-faq-item.is-open .la-faq-item__answer { max-height: 300px; }
.la-faq-item__answer p { padding: 0 0 1.25rem; font-size: 0.95rem; color: var(--slate-mid); line-height: 1.75; }

/* ─── MARCAÇÃO ────────────────────────────────────────────────────────────── */
.la-marcacao-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start;
}
.la-marcacao-info { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.la-marcacao-info__item { display: flex; flex-direction: column; gap: 0.2rem; }
.la-marcacao-info__item strong { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.la-marcacao-info__item a, .la-marcacao-info__item span { font-size: 1rem; color: var(--navy); }
.la-marcacao-info__item a:hover { color: var(--gold); }
.la-form-placeholder { padding: 2rem; background: var(--cream); border-radius: var(--radius); text-align: center; color: var(--slate-mid); }

/* ─── CONTACTOS ───────────────────────────────────────────────────────────── */
.la-contactos-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.la-contactos-info { display: flex; flex-direction: column; gap: 1.5rem; }
.la-contactos-item h4 { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.la-contactos-item p, .la-contactos-item a { font-size: 0.95rem; color: var(--slate-mid); }
.la-contactos-item a:hover { color: var(--gold); }
.la-contactos-map iframe { border-radius: var(--radius-lg); display: block; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(245,240,232,0.55);
    padding: 2.5rem 1.5rem;
    text-align: center; font-size: 0.82rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .header__links { display: none; }
    .header__burger { display: flex; }
    .la-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .la-marcacao-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .la-contactos-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .la-stats { gap: 2rem; }
}
@media (max-width: 600px) {
    .section { padding: 4rem 1rem; }
    .hero__inner { padding: 3rem 1.25rem; }
    .hero__title { font-size: 2rem; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    [data-animate] { opacity: 1; transform: none; }
}
