/* Vethon Projetos e Engenharia — estilos do site */
:root {
  --ink: #0f1b2d;
  --ink-2: #16263d;
  --ink-3: #213553;
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --white: #ffffff;
  --text: #1c2533;
  --muted: #5b6574;
  --muted-on-dark: #a9b4c4;
  --line: #d9d5cc;
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #ec945b;
  --accent-ink: #1a1400;
  --blue: #3d7bd9;
  --wa: #1fa855;
  --radius: 10px;
  --max: 1200px;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: inherit; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.on-dark .eyebrow { color: var(--muted-on-dark); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 8px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc61a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 27, 45, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-logo { display: block; height: 38px; width: auto; }
@media (max-width: 560px) { .brand-logo { height: 28px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; color: var(--muted-on-dark); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .95rem; color: #dfe5ee; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { padding: 10px 18px; font-size: .92rem; color: var(--accent-ink); }
.nav .btn:hover { color: var(--accent-ink); }

.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .btn { margin-top: 14px; border-bottom: 0; padding: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); background: var(--ink); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,27,45,.97) 0%, rgba(15,27,45,.9) 42%, rgba(15,27,45,.45) 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { position: relative; padding: 110px 0 96px; max-width: 720px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.15rem; color: #d3dbe6; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; justify-content: start; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--white); }
.stat-num span { color: var(--accent); }
.stat-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 8px; }
@media (max-width: 600px) {
  .hero-inner { padding: 72px 0 64px; }
  .stats { gap: 22px; }
  .stat-num { font-size: 1.9rem; }
  .stat-label { font-size: .66rem; }
}

/* Faixa de disciplinas */
.discipline-strip { background: var(--accent); color: var(--accent-ink); }
.discipline-strip ul {
  list-style: none; margin: 0 auto; padding: 16px 24px; max-width: var(--max);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.discipline-strip li { display: flex; align-items: center; gap: 10px; }
.discipline-strip li::before { content: ""; width: 7px; height: 7px; background: var(--accent-ink); transform: rotate(45deg); }
@media (max-width: 700px) { .discipline-strip ul { justify-content: flex-start; padding: 14px 16px; font-size: .88rem; } }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { max-width: 640px; margin-bottom: 0; }
.section-head p { max-width: 420px; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: var(--muted-on-dark); }
@media (max-width: 600px) { .section { padding: 68px 0; } .section-head { margin-bottom: 32px; } }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.service-img { aspect-ratio: 16 / 9; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 24px 24px 28px; }
.service-num { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Portfólio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  background: transparent; color: var(--muted-on-dark); border: 1px solid var(--line-dark);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.filter:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--line-dark); cursor: zoom-in; text-align: left; padding: 0; color: inherit; font: inherit;
  display: flex; flex-direction: column;
}
.project.wide { grid-column: span 2; }
.project-img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.project.wide .project-img { aspect-ratio: auto; height: 100%; min-height: 260px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .project-img img { transform: scale(1.05); }
.project-info { padding: 16px 18px 18px; }
.project.wide { display: grid; grid-template-rows: 1fr auto; }
.project-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.project h3 { font-size: 1.05rem; margin: 6px 0 6px; color: var(--white); }
.project p { font-size: .88rem; color: var(--muted-on-dark); margin: 0; line-height: 1.5; }
.project[hidden] { display: none; }
@media (max-width: 980px) { .portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio { grid-template-columns: 1fr; } .project.wide { grid-column: auto; } .project.wide .project-img { aspect-ratio: 4/3; min-height: 0; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 24, .94);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox figcaption { color: #dfe5ee; margin-top: 14px; font-size: .95rem; }
.lightbox figcaption strong { color: var(--white); font-family: var(--font-head); display: block; font-size: 1.1rem; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.1); border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Quem somos */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.pillars { display: grid; gap: 16px; margin-top: 28px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pillar-icon { width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillar p { margin: 0; font-size: .95rem; color: var(--muted); }
.about-figure { position: sticky; top: 100px; }
.about-figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.number { background: var(--white); padding: 20px; }
.number b { font-family: var(--font-head); font-size: 2rem; display: block; line-height: 1; color: var(--ink); }
.number span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .about-figure { position: static; } }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.post-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card .post-img { aspect-ratio: 16/9; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .05em; margin-bottom: 10px; }
.post-card h3 { font-size: 1.15rem; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.read-more { font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.read-more::after { content: "→"; transition: transform .15s ease; }
.post-card:hover .read-more::after { transform: translateX(4px); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; max-width: 560px; } }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.contact-item { background: var(--ink-2); padding: 22px 24px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.contact-item svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact-item h3 { font-size: .78rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 6px; }
.contact-item p { margin: 0; color: var(--white); }
.contact-item a { text-decoration: none; }
.contact-item a:hover { color: var(--accent); }
.contact-item small { color: var(--muted-on-dark); font-size: .88rem; }
.cta-box { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 40px; }
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-box p { font-size: 1.05rem; margin-bottom: 28px; }
.cta-box .phone { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; margin: 22px 0 0; display: block; text-decoration: none; }
.map-wrap { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; filter: grayscale(.3); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } .cta-box { padding: 28px; } }

/* ---------- Rodapé ---------- */
.site-footer { background: #0a1320; color: var(--muted-on-dark); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { margin-top: 16px; max-width: 320px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: 80px 0 64px; position: relative; overflow: hidden; }
.page-hero .hero-grid { opacity: .7; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero p { color: #d3dbe6; max-width: 640px; font-size: 1.1rem; margin: 0; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted-on-dark); text-decoration: none; font-size: .92rem; margin-bottom: 24px; }
.back-link:hover { color: var(--accent); }

/* Artigo */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 56px 0 96px; align-items: start; }
.article-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 40px; background: #fff; }
.prose { max-width: 720px; font-size: 1.06rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: #1f5fbf; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose sup { font-family: var(--font-mono); font-size: .7em; color: var(--muted); }
.sources { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sources ol { font-size: .92rem; color: var(--muted); }
.sources a { word-break: break-word; }
.aside-card { position: sticky; top: 100px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { font-size: 1.35rem; }
.aside-card p { color: var(--muted-on-dark); font-size: .95rem; }
.aside-card .btn { width: 100%; }
.related { margin-top: 24px; }
.related h3 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { text-decoration: none; font-weight: 600; color: var(--ink); line-height: 1.35; display: block; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.related a:hover { border-color: var(--ink); }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; gap: 40px; } .aside-card { position: static; } }

.legal { max-width: 760px; padding: 56px 0 96px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

.notfound { text-align: center; padding: 120px 0; }

/* Navegação da galeria */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1;
}
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { font-family: var(--font-mono); font-size: .8rem; color: var(--muted-on-dark); float: right; }
@media (max-width: 700px) { .lb-nav { top: auto; bottom: 18px; transform: none; } }
.project-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(15,27,45,.85); color: #fff; font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .06em; padding: 5px 10px; border-radius: 999px;
}
