:root {
  --green-950: #062714;
  --green-850: #0b3a20;
  --green-700: #176033;
  --green-100: #e7f1e7;
  --ink: #1c1d1b;
  --muted: #6b706a;
  --line: #dfe4dc;
  --paper: #fbfbf7;
  --white: #ffffff;
  --amber: #c79b47;
  --shadow: 0 22px 60px rgba(28, 29, 27, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-4px);
}

.brand {
  display: flex;
  align-items: center;
  width: 190px;
  height: 48px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #30342f;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--green-700);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta,
.btn,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--green-850);
  font-size: 14px;
}

.btn {
  padding: 0 22px;
}

.btn-primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 18px 36px rgba(23, 96, 51, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header-cta:hover,
.btn:hover,
.form-submit:hover,
.contact-card:hover {
  transform: translateY(-2px);
}

.header-cta svg,
.btn svg,
.contact-card svg,
.floating-whatsapp svg,
.nav-toggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.4;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 150px 20px 92px;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 39, 20, 0.92) 0%, rgba(6, 39, 20, 0.68) 48%, rgba(6, 39, 20, 0.28) 100%),
    url("assets/uai-solo-20.jpg") center / cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(0deg, var(--paper), transparent);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.split-copy h2,
.final-copy h2 {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(780px, 100%);
  margin: 56px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-metrics div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  transform: translateX(-50%);
  animation: pulseDown 1.8s ease-in-out infinite;
}

.quote-strip,
.service-band,
.split-section,
.works-section,
.final-cta {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.quote-strip {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 54px;
  align-items: start;
}

.section-intro h2,
.split-copy h2,
.final-copy h2 {
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.08;
}

.section-intro p,
.split-copy > p,
.final-copy p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: #2f332d;
  font-size: 14px;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cfd6cb;
  border-radius: 6px;
  background: #fdfdfb;
  color: var(--ink);
  outline: 0;
  padding: 13px 14px;
  resize: vertical;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(23, 96, 51, 0.12);
}

.form-submit {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.service-band {
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.service-card {
  min-height: 252px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 220ms ease, border 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  border-color: rgba(23, 96, 51, 0.32);
  box-shadow: 0 18px 40px rgba(28, 29, 27, 0.08);
  transform: translateY(-4px);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--green-700);
  stroke-width: 1.8;
}

.service-card h3 {
  margin: 34px 0 12px;
  font-size: 20px;
}

.service-card p,
.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.split-section {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 64px;
  align-items: center;
}

.process-list {
  display: grid;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.process-list span {
  color: var(--green-700);
  font-weight: 900;
}

.process-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.media-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  width: min(280px, calc(100% - 36px));
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.media-caption span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.works-section {
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 230px;
  gap: 16px;
  margin-top: 44px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #e9ece4;
  cursor: pointer;
  padding: 0;
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62));
  content: "";
}

.gallery-item span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  color: var(--white);
  font-weight: 900;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.final-cta {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, border 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  border-color: rgba(23, 96, 51, 0.32);
  box-shadow: 0 18px 40px rgba(28, 29, 27, 0.08);
}

.contact-card svg {
  color: var(--green-700);
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card strong {
  font-size: 18px;
  line-height: 1.3;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 170px;
  height: 46px;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
}

.site-footer a {
  color: var(--green-700);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  background: #1fa855;
  box-shadow: 0 18px 40px rgba(31, 168, 85, 0.35);
  transition: transform 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 39, 20, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1080px, 100%);
  max-height: 82svh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-entrance {
  animation: heroContentIn 760ms ease both;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-22px, -10px, 0);
  }
}

@keyframes pulseDown {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 86px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open a:last-child {
    border-bottom: 0;
  }

  .quote-strip,
  .split-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

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

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

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .brand {
    width: 154px;
    height: 42px;
  }

  .hero {
    min-height: 96svh;
    padding: 122px 18px 84px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(6, 39, 20, 0.96) 0%, rgba(6, 39, 20, 0.74) 58%, rgba(6, 39, 20, 0.52) 100%),
      url("assets/uai-solo-20.jpg") center / cover;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .quote-strip,
  .service-band,
  .split-section,
  .works-section,
  .final-cta {
    width: min(100% - 28px, var(--max));
    padding: 64px 0;
  }

  .quote-form {
    padding: 20px;
  }

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

  .gallery {
    grid-auto-rows: 240px;
  }

  .gallery-item:first-child {
    grid-row: span 1;
  }

  .split-media img {
    aspect-ratio: 1 / 1.1;
  }

  .media-caption {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .site-footer {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
