/* ===================================================================
   Mare Arquitetura Legal — Mariana Queiroz
   Paleta e tipografia herdadas do site original (rose / cimento / creme)
   =================================================================== */

:root {
    --background: hsl(30 20% 97%);
    --foreground: hsl(220 20% 18%);
    --card: hsl(0 0% 100%);
    --primary: hsl(348 35% 58%);
    --primary-dark: hsl(348 34% 44%);
    --primary-deep: hsl(348 30% 30%);
    --primary-foreground: hsl(0 0% 100%);
    --muted: hsl(220 10% 94%);
    --muted-foreground: hsl(220 10% 46%);
    --accent: hsl(348 25% 92%);
    --accent-foreground: hsl(348 35% 45%);
    --rose-soft: hsl(348 30% 94%);
    --cement: hsl(220 8% 72%);
    --cement-light: hsl(220 8% 85%);
    --border: hsl(220 13% 88%);
    --dark: hsl(220 22% 16%);

    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Nunito", system-ui, -apple-system, sans-serif;

    --radius: 0.9rem;
    --maxw: 1140px;
    --shadow-sm: 0 4px 16px rgba(40, 40, 50, 0.06);
    --shadow-md: 0 14px 40px rgba(40, 40, 50, 0.10);
    --shadow-lg: 0 24px 60px rgba(40, 40, 50, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    color: var(--foreground);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-ic { display: inline-flex; width: 1.15rem; height: 1.15rem; }
.btn-ic svg { width: 100%; height: 100%; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 8px 22px hsla(348, 35%, 50%, 0.35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 12px 28px hsla(348, 35%, 45%, 0.45); }

.btn-light { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-light:hover { background: var(--rose-soft); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-lg { font-size: 1.05rem; padding: 1rem 2rem; }

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar.scrolled {
    background: hsla(30, 20%, 97%, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.7rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #fff; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--primary); color: #fff; padding: 9px;
    box-shadow: 0 6px 16px hsla(348,35%,50%,.3);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.brand-sub { font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.78); margin-top: 2px; }
.navbar.scrolled .brand-text, .footer .brand-text { color: var(--foreground); }
.navbar.scrolled .brand-sub { color: var(--muted-foreground); }

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
    position: relative; text-decoration: none; color: rgba(255,255,255,.92);
    font-weight: 600; font-size: 0.95rem; padding: 0.5rem 0.9rem; border-radius: 8px;
    transition: color .2s ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
    height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }
.navbar.scrolled .nav-link { color: var(--foreground); }
.navbar.scrolled .nav-link::after { background: var(--primary); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--primary-dark); }
.nav-cta { margin-left: 0.6rem; padding: 0.6rem 1.3rem; }

.nav-toggle {
    display: none; background: var(--primary); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 12px; cursor: pointer; padding: 10px;
}
.nav-toggle svg { width: 100%; height: 100%; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* ===================== HERO ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    background: linear-gradient(135deg, hsl(349 56% 74%) 0%, hsl(348 52% 69%) 50%, hsl(350 62% 82%) 100%);
    color: #fff;
    overflow: hidden;
}
.hero-blueprint {
    position: absolute; inset: 0; color: #fff; opacity: 0.18; pointer-events: none;
}
.hero-blueprint .bp-svg { width: 100%; height: 100%; }
.hero-blueprint .bp-lines { opacity: 0.9; }
.hero-blueprint .bp-dim { opacity: 0.6; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 20%, transparent 50%, hsla(348,34%,52%,.22) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero-eyebrow {
    display: inline-block; font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: rgba(255,255,255,.75); font-weight: 600; margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.02; margin-bottom: 1.4rem;
    text-shadow: 0 2px 18px hsla(345, 40%, 35%, 0.28);
}
.hero-title .accent { color: hsl(346 62% 47%); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: #fff; max-width: 30rem; margin-bottom: 2.2rem; text-shadow: 0 1px 10px hsla(345, 40%, 35%, 0.25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-card {
    position: relative;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    border-radius: 1.6rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.hero-card-icon {
    width: 84px; height: 84px; margin: 0 auto 1.5rem; padding: 20px;
    border-radius: 22px; background: rgba(255,255,255,.16); color: #fff;
}
.hero-card-icon svg { width: 100%; height: 100%; }
.hero-card-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.5rem;
}
.hero-card-grid span {
    height: 8px; border-radius: 4px; background: rgba(255,255,255,.25);
}
.hero-card-grid span:nth-child(2) { background: rgba(255,255,255,.45); }
.hero-card-grid span:nth-child(5) { background: rgba(255,255,255,.45); }
.hero-card-text { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }

.hero-scroll {
    position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero-scroll span {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: scroll 1.6s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ===================== SEÇÕES GENÉRICAS ===================== */
.section { padding: 6rem 0; position: relative; }
.section-accent { background: var(--accent); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3.5rem; }
.eyebrow {
    display: inline-block; font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--primary-dark); font-weight: 700; margin-bottom: 0.9rem;
}
.eyebrow.light { color: hsl(348 55% 80%); }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
.section-text { color: var(--muted-foreground); font-size: 1.08rem; margin-top: 1rem; }
.section-title.light { color: #fff; }
.section-text.light { color: rgba(255,255,255,.82); }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent); }

/* ---------- Serviços ---------- */
.service-icon {
    width: 60px; height: 60px; padding: 14px; border-radius: 16px;
    background: var(--accent); color: var(--accent-foreground); margin-bottom: 1.3rem;
    transition: background .3s ease, color .3s ease;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.7rem; }
.service-desc { color: var(--muted-foreground); font-size: 0.98rem; }

/* ---------- Stats ---------- */
.stats { gap: 1.2rem; }
.stat {
    background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-icon { width: 52px; height: 52px; padding: 12px; margin: 0 auto 1rem; border-radius: 14px; background: var(--primary); color: #fff; }
.stat-icon svg { width: 100%; height: 100%; }
.stat-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.stat-label { font-weight: 700; margin-top: 0.5rem; color: var(--foreground); }
.stat-suffix { color: var(--muted-foreground); font-size: 0.92rem; }

/* ---------- Sobre ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.about-text p { color: var(--muted-foreground); margin-top: 1.1rem; font-size: 1.05rem; }
.about-text .section-title { margin-top: 0.2rem; }
.about-card { position: relative; }
.about-card-inner {
    position: relative; z-index: 2;
    background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border-radius: 1.6rem; padding: 3rem 2.5rem; text-align: center; box-shadow: var(--shadow-lg);
}
.about-card-icon { width: 80px; height: 80px; padding: 20px; margin: 0 auto 1.4rem; border-radius: 22px; background: rgba(255,255,255,.16); }
.about-card-icon svg { width: 100%; height: 100%; }
.about-card-text { font-family: var(--font-display); font-size: 1.3rem; }
.about-deco { position: absolute; border-radius: 1.4rem; z-index: 1; }
.about-deco-1 { width: 110px; height: 110px; background: var(--rose-soft); left: -22px; bottom: -22px; }
.about-deco-2 { width: 70px; height: 70px; background: var(--accent); right: -18px; top: -18px; border-radius: 1rem; }

/* ---------- Contato ---------- */
.section-dark { background: var(--dark); color: #fff; overflow: hidden; }
.contact-blueprint { position: absolute; inset: 0; color: #fff; opacity: 0.5; pointer-events: none; }
.contact-blueprint svg { width: 100%; height: 100%; }
.contact-inner { position: relative; z-index: 2; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; max-width: 60rem; margin: 0 auto; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
    padding: 2rem 1.5rem; text-decoration: none; color: #fff; transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
a.contact-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.12); border-color: var(--primary); }
.contact-ic { width: 50px; height: 50px; padding: 12px; border-radius: 14px; background: var(--primary); color: #fff; margin-bottom: 0.6rem; }
.contact-ic svg { width: 100%; height: 100%; }
.contact-label { font-size: 0.78rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.contact-value { font-weight: 700; font-size: 1.05rem; }
.contact-action { text-align: center; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.footer { background: hsl(220 22% 12%); color: rgba(255,255,255,.85); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.brand-footer .brand-text, .brand-footer .brand-sub { color: #fff; }
.footer-copy { font-size: 0.9rem; color: rgba(255,255,255,.65); }

/* ===================== ANIMAÇÃO DE REVELAÇÃO ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-card { max-width: 26rem; }
    .about-inner { grid-template-columns: 1fr; gap: 3rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; position: relative; z-index: 60; }
    .brand { position: relative; z-index: 60; }
    .nav-links {
        position: fixed; inset: 0 0 auto 0; top: 0; padding: 5.5rem 1.5rem 2rem;
        flex-direction: column; align-items: stretch; gap: 0.4rem; z-index: 40;
        background: hsla(30, 20%, 98%, 0.98); backdrop-filter: blur(14px);
        box-shadow: var(--shadow-md);
        transform: translateY(-110%); transition: transform .35s ease; visibility: hidden;
    }
    .nav-links.open { transform: translateY(0); visibility: visible; }
    .nav-link { padding: 0.9rem 1rem; border-radius: 10px; font-size: 1.05rem; color: var(--foreground); }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { background: var(--accent); color: var(--primary-dark); }
    /* O painel do menu mobile é claro: mantém texto escuro dentro dele */
    .nav-links .nav-link { color: var(--foreground); }
    /* Com o menu aberto o topo fica claro: marca em texto escuro */
    .navbar.menu-open .brand-text { color: var(--foreground); }
    .navbar.menu-open .brand-sub { color: var(--muted-foreground); }
    .nav-cta { margin: 0.6rem 0 0; justify-content: center; }

    .section { padding: 4rem 0; }
    .hero { padding: 6rem 0 4rem; min-height: auto; }
    .grid-3 { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
    .container { padding: 0 1.1rem; }
    .hero-card, .about-card-inner { padding: 2rem 1.5rem; }
    .stat-number { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
