/* ==========================================================================
   Portfólio — Sâmua Buzeli, Engenheira Civil
   Linguagem visual: prancha de projeto (azul de planta, concreto, amarelo de obra)
   ========================================================================== */

:root {
  --prancha: #0e2b3f;        /* azul de planta: fundos escuros */
  --prancha-2: #163a54;      /* variação para bordas sobre o escuro */
  --linha: #9cc8e8;          /* traço claro sobre o azul */
  --tinta: #10222c;          /* texto principal */
  --aco: #4f5c64;            /* texto secundário (contraste AA sobre concreto/papel) */
  --concreto: #e7e6e2;       /* fundo de seção */
  --papel: #f6f6f3;          /* fundo de seção alternado */
  --azul: #1b4f72;           /* traço técnico e links sobre claro */
  --amarelo: #f2b705;        /* amarelo de obra: destaque */
  --regua: #c9c7c0;          /* divisórias sobre claro */

  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-texto: "Source Serif 4", Georgia, "Times New Roman", serif;

  --w: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-texto);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--azul); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-ui); margin: 0; color: inherit; }
ol, ul, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }
.dark :focus-visible, .site-header :focus-visible { outline-color: var(--amarelo); }
:where(section:not(.dark)) :focus-visible { outline-color: var(--azul); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amarelo); color: var(--tinta); padding: .6rem 1rem;
  font: 600 .95rem var(--f-ui); text-decoration: none;
}
.skip:focus { top: 1rem; }

.container { width: min(100%, var(--w)); margin-inline: auto; padding-inline: var(--pad); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(14, 43, 63, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--prancha-2);
  color: #fff;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.marca { font: 700 1.05rem/1 var(--f-ui); font-stretch: 112%; color: #fff; text-decoration: none; letter-spacing: .01em; display: flex; align-items: center; gap: .65rem; }
.marca-icone { width: 26px; height: 26px; flex: none; }
.nav-lista { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-lista a {
  font: 500 .95rem var(--f-ui); color: #d5e3ee; text-decoration: none; padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-lista a:hover { color: #fff; }
.nav-lista a[aria-current="true"] { color: #fff; border-bottom-color: var(--amarelo); }
.nav-lista .nav-cta { background: var(--amarelo); color: var(--tinta); padding: .5rem .95rem; border: 0; font-weight: 600; border-radius: 3px; }
.nav-lista .nav-cta:hover { background: #ffc92b; color: var(--tinta); }
.nav-toggle { display: none; background: none; border: 1px solid var(--prancha-2); color: #fff; width: 44px; height: 44px; border-radius: 3px; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-lista {
    position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--prancha); border-bottom: 1px solid var(--prancha-2); padding: .5rem var(--pad) 1.25rem;
    display: none;
  }
  .nav-lista.aberto { display: flex; }
  .nav-lista a { padding: .9rem 0; border-bottom: 1px solid var(--prancha-2); font-size: 1.05rem; }
  .nav-lista a[aria-current="true"] { border-bottom-color: var(--amarelo); }
  .nav-lista .nav-cta { margin-top: 1rem; text-align: center; border-bottom: 0; padding: .9rem 1rem; }
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 1rem/1 var(--f-ui); text-decoration: none;
  padding: .95rem 1.35rem; border-radius: 3px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn i { font-size: 1.1em; }
.btn-primario { background: var(--amarelo); color: var(--tinta); }
.btn-primario:hover { background: #ffc92b; }
.btn-contorno { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-contorno:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-tinta { background: var(--tinta); color: #fff; }
.btn-tinta:hover { background: var(--azul); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.dark { background: var(--prancha); color: #fff; }

.hero {
  position: relative; padding-top: var(--header-h); color: #fff;
  background-color: var(--prancha);
  background-image:
    linear-gradient(rgba(156, 200, 232, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 200, 232, .13) 1px, transparent 1px),
    linear-gradient(rgba(156, 200, 232, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 200, 232, .06) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  overflow: hidden;
}
.hero-grade {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  min-height: min(calc(100svh - var(--header-h) - 92px), 760px);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 900px) { .hero-grade { grid-template-columns: 1fr 1fr; } }

.hero h1 { font-weight: 800; font-stretch: 118%; font-size: clamp(3.5rem, 8.6vw, 6.9rem); line-height: .92; letter-spacing: -.025em; }
.hero h1 span { display: block; }
.hero h1 .cargo { margin-top: .9rem; font-size: clamp(1.25rem, 2.7vw, 2rem); font-weight: 500; font-stretch: 100%; letter-spacing: 0; line-height: 1.2; color: var(--amarelo); }
.hero-texto { max-width: 34rem; margin: 1.75rem 0 2rem; color: #d5e3ee; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-draw { width: 100%; height: auto; max-height: 74vh; margin-inline: auto; }
.hero-draw .rot { font: 500 19px var(--f-ui); fill: #d5e6f3; }
.hero-draw .rot-pequeno { font: 500 16px var(--f-ui); fill: #a9c6db; }

/* desenho da estrutura: um único momento de animação no carregamento */
.draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: traco 1s cubic-bezier(.55, 0, .25, 1) forwards; animation-delay: var(--d, 0s); }
.surge { opacity: 0; animation: surge .6s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes traco { to { stroke-dashoffset: 0; } }
@keyframes surge { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw > * { animation: none; stroke-dashoffset: 0; }
  .surge { animation: none; opacity: 1; }
}

.hero-fatos { border-top: 1px solid var(--prancha-2); background: rgba(6, 24, 37, .55); }
.hero-fatos ul { display: grid; gap: 0; }
@media (min-width: 820px) { .hero-fatos ul { grid-template-columns: repeat(3, 1fr); } }
.hero-fatos li { padding: 1.15rem 1.5rem 1.15rem 0; font: 400 .98rem/1.45 var(--f-ui); color: #c9ddec; }
@media (min-width: 820px) { .hero-fatos li { padding-left: 1.5rem; border-left: 1px solid var(--prancha-2); } .hero-fatos li:first-child { padding-left: 0; border-left: 0; } }
.hero-fatos strong { display: block; color: #fff; font-weight: 600; font-size: 1.02rem; }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.secao { padding-block: clamp(3.5rem, 8vw, 7rem); }
.secao-papel { background: var(--papel); }
.secao-concreto { background: var(--concreto); }

.secao h2 { font-weight: 700; font-stretch: 112%; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.015em; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.6; max-width: 38rem; }

/* --------------------------------------------------------------------------
   Trajetória
   -------------------------------------------------------------------------- */
.traj-grade { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) { .traj-grade { grid-template-columns: 5fr 7fr; align-items: start; } .traj-intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.traj-intro .lead { margin-top: 1.5rem; }

.legenda { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; font: 500 .9rem var(--f-ui); color: var(--aco); }
.legenda span { display: inline-flex; align-items: center; gap: .5rem; }
.marc { width: 12px; height: 12px; display: inline-block; flex: none; }
.marc-exp { background: var(--azul); }
.marc-for { border: 2px solid var(--azul); background: var(--papel); }

.linha-tempo { border-left: 2px solid var(--regua); margin-left: 5px; }
.linha-tempo li { position: relative; padding: 0 0 2.25rem 2rem; }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo li::before { content: ""; position: absolute; left: -8px; top: .5rem; width: 14px; height: 14px; background: var(--azul); }
.linha-tempo li.formacao::before { background: var(--papel); border: 2px solid var(--azul); width: 14px; height: 14px; }
.linha-tempo .ano { font: 600 .95rem var(--f-ui); font-stretch: 112%; color: var(--azul); letter-spacing: .02em; }
.linha-tempo h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: .15rem 0 .1rem; }
.linha-tempo .onde { font: 400 .95rem var(--f-ui); color: var(--aco); margin-bottom: .55rem; }
.linha-tempo p { margin: 0; max-width: 36rem; }
.linha-tempo li.atual::after { content: ""; position: absolute; left: -8px; top: .5rem; width: 14px; height: 14px; box-shadow: 0 0 0 4px rgba(242, 183, 5, .55); }

/* --------------------------------------------------------------------------
   Obras
   -------------------------------------------------------------------------- */
.obras-topo { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .obras-topo { grid-template-columns: 5fr 7fr; align-items: end; } }
.obras-topo .lead { margin: 0; }

/* figura: foto ou desenho */
.fig { position: relative; margin: 0; background: #dfe1dd; border: 1px solid var(--regua); overflow: hidden; aspect-ratio: 8 / 5; }
.fig .ilu { position: absolute; inset: 0; background-color: #eef0ec;
  background-image: linear-gradient(rgba(27, 79, 114, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 79, 114, .09) 1px, transparent 1px);
  background-size: 32px 32px; }
.fig .ilu svg { width: 100%; height: 100%; }
.fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fig figcaption { position: absolute; right: .6rem; top: .6rem; font: 400 .8rem var(--f-ui); color: var(--aco); background: rgba(238, 240, 236, .9); padding: .1rem .4rem; }
.fig .mais { position: absolute; right: .75rem; bottom: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; background: var(--tinta); color: #fff; border: 0; font: 600 .9rem var(--f-ui); padding: .55rem .8rem; border-radius: 3px; cursor: pointer; text-decoration: none; }
.fig .mais:hover { background: var(--azul); }
.fig a.capa { position: absolute; inset: 0; display: block; }

/* traços dos desenhos */
.ilu .l { fill: none; stroke: var(--azul); stroke-width: 2; }
.ilu .t { fill: none; stroke: var(--azul); stroke-width: 1.25; stroke-dasharray: 6 5; opacity: .75; }
.ilu .f { fill: var(--azul); stroke: none; }
.ilu .y { fill: none; stroke: #e0a800; stroke-width: 3; }
.ilu .yf { fill: var(--amarelo); stroke: var(--tinta); stroke-width: 1.5; }
.ilu .ag { fill: rgba(27, 79, 114, .10); stroke: none; }
.ilu .lbl { font: 500 20px var(--f-ui); fill: var(--aco); }

/* carimbo: bloco de título de prancha */
.carimbo { border: 1.5px solid var(--tinta); background: var(--papel); display: flex; flex-direction: column; }
.carimbo-titulo { font: 700 1.25rem/1.2 var(--f-ui); padding: .8rem 1rem; background: var(--tinta); color: #fff; margin: 0; }
.carimbo dl { display: flex; flex-direction: column; flex: 1; }
.carimbo .linha:last-child { flex: 1; }
.carimbo .linha { display: grid; grid-template-columns: 6.5rem 1fr; border-top: 1px solid var(--tinta); }
.carimbo .linha:first-child { border-top: 0; }
.carimbo dt { font: 600 .9rem/1.4 var(--f-ui); padding: .7rem 1rem; border-right: 1px solid var(--tinta); color: var(--aco); background: rgba(16, 34, 44, .04); }
.carimbo dd { padding: .7rem 1rem; font-size: 1rem; line-height: 1.5; }
.carimbo dd a { font: 600 .98rem var(--f-ui); }
.carimbo dd a i { font-size: .85em; margin-left: .25rem; }
@media (max-width: 420px) { .carimbo .linha { grid-template-columns: 1fr; } .carimbo dt { border-right: 0; padding-bottom: 0; background: none; } }

/* obra em destaque */
.destaque { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 2px solid var(--tinta); }
@media (min-width: 960px) { .destaque { grid-template-columns: 7fr 5fr; align-items: start; } .destaque .fig { aspect-ratio: 7 / 6; } }
.destaque h3 { font-weight: 700; font-stretch: 112%; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.08; margin-bottom: .9rem; }
.destaque .historia p { max-width: 34rem; }
.passos { counter-reset: passo; margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--regua); }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--regua); font-size: 1.02rem; line-height: 1.45; }
.passos li::before { content: counter(passo); font: 700 .95rem var(--f-ui); color: var(--azul); }
.passos li.fim::before { content: "—"; }
.passos li.fim { color: var(--aco); }

/* demais obras */
.prancha-grade { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 820px) { .prancha-grade { grid-template-columns: 1fr 1fr; } }
.prancha { display: flex; flex-direction: column; gap: 1rem; }
.prancha .carimbo { flex: 1; }

/* --------------------------------------------------------------------------
   Competências
   -------------------------------------------------------------------------- */
.comp-topo { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.comp-topo .lead { margin-top: 1.25rem; }
.comp-grade { display: grid; border-top: 2px solid var(--tinta); }
@media (min-width: 900px) { .comp-grade { grid-template-columns: repeat(3, 1fr); } .comp-grade > div + div { border-left: 1px solid var(--regua); padding-left: 2rem; } .comp-grade > div { padding-right: 2rem; } }
.comp-grade > div { padding-block: 1.75rem; }
@media (max-width: 899px) { .comp-grade > div + div { border-top: 1px solid var(--regua); } }
.comp-grade h3 { font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.comp-grade li { padding: .5rem 0; border-bottom: 1px solid var(--regua); font-size: 1.02rem; line-height: 1.45; }
.comp-grade li:last-child { border-bottom: 0; }
.comp-grade li small { display: block; font: 400 .88rem var(--f-ui); color: var(--aco); margin-top: .1rem; }

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */
.contato { position: relative; background-color: var(--prancha);
  background-image: linear-gradient(rgba(156, 200, 232, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(156, 200, 232, .07) 1px, transparent 1px);
  background-size: 32px 32px; }
.contato-grade { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contato-grade { grid-template-columns: 6fr 5fr; align-items: end; } }
.contato h2 { color: #fff; }
.contato .lead { color: #d5e3ee; margin-top: 1.25rem; }
.contato-acoes { display: grid; gap: .85rem; }
.contato-acoes .btn { justify-content: flex-start; width: 100%; }
.contato-dados { margin-top: .5rem; font: 400 .98rem/1.6 var(--f-ui); color: #c9ddec; }

.rodape { background: #081d2c; color: #9fbdd3; font: 400 .92rem var(--f-ui); padding-block: 1.5rem; }
.rodape .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.rodape a { color: #c9ddec; }

/* lightbox: alinhar com a paleta */
.glightbox-clean .gslide-description { background: var(--prancha); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fig span.mais { pointer-events: none; }
