/* =========================================================
   G3 Instalações e Engenharia — style.css
   Mobile-first. Sem framework, sem dependências externas.
   ========================================================= */

:root {
  --orange: #EC6034;
  --orange-dark: #C94A24;
  --dark: #1A1A1A;
  --gray-bg: #F2F2F2;
  --orange-bg: #FBE4D8;
  --orange-bg-soft: #FBF4F0;
  --white: #FFFFFF;
  --text: #262626;
  --text-muted: #5C5C5C;
  --border: #E2DEDB;

  --font-heading: Cambria, Georgia, "Times New Roman", serif;
  --font-body: Calibri, Candara, Arial, Helvetica, sans-serif;

  --max-width: 1140px;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(26, 26, 26, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--text); }
p.lead { font-size: 1.15rem; color: var(--text-muted); }

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

.section { padding: 3rem 0; }
.section-alt { background: var(--orange-bg-soft); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--dark); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1.05rem; }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1EBA59; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  font-size: 1.15rem;
  order: 1;
}
.site-header__logo img { height: 58px; width: auto; }
.site-header__actions { order: 2; display: flex; align-items: center; gap: 0.75rem; }
.site-header__phone {
  display: none;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--dark);
}

.site-nav {
  display: none;
  order: 3;
  flex-basis: 100%;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.site-nav.is-open { display: block; }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
}
.site-nav__list a {
  display: block;
  padding: 0.6rem 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-nav__list a[aria-current="page"] { color: var(--orange); }

@media (min-width: 900px) {
  .site-header__bar { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-header__phone { display: inline-block; }
  .site-header__actions { order: 3; }
  .site-nav {
    order: 2;
    flex: 1 1 auto;
    flex-basis: auto;
    display: flex;
    justify-content: center;
    border-top: none;
    background: none;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    padding: 0;
  }
  .site-nav__list a {
    border-bottom: none;
    padding: 0.3rem 0;
    position: relative;
    white-space: nowrap;
  }
  .site-nav__list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--orange);
  }
}

@media (min-width: 1100px) {
  .site-header__logo img { height: 66px; width: auto; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.whatsapp-float svg { width: 22px; height: 22px; flex: none; }
.whatsapp-float__text { display: none; }
@media (min-width: 640px) {
  .whatsapp-float__text { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--orange-bg-soft) 0%, var(--white) 100%);
  padding: 3.5rem 0 3rem;
}
.hero--dark {
  background: var(--dark);
  color: var(--white);
}
.hero--dark h1 { color: var(--white); }
.hero--dark p.lead { color: #D9D9D9; }
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h2, .card h3 { margin-top: 0; }
.card__cta { margin-top: auto; padding-top: 1rem; }

.card--service {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--service:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(26,26,26,0.14);
}
.card--service .tag {
  display: inline-block;
  background: var(--orange-bg);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-bg);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- Lists ---------- */
.check-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Portfolio ---------- */
.portfolio-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
}
.portfolio-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.portfolio-photo figcaption {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--dark);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  background: var(--white);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--dark);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 0.75rem; margin-bottom: 0; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D9D9D9; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status--pending { background: var(--gray-bg); color: var(--text-muted); }
.form-status--ok { background: #E4F6EA; color: #1E7A3D; }
.form-status--error { background: #FBE4D8; color: var(--orange-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #D9D9D9;
  padding: 3rem 0 1.5rem;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: #D9D9D9; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #A6A6A6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.badge-crea {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange-bg);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
