:root {
  --bg: #121614;
  --surface: #232f29;
  --text: #edf1ef;
  --muted: #bdd0c6;
  --accent: #50d7bf;
  --accent2: #747fe8;
  --footer: #0d1110;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-paper {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 15%, rgba(80, 215, 191, 0.12), transparent 38%),
    radial-gradient(circle at 85% 30%, rgba(116, 127, 232, 0.12), transparent 34%),
    linear-gradient(145deg, #121614 0%, #171f1b 45%, #141b18 100%);
}
.bg-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: url('assets/img/paper-noise.svg');
  animation: grainMove 18s steps(12) infinite;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding-block: clamp(44px, 7vw, 72px);
  position: relative;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.14; letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 13ch; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.26rem; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(18, 22, 20, .72);
  border-bottom: 1px solid rgba(237, 241, 239, 0.1);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  font-size: .95rem;
  color: #d7e0dc;
  transition: color .3s ease;
}
.nav-links a:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  border: 1px solid rgba(237,241,239,.2);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
}

.hero {
  min-height: min(78vh, 760px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,22,20,.55), rgba(18,22,20,.68)), url('assets/img/hero.jpg') center/cover no-repeat;
  transform: scale(1.03);
  animation: heroZoom 7s ease-out both;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(80,215,191,.18), transparent 40%), radial-gradient(circle at 82% 18%, rgba(116,127,232,.18), transparent 36%);
}
.hero-content { position: relative; z-index: 2; }
.eyebrow {
  font-size: .84rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), var(--accent2));
  color: #071110;
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  box-shadow: 0 12px 28px rgba(80, 215, 191, 0.25);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(116, 127, 232, 0.32);
  filter: saturate(1.1);
}
.btn-whatsapp.big { padding: 15px 26px; font-size: 1rem; }

.section-intro { max-width: 680px; }
.highlights-grid,
.services-grid,
.testimonials-grid {
  margin-top: 22px;
  display: grid;
  gap: 20px;
}
.highlights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.service-card,
.quote-card,
.media-card,
.map-card,
.step {
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(237,241,239,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.service-card,
.quote-card { padding: 22px; }
.card h3, .service-card h3 { margin-bottom: 6px; }
.service-card { transition: transform .3s ease, border-color .3s ease; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(80, 215, 191, 0.45);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 470px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  display: block;
}

.zigzag {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.step {
  padding: 20px;
  position: relative;
}
.step:nth-child(even) { transform: translateY(20px); }
.step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-weight: 700;
  color: #081413;
  background: linear-gradient(130deg, var(--accent), var(--accent2));
}

.map-card {
  overflow: hidden;
  min-height: 360px;
}
.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

footer {
  background: var(--footer);
  border-top: 1px solid rgba(237,241,239,.12);
  padding-top: 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 22px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}
footer a:hover { color: var(--accent); }
.tagline { color: #dce9e3; font-weight: 600; }
.copyright {
  border-top: 1px solid rgba(237,241,239,.12);
  margin-top: 28px;
  padding: 16px 0 24px;
  color: #9db3a9;
  font-size: .9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from { transform: scale(1.08); filter: saturate(.8); }
  to { transform: scale(1.02); filter: saturate(1); }
}

@keyframes grainMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid,
  .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    background: rgba(18,22,20,.95);
    border: 1px solid rgba(237,241,239,.12);
    border-radius: 14px;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .media-card img { max-height: 320px; }
  .zigzag { grid-template-columns: 1fr; }
  .step:nth-child(even) { transform: translateY(0); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding-block: clamp(40px, 10vw, 56px); }
  .highlights-grid,
  .services-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
