/* Olibras Engenharia — cores do logo: vermelho #AB3335, grafite #282829 */
:root {
  --red: #ab3335;          /* 6,4:1 sobre branco */
  --red-dark: #8c2729;
  --red-light: #ec8282;    /* para uso sobre grafite (≥5:1) */
  --ink: #282829;
  --ink-2: #373435;
  --text: #2d2d2e;
  --muted: #5c5b5d;        /* 6,7:1 sobre branco */
  --line: #e2dfdc;
  --bg: #ffffff;
  --bg-alt: #f5f3f1;
  --radius: 4px;
  --header-h: 72px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .container { padding: 0 24px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 62px; height: auto; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
.site-nav a:hover { color: var(--red); }

@media (max-width: 859px) {
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { padding: 8px 16px 16px; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav .nav-cta { margin-top: 12px; text-align: center; background: var(--red); color: #fff; border-radius: var(--radius); }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; }
  .site-nav a { padding: 8px 0; }
  .site-nav .nav-cta { padding: 10px 18px; background: var(--red); color: #fff; border-radius: var(--radius); }
  .site-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 1.0625rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(160deg, #343334 0%, var(--ink) 60%);
  background-size: 40px 40px, 40px 40px, auto; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); }
.hero-inner { position: relative; padding: 88px 16px 96px; }
.hero h1 { color: #fff; font-size: clamp(2.75rem, 9vw, 5.25rem); text-transform: uppercase; margin-bottom: .25em; }
.hero-lead { font-size: clamp(1.125rem, 2.6vw, 1.5rem); max-width: 34ch; color: #e6e4e2; margin-bottom: 2rem; }
.hero .eyebrow { color: var(--red-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ring { position: absolute; width: 760px; height: 520px; right: -320px; top: 50%; transform: translateY(-50%) rotate(-32deg); border-radius: 50%; border: 56px solid var(--red); border-left-width: 14px; opacity: .55; pointer-events: none; }
@media (min-width: 860px) {
  .hero-inner { padding: 140px 24px 150px; }
  .hero-ring { right: -160px; opacity: .9; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 860px) { .section { padding: 104px 0; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.125rem, 5vw, 3rem); }
.section-lead { font-size: 1.1875rem; color: var(--muted); margin: 0; }
.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .9375rem; color: var(--red); margin: 0 0 .5rem; }
.subhead { font-size: 1.75rem; margin: 56px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* A empresa */
.about-grid { display: grid; gap: 32px; }
.prose { font-size: 1.1875rem; max-width: 62ch; }
.facts { margin: 0; display: grid; gap: 16px; }
.facts div { border-left: 4px solid var(--red); padding: 4px 0 4px 16px; }
.facts dt { font-family: var(--font-head); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--ink); }
.facts dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 860px) { .about-grid { grid-template-columns: 3fr 2fr; gap: 64px; } }
.mvv { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 860px) { .mvv { grid-template-columns: repeat(3, 1fr); } }
.mvv-item { background: var(--bg-alt); padding: 24px; border-top: 4px solid var(--red); }

/* Serviços */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1140px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .15s, box-shadow .15s; }
.service:hover { border-color: #cfcac6; box-shadow: 0 6px 18px rgba(40,40,41,.06); }
.service h3 { font-size: 1.375rem; margin-top: 16px; }
.service p { margin: 0; color: var(--muted); font-size: 1rem; }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Locação / obras */
.feature { display: grid; gap: 24px; align-items: center; background: var(--ink); color: #e6e4e2; border-radius: var(--radius); padding: 32px 24px; border-left: 6px solid var(--red); }
.feature h2 { color: #fff; font-size: clamp(1.875rem, 4.5vw, 2.5rem); }
.feature .eyebrow { color: var(--red-light); }
.feature p { max-width: 60ch; }
.feature-icon { width: 96px; height: 96px; fill: none; stroke: var(--red-light); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) { .feature { grid-template-columns: auto 1fr; gap: 48px; padding: 48px; } .feature-icon { width: 140px; height: 140px; } }
.works-title { font-size: 1.75rem; margin: 56px 0 24px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 20px; }
.meta { margin: 0; display: grid; gap: 6px; font-size: .9375rem; }
.meta div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.meta dt { font-weight: 600; color: var(--ink); }
.meta dd { margin: 0; color: var(--muted); }

/* Corpo técnico */
.people { display: grid; gap: 20px; }
@media (min-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 600px) { .person { padding: 32px; } }
.person-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.person-head h3, .person-head .person-name { font-size: 1.625rem; margin: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.role { margin: 2px 0 0; color: var(--red); font-weight: 600; }
.label { font-family: var(--font); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 20px 0 8px; }
.edu { margin: 0 0 16px; padding-left: 1.1em; }
.edu li { margin-bottom: 4px; }
.track { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track li { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.track-work { font-weight: 600; color: var(--ink); width: 100%; }
.track-client { color: var(--muted); }
.track-client::after { content: "·"; margin-left: 10px; }
.track-role { color: var(--muted); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { font-size: .9375rem; color: var(--muted); margin: 8px 0 0; }

/* Clientes */
.clients { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Contato */
.contact { background: var(--bg-alt); border-top: 6px solid var(--red); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-list { grid-template-columns: repeat(3, 1fr); } }
.contact-item { display: flex; gap: 16px; align-items: center; height: 100%; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; overflow-wrap: anywhere; transition: border-color .15s; }
.contact-item:hover { border-color: var(--red); color: var(--text); }
.contact-item .icon { flex: none; width: 36px; height: 36px; }
.contact-item strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #cfcdcb; padding: 40px 0 96px; font-size: .9375rem; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-inner img { background: #fff; padding: 6px; border-radius: var(--radius); margin-bottom: 8px; }
.footer-inner p { margin: 0; }
@media (min-width: 760px) { .site-footer { padding-bottom: 40px; } .footer-inner { flex-direction: row; align-items: center; gap: 24px; } .footer-inner p:last-child { margin-left: auto; } .footer-inner img { margin: 0; } }

/* WhatsApp flutuante */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #1f7a45; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s, background .15s; }
.whatsapp-float:hover { background: #17633a; color: #fff; transform: scale(1.06); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,20,20,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.lightbox-caption { color: #eee; margin: 16px 0 0; text-align: center; max-width: 70ch; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.notfound h1 { font-size: clamp(4rem, 18vw, 8rem); color: var(--red); margin: 0; }
.notfound p { font-size: 1.25rem; color: var(--muted); }
.gallery-note { color: var(--muted); margin: -12px 0 24px; }
