/* ===========================================================
   Fontes & Filho — Canalizações · design system
   Azul de água funda + cobre de tubo + letras de carrinha
   Archivo / Work Sans
   =========================================================== */

:root {
  --agua:     #0B3B60;
  --agua-2:   #072A46;
  --agua-90:  #12496F;
  --cobre:    #C46A2B;
  --cobre-2:  #A8551C;
  --branco:   #F7F9FA;
  --ink:      #14212B;
  --muted:    #4A5A66;
  --linha:    #D9E2E8;
  --linha-d:  rgba(255,255,255,.16);

  --maxw: 1160px;
  --r: 10px;
  --shadow-sm: 0 2px 10px rgba(11,59,96,.09);
  --shadow: 0 16px 40px rgba(11,59,96,.14);

  --font-head: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--branco);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.06; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-transform: uppercase; letter-spacing: 0; }
h3 { font-size: 1.24rem; }
p  { color: var(--muted); }
a  { color: var(--agua); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section    { padding: clamp(60px, 8.5vw, 108px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.bg-branco { background: var(--branco); }
.bg-claro  { background: #EDF2F5; }
.bg-agua   { background: var(--agua); }
.bg-agua h2, .bg-agua h3 { color: #fff; }
.bg-agua p { color: #B5CBDC; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cobre);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--cobre); border-radius: 2px; }

.section-head { max-width: 680px; margin: 0 0 clamp(32px,5vw,48px); }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* divisor de tubo de cobre */
.tubo { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; height: 14px; }
.tubo::before, .tubo::after { content: ''; flex: 1; height: 4px; background: linear-gradient(180deg, #D98A4A, var(--cobre) 55%, #8F4716); border-radius: 2px; }
.tubo .junta { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #E09A5C, var(--cobre) 60%, #8F4716); flex: none; margin: 0 -2px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 28px;
  border-radius: var(--r); font-weight: 700; font-size: 1rem; font-family: var(--font-body);
  border: 2px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn svg { width: 18px; height: 18px; }
.btn-cobre { background: var(--cobre); color: #fff; }
.btn-cobre:hover { background: var(--cobre-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-agua { background: var(--agua); color: #fff; }
.btn-agua:hover { background: var(--agua-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--agua); border-color: var(--agua); }
.btn-ghost:hover { background: var(--agua); color: #fff; }
.btn-ghost-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost-w:hover { background: rgba(255,255,255,.14); }

/* ===========================================================
   NAV
   =========================================================== */
.nav-overlay { position: fixed; inset: 0; background: rgba(7,42,70,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.nav-overlay.show { opacity: 1; visibility: visible; }

.navbar { position: sticky; top: 0; z-index: 100; background: var(--agua); transition: box-shadow .3s, padding .3s; padding: 12px 0; }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(7,42,70,.35); padding: 7px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 1.22rem; font-weight: 800; color: #fff; text-transform: uppercase; line-height: 1.05; letter-spacing: .02em; }
.nav-logo .sub { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: #E09A5C; font-weight: 600; }
.nav-mark { flex: none; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 8px;
  color: #DCE8F1; font-weight: 600; font-size: .94rem; background: none; border: none;
  font-family: var(--font-body); cursor: pointer; transition: background .18s, color .18s;
}
.nav-link:hover { color: #fff; background: var(--agua-90); }
.nav-link.active, .has-drop.active > .nav-link { color: #E09A5C; }
.nav-cta {
  display: inline-flex; padding: 11px 18px; border-radius: 8px; background: var(--cobre);
  color: #fff; font-weight: 700; font-size: .92rem; transition: background .18s;
}
.nav-cta:hover { background: var(--cobre-2); }
.caret { transition: transform .25s; }

.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 8px; min-width: 240px; background: #fff;
  border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .22s; z-index: 50;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover .caret { transform: rotate(180deg); }
.drop-link { display: block; padding: 10px 14px; border-radius: 7px; color: var(--ink); font-size: .93rem; font-weight: 600; transition: background .18s, color .18s; }
.drop-link:hover { background: #EDF2F5; color: var(--agua); }
.drop-link.active { color: var(--cobre); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.hamburger span { width: 25px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--agua);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 82px 20px 30px;
    transform: translateX(100%); transition: transform .32s; z-index: 100; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link, .nav-cta { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 12px 14px; }
  .nav-cta { margin-top: 10px; justify-content: center; }
  .has-drop { display: flex; flex-direction: column; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; max-height: 0; overflow: hidden; transition: max-height .3s; padding: 0 0 0 14px;
  }
  .dropdown .drop-link { color: #DCE8F1; }
  .dropdown .drop-link:hover { background: var(--agua-90); color: #fff; }
  .has-drop.open .dropdown { max-height: 420px; }
  .has-drop.open .caret { transform: rotate(180deg); }
}

/* ===========================================================
   HERO — letras de carrinha
   =========================================================== */
.hero { background: var(--agua); color: #fff; padding: clamp(56px,8vw,104px) 0 0; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -12%; top: -20%; width: 46vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(196,106,43,.16), transparent 66%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 11em; }
.hero h1 .risco { color: #E09A5C; position: relative; white-space: nowrap; }
.hero h1 .risco::after { content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .12em; background: var(--cobre); border-radius: 3px; opacity: .55; }
.hero .lead { color: #B5CBDC; font-size: 1.15rem; max-width: 34em; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-tel { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; }
.hero-tel svg { width: 22px; height: 22px; color: #E09A5C; }
.hero-tel small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #7FA3BF; }

.hero-fiadores { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 44px 0 0; padding: 20px 0 26px; border-top: 1px solid var(--linha-d); list-style: none; }
.hero-fiadores li { display: flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 600; color: #DCE8F1; }
.hero-fiadores svg { width: 19px; height: 19px; color: #E09A5C; flex: none; }

/* ===========================================================
   PASSOS DO ORÇAMENTO (sequência real -> numeração justificada)
   =========================================================== */
.passos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: passo; }
.passo-card { counter-increment: passo; background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 26px; position: relative; }
.passo-card::before { content: counter(passo); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--cobre); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.passo-card h3 { margin: 14px 0 8px; }
.passo-card p { font-size: .96rem; }

/* ===========================================================
   SERVIÇOS — linhas de obra (não é grelha de cartões)
   =========================================================== */
.obra-lista { list-style: none; }
.obra { display: block; }
.obra a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 26px; align-items: center; padding: 26px 6px; color: inherit; transition: background .18s; border-radius: var(--r); }
.obra a:hover { background: #fff; }
.obra .obra-num { font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--cobre); align-self: start; padding-top: 6px; }
.obra h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); text-transform: uppercase; }
.obra p { font-size: .97rem; margin-top: 4px; max-width: 46em; }
.obra .obra-seta { width: 30px; height: 30px; color: var(--agua); transition: transform .2s; }
.obra a:hover .obra-seta { transform: translateX(5px); color: var(--cobre); }

/* ===========================================================
   MEDOS RESPONDIDOS
   =========================================================== */
.medo { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 26px; height: 100%; }
.medo .medo-diz { font-size: .92rem; color: var(--muted); font-style: italic; }
.medo h3 { margin: 10px 0 8px; font-size: 1.15rem; }
.medo p { font-size: .95rem; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }

/* ===========================================================
   VOZES
   =========================================================== */
.voz { border-left: 4px solid var(--cobre); padding: 6px 0 6px 22px; }
.voz p { font-size: 1.06rem; color: var(--ink); }
.voz .quem { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.voz .quem strong { color: var(--ink); display: block; font-size: .93rem; }

/* ===========================================================
   CTA BAND
   =========================================================== */
.cta-band { background: var(--agua); border-radius: var(--r); padding: clamp(34px,5vw,52px); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -8%; bottom: -50%; width: 320px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(196,106,43,.22), transparent 65%); }
.cta-band > div, .cta-band > a { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B5CBDC; margin-top: 8px; max-width: 36em; }

/* ===========================================================
   PAGE HERO interior
   =========================================================== */
.page-hero { background: var(--agua); color: #fff; padding: clamp(44px,6vw,72px) 0 clamp(36px,5vw,56px); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .lead { color: #B5CBDC; font-size: 1.1rem; max-width: 38em; margin-top: 14px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7FA3BF; margin-bottom: 16px; }
.crumb a { color: #B5CBDC; }
.crumb a:hover { color: #fff; }
.crumb .sep { color: rgba(255,255,255,.3); }

/* ===========================================================
   FORM ORÇAMENTO
   =========================================================== */
.form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px,5vw,56px); align-items: start; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.campo label small { font-weight: 500; color: var(--muted); }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--linha); border-radius: var(--r);
  font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--agua); box-shadow: 0 0 0 3px rgba(11,59,96,.12); }
.campo textarea { min-height: 120px; resize: vertical; }

/* zona de fotos */
.fotos-zona { border: 2px dashed var(--linha); border-radius: var(--r); background: #fff; padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color .18s, background .18s; }
.fotos-zona:hover, .fotos-zona.drag { border-color: var(--cobre); background: #FdF6F0; }
.fotos-zona svg { width: 34px; height: 34px; color: var(--cobre); margin: 0 auto 10px; }
.fotos-zona strong { display: block; color: var(--ink); font-size: .98rem; }
.fotos-zona span { font-size: .86rem; color: var(--muted); }
.fotos-zona input { display: none; }
.fotos-lista { list-style: none; margin-top: 12px; text-align: left; }
.fotos-lista li { font-size: .88rem; color: var(--muted); padding: 7px 12px; background: #fff; border: 1px solid var(--linha); border-radius: 7px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.fotos-lista svg { width: 15px; height: 15px; color: var(--cobre); flex: none; }

.form-nota { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.form-ok { display: none; background: #fff; border: 1.5px solid var(--linha); border-left: 4px solid var(--cobre); border-radius: var(--r); padding: 18px 22px; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.form-ok.show { display: block; }
.form-ok strong { color: var(--ink); }

.lado-bloco { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 26px; }
.lado-bloco h3 { margin-bottom: 14px; }
.lado-row { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--linha); font-size: .95rem; color: var(--muted); }
.lado-row:last-child { border-bottom: none; }
.lado-row svg { width: 20px; height: 20px; color: var(--cobre); flex: none; margin-top: 2px; }
.lado-row strong { color: var(--ink); display: block; }
.lado-row a { font-weight: 700; }

/* ===========================================================
   LISTAS DE SERVIÇO (páginas interiores)
   =========================================================== */
.check-lista { list-style: none; max-width: 680px; }
.check-lista li { padding: 12px 0 12px 36px; border-bottom: 1px solid var(--linha); position: relative; color: var(--muted); font-size: .99rem; }
.check-lista li strong { color: var(--ink); }
.check-lista li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--cobre); opacity: .14; }
.check-lista li::after { content: ''; position: absolute; left: 7px; top: 22px; width: 8px; height: 5px; border-left: 2.5px solid var(--cobre); border-bottom: 2.5px solid var(--cobre); transform: rotate(-45deg); }

.sinais { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 24px 26px; max-width: 680px; }
.sinais h3 { margin-bottom: 10px; }
.sinais ul { list-style: none; }
.sinais li { padding: 8px 0 8px 26px; position: relative; color: var(--muted); font-size: .95rem; border-bottom: 1px dashed var(--linha); }
.sinais li:last-child { border-bottom: none; }
.sinais li::before { content: '!'; position: absolute; left: 0; top: 8px; font-family: var(--font-head); font-weight: 800; color: var(--cobre); }

/* FAQ */
.faq-lista { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--linha); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 4px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .mais { color: var(--cobre); font-size: 1.2rem; font-weight: 800; flex: none; transition: transform .25s; }
details[open] .faq-q .mais { transform: rotate(45deg); }
.faq-a { padding: 0 4px 20px; color: var(--muted); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--agua-2); color: #B5CBDC; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: clamp(44px,6vw,64px) 0 36px; }
.footer-grid h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-logo { font-family: var(--font-head); font-size: 1.3rem; color: #fff; font-weight: 800; text-transform: uppercase; }
.footer-logo .sub { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .2em; color: #E09A5C; font-weight: 600; margin-top: 4px; }
.footer-grid p { color: #7FA3BF; font-size: .9rem; margin-top: 12px; }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #B5CBDC; font-size: .93rem; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-base { border-top: 1px solid var(--linha-d); padding: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: #7FA3BF; }
.footer-base a { color: #B5CBDC; }

/* ===========================================================
   REVEAL + foco
   =========================================================== */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.d1 { transition-delay: .1s; } .fade-in.d2 { transition-delay: .2s; } .fade-in.d3 { transition-delay: .3s; }
.fade-in.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; border-radius: 3px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 920px) {
  .passos-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .obra a { grid-template-columns: auto 1fr; }
  .obra .obra-seta { display: none; }
}
@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 28px 22px; }
  .hero-fiadores { gap: 10px 20px; }
}
