/* ===== Variáveis e base ===== */
:root {
  --red: #c1272d;
  --red-dark: #9e1f24;
  --ink: #1a1a1a;
  --ink-soft: #2b2f33;
  --muted: #6b7280;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #161616;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3 { line-height: 1.18; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; border-radius: 999px; border: 2px solid transparent;
  padding: .8rem 1.4rem; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ===== Cabeçalho ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.brand-name { font-size: 1.25rem; letter-spacing: -.02em; }
.dot { color: var(--red); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-weight: 600; color: var(--ink-soft); font-size: .96rem; }
.nav a:hover { color: var(--red); }
.nav .btn { color: #fff; }
.nav .btn-ghost { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background: radial-gradient(1200px 500px at 80% -10%, #fdecec 0%, transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.badge {
  display: inline-block; background: #fdecec; color: var(--red-dark);
  font-weight: 700; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero-copy .hl { color: var(--red); }
.lead { font-size: 1.12rem; color: var(--ink-soft); margin: 1.2rem 0 1.8rem; max-width: 36ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-points { display: flex; gap: 1.3rem; flex-wrap: wrap; list-style: none; margin-top: 1.6rem; color: var(--muted); font-weight: 600; font-size: .92rem; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.hero-card {
  position: absolute; left: -18px; bottom: 28px;
  background: #fff; border-radius: 12px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line);
}
.hero-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.hero-card-value { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.hero-card-value small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hero-card-sub { font-size: .8rem; color: var(--red); font-weight: 600; }

/* ===== Secções genéricas ===== */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.6rem; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6rem; }
.eyebrow.light { color: #ff8a8e; }
.section-head p { color: var(--muted); margin-top: .6rem; }

/* ===== Passos ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--red); color: #fff;
  font-weight: 800; margin-bottom: .9rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ===== Funcionalidades ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f0d4d5; }
.feature-icon { font-size: 1.8rem; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: #fdecec; border-radius: 12px; margin-bottom: 1rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ===== Obras / galeria ===== */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.ba-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.ba-tag { position: absolute; top: 12px; left: 12px; padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; }
.ba-before { background: rgba(26,26,26,.82); }
.ba-after { background: var(--red); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }

/* ===== Contacto ===== */
.section-dark { background: var(--bg-dark); color: #f3f4f6; }
.section-dark h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info p { color: #c8cace; margin-top: .8rem; }
.contact-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .8rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.contact-list a:hover { color: #ff8a8e; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem;
  font-family: inherit; font-size: .98rem; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.consent { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-size: .88rem; margin: .4rem 0 1.1rem; }
.consent input { margin-top: 3px; }
.form-msg { margin-top: .9rem; padding: .8rem 1rem; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: #e7f6ec; color: #1c7a3f; }
.form-msg.err { background: #fdecec; color: var(--red-dark); }

/* ===== Rodapé ===== */
.site-footer { background: #0f0f0f; color: #cfd1d4; padding: 2.4rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 44px; height: 44px; border-radius: 8px; }
.footer-brand p { font-weight: 700; color: #fff; }
.footer-meta { text-align: right; font-size: .9rem; }
.footer-meta .muted { color: #8a8d92; margin-top: .2rem; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem 22px 1.6rem; border-bottom: 1px solid var(--line);
    gap: .5rem; transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .4rem; }
  .nav-toggle { display: flex; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  .steps, .features, .gallery, .ba-grid, .field-row { grid-template-columns: 1fr; }
  .hero-card { left: 8px; bottom: 10px; }
}
