/* =========================================================
   TRIVOLT — Soluções Elétricas
   Tema claro, limpo e responsivo
   ========================================================= */

:root {
  --orange: #f26a1b;
  --orange-dark: #d9560b;
  --orange-soft: #fff1e6;
  --yellow: #ffb800;
  --ink: #1d2330;
  --text: #4a5160;
  --muted: #7b8291;
  --line: #eee6dd;
  --bg: #ffffff;
  --bg-soft: #fff9f3;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(29, 35, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(242, 106, 27, 0.16);
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
button { font: inherit; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 106, 27, 0.28); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--orange-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }
.btn--white:hover { transform: translateY(-2px); }

/* ---------- Utilitários de texto ---------- */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.highlight { color: var(--orange); position: relative; z-index: 0; white-space: nowrap; }
.highlight::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px;
  background: rgba(255, 184, 0, 0.35); border-radius: 6px; z-index: -1;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(29, 35, 48, 0.05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); }
.logo__icon { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; color: var(--ink); }
.logo__text small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-top: 4px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 500; font-size: .95rem; color: var(--text); position: relative; transition: color .2s ease; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--orange); transition: width .25s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { width: 100%; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: var(--orange-soft); border: 0; border-radius: 12px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--orange-dark); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 90px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(255, 184, 0, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(242, 106, 27, 0.10), transparent 60%),
    var(--bg-soft);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__content h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin: 18px 0 20px; }
.hero__lead { font-size: 1.1rem; max-width: 540px; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.hero__badges svg { width: 20px; height: 20px; color: var(--orange); }

.hero__visual { position: relative; min-height: 520px; }
.hero__photo { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; border: 6px solid #fff; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { top: 0; right: 0; width: 74%; height: 500px; }
.hero__photo--small { bottom: -10px; left: 0; width: 44%; height: 250px; }
.hero__tag {
  position: absolute; right: 8px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
}
.hero__tag-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--orange); color: #fff; }
.hero__tag-icon svg { width: 22px; height: 22px; }
.hero__tag strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); line-height: 1.2; }
.hero__tag small { color: var(--muted); font-size: .8rem; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0 12px; font-weight: 700; }
.section__head p { color: var(--text); }

/* ---------- Cards de serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  padding: 30px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(242, 106, 27, 0.35); }
.card__icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 16px; background: var(--orange-soft); color: var(--orange);
  margin-bottom: 20px; transition: background .25s ease, color .25s ease;
}
.card:hover .card__icon { background: var(--orange); color: #fff; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 600; }
.card p { font-size: .96rem; }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 460px; justify-self: center; }
.about__image img { width: 100%; }
.about__content h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 16px; font-weight: 700; }
.about__content p { font-size: 1.05rem; }
.about__content p strong { color: var(--ink); }
.pillars { display: grid; gap: 16px; margin-top: 30px; }
.pillars li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pillars__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--orange-soft); color: var(--orange); }
.pillars__icon svg { width: 24px; height: 24px; }
.pillars strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.pillars li span:not(.pillars__icon) { font-size: .92rem; color: var(--muted); }

/* ---------- Segurança ---------- */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.security__content h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 16px; font-weight: 700; }
.checklist { display: grid; gap: 12px; margin: 26px 0 32px; }
.checklist li { position: relative; padding-left: 36px; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.security__gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 230px 230px; gap: 16px; }
.security__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.security__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.security__img:hover img { transform: scale(1.05); }
.security__img--a { grid-row: span 2; }

/* ---------- Projetos ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project__img { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--orange-soft); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__img img { transform: scale(1.06); }
.project__body { padding: 22px 24px 26px; }
.tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font-size: .75rem; font-weight: 600; }
.project h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.project p { font-size: .93rem; }

/* ---------- CTA / Contato ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 52px 56px; border-radius: 28px; color: #fff;
  background: linear-gradient(120deg, var(--orange) 0%, #ff8a3d 60%, var(--yellow) 140%);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 10px; font-weight: 700; }
.cta p { color: rgba(255, 255, 255, 0.92); max-width: 560px; }
.cta__actions { flex: none; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.contact:hover { transform: translateY(-3px); border-color: rgba(242, 106, 27, 0.4); box-shadow: var(--shadow); }
.contact__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); }
.contact__icon svg { width: 22px; height: 22px; }
.contact strong { display: block; font-family: var(--font-head); color: var(--ink); line-height: 1.2; }
.contact small { color: var(--muted); font-size: .85rem; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { padding: 44px 0 36px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer p { font-size: .92rem; color: var(--muted); }
.footer__copy { font-size: .82rem !important; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform .2s ease;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 30px; height: 30px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { gap: 32px; }
  .cards, .projects { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .security { gap: 40px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 22px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(29, 35, 48, 0.08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .hero { padding: 36px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 440px; max-width: 520px; width: 100%; margin: 20px auto 0; }
  .hero__photo--main { height: 420px; }
  .hero__photo--small { height: 210px; }

  .section { padding: 72px 0; }
  .about, .security { grid-template-columns: 1fr; }
  .about__image { max-width: 380px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}

@media (max-width: 600px) {
  .container { width: min(1160px, 100% - 32px); }
  .cards, .projects { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { min-height: 400px; }
  .hero__photo--main { height: 380px; }
  .hero__photo--small { height: 180px; }
  .hero__tag { right: 0; }
  .security__gallery { grid-template-rows: 190px 190px; gap: 12px; }
  .cta { padding: 34px 24px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Ajuste de enquadramento das fotos */
.security__img--a img { object-position: 62% 40%; }
.project__img img { object-position: center top; }

/* Ajustes dos novos projetos */
.project__img img[src*="galpao"] { object-position: center 55%; }
.project__img img[src*="controles"] { object-position: center 45%; }
.project__img img[src*="montagem"] { object-position: center 30%; }

.project--cta {
  justify-content: center; align-items: flex-start; gap: 4px;
  padding: 32px 28px; background: var(--orange-soft); border: 2px dashed #f7c9a8;
}
.project--cta:hover { transform: none; box-shadow: none; }
.project--cta p { margin-bottom: 18px; }
