:root {
  --ink: #111316;
  --muted: #5f6670;
  --line: #dde1e7;
  --panel: #f6f7f9;
  --white: #fff;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --warm: #f2c36b;
  --shadow: 0 18px 45px rgba(17, 19, 22, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}

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

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

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 225, 231, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
}

.mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #343941;
  font-size: 14px;
}

.nav-links a {
  padding: 10px 0;
}

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

.nav-links .nav-cta {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  font-size: 14px;
}

.nav-links .nav-cta:hover {
  color: var(--white);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: auto;
  height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 780;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 720;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button.accent {
  border-color: var(--accent);
  background: var(--accent);
}

.button.full {
  width: 100%;
}

.section {
  padding: 86px 22px;
}

.section.alt {
  background: var(--panel);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(40px, 5.4vw, 70px);
  max-width: 880px;
}

h2 {
  font-size: clamp(31px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.lead {
  color: #343941;
  font-size: clamp(17px, 1.8vw, 21px);
  /*
  max-width: 770px;
  */
}

.muted {
  color: var(--muted);
}

.hero {
  padding: 54px 22px 64px;
  background: linear-gradient(180deg, #f6f7f9 0%, #ffffff 100%);
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  background: var(--white);
  border: 1px solid rgba(221, 225, 231, 0.9);
  box-shadow: var(--shadow);
  padding: 14px;
}

.visual-stack {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.visual-stack img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 68px);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

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

.tile,
.package,
.case-card,
.service-block,
.step,
.faq-item,
.quote-panel {
  border: 1px solid var(--line);
  background: var(--white);
}

.tile,
.service-block,
.step,
.faq-item {
  padding: 24px;
}

.tile h3,
.service-block h3,
.step h3 {
  margin-bottom: 12px;
}

.tile ul,
.package ul,
.service-block ul,
.policy-list,
.checklist {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.tile li,
.package li,
.service-block li,
.policy-list li,
.checklist li {
  margin: 8px 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: #e9edf2;
  aspect-ratio: 4 / 3;
}

.media-frame.tall {
  aspect-ratio: 3 / 4;
}

.case-card .media-frame.tall,
.service-block .media-frame.tall {
  aspect-ratio: 4 / 3;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card .media-frame {
  background: var(--panel);
  aspect-ratio: 3 / 2;
}

.case-card .media-frame img {
  object-fit: cover;
  transition: transform 220ms ease;
}

.portfolio-cta {
  margin-top: 30px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(18, 24, 31, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portfolio-cta:hover {
  border-color: rgba(9, 126, 113, 0.45);
  box-shadow: 0 18px 44px rgba(9, 126, 113, 0.1);
  transform: translateY(-2px);
}

.portfolio-cta strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.portfolio-cta em {
  margin-top: 6px;
  display: block;
  max-width: 760px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.portfolio-cta-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-weight: 800;
}

.portfolio-cta-arrow::after {
  content: "→";
  font-size: 22px;
  line-height: 1;
  transition: transform 180ms ease;
}

.portfolio-cta:hover .portfolio-cta-arrow::after {
  transform: translateX(5px);
}

.case-gallery {
  display: grid;
  gap: 28px;
}

.case-gallery-item {
  margin: 0;
}

.case-gallery-item .media-frame {
  aspect-ratio: auto;
  background: var(--white);
  display: grid;
  place-items: center;
}

.case-gallery-item .media-frame img,
.case-gallery-item .media-frame video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(82vh, 980px);
  object-fit: contain;
}

.case-gallery-item figcaption {
  margin-top: 12px;
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.case-gallery-item figcaption strong {
  color: var(--ink);
  font-size: 15px;
}

.label-row,
.case-meta,
.package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #343941;
  font-size: 12px;
  font-weight: 680;
}

.case-card {
  overflow: visible;
  align-self: start;
  position: relative;
  border: 0;
  background: transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.case-card:hover .media-frame img {
  transform: scale(1.025);
}

.case-cover-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.case-card h3 {
  margin: 0;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.case-card:hover h3 {
  text-decoration: underline;
}

.service-block {
  align-self: start;
}

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

.service-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-row h3 {
  margin-bottom: 8px;
}

.case-body,
.package {
  padding: 24px;
}

.case-body {
  display: grid;
  gap: 8px;
  padding: 16px 0 0;
}

.case-body h3 {
  font-size: 19px;
  line-height: 1.16;
}

.case-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.hidden-field {
  display: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  min-height: 42px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.filter-button.active,
.filter-button:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.package {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.package.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.package:hover {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.package:hover .button.secondary {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.contact-method {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--panel);
}

.contact-method:hover {
  border-color: rgba(15, 118, 110, 0.5);
}

.contact-method span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.panel-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 22px;
}

.price {
  font-size: 34px;
  font-weight: 820;
}

.price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
}

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding-top: 58px;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
}

.wide-band {
  background: var(--ink);
  color: var(--white);
  padding: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.wide-band .muted {
  color: rgba(255, 255, 255, 0.72);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.quote-panel {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  color: #343941;
  font-size: 13px;
  font-weight: 720;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #343941;
  font-size: 14px;
  font-weight: 580;
}

.check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: grid;
  gap: 18px;
}

.form-status {
  color: var(--accent-dark);
  font-weight: 720;
  min-height: 24px;
}

.faq-item {
  padding: 0;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font: inherit;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.footer {
  background: #111316;
  color: var(--white);
  padding: 56px 22px 30px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.35fr) minmax(130px, 0.35fr) minmax(220px, 0.55fr);
  gap: 34px;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer-bottom {
  max-width: var(--max);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(17, 19, 22, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  animation: whatsapp-bounce 9s ease-in-out 2.5s infinite;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.32);
  z-index: -1;
  animation: whatsapp-pulse 9s ease-out 2.5s infinite;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 22px 48px rgba(17, 19, 22, 0.22);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

@keyframes whatsapp-bounce {
  0%,
  82%,
  100% {
    transform: translateY(0) scale(1);
  }

  86% {
    transform: translateY(-8px) scale(1.03);
  }

  90% {
    transform: translateY(0) scale(1);
  }

  94% {
    transform: translateY(-4px) scale(1.015);
  }
}

@keyframes whatsapp-pulse {
  0%,
  80%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  84% {
    opacity: 0.7;
    transform: scale(1);
  }

  96% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::before {
    animation: none;
  }
}

.page-hero {
  padding: 56px 22px;
  background: var(--panel);
}

.page-hero .container {
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
}

.page-hero + .section {
  padding-top: 64px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.7fr);
  gap: 44px;
  align-items: center;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 34px;
  align-items: start;
}

.case-detail-simple {
  max-width: 1040px;
}

.case-hero .container {
  max-width: 1040px;
}

.case-detail-media {
  aspect-ratio: auto;
}

.case-summary {
  display: grid;
  gap: 20px;
}

.case-summary p,
.case-summary ul,
.case-summary ol {
  margin: 0;
}

.case-summary ul,
.case-summary ol {
  padding-left: 1.2em;
}

.case-summary li {
  margin: 5px 0;
}

.detail-tags {
  margin: 4px 0 4px;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    padding: 18px 22px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-grid,
  .section-head,
  .quote-layout,
  .case-detail-grid,
  .service-row,
  .split,
  .wide-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    max-width: 680px;
  }

  .service-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 62px 18px;
  }

  .hero,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .checks,
  .hero-proof,
  .visual-stack {
    grid-template-columns: 1fr;
  }

  .visual-stack img {
    min-height: 260px;
  }

  .wide-band {
    padding: 32px 24px;
  }

  .portfolio-cta {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-cta strong {
    font-size: 21px;
  }

  .button {
    width: 100%;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }

  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }
}
