/* ============================================================
   S.O.S REPARAÇÕES NO LAR , Folha de estilos
   Paleta: verde-petróleo + laranja-âmbar sobre off-white morno
   Tipografia: Bricolage Grotesque (títulos) + Inter (corpo)
   ============================================================ */

:root {
  --pine:      #123C34;   /* verde-petróleo profundo (marca) */
  --pine-deep: #0C2A25;   /* fundo escuro */
  --pine-700:  #1A5148;
  --accent:    #F0641E;   /* laranja-âmbar (ação/urgência) */
  --accent-600:#D6531296;
  --accent-hot:#FF7A33;
  --cream:     #FAF7F1;   /* fundo claro morno */
  --cream-2:   #F1ECE2;
  --ink:       #17211E;   /* texto principal */
  --muted:     #5C6B66;   /* texto secundário */
  --line:      #E4DDD0;   /* linhas/divisórias */
  --white:     #ffffff;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(18,60,52,.06);
  --shadow:    0 16px 40px -18px rgba(18,60,52,.30);
  --shadow-lg: 0 30px 70px -24px rgba(18,60,52,.45);

  --maxw: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: "Bricolage Grotesque", "Inter", sans-serif; line-height: 1.05; letter-spacing: -.02em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Utilitários ---------- */
.u-accent { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pine-700); margin-bottom: 18px;
}
.eyebrow--light { color: #A7C7BE; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine-700); display: inline-block; }
.dot--accent { background: var(--accent); }
.dot--live, .dot--accent { box-shadow: 0 0 0 0 rgba(240,100,30,.5); animation: pulse 2s infinite; }
.dot--live { background: #35C86B; box-shadow: 0 0 0 0 rgba(53,200,107,.5); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(240,100,30,0); } 100% { box-shadow: 0 0 0 0 rgba(240,100,30,0); } }
.link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent-hot); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--pine); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; font-family: inherit;
  padding: 13px 22px; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--accent { --btn-bg: var(--accent); box-shadow: 0 12px 26px -10px rgba(240,100,30,.65); }
.btn--accent:hover { background: var(--accent-hot); box-shadow: 0 16px 32px -10px rgba(240,100,30,.7); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--pine); border: 1.5px solid var(--pine); }
.btn--outline:hover { background: var(--pine); color: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--pine); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--pine-deep); color: #D9E7E2; font-size: .84rem; }
.topbar__row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 14px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__phone { font-weight: 600; color: #fff; }
.topbar__phone:hover { color: var(--accent-hot); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: "Bricolage Grotesque"; font-size: 1.08rem; letter-spacing: -.02em; }
.brand__text small { font-size: .72rem; color: var(--muted); }
.brand--light .brand__text strong,
.brand--light .brand__text small { color: #EAF1EE; }
.brand--light .brand__text small { color: #9BB7AE; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { font-size: .95rem; font-weight: 500; color: var(--ink); }
.nav > a:not(.btn):hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 8vw, 104px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(240,100,30,.10), transparent 60%),
    radial-gradient(50% 60% at 8% 90%, rgba(18,60,52,.07), transparent 60%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center;
}
.hero__title { font-size: clamp(2.8rem, 6.4vw, 4.7rem); font-weight: 800; margin-bottom: 20px; }
.hero__rotator {
  font-family: "Bricolage Grotesque"; font-size: clamp(1.25rem, 3.2vw, 1.7rem); font-weight: 600;
  color: var(--pine-700); margin-bottom: 18px; min-height: 1.6em; display: flex; gap: .4ch; flex-wrap: wrap;
}
.rotator__prefix { opacity: .65; }
.rotator { position: relative; color: var(--accent); }
.rotator::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--pine-700); font-weight: 600; font-size: .92rem; }

/* Cartão hero */
.hero__card { display: flex; }
.ticket {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); width: 100%;
  position: relative; overflow: hidden;
}
.ticket::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-hot)); }
.ticket__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ticket__badge { background: var(--cream-2); color: var(--pine-700); font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; }
.ticket__status { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ticket__q { font-family: "Bricolage Grotesque"; font-size: 1.18rem; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 20px; }
.ticket__steps { display: grid; gap: 12px; margin-bottom: 22px; }
.ticket__steps > div { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .95rem; color: var(--ink); }
.ticket__steps span { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--pine); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.ticket__note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- Stats ---------- */
.stats { background: var(--pine); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 34px 0; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: "Bricolage Grotesque"; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.stat span { font-size: .88rem; color: #A7C7BE; }

/* ---------- Secções ---------- */
.section { padding: clamp(60px, 9vw, 104px) 0; }
.section--dark { background: var(--pine-deep); color: #EAF1EE; }
.section--soft { background: var(--cream-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.section--dark .section__head h2 { color: #fff; }
.section__sub { color: var(--muted); font-size: 1.08rem; }
.section--dark .section__sub { color: #A7C7BE; }
.section__foot { text-align: center; margin-top: 38px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Cartões de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #D8CFBE; }
.card__icon { margin-bottom: 16px; width: 52px; height: 52px; border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; color: var(--pine); }
.card__icon svg { width: 26px; height: 26px; }
.card--accent .card__icon { background: rgba(255,255,255,.12); color: #fff; }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); }
.card--feature { grid-row: span 1; border-color: var(--pine-700); }
.card--accent { background: var(--pine); color: #fff; border-color: var(--pine); }
.card--accent .card__icon { background: rgba(255,255,255,.1); }
.card--accent h3 { color: #fff; }
.card--accent p { color: #C7D8D2; }

/* ---------- Como funciona ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: s; }
.step { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 32px 26px; }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; font-family: "Bricolage Grotesque"; font-weight: 800; font-size: 1.4rem; margin-bottom: 18px; }
.step h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: #A7C7BE; font-size: .98rem; }

/* ---------- Porquê nós ---------- */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.why__intro h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.why__intro .section__sub { margin-bottom: 26px; }
.why__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; }
.why__list li { position: relative; padding-left: 34px; }
.why__list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--pine); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.why__list strong { display: block; font-size: 1.04rem; }
.why__list span { color: var(--muted); font-size: .92rem; }

/* ---------- Zonas ---------- */
.zonas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin-inline: auto; }
.zonas__col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.zonas__col--hl { border-color: var(--accent); box-shadow: 0 18px 40px -22px rgba(240,100,30,.5); }
.zonas__col h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--pine); }
.zonas__col ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.zonas__col li { background: var(--cream-2); padding: 6px 14px; border-radius: 100px; font-size: .9rem; font-weight: 500; }
.zonas__col--hl li { background: #FCEDE3; color: var(--pine); }

/* ---------- Testemunhos ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 28px; }
.quote__stars { color: #FFB33E; letter-spacing: 2px; margin-bottom: 14px; }
.quote blockquote { font-size: 1.02rem; color: #EAF1EE; line-height: 1.55; margin-bottom: 20px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #fff; }
.quote figcaption small { display: block; color: #A7C7BE; font-weight: 400; font-size: .82rem; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.quotes__disclaimer { text-align: center; margin-top: 26px; font-size: .78rem; color: #6E837C; font-style: italic; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-family: "Bricolage Grotesque"; font-weight: 600; font-size: 1.08rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .25s var(--ease); font-weight: 400; line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 18px; font-size: .98rem; }

/* ---------- CTA + Formulário ---------- */
.cta { background: var(--pine); color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.cta__intro h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 16px; }
.cta__intro p { color: #C7D8D2; font-size: 1.08rem; margin-bottom: 24px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.form { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,100,30,.15); }
.form textarea { resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); font-weight: 400; text-align: center; }
.form__note--error { color: #C0392B; font-weight: 600; }
.form__note--ok { color: #1E8A4C; font-weight: 600; }

/* ---------- Rodapé ---------- */
.footer { background: var(--pine-deep); color: #C7D8D2; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 44px; }
.footer__brand p { margin-top: 16px; font-size: .92rem; color: #90A9A1; max-width: 30ch; }
.footer__col h4 { color: #fff; font-family: "Bricolage Grotesque"; font-size: 1rem; margin-bottom: 14px; }
.footer__col a, .footer__col span { display: block; font-size: .92rem; color: #A7C0B9; padding: 4px 0; }
.footer__col a:hover { color: var(--accent-hot); }
.footer__col--contact a, .footer__col--contact span { display: flex; align-items: center; gap: 10px; }
.footer__col--contact svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #7B948C; }

/* ---------- FAB WhatsApp ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .2s var(--ease);
  animation: fab-in .4s var(--ease) .8s both;
}
.fab:hover { transform: scale(1.08); }
@keyframes fab-in { from { transform: scale(0); } to { transform: scale(1); } }

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

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid, .faq__grid, .cta__grid { grid-template-columns: 1fr; gap: 36px; }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Sem backdrop-filter no telemóvel: evita que o menu fixo fique "preso"
     ao cabeçalho e apareça transparente/mal posicionado. */
  .header { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--cream); padding: 90px 24px 30px;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.3); z-index: 45;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav > a.btn { border: 0; margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; z-index: 46; }
  .topbar__pulse { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .zonas { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .rotator::after { animation: none; }
}
