/* =========================================================
   DUDA MUDANÇAS — Landing Page
   Mobile-first stylesheet
   ========================================================= */

:root {
  --color-primary: #E07A25;
  --color-primary-dark: #B85F16;
  --color-primary-light: #F5A461;
  --color-secondary: #333333;
  --color-dark: #1C1C1C;
  --color-gray: #777777;
  --color-light: #F6F6F6;
  --color-neutral: #D9D9D9;
  --color-white: #FFFFFF;

  --font-display: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(28,28,28,0.06);
  --shadow-md: 0 12px 30px rgba(28,28,28,0.12);
  --shadow-lg: 0 24px 60px rgba(28,28,28,0.22);

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[class^="fi-"], [class*=" fi-"] { line-height: 1; display: inline-block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-dark);
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary); color: #fff;
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.text-accent { color: var(--color-primary); }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-neutral);
  color: var(--color-secondary);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }

.btn-small { padding: .6rem 1.2rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: var(--color-secondary);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s var(--ease);
  isolation: isolate;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(8px);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 64px; width: auto; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin-inline: auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed;
  top: 78px;
  right: 0;
  height: calc(100dvh - 78px);
  width: min(78vw, 320px);
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem 2.5rem;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  z-index: 105;
}
.main-nav.is-open { transform: translateX(0); }

.main-nav ul { display: flex; flex-direction: column; gap: 1.6rem; }
.main-nav a {
  color: var(--color-neutral);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}
.main-nav li a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }
.nav-cta { margin-top: 2rem; text-align: center; }

.nav-backdrop {
  position: fixed; inset: 0; top: 78px;
  background: rgba(0,0,0,.5);
  z-index: 104;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 144px 0 4rem;
  background: var(--color-light);
  overflow: hidden;
}
.hero-decor {
  position: absolute;
  top: -120px; right: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(224,122,37,.16), transparent 70%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .8rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 2.7rem);
  margin-bottom: 1.1rem;
}

.hero-lead {
  color: var(--color-gray);
  font-size: 1.02rem;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.2rem;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.hero-badges i {
  font-size: 1.15rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-art { margin-top: 2.5rem; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

/* ---------- Section shared ---------- */
section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }

/* ---------- Services ---------- */
.services { background: var(--color-white); }
.services .eyebrow { font-size: .85rem; letter-spacing: .1em; }
.services .section-head h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.service-card {
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--color-neutral);
  border-radius: var(--radius-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--color-primary);
  transition: width .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }

.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-light);
  border-radius: 50%;
  margin-bottom: 1.4rem;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.06); }

/* Máscara de recorte: cada ícone é uma janela (overflow: hidden)
   posicionada sobre assets/servicos.png, revelando só o glifo desejado. */
.icon-crop {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('../assets/servicos.png');
  background-repeat: no-repeat;
}
.icon-crop--home      { background-size: 715.3px 306.5px; background-position: -43.9px -57.5px; }
.icon-crop--building  { background-size: 715.3px 306.5px; background-position: -159.4px -57.9px; }
.icon-crop--dolly     { background-size: 715.3px 306.5px; background-position: -271.6px -58.2px; }
.icon-crop--wrench    { background-size: 715.3px 306.5px; background-position: -387.1px -57.7px; }
.icon-crop--box       { background-size: 715.3px 306.5px; background-position: -502.1px -57.7px; }
.icon-crop--globe     { background-size: 715.3px 306.5px; background-position: -614.9px -58.1px; }

/* recorte dos ícones de assets/funciona.png (seção "Como funciona") */
.step-icon-frame .icon-crop {
  background-image: url('../assets/funciona.png');
  background-size: 1082.0px 463.6px;
}
.icon-crop--clipboard { background-position: -147.4px -138.6px; }
.icon-crop--calendar  { background-position: -371.3px -140.0px; }
.icon-crop--truck     { background-position: -603.7px -144.6px; }
.icon-crop--house     { background-position: -839.2px -137.2px; }

.service-card h3 { font-size: 1.05rem; margin-bottom: .65rem; }
.service-card p { color: var(--color-gray); font-size: .92rem; line-height: 1.65; }

.perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.8rem;
}
.perks li { display: flex; gap: 1rem; align-items: flex-start; }
.perks i { font-size: 1.7rem; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
.perks strong { display: block; color: #fff; font-size: 1rem; margin-bottom: .3rem; }
.perks span { color: var(--color-neutral); font-size: .87rem; }

/* ---------- Process ---------- */
.process { background: var(--color-light); }
.process .section-head h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

.process-row { position: relative; display: flex; align-items: center; }
.process-speedlines { display: none; }

.process-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  flex: 1;
}
.process-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2.8rem;
}
.process-steps li:last-child { padding-bottom: 0; }
.process-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%; top: 96px;
  transform: translateX(-50%);
  width: 2px;
  height: 2.8rem;
  background: repeating-linear-gradient(to bottom, var(--color-neutral) 0 6px, transparent 6px 12px);
}

.step-icon-frame {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.step-icon-frame .icon-crop { border-radius: 50%; }

.step-num {
  position: absolute;
  left: -4px; bottom: -4px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(224,122,37,.4);
  border: 3px solid var(--color-light);
}
.process-steps h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  margin-bottom: .6rem;
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--color-dark);
}
.process-steps p { color: var(--color-gray); font-size: .92rem; line-height: 1.65; max-width: 32ch; }



/* ---------- Footer ---------- */
.site-footer { background: var(--color-secondary); color: var(--color-neutral); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  padding-block: 4rem 3rem;
}
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 1.2rem;
}
.footer-brand p { font-size: .88rem; margin: 1rem 0 1.3rem; max-width: 40ch; }

.socials { display: flex; gap: .7rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.socials i { font-size: .95rem; color: var(--color-neutral); }
.socials a:hover { background: var(--color-primary); transform: translateY(-3px); }
.socials a:hover i { color: #fff; }

.contact-list li { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .88rem; }
.contact-list i { font-size: 1.05rem; color: var(--color-primary); flex-shrink: 0; }
.contact-list a:hover { color: var(--color-primary); }

.quick-links li { margin-bottom: .8rem; }
.quick-links a { font-size: .88rem; position: relative; }
.quick-links a:hover { color: var(--color-primary); }

.footer-form { display: flex; flex-direction: column; gap: .7rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.footer-form input, .footer-form select, .footer-form textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .88rem;
  transition: border-color .25s, background .25s;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,.45); }
.footer-form input:focus, .footer-form select:focus, .footer-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,.1);
}
.footer-form select { color-scheme: dark; }
.footer-form select option {
  color: var(--color-secondary);
  background: #fff;
}
.footer-form textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: .82rem; min-height: 1.2em; color: var(--color-primary-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-block: 1.4rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-align: center;
}
.tagline { font-style: italic; }
.credit a { color: var(--color-primary); font-weight: 600; }
.credit a:hover { text-decoration: underline; }

/* =========================================================
   TABLET — 640px+
   ========================================================= */
@media (min-width: 640px) {
  .container { padding-inline: 2rem; }

  .hero-actions { gap: 1rem; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; gap: 1.6rem; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* =========================================================
   DESKTOP — 1024px+
   ========================================================= */
@media (min-width: 1024px) {
  .header-inner { height: 96px; }
  .brand-logo { height: 80px; }
  .menu-toggle { display: none; }

  .main-nav {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 2.4rem;
    padding: 0;
    transform: none;
  }
  .main-nav ul { flex-direction: row; gap: 2rem; }
  .main-nav a { font-size: .92rem; }
  .nav-cta { margin-top: 0; }
  .nav-backdrop { display: none; }

  .hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 160px 0 4rem;
  }
  .hero-inner { width: 100%; }
  .hero-copy { max-width: 560px; }
  .hero h1 { font-size: clamp(2.6rem, 3.6vw, 3.4rem); }

  .hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    margin-top: 0;
  }
  .hero-photo {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0 0 0 56px;
    box-shadow: none;
  }
  .hero-photo img { object-position: center 60%; }

  section { padding: 7rem 0; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(4, 1fr); padding: 2.8rem; }

  .process-row { gap: 1.5rem; }
  .process-speedlines { display: block; width: 90px; height: 32px; flex-shrink: 0; }
  .process-speedlines--right { transform: scaleX(-1); }

  .process-steps { flex-direction: row; align-items: flex-start; gap: 0; }
  .process-steps li { flex: 1; padding-bottom: 0; padding-inline: 1.4rem; }
  .process-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%; top: 48px; height: 2px; width: 100%;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to right, var(--color-neutral) 0 6px, transparent 6px 12px);
    z-index: 0;
  }
  .step-icon-frame { position: relative; z-index: 1; }

  .footer-grid { grid-template-columns: 1.3fr .8fr 1.3fr; padding-block: 5.5rem 3.5rem; }
}

@media (min-width: 1280px) {
  .hero-art { width: 52%; }
}
