/* ============================================================
   ALTAVUE — Engenharia & Construções de Alto Padrão
   ============================================================ */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --grafite:       #1D1D1F;
  --dourado:       #B89A5D;
  --areia:         #D7D0C6;
  --branco:        #F7F7F5;
  --dourado-light: #cdb07a;
  --grafite-soft:  #2C2C2E;

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

  --ease-luxury: cubic-bezier(0.25, 0.1, 0.0, 1.0);
  --ease-reveal:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--grafite);
  color: var(--branco);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--dourado);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-luxury), width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(184,154,93,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-luxury), width 0.3s, height 0.3s, opacity 0.3s;
}

/* ============================================================
   NOISE OVERLAY
   ============================================================ */
.noise {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s var(--ease-luxury), padding 0.4s;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,15,16,0.55) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-luxury);
}

header.scrolled {
  background: rgba(29,29,31,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 64px;
  border-bottom: 1px solid rgba(184,154,93,0.12);
}

header.scrolled::before {
  opacity: 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--dourado);
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

nav a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--areia);
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--dourado);
  transition: width 0.4s var(--ease-luxury);
}

nav a:hover { color: var(--dourado); }
nav a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(184,154,93,0.4) !important;
  padding: 10px 24px !important;
  color: var(--dourado) !important;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--dourado) !important;
  color: var(--grafite) !important;
}

.nav-cta::after { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grafite);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 1s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29,29,31,0.78) 0%,
    rgba(29,29,31,0.42) 45%,
    rgba(29,29,31,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 32px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 32px;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--branco);
  text-transform: uppercase;
  line-height: 0.95;
  opacity: 0;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--dourado);
  margin: 40px auto;
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--areia);
  letter-spacing: 0.05em;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--areia);
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--dourado), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section {
  position: relative;
  overflow: hidden;
}

.section-label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 20px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.g-reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================================
   ABOUT
   ============================================================ */
#sobre {
  background: var(--branco);
  color: var(--grafite);
  padding: 100px 64px;
}

.sobre-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 80px;
  align-items: center;
}

.sobre-divider-v {
  width: 1px;
  height: 100%;
  background: var(--dourado);
  opacity: 0.4;
  align-self: stretch;
}

.sobre-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #4a4a4a;
  margin-top: 32px;
  font-weight: 300;
}

.sobre-text p + p {
  margin-top: 20px;
}

.sobre-stats {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-left: 40px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--dourado);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  margin-top: 6px;
}

/* ============================================================
   SERVICES
   ============================================================ */
#servicos {
  background: var(--grafite);
  padding: 100px 64px;
}

.servicos-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.servicos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
}

.servicos-header p {
  max-width: 360px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(215,208,198,0.65);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184,154,93,0.15);
  border: 1px solid rgba(184,154,93,0.15);
}

.service-card {
  background: var(--grafite);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-luxury);
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--dourado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-luxury);
}

.service-card:hover { background: var(--grafite-soft); }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--dourado);
  opacity: 0.5;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 28px;
  opacity: 0.7;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--dourado);
  fill: none;
  stroke-width: 1;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--branco);
  line-height: 1.3;
  margin-bottom: 16px;
}

.service-desc {
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(215,208,198,0.55);
  font-weight: 300;
}

/* ============================================================
   PROJECTS
   ============================================================ */
#projetos {
  background: var(--areia);
  color: var(--grafite);
  padding: 100px 64px;
}

.projetos-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.projetos-header {
  margin-bottom: 72px;
}

.projetos-header .section-title {
  color: var(--grafite);
}

.projetos-list {
  display: flex;
  flex-direction: column;
}

.projeto-item {
  display: grid;
  grid-template-columns: 80px 1fr 420px;
  gap: 48px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid rgba(29,29,31,0.15);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.projeto-item:last-child {
  border-bottom: 1px solid rgba(29,29,31,0.15);
}

.projeto-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--dourado);
  font-style: italic;
  letter-spacing: 0.1em;
}

.projeto-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--grafite);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.projeto-item:hover .projeto-name { color: var(--dourado); }

.projeto-desc {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(29,29,31,0.45);
}

.projeto-img {
  height: 260px;
  overflow: hidden;
}

.projeto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.9s var(--ease-luxury);
}

.projeto-item:hover .projeto-img img { transform: scale(1.0); }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
#diferenciais {
  background: var(--grafite);
  padding: 100px 64px;
  position: relative;
}

.diferenciais-bg {
  position: absolute;
  right: 0; top: 0;
  width: 45%;
  height: 100%;
  opacity: 0.06;
  overflow: hidden;
}

.diferenciais-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.diferenciais-header {
  margin-bottom: 72px;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.diferencial-card {
  padding: 60px 52px;
  border: 1px solid rgba(184,154,93,0.1);
  transition: border-color 0.4s;
}

.diferencial-card:hover { border-color: rgba(184,154,93,0.35); }

.diferencial-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
}

.diferencial-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--dourado);
  fill: none;
  stroke-width: 1.2;
}

.diferencial-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--branco);
  margin-bottom: 16px;
}

.diferencial-text {
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(215,208,198,0.55);
}

/* ============================================================
   LEADERSHIP
   ============================================================ */
#lideranca {
  background: var(--branco);
  color: var(--grafite);
  padding: 100px 64px;
}

.lideranca-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.lideranca-header {
  margin-bottom: 72px;
}

.lideranca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.lider-card {
  position: relative;
  overflow: hidden;
}

.lider-photo {
  height: 480px;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}

.lider-photo img {
  object-position: top center;
  transition: transform 0.9s var(--ease-luxury);
  filter: grayscale(100%) contrast(1.1);
}

.lider-card:hover .lider-photo img {
  transform: scale(1.04);
  filter: grayscale(80%) contrast(1.05);
}

.lider-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(247,247,245,0.8), transparent);
}

.lider-role {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 10px;
}

.lider-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--grafite);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.lider-bio {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(29,29,31,0.55);
}

.lider-divider {
  width: 32px;
  height: 1px;
  background: var(--dourado);
  margin-bottom: 14px;
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
#contato {
  background: var(--grafite);
  padding: 100px 64px;
  position: relative;
  overflow: hidden;
}

.contato-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
}

.contato-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contato-pre {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 32px;
  display: block;
}

.contato-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--branco);
  margin-bottom: 32px;
}

.contato-sub {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(215,208,198,0.6);
  margin-bottom: 64px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  background: var(--dourado);
  color: var(--grafite);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 20px 52px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--branco);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-luxury);
  z-index: 0;
}

.cta-btn span {
  position: relative;
  z-index: 1;
}

.cta-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.cta-btn:hover { color: var(--grafite); }

.contato-details {
  margin-top: 52px;
  display: flex;
  gap: 52px;
  justify-content: center;
  align-items: center;
}

.contato-details a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(215,208,198,0.45);
  transition: color 0.3s;
}

.contato-details a:hover { color: var(--dourado); }

.contato-local {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(215,208,198,0.35);
}

.contato-sep {
  width: 1px;
  height: 16px;
  background: rgba(184,154,93,0.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #141415;
  border-top: 1px solid rgba(184,154,93,0.15);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.45em;
  color: var(--dourado);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.72rem;
  color: rgba(215,208,198,0.3);
  letter-spacing: 0.1em;
  margin-top: 6px;
  font-style: italic;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(215,208,198,0.2);
  letter-spacing: 0.1em;
}

.footer-city {
  font-size: 0.7rem;
  color: rgba(184,154,93,0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}

.maw-credit {
  text-align: center;
  padding: 14px 64px;
  border-top: 1px solid rgba(184,154,93,0.06);
  font-size: 0.62rem;
  color: rgba(215,208,198,0.18);
  letter-spacing: 0.1em;
}

.maw-credit a {
  color: rgba(184,154,93,0.32);
  transition: color 0.3s;
}

.maw-credit a:hover { color: var(--dourado); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sobre-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .sobre-divider-v { display: none; }
  .sobre-stats {
    flex-direction: row;
    padding-left: 0;
    flex-wrap: wrap;
    gap: 32px;
  }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .projeto-item { grid-template-columns: 60px 1fr; }
  .projeto-img { display: none; }
  .lideranca-grid { grid-template-columns: 1fr; gap: 60px; }
  .lider-photo { height: 340px; }
  .diferenciais-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  header { padding: 20px 24px; }
  header.scrolled { padding: 16px 24px; }
  nav { gap: 20px; }
  nav a { font-size: 0.62rem; }
  .nav-cta { display: none; }

  #sobre, #servicos, #projetos, #diferenciais, #lideranca, #contato {
    padding: 72px 24px;
  }

  .servicos-header { flex-direction: column; gap: 24px; align-items: flex-start; }
  .servicos-header { margin-bottom: 48px; }
  .servicos-grid { grid-template-columns: 1fr; }
  .projeto-item { grid-template-columns: 52px 1fr; gap: 24px; }
  .contato-details { flex-direction: column; gap: 16px; }
  .contato-sep { display: none; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; padding: 40px 24px; }
  .footer-right { text-align: center; }
  .maw-credit { padding: 14px 24px; }
}
