/* ==========================================================================
   GLuz Engenharia — folha de estilo única
   Paleta provisória: trocar as variáveis abaixo pelas cores oficiais da marca.
   ========================================================================== */

:root {
  --ink:        #1a1716;
  --ink-soft:   #4a4645;
  --muted:      #7c7573;
  --line:       #e4dedb;
  --surface:    #ffffff;
  --concrete:   #f7f4f2;
  --concrete-2: #ede8e5;
  --accent:     #da251c;
  --accent-dk:  #b01a13;
  --accent-sf:  #fdecea;
  --steel:      #26211f;

  --max: 1160px;
  --pad: 24px;
  --radius: 4px;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: auto; height: 40px; }
.brand-sub {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 3px;
  padding-left: 1px;
}
.brand { flex-direction: column; align-items: flex-start; gap: 0; }

@media (max-width: 700px) {
  .brand-logo { height: 34px; }
  .brand-sub { font-size: .6rem; }
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--ink-soft); font-size: .95rem; font-weight: 500;
  text-decoration: none; padding: 6px 0; position: relative;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 11px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--concrete-2); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--concrete); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
  padding: 74px 0 78px;
}
.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Page header (páginas internas) ---------- */
.page-head {
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
  padding: 62px 0 58px;
}
.page-head h1 { margin-bottom: .35em; }
.page-head .lede { max-width: 62ch; margin-bottom: 0; }

/* ---------- Media placeholder ---------- */
.media {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: var(--concrete-2); border-radius: var(--radius);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-empty {
  display: grid; place-items: center;
  border: 1px dashed #c8c0b6;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(0,0,0,.02) 12px 24px),
    var(--concrete-2);
}
.media.is-empty::after {
  content: attr(data-label);
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #9a9086;
  text-align: center; padding: 0 20px;
}
.media-wide { aspect-ratio: 16 / 9; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--concrete); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Credential strip ---------- */
.strip { background: var(--steel); color: #fff; }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; padding: 40px 0;
}
.strip-item .k {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: #fff; line-height: 1.1; margin-bottom: 5px;
}
.strip-item .v {
  font-size: .84rem; color: rgba(255,255,255,.68); line-height: 1.45;
}

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 28px;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #c9c2b9; transform: translateY(-2px); }
.card-num {
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; color: var(--accent); margin-bottom: 14px;
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: .96rem; margin-bottom: 1.2em; }
.card .card-link {
  margin-top: auto; font-family: var(--font-head); font-weight: 600;
  font-size: .92rem; color: var(--ink);
}
.card .card-link::after { content: " →"; color: var(--accent); }
.card .card-link:hover { color: var(--accent); text-decoration: none; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { padding: 28px 26px 26px 0; border-top: 3px solid var(--line); position: relative; }
.step + .step { padding-left: 26px; }
.step:first-child { border-top-color: var(--accent); }
.step .n {
  font-family: var(--font-head); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Lista de checagem ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li {
  position: relative; padding-left: 28px; margin-bottom: 11px;
  font-size: .98rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 1px;
}

/* ---------- Split (texto + mídia) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.split-text p:last-child { margin-bottom: 0; }

/* ---------- Faixa fotográfica (atmosfera, não portfólio) ---------- */
.photo-band {
  position: relative;
  min-height: 380px;
  display: grid; align-items: center;
  overflow: hidden;
  background: var(--steel);
}
.photo-band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(26,23,22,.92) 0%, rgba(26,23,22,.78) 42%, rgba(26,23,22,.30) 100%);
}
.photo-band .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.photo-band h2 { color: #fff; max-width: 20ch; }
.photo-band p { color: rgba(255,255,255,.82); max-width: 48ch; margin-bottom: 0; }
.photo-band .eyebrow { color: #e8564e; }

@media (max-width: 700px) {
  .photo-band::after {
    background: linear-gradient(180deg, rgba(26,23,22,.88) 0%, rgba(26,23,22,.80) 100%);
  }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--steel); color: #fff; padding: 66px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Artigo ---------- */
.article { padding: 58px 0 78px; }
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 1.8em; font-size: 1.5rem; }
.article-body h3 { margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 8px; }
.article-meta {
  font-size: .86rem; color: var(--muted); margin-bottom: 0;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.article-meta .tag {
  background: var(--accent-sf); color: var(--accent-dk);
  padding: 3px 10px; border-radius: 100px; font-weight: 600; font-size: .78rem;
}
.callout {
  background: var(--concrete); border-left: 3px solid var(--accent);
  padding: 22px 26px; margin: 2em 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* ---------- Lista do blog ---------- */
.post-list { display: grid; gap: 0; }
.post-item {
  display: grid; grid-template-columns: 150px 1fr;
  gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.post-item:first-child { border-top: 1px solid var(--line); }
.post-date {
  font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  color: var(--muted); letter-spacing: .04em; padding-top: 4px;
}
.post-item h3 { margin-bottom: .35em; font-size: 1.28rem; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--accent); text-decoration: none; }
.post-item p { font-size: .97rem; margin-bottom: 0; color: var(--muted); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .label {
  font-family: var(--font-head); font-size: .74rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 4px;
}
.contact-list .value { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-list .value a { color: var(--ink); }
.contact-list .value a:hover { color: var(--accent); }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body);
  font-size: 1rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.66);
  padding: 60px 0 28px; font-size: .93rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,.66); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-brand .brand-sub { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 18px; max-width: 38ch; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.wa-float:hover { background: #1fb855; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding: 54px 0 58px; }
  .cards, .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step + .step { padding-left: 0; }
  .steps .step:nth-child(2) { padding-left: 26px; }
  .steps .step:nth-child(4) { padding-left: 26px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px var(--pad); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 10px var(--pad) 0; justify-content: center; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .cards, .cards-2, .steps { grid-template-columns: 1fr; }
  .steps .step, .steps .step:nth-child(n) { padding-left: 0; padding-right: 0; }
  .section { padding: 56px 0; }
  .post-item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .wa-float, .cta-band { display: none; }
}
