:root { color-scheme: light only; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #FAF6F0 !important;
  font-family: 'DM Sans', sans-serif;
  color: #221A1D !important;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HERO */
.hero {
  background: #7A2535;
  color: #FAF6F0;
  padding: 80px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: 'MD';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 55vw;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero-tag {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(250,246,240,0.4);
  margin-bottom: 22px;
  opacity: 0;
  animation: up .6s ease .1s forwards;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  max-width: 600px;
  margin: 0 auto 16px;
  color: #FAF6F0;
  opacity: 0;
  animation: up .6s ease .3s forwards;
}
.hero h1 em { font-style: italic; color: rgba(250,246,240,0.55); }
.hero p {
  font-size: 15px;
  color: rgba(250,246,240,0.5);
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.7;
  opacity: 0;
  animation: up .6s ease .5s forwards;
}
.hero-note {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(250,246,240,0.22);
  opacity: 0;
  animation: up .6s ease .7s forwards;
}
.wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 56px;
  background: #FAF6F0;
  clip-path: ellipse(56% 100% at 50% 100%);
}
@keyframes up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* WRAP */
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 20px 130px;
  background: #FAF6F0;
}
.step {
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.step.visible { opacity: 1; transform: none; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.sn {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-style: italic;
  color: #DDD3C8;
  line-height: 1;
  flex-shrink: 0;
}
.st { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 400; color: #221A1D; margin-bottom: 2px; }
.ss { font-size: 13px; color: #7A6A6E; }
.divider { height: 1px; background: #DDD3C8; margin-bottom: 52px; }

/* INPUTS */
.field { margin-bottom: 12px; }
label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7A6A6E;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  background: #FFFFFF !important;
  border: 1.5px solid #DDD3C8;
  border-radius: 2px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #221A1D !important;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: #7A2535; }
input::placeholder, textarea::placeholder { color: #C0B4B8; }
select option { background: #fff; color: #221A1D; }
textarea { resize: vertical; min-height: 90px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* URGÊNCIA */
.urg {
  display: none;
  margin-top: 8px;
  padding: 10px 14px;
  background: #FFF8E6;
  border: 1px solid #E8C86A;
  border-radius: 2px;
  font-size: 12px;
  color: #7A5800;
  line-height: 1.5;
}
.urg.on { display: block; }

/* FILTROS */
.cats { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.cat {
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1.5px solid #DDD3C8;
  color: #7A6A6E;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border-radius: 1px;
}
.cat.on, .cat:hover { border-color: #7A2535; color: #7A2535; background: rgba(122,37,53,0.05); }

/* GRID SERVIÇOS */
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc {
  background: #FFFFFF;
  border: 1.5px solid #DDD3C8;
  border-radius: 2px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sc:hover { border-color: rgba(122,37,53,0.3); }
.sc.on { border-color: #7A2535; background: rgba(122,37,53,0.05); }
.sc-chk {
  position: absolute;
  top: 12px; right: 12px;
  width: 20px; height: 20px;
  border: 1.5px solid #DDD3C8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  background: #FFFFFF;
  transition: all .2s;
}
.sc.on .sc-chk { background: #7A2535; border-color: #7A2535; color: #FFFFFF; }
.sc-cat { font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #C0B4B8; margin-bottom: 5px; }
.sc-nome { font-family: 'Playfair Display', serif; font-size: 16px; color: #221A1D; margin-bottom: 5px; padding-right: 24px; line-height: 1.2; }
.sc-desc { font-size: 12px; color: #7A6A6E; line-height: 1.4; margin-bottom: 14px; }
.sc-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.sc-preco { font-size: 15px; font-weight: 600; color: #7A2535; }
.sc-prazo { font-size: 10px; color: #C0B4B8; letter-spacing: 0.5px; text-align: right; line-height: 1.4; }

/* EXTRAS */
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ec {
  background: #FFFFFF;
  border: 1.5px solid #DDD3C8;
  border-radius: 2px;
  padding: 14px;
}
.ec-nome { font-size: 13px; font-weight: 500; color: #221A1D; margin-bottom: 2px; }
.ec-unit { font-size: 11px; color: #7A6A6E; margin-bottom: 10px; }
.ec-ctrl { display: flex; align-items: center; gap: 8px; }
.ec-btn {
  width: 28px; height: 28px;
  border: 1.5px solid #DDD3C8;
  background: #FAF6F0;
  border-radius: 1px;
  font-size: 16px;
  cursor: pointer;
  color: #7A2535;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all .15s;
  flex-shrink: 0;
}
.ec-btn:hover { background: #7A2535; color: #FFFFFF; border-color: #7A2535; }
.ec-qtd { font-size: 16px; font-weight: 600; color: #221A1D; min-width: 20px; text-align: center; }
.ec-sub { margin-left: auto; font-size: 12px; color: #7A2535; font-weight: 600; }

/* BARRA */
.bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #7A2535;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -6px 32px rgba(122,37,53,0.28);
}
.bar.on { transform: translateY(0); }
.bar-qtd { font-size: 10px; color: rgba(250,246,240,0.4); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1px; }
.bar-val { font-family: 'Playfair Display', serif; font-size: 24px; color: #FAF6F0; }
.bar-val small { font-family: 'DM Sans', sans-serif; font-size: 10px; color: rgba(250,246,240,0.35); display: block; letter-spacing: 1px; }
.btn-env {
  padding: 12px 28px;
  background: #FAF6F0;
  border: none;
  color: #7A2535;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  border-radius: 1px;
  white-space: nowrap;
}
.btn-env:hover { background: #F0E8DC; }

/* SUCCESS */
#ok {
  display: none;
  min-height: 100vh;
  background: #FAF6F0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
#ok.on { display: flex; }
.ok-icon {
  width: 68px; height: 68px;
  border: 1.5px solid #7A2535;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #7A2535;
  margin: 0 auto 28px;
  animation: pop .5s ease;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#ok h2 { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 400; color: #221A1D; margin-bottom: 12px; }
#ok h2 em { font-style: italic; color: #7A2535; }
#ok p { color: #7A6A6E; font-size: 15px; max-width: 400px; line-height: 1.8; margin-bottom: 32px; }
.btn-email {
  display: inline-block;
  padding: 14px 36px;
  background: #7A2535;
  color: #FAF6F0;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-style: italic;
  text-decoration: none;
  border-radius: 1px;
  transition: background .2s;
  margin-bottom: 12px;
}
.btn-email:hover { background: #5A1A25; }
.ok-nota { font-size: 12px; color: #C0B4B8; line-height: 1.8; }

@media (max-width: 560px) {
  .g2, .sgrid, .extras-grid { grid-template-columns: 1fr; }
  .bar { flex-direction: column; gap: 10px; }
  .btn-env { width: 100%; text-align: center; }
}
