/* ==========================================================================
   Viana Engenharia e Construção — Site institucional
   Conceito: "dossiê de obra" — papel de projeto técnico (azul-marinho/azul de
   anteprojeto) sobre fundo papel cru, com marcas de registro, numeração de
   pranchas e grades de desenho técnico.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Big+Shoulders+Display:wght@600;700;800;900&display=swap');

:root {
  /* paleta */
  --navy-900: #0b1130;
  --navy-800: #141d4d;
  --navy-700: #232f6e;
  --blue-500: #4a65f0;
  --blue-300: #9aabff;
  --paper-100: #f6f2e8;
  --paper-200: #ece4d3;
  --paper-300: #ddd2b8;
  --ink-900: #15192e;
  --steel-500: #6b7390;
  --amber-500: #ffb400;

  /* tipografia */
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Archivo', sans-serif;

  /* layout */
  --container: 1200px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper-100);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

/* ---------------------------------------------------------------------- */
/* Utilidades                                                               */
/* ---------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section {
  position: relative;
  padding: 6.5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-top: 0.9rem;
}

.section-head p {
  margin-top: 1.1rem;
  color: var(--steel-500);
  font-size: 1.05rem;
  max-width: 46ch;
}

.section--dark {
  background: var(--navy-800);
  color: var(--paper-100);
}

.section--dark .eyebrow { color: var(--blue-300); }
.section--dark .section-head p { color: #aab2da; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--paper-100);
  border-color: var(--blue-500);
}

.btn-primary:hover {
  background: var(--paper-100);
  color: var(--navy-800);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: inherit;
}

.btn-outline:hover {
  border-color: var(--blue-300);
  color: var(--blue-300);
}

.btn-ink {
  background: var(--navy-800);
  color: var(--paper-100);
  border-color: var(--navy-800);
}

.btn-ink:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

/* Marcas de registro (cantos de prancha técnica) ------------------------- */
.reg-mark {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--blue-500);
  opacity: 0.55;
  pointer-events: none;
}

.section--dark .reg-mark { color: var(--blue-300); opacity: 0.4; }

.blueprint-frame {
  position: relative;
}

.blueprint-frame .reg-mark.tl { top: -10px; left: -10px; }
.blueprint-frame .reg-mark.tr { top: -10px; right: -10px; }
.blueprint-frame .reg-mark.bl { bottom: -10px; left: -10px; }
.blueprint-frame .reg-mark.br { bottom: -10px; right: -10px; }

/* Reveal on scroll --------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------- */
/* Header                                                                   */
/* ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 17, 48, 0.92);
  backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--paper-100);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img { width: 26px; height: 26px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--paper-100);
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.main-nav a {
  color: var(--paper-100);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--paper-100);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-toggle span { left: 11px; top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: translateY(7px) rotate(45deg); top: -7px; }
.nav-toggle.is-active span::after { transform: translateY(-7px) rotate(-45deg); top: 7px; }

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy-800);
  color: var(--paper-100);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 96px 96px, 96px 96px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.35) 70%, transparent 100%);
}

.hero-watermark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 52vw;
  max-width: 760px;
  filter: brightness(0) invert(1);
  opacity: 0.045;
  pointer-events: none;
}

.hero-beam {
  position: absolute;
  background: linear-gradient(120deg, var(--blue-500), transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}

.hero-beam--1 { width: 70vw; height: 120px; top: 8%; right: -20vw; transform: rotate(-22deg); }
.hero-beam--2 { width: 50vw; height: 60px; bottom: 14%; right: -10vw; transform: rotate(-22deg); opacity: 0.1; }

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
}

.hero-eyebrow {
  color: var(--blue-300);
}

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.96;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-500);
}

.hero-sub {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: #c4cbef;
}

.hero-cta {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.8rem;
  gap: 2rem;
  max-width: 720px;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue-300);
}

.hero-stats dd {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #99a2cf;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8b94c4;
  z-index: 1;
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--blue-300), transparent);
  animation: scrollcue 2.2s ease-in-out infinite;
}

@keyframes scrollcue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------------------------------------------------------------------- */
/* Marquee                                                                  */
/* ---------------------------------------------------------------------- */

.marquee {
  background: var(--blue-500);
  color: var(--navy-900);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--navy-900);
}

.marquee-track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 2.2rem;
}

.marquee-track span::after {
  content: '◆';
  margin-left: 2.2rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------- */
/* Sobre                                                                    */
/* ---------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-copy p + p { margin-top: 1rem; }

.about-copy p {
  color: var(--steel-500);
  font-size: 1.02rem;
  max-width: 50ch;
}

.about-stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.about-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy-800);
}

.about-stats div span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.pillar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  position: relative;
  background: var(--paper-100);
  border: 1px solid var(--paper-300);
  padding: 1.8rem 2rem;
}

.pillar-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue-500);
}

.pillar h3 {
  margin-top: 0.6rem;
  font-size: 1.3rem;
  text-transform: none;
  letter-spacing: 0;
}

.pillar p {
  margin-top: 0.7rem;
  color: var(--steel-500);
  font-size: 0.96rem;
}

/* ---------------------------------------------------------------------- */
/* Serviços                                                                 */
/* ---------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}

.service-card {
  background: var(--navy-800);
  padding: 2.6rem 2rem;
  transition: background 0.3s ease;
}

.service-card:hover {
  background: var(--navy-700);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue-300);
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

.service-card:hover .service-number {
  color: var(--blue-500);
  -webkit-text-stroke: 1.5px var(--blue-500);
}

.service-card h3 {
  margin-top: 1.2rem;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.service-card p {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: #aab2da;
}

.service-card--wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 3rem;
}

.service-card--wide .service-card-body {
  flex: 1 1 360px;
}

.service-card--wide .service-card-body h3,
.service-card--wide .service-card-body p {
  margin-top: 0;
}

.service-card--wide .service-card-body p {
  margin-top: 0.7rem;
}

.service-ref {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  border: 1px solid rgba(154, 171, 255, 0.35);
  padding: 0.6rem 1.1rem;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Portfólio                                                                */
/* ---------------------------------------------------------------------- */

.works-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.work-card {
  background: var(--paper-100);
  border: 1px solid var(--paper-300);
  display: flex;
  flex-direction: column;
}

.work-card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.work-card:hover .work-card-photo img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.work-card-info {
  padding: 1.2rem 1.4rem;
}

.work-card-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--blue-500);
}

.work-card-info h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
}

.work-card-location {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.work-card-scope {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--steel-500);
}

/* ---------------------------------------------------------------------- */
/* Novidades                                                                */
/* ---------------------------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--paper-100);
  border: 1px solid var(--paper-300);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.news-tag {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.news-card h3 {
  margin-top: 0.9rem;
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.news-excerpt {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--steel-500);
}

/* ---------------------------------------------------------------------- */
/* Contato                                                                  */
/* ---------------------------------------------------------------------- */

.contact {
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.6;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 14ch;
}

.contact-lead {
  margin-top: 1.3rem;
  color: #aab2da;
  font-size: 1.05rem;
  max-width: 42ch;
}

.contact-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2.4rem;
}

.contact-card dl { display: flex; flex-direction: column; gap: 1.6rem; }

.contact-card dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.contact-card dd {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-card dd a:hover { color: var(--blue-300); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: #8b94c4;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .brand-text strong { color: var(--paper-100); }

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.92rem;
  max-width: 32ch;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue-300);
  margin-bottom: 0.9rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.92rem;
  color: #aab2da;
  margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--paper-100); }

.footer-bottom {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------- */
/* Responsivo                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root { --header-h: 70px; }

  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-900);
    padding: 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .section { padding: 4.5rem 0; }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .services-grid { grid-template-columns: 1fr; }

  .works-gallery { grid-template-columns: 1fr; }

  .news-grid { grid-template-columns: 1fr; }

  .contact-cta { flex-direction: column; }
  .contact-cta .btn { justify-content: center; }

  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 2rem; }
}
