/* ============================================================
   R7 ENGENHARIA — Premium Redesign 2026
   Aesthetic: Luxury Architectural · Dark Gold
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

:root {
  --bg:          #07080c;
  --bg-2:        #0b0d12;
  --bg-card:     #0f1118;
  --gold:        #c4962c;
  --gold-bright: #e0b040;
  --gold-muted:  rgba(196,150,44,0.10);
  --gold-line:   rgba(196,150,44,0.22);
  --white:       #f0ece3;
  --white-soft:  #8a909f;
  --line:        rgba(255,255,255,0.07);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --container:    min(1240px, calc(100vw - 48px));
  --section-pad:  140px;
  --radius:       4px;
  --radius-lg:    14px;
  --shadow:       0 40px 80px rgba(0,0,0,0.65);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── Custom Cursor ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, background .3s ease;
  mix-blend-mode: screen;
}
.cursor.hovering {
  width: 42px; height: 42px;
  background: rgba(196,150,44,0.25);
  border: 1px solid var(--gold);
}
@media (hover:none) { .cursor { display:none; } }

/* ── Page Loader ── */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 56px;
  animation: loader-pulse 1.4s ease infinite;
}
@keyframes loader-pulse {
  0%,100% { opacity: .25; transform: scale(.92); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* ── Container ── */
.container { width: var(--container); margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .3s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: #000; border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright); border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196,150,44,0.35);
}
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.18);
}
.btn-outline:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--gold);
  flex-shrink: 0;
}

/* ─────────────────────────────────
   HEADER
───────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.site-header.scrolled {
  background: rgba(7,8,12,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand img {
  height: 50px; width: auto; object-fit: contain;
}
.site-menu {
  display: flex; align-items: center; gap: 40px;
}
.site-menu a:not(.btn) {
  font-size: .875rem; font-weight: 400;
  color: var(--white-soft); letter-spacing: .04em;
  transition: color .3s;
  position: relative;
}
.site-menu a:not(.btn)::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.site-menu a:not(.btn):hover { color: var(--white); }
.site-menu a:not(.btn):hover::after { width: 100%; }

.menu-toggle {
  display: none; flex-direction: column;
  justify-content: center; align-items: center; gap: 6px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--white); transition: .3s;
}

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 88px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -200px; right: -250px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(196,150,44,.07) 0%, transparent 70%);
  pointer-events: none;
}
/* subtle grid overlay */
.hero::after {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: center;
  padding: 72px 0; position: relative; z-index: 1;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 8.5rem);
  font-weight: 300; line-height: 1.0;
  letter-spacing: -.02em;
  margin: 0 0 28px; color: var(--white);
}
.hero-title em {
  font-style: italic; color: var(--gold);
}
.hero-sub {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--white-soft);
  max-width: 460px; margin: 0 0 40px;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* Hero image */
.hero-visual {
  position: relative; padding-bottom: 50px;
}
.hero-img-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.hero-img-frame img {
  width: 100%; height: 540px; object-fit: cover; display: block;
}
/* Engineering corner marks */
.frame-corner {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--gold); border-style: solid; z-index: 2;
}
.frame-corner.tl { top:12px; left:12px;   border-width: 1px 0 0 1px; }
.frame-corner.tr { top:12px; right:12px;  border-width: 1px 1px 0 0; }
.frame-corner.bl { bottom:12px; left:12px;  border-width: 0 0 1px 1px; }
.frame-corner.br { bottom:12px; right:12px; border-width: 0 1px 1px 0; }

.hero-badge {
  position: absolute; bottom: 0; left: -28px;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--shadow);
}
.badge-name {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 500; color: var(--white);
}
.badge-role {
  font-size: .75rem; letter-spacing: .06em;
  color: var(--gold); font-weight: 500;
}
.badge-phone {
  font-size: .8rem; color: var(--white-soft);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .35; z-index: 1;
}
.hero-scroll-hint span {
  font-size: .65rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--white-soft);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-drop 2.2s ease infinite;
}
@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────────────
   STATS STRIP
───────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 52px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: none; }
.stat-top {
  display: flex; align-items: baseline; gap: 2px;
  line-height: 1;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4.8rem);
  font-weight: 300; color: var(--gold);
}
.stat-sym {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 300; color: var(--gold);
}
.stat-label {
  font-size: .78rem; color: var(--white-soft);
  letter-spacing: .04em; margin-top: 10px;
}

/* ─────────────────────────────────
   SECTION BASE
───────────────────────────────── */
.section { padding: var(--section-pad) 0; }
.section-flush { padding-bottom: 0; }

.section-head { max-width: 680px; margin-bottom: 72px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -.01em; margin: 0; color: var(--white);
}

/* ─────────────────────────────────
   SERVICES
───────────────────────────────── */
.services-list {
  display: flex; flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 40px; align-items: start;
  padding: 48px 16px;
  border-bottom: 1px solid var(--line);
  position: relative; transition: background .3s;
  border-radius: var(--radius);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-muted); opacity: 0;
  transition: opacity .3s; border-radius: var(--radius);
  pointer-events: none;
}
.service-row:hover::before { opacity: 1; }
.svc-num {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 300;
  color: var(--gold); line-height: 1; opacity: .45;
  padding-top: 6px;
}
.svc-body h3 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  margin: 0 0 10px; color: var(--white);
}
.svc-body p {
  color: var(--white-soft); font-size: .95rem;
  margin: 0; max-width: 500px;
}
.svc-tags {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px; padding-top: 8px;
}
.svc-tags span {
  font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--white-soft);
  padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 20px;
}

/* ─────────────────────────────────
   GALLERY
───────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 360px 360px;
  gap: 4px; margin-top: 48px;
}
.gallery-item { position: relative; overflow: hidden; }
.gallery-item--large { grid-row: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,8,12,.82) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 24px;
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}

/* ─────────────────────────────────
   SOBRE
───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px; align-items: start;
}
.about-quote { position: sticky; top: 120px; }
.about-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300; line-height: 1.25;
  margin: 0; color: var(--white);
}
.about-quote blockquote em {
  font-style: italic; color: var(--gold);
  display: block; margin-top: 8px;
}
.about-text { padding-top: 72px; }
.about-text p {
  font-size: 1.05rem; line-height: 1.9;
  color: var(--white-soft); margin: 0 0 20px;
}
.about-text .btn { margin-top: 16px; }

/* ─────────────────────────────────
   DIFERENCIAIS
───────────────────────────────── */
.diferenciais-section { background: var(--bg-2); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feature-card {
  background: var(--bg-2);
  padding: 40px 36px;
  transition: background .3s;
}
.feature-card:hover { background: var(--bg-card); }
.feat-num {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 300;
  color: var(--gold); opacity: .28;
  line-height: 1; margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  color: var(--white); margin: 0 0 10px;
}
.feature-card p {
  font-size: .875rem; color: var(--white-soft);
  line-height: 1.75; margin: 0;
}

/* ─────────────────────────────────
   CONTATO
───────────────────────────────── */
.contato-section {
  background: linear-gradient(to bottom, var(--bg), var(--bg-2));
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.contact-copy .section-title { margin-bottom: 20px; }
.contact-copy p {
  color: var(--white-soft); font-size: 1.05rem;
  line-height: 1.85; margin: 0 0 36px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px; margin-top: 20px;
}
.contact-item {
  display: flex; flex-direction: column; gap: 7px;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child  { border-bottom: none; padding-bottom: 0; }
.ci-label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.ci-value {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 400;
  color: var(--white); line-height: 1.3;
  transition: color .3s;
}
a.ci-value:hover { color: var(--gold); }

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0; background: var(--bg);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left {
  display: flex; align-items: center; gap: 20px;
}
.footer-logo {
  height: 48px; width: auto; border-radius: 6px;
}
.footer-name {
  margin: 0 0 4px; font-size: .95rem; font-weight: 500;
}
.footer-left small { font-size: .78rem; color: var(--white-soft); }
.footer-cta {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  color: var(--gold); transition: color .3s;
}
.footer-cta:hover { color: var(--gold-bright); }

/* ─────────────────────────────────
   REVEAL ANIMATIONS
───────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition:
    opacity .9s cubic-bezier(.25,.8,.25,1),
    transform .9s cubic-bezier(.25,.8,.25,1);
  will-change: transform, opacity;
}
[data-reveal="right"]   { transform: translateX(-36px); }
[data-reveal="left"]    { transform: translateX(36px);  }
[data-reveal="fade"]    { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: translate(0,0); }

/* ─────────────────────────────────
   RESPONSIVE
───────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 100px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0; padding: 60px 0 80px;
  }
  .hero-visual { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item {
    border-right: none; border-bottom: 1px solid var(--line);
    padding: 28px;
  }
  .stat-item:nth-child(odd)      { border-right: 1px solid var(--line); }
  .stat-item:nth-last-child(-n+2){ border-bottom: none; }

  .service-row { grid-template-columns: 60px 1fr; }
  .svc-tags    { display: none; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px;
  }
  .gallery-item--large {
    grid-row: span 1; grid-column: span 2;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-quote { position: static; }
  .about-text  { padding-top: 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; }

  .menu-toggle { display: flex; }
  .site-menu {
    position: fixed;
    inset: 88px 0 0 0;
    flex-direction: column;
    background: rgba(7,8,12,.98);
    padding: 48px 32px;
    gap: 32px; align-items: flex-start;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.25,.8,.25,1);
    overflow-y: auto;
  }
  .site-menu.is-open { transform: translateX(0); }
  .site-menu a:not(.btn) { font-size: 1.6rem; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery-item--large { grid-row: span 1; grid-column: span 1; }
  .gallery-item { height: 240px; }

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

  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-left  { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3.5rem, 14vw, 4.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-card { padding: 32px 24px; }
  .ci-value { font-size: 1.3rem; }
}
