:root {
  --bg: #f3f1ec;
  --bg-elevated: #faf9f6;
  --ink: #1a1f1c;
  --ink-soft: #3d4742;
  --muted: #6b756f;
  --line: rgba(26, 31, 28, 0.12);
  --accent: #0f6b5c;
  --accent-deep: #0a4f44;
  --accent-soft: rgba(15, 107, 92, 0.12);
  --copper: #8b5e3c;
  --hero-ink: #e8ebe6;
  --hero-bg: #121816;
  --radius: 2px;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 36rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 236, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(18, 24, 22, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  margin-left: 0.35rem;
  color: var(--accent);
}

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

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-of-type {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero — compact, no full-viewport gap */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  color: var(--hero-ink);
  background: var(--hero-bg);
  overflow: hidden;
  padding: 5.5rem 0 3.25rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 235, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 235, 230, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

.hero-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  max-width: 480px;
  max-height: 480px;
  right: -6%;
  top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 107, 92, 0.45), transparent 68%);
  filter: blur(8px);
  animation: glowPulse 7s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 0.95;
  font-weight: 600;
}

.hero-name {
  display: block;
}

.hero-lead {
  max-width: 34rem;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(232, 235, 230, 0.82);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  color: rgba(232, 235, 230, 0.55);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #128574;
  color: #fff;
}

.hero .btn-ghost {
  border-color: rgba(232, 235, 230, 0.35);
  color: var(--hero-ink);
}

.hero .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Services — 2 columns × 4 rows */
.services {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.35rem;
}

.service-row {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem 1rem;
  padding: 1.25rem 1.15rem;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-height: 100%;
}

.service-index {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1.2;
}

.service-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.service-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-row:hover h3 {
  color: var(--accent-deep);
}

/* Process — dark band + progressive image cards */
.process {
  background: var(--hero-bg);
  color: var(--hero-ink);
}

.process .section-lead {
  color: rgba(232, 235, 230, 0.78);
  margin-inline: auto;
}

.process .section-head {
  margin-inline: auto;
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.process-card {
  position: relative;
  min-height: 300px;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(232, 235, 230, 0.14);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.process-card--1 {
  background-image: url("../images/process/step-1.svg");
}

.process-card--2 {
  background-image: url("../images/process/step-2.svg");
}

.process-card--3 {
  background-image: url("../images/process/step-3.svg");
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 24, 22, 0.4) 0%, rgba(18, 24, 22, 0.78) 45%, rgba(18, 24, 22, 0.92) 100%);
  z-index: 0;
}

.process-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 300px;
  padding: 1.75rem 1.35rem;
}

.process-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: #fff;
}

.process-card p {
  margin: 0;
  color: rgba(232, 235, 230, 0.82);
  font-size: 0.98rem;
  max-width: 18rem;
}

/* Experience */
.experience {
  background:
    linear-gradient(180deg, transparent, rgba(15, 107, 92, 0.04)),
    var(--bg);
}

.milestones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.milestone {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.milestone time {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.milestone h3 {
  font-size: 1.2rem;
}

.milestone p {
  margin: 0;
  color: var(--ink-soft);
}

/* Contact (includes former zone copy) */
.contact-panel {
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.contact-panel .section-lead {
  max-width: 42rem;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.35rem;
}

.contact-tags li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--bg);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #128c7e;
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: #0f6b5c;
  color: #fff;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

@keyframes glowPulse {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.9; transform: scale(1.08); }
}

@media (max-width: 900px) {
  .process-steps,
  .milestones {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --wrap: min(1120px, calc(100% - 1.5rem));
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(243, 241, 236, 0.98);
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 2.75rem 1fr;
  }

  .hero {
    padding: 5rem 0 2.75rem;
  }

  .hero-brand {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-grid,
  .hero-glow {
    animation: none;
  }
  .btn:hover,
  .wa-float:hover {
    transform: none;
  }
}
