/* =========================================================
   AmperTech · Instalações Elétricas
   Dark theme + orange accents (brand from logo)
   ========================================================= */

:root {
  --bg:        #0e0f13;
  --bg-alt:    #14161d;
  --surface:   #191c24;
  --surface-2: #1f2330;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --text:      #eef0f4;
  --muted:     #a3a9b6;
  --orange:    #ff7a18;
  --orange-2:  #ff9d2e;
  --grad:      linear-gradient(135deg, #ff6a12 0%, #ff9d2e 100%);
  --ink:       #1a1205;               /* dark text on orange */
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 40px rgba(0,0,0,.35);
  --maxw:      1180px;
  --header-h:  72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; scroll-margin-top: var(--header-h); }
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Bolt glyph reads as a solid shape in the button's text colour (visible on orange) */
.btn svg.btn-bolt { fill: currentColor; stroke: none; width: 17px; height: 17px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: var(--ink); box-shadow: 0 10px 26px rgba(255,122,24,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255,122,24,.42); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #062e17; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.35); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: rgba(14,15,19,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; max-width: none; padding: 0 clamp(18px, 3vw, 56px); }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 50px; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .96rem; position: relative; padding: 6px 0; opacity: .9; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 10px 20px; }

.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: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease; transform: scale(1.04);
}
.hero-slide.is-active { opacity: 1; animation: heroZoom 7s ease forwards; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1.0); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,11,15,.92) 0%, rgba(10,11,15,.72) 45%, rgba(10,11,15,.35) 100%),
    linear-gradient(0deg, rgba(10,11,15,.9) 0%, rgba(10,11,15,0) 45%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase;
  letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--orange-2);
  background: rgba(255,122,24,.12); border: 1px solid rgba(255,122,24,.3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d7dbe3; max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-caption {
  position: absolute; z-index: 2; left: 22px; bottom: 26px;
  font-size: .84rem; color: #cfd4dd; padding-left: 14px; border-left: 3px solid var(--orange);
}
.hero-dots { position: absolute; z-index: 2; right: 26px; bottom: 26px; display: flex; gap: 10px; }
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.35); transition: background .2s ease, transform .2s ease;
}
.hero-dots button.active { background: var(--grad); transform: scale(1.25); }

/* ---------- Highlights bar ---------- */
.highlights { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 22px 0; }
.highlight { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .96rem; flex: 1 1 210px; }
.highlight svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Section headings ---------- */
.section-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--orange); margin-bottom: 12px; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Empresa ---------- */
.empresa { background: var(--bg); }
.empresa-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 52px; align-items: center; }
.empresa-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 18px; }
.empresa-text p { color: #c9cdd7; }
.checklist { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 12px 14px; }
.checklist li {
  display: inline-flex; align-items: center; gap: 10px; color: #e2e6ee; font-weight: 500; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 13px;
}
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/12px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/12px no-repeat;
}
.empresa-media { position: relative; }
.empresa-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.empresa-badge {
  position: absolute; left: -14px; bottom: 26px; display: flex; align-items: center;
  background: #12141b; border: 1px solid rgba(255,255,255,.12);
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 14px 30px rgba(255,122,24,.38);
}
.empresa-badge img { height: 24px; width: auto; display: block; }

/* ---------- Serviços ---------- */
.servicos { background: var(--bg-alt); }
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.services-grid .service-card { flex: 0 1 258px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,122,24,.5); background: var(--surface-2); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,122,24,.12); border: 1px solid rgba(255,122,24,.28); color: var(--orange); margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg); padding: 60px 0; border-top: 1px solid var(--line); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255,122,24,.14), rgba(255,157,46,.06));
  border: 1px solid rgba(255,122,24,.3); border-radius: var(--radius); padding: 34px 40px;
}
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ---------- Contactos ---------- */
.contactos { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }

.quote-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: #e7eaf0; }
.req { color: var(--orange); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="file"], .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #12151d; color: var(--text); font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6c7382; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,24,.2); }
.field textarea { resize: vertical; min-height: 96px; }
.field input[type="file"] { padding: 10px; }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 12px; border: 0; border-radius: 7px;
  background: var(--grad); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.optional, .field-help { color: var(--muted); font-weight: 400; }
.field-help { display: block; margin-top: 6px; font-size: .82rem; }

.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #12151d; font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .18s ease;
}
.radio input:checked + span { background: var(--grad); color: var(--ink); border-color: transparent; }
.radio input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255,122,24,.3); }

.err { display: none; color: #ff6b6b; font-size: .82rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field.invalid .err { display: block; }

/* Honeypot, hidden from humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 16px 0 0; font-weight: 600; text-align: center; display: none; padding: 12px; border-radius: var(--radius-sm); }
.form-status.show { display: block; }
.form-status.ok { background: rgba(37,211,102,.14); color: #43e08a; border: 1px solid rgba(37,211,102,.35); }
.form-status.error { background: rgba(255,107,107,.12); color: #ff8585; border: 1px solid rgba(255,107,107,.35); }

/* ---------- Contact info ---------- */
.contact-info h3 { font-size: 1.4rem; margin-bottom: 8px; }
.contact-lead { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.ci-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--c, var(--orange)); display: flex; align-items: center; justify-content: center; flex: none; }
.ci-icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a, .ci-text { font-weight: 600; color: var(--text); }
.contact-list a:hover { color: var(--orange-2); }
.map { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; filter: grayscale(.2) contrast(1.05) brightness(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 340px; font-size: .95rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: var(--muted); font-size: .95rem; }
.footer-col a:hover { color: var(--orange-2); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: center; }
.footer-bottom span { color: #7b8290; font-size: .86rem; }

/* ---------- Sticky floating contacts ---------- */
.floating-contacts { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 14px; }
.fab {
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.35); transition: transform .18s ease, box-shadow .2s ease;
}
.fab:hover { transform: scale(1.1) translateX(-2px); }
.fab svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fab-phone { background: #2f7cf6; }
.fab-wa    { background: #25d366; }
.fab-mail  { background: #ef4d5a; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .empresa-grid { grid-template-columns: 1fr; gap: 36px; }
  .empresa-media { order: -1; }
  .empresa-media img { max-height: 420px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(16,17,22,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); padding: 10px 22px 24px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 0; }
  .nav-cta { margin-top: 16px; text-align: center; }
  .section { padding: 68px 0; }
  .field-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 28px 24px; text-align: center; justify-content: center; }
}

@media (max-width: 560px) {
  .hero { min-height: 88vh; }
  .hero-dots { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .quote-form { padding: 24px 18px; }
  .floating-contacts { right: 12px; gap: 11px; }
  .fab { width: 44px; height: 44px; }
  .fab svg { width: 20px; height: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide.is-active { animation: none; transition: opacity .4s ease; }
  * { scroll-behavior: auto !important; }
}
