/* ==========================================================================
   MCDN - Arquitetura e Interiores
   Design System (moderno / clean)
   ========================================================================== */

:root {
  --c-ink: #14161a;
  --c-ink-soft: #23262c;
  --c-paper: #ffffff;
  --c-mist: #f4f5f7;
  --c-line: #e6e8ec;
  --c-text: #3c4148;
  --c-muted: #6b7280;
  --c-accent: #c9a227;          /* ouro / latão */
  --c-accent-dark: #a8871c;
  --c-accent-ink: #8a6f16;
  --c-brand: #1f3d33;           /* verde arquitetura */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .06), 0 4px 12px rgba(20, 22, 26, .05);
  --shadow-md: 0 8px 24px rgba(20, 22, 26, .10);
  --shadow-lg: 0 18px 50px rgba(20, 22, 26, .16);
  --container: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.lead { font-size: 1.13rem; color: var(--c-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-accent); color: #1a1504; box-shadow: 0 8px 20px rgba(201, 162, 39, .35); }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { background: var(--c-ink-soft); }
.btn-outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent-ink); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: var(--shadow-sm);
  height: 66px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 9px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav--light .nav__links a { color: #fff; }
.nav--light .nav__links a:hover { background: rgba(255,255,255,.14); }
.nav__links a:hover { background: var(--c-mist); }
.nav__links a.active { color: var(--c-accent-ink); font-weight: 600; }
.nav__cta { margin-left: 8px; }

.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: currentColor;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav--light .nav__toggle { color: #fff; }
.nav.scrolled .nav__toggle { color: var(--c-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 920px;
  overflow: hidden;
  background: var(--c-ink);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.hero__slide.active { opacity: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,.72) 0%, rgba(20,22,26,.38) 45%, rgba(20,22,26,.82) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-top: var(--nav-h);
}
.hero__content .eyebrow { color: #e8cf72; }
.hero__content h1 { color: #fff; max-width: 760px; margin: 18px 0 20px; }
.hero__content p { max-width: 560px; color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__nav { position: absolute; right: 28px; bottom: 40px; z-index: 3; display: flex; flex-direction: column; gap: 12px; }
.hero__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background .2s ease, border-color .2s ease;
}
.hero__nav button:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.7); }

.hero__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.hero__dots button.active { background: var(--c-accent); transform: scale(1.3); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--mist { background: var(--c-mist); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .eyebrow::before { display: none; }
.section__head h2 { margin: 16px 0 14px; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.card__body p { color: var(--c-muted); font-size: .95rem; flex: 1; margin-bottom: 20px; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; color: var(--c-accent-ink);
}
.card__link .arr { transition: transform .25s ease; }
.card:hover .card__link .arr { transform: translateX(5px); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split__media::after {
  content: "";
  position: absolute;
  inset: auto -16px -16px auto;
  width: 70%; height: 70%;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  z-index: -1;
}
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.stat { text-align: center; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-paper); }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--c-ink); }
.stat span { font-size: .82rem; color: var(--c-muted); }

/* ---------- Feature list ---------- */
.features { margin-top: 26px; display: grid; gap: 14px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(201, 162, 39, .12);
  color: var(--c-accent-ink);
  display: grid; place-items: center;
  font-size: 1.15rem;
}
.feature h4 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 2px; }
.feature p { color: var(--c-muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: var(--c-brand);
  color: #fff;
  border-radius: 20px;
  padding: 64px;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(201, 162, 39, .18);
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 28px; }
.cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- Page hero (internas) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 84px;
  background: var(--c-ink);
  color: #fff;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 80% -20%, rgba(201,162,39,.28), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin: 14px 0 10px; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Service detail blocks ---------- */
.service-block { padding: 60px 0; border-bottom: 1px solid var(--c-line); }
.service-block:last-child { border-bottom: 0; }
.service-block .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.service-block .num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--c-line);
  line-height: 1;
}
.service-block h2 { margin: 10px 0 16px; font-size: 1.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; }
.contact-info { display: grid; gap: 18px; }
.contact-item {
  display: flex; gap: 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  align-items: flex-start;
}
.contact-item .feature__ico { width: 46px; height: 46px; }
.contact-item h4 { font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin-bottom: 4px; }
.contact-item strong { color: var(--c-ink); font-size: 1.02rem; font-weight: 600; }

.form { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--c-ink); margin-bottom: 7px; }
.field label span { color: var(--c-accent-dark); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .97rem;
  color: var(--c-ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .15);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.footer { background: var(--c-ink); color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer__brand p { max-width: 300px; font-size: .94rem; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { font-size: .95rem; transition: color .2s ease; }
.footer__links a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .94rem; align-items: flex-start; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: .85rem; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,.72); }
.footer__bottom a:hover { color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .service-block .container { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta { padding: 40px 28px; }
  .form { padding: 24px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { font-size: 1.3rem; color: var(--c-ink); }
  .nav__links .nav__cta { margin: 16px 0 0; }
  .nav--light .nav__links a { color: var(--c-ink); }
}
