:root {
  --bg-deep: #060d18;
  --bg-surface: #0c1626;
  --bg-card: #101e33;
  --blue-real: #0b2545;
  --steel: #94a9c4;
  --steel-light: #e2e8f0;
  --gold: #d4af37;
  --gold-bright: #f0cf65;
  --white: #f8fafc;
  --muted: #8b9bb4;
  --border: rgba(148, 169, 196, 0.16);
  --border-gold: rgba(212, 175, 55, 0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: 'Syne', 'Montserrat', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background:
    radial-gradient(circle at 80% 10%, rgba(16, 54, 104, 0.35), transparent 45%),
    radial-gradient(circle at 15% 60%, rgba(212, 175, 55, 0.08), transparent 40%),
    var(--bg-deep);
}

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

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

.container {
  width: min(1220px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 13, 24, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #8c6b15);
  color: #060d18;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--steel-light);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #060d18;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero 3D */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 118px 0 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--white);
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold), #fff4cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--steel);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  max-width: 520px;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--white);
  line-height: 1.1;
}

.metric span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Interactive 3D Stage Card */
.stage-panel {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(16, 30, 51, 0.78), rgba(6, 13, 24, 0.88));
  border: 1px solid var(--border-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.stage-viewport {
  position: relative;
  height: 390px;
  width: 100%;
  cursor: grab;
}

.stage-viewport:active {
  cursor: grabbing;
}

#facade-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 13, 24, 0.78);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  pointer-events: none;
}

.stage-hint {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 0.74rem;
  color: var(--steel);
  background: rgba(6, 13, 24, 0.7);
  padding: 5px 10px;
  border-radius: 8px;
  pointer-events: none;
}

.stage-controls {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(6, 13, 24, 0.65);
}

.control-group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}

.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch.active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
  transform: scale(1.1);
}

/* Sections */
section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--steel);
  font-size: 1.02rem;
}

/* 3D Tilt Cards */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.tilt-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(16, 30, 51, 0.92), rgba(8, 16, 29, 0.96));
  border: 1px solid var(--border);
  padding: 36px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tilt-card:hover::before {
  opacity: 1;
}

.card-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.tilt-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.tilt-card > p {
  color: var(--steel);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-light);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.65rem;
}

/* Portfolio Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.3s ease;
}

.work-card:hover {
  border-color: var(--border-gold);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-media img {
  transform: scale(1.06);
}

.work-body {
  padding: 22px 24px 26px;
}

.work-body span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.work-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 6px 0 8px;
}

.work-body p {
  font-size: 0.92rem;
  color: var(--steel);
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: rgba(16, 30, 51, 0.55);
  border: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 12px;
}

.step-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--steel);
}

/* Interactive Estimator */
.estimator-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  background: linear-gradient(145deg, rgba(16, 30, 51, 0.85), rgba(6, 13, 24, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel-light);
}

.field input,
.field select,
.field textarea {
  background: rgba(6, 13, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.estimator-summary {
  background: rgba(6, 13, 24, 0.65);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.summary-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.summary-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--steel);
}

.summary-list strong {
  color: var(--white);
}

/* Contact & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: stretch;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-item span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.contact-item strong {
  font-size: 1.05rem;
  color: var(--white);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(22, 163, 74, 0.55);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .divisions-grid,
  .portfolio-grid,
  .estimator-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: rgba(6, 13, 24, 0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-grid,
  .form-grid,
  .stage-controls {
    grid-template-columns: 1fr;
  }

  .estimator-wrap {
    padding: 24px;
  }

  .stage-viewport {
    height: 310px;
  }
}
