:root {
  --ink: #101412;
  --muted: #66706b;
  --paper: #f4f7f5;
  --white: #ffffff;
  --line: rgba(16, 20, 18, 0.14);
  --line-light: rgba(255, 255, 255, 0.26);
  --lime: #d7ff3f;
  --teal: #00b8a9;
  --rust: #d35f3f;
  --panel: #18201d;
  --max: min(1180px, calc(100% - 40px));
  --shadow: 0 24px 70px rgba(16, 20, 18, 0.18);
  --progress: 0%;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(16, 20, 18, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 18, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

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

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

.site-header {
  position: fixed;
  inset: 18px 20px auto;
  z-index: 15;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: calc(100% - 40px);
  padding: 10px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  color: var(--white);
  background: rgba(16, 20, 18, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-weight: 800;
}

.brand-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--white);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.rail-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  z-index: 14;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.rail-nav a {
  width: 10px;
  height: 32px;
  border: 1px solid rgba(16, 20, 18, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease, background-color 180ms ease;
}

.rail-nav a.is-active {
  background: var(--lime);
  transform: scaleY(1.35);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
}

.hero {
  min-height: 92dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  padding: 130px 0 72px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: translate3d(0, var(--hero-y, 0px), 0) scale(1.03);
  filter: grayscale(0.82) contrast(1.08) brightness(0.86);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 20, 18, 0.92) 0%, rgba(16, 20, 18, 0.74) 42%, rgba(16, 20, 18, 0.24) 100%),
    linear-gradient(0deg, rgba(16, 20, 18, 0.82) 0%, rgba(24, 32, 29, 0.2) 48%),
    linear-gradient(120deg, rgba(0, 184, 169, 0.2), rgba(211, 95, 63, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.hero h1 {
  max-width: 760px;
  font-size: 4.8rem;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.hero-strip span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.26);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--lime);
  animation: cue 1.5s ease-in-out infinite;
}

.pricing {
  background: var(--paper);
}

.section-copy,
.contact-copy {
  width: var(--max);
  margin: 0 auto 36px;
}

.section-copy h2,
.contact-copy h2 {
  max-width: 760px;
  font-size: 3.5rem;
}

.section-copy p:not(.eyebrow),
.contact-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.estimator {
  width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
}

.estimator-main,
.quote-card,
.process-grid article,
.brief-form,
.footer-ad {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(16, 20, 18, 0.07);
}

.estimator-main {
  padding: 24px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.mode-tabs button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.mode-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.range-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--ink);
  font-weight: 700;
}

.range-field output {
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  text-align: center;
}

.range-field input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--teal);
}

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

.addons-title {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--muted);
  font-weight: 800;
}

.addons label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  cursor: pointer;
}

.addons label[hidden] {
  display: none;
}

.addons input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.addons small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.quote-card {
  display: grid;
  align-content: start;
  padding: 24px;
  background: var(--panel);
  color: var(--white);
}

.quote-label {
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.quote-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.2rem;
  line-height: 1;
}

.quote-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.quote-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.quote-breakdown b {
  color: var(--lime);
}

.maintenance-note {
  padding: 12px;
  border: 1px solid rgba(194, 255, 39, 0.24);
  border-radius: 8px;
  background: rgba(194, 255, 39, 0.08);
}

.price-meter {
  height: 10px;
  margin: 22px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.price-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--lime), var(--rust));
  transition: width 220ms ease;
}

.quote-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-card li {
  padding-left: 18px;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.quote-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.quote-action {
  margin-top: 24px;
}

.paypal-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.button-paypal {
  width: 100%;
  border-color: #ffc439;
  background: #ffc439;
  color: #111820;
}

.paypal-form small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.paypal-form[hidden] {
  display: none;
}

.showcase {
  background: var(--ink);
  color: var(--white);
}

.showcase-track {
  width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.format-card {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: end;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.format-card.large {
  grid-row: span 2;
  min-height: 678px;
}

.format-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transform: scale(1.04);
  transition: transform 600ms ease, opacity 600ms ease;
}

.format-card:hover img {
  opacity: 0.9;
  transform: scale(1.1);
}

.format-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 20, 18, 0.88), rgba(16, 20, 18, 0.1));
}

.format-card div {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.format-card h2,
.format-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
}

.format-card h2 {
  font-size: 3rem;
}

.format-card h3 {
  font-size: 1.8rem;
}

.format-card p:not(.eyebrow) {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.process {
  background: #edf2f0;
}

.process-grid {
  width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-grid article {
  padding: 22px;
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--teal);
  font-weight: 800;
}

.process-grid h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.process-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.brief-form {
  width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}

.brief-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 13px;
}

.brief-form textarea {
  resize: vertical;
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  outline: 3px solid rgba(0, 184, 169, 0.18);
  border-color: var(--teal);
}

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

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-feedback {
  margin: 0;
  color: var(--muted);
}

.form-feedback.is-success {
  color: #167a58;
}

.form-feedback.is-error {
  color: #a6352b;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: var(--max);
  margin: 0 auto;
}

.footer-ad {
  width: min(100%, 980px);
  min-height: 120px;
  margin: 0 auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #19ce68;
  color: #07130c;
  box-shadow: 0 18px 46px rgba(16, 20, 18, 0.28);
  font-weight: 900;
}

.whatsapp-float span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@keyframes cue {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(38px);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .section-copy h2,
  .contact-copy h2 {
    font-size: 2.7rem;
  }

  .estimator,
  .showcase-track,
  .brief-form {
    grid-template-columns: 1fr;
  }

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

  .format-card.large {
    min-height: 480px;
  }
}

@media (max-width: 680px) {
  :root {
    --max: min(100% - 24px, 100%);
  }

  .site-header {
    inset: 10px 12px auto;
    width: calc(100% - 24px);
    gap: 10px;
    padding: 7px;
  }

  .brand-copy span,
  .header-action,
  .rail-nav {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .hero {
    min-height: 86dvh;
    padding: 110px 0 54px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 20, 18, 0.91), rgba(16, 20, 18, 0.62)),
      linear-gradient(0deg, rgba(16, 20, 18, 0.82), rgba(24, 32, 29, 0.18)),
      linear-gradient(130deg, rgba(0, 184, 169, 0.16), rgba(211, 95, 63, 0.12));
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-copy,
  .section-copy p:not(.eyebrow),
  .contact-copy p {
    font-size: 1rem;
  }

  .hero-copy {
    max-width: 360px;
    line-height: 1.55;
  }

  .section-copy h2,
  .contact-copy h2 {
    font-size: 2.15rem;
  }

  .panel {
    padding: 64px 0;
  }

  .mode-tabs,
  .addons,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .quote-card strong {
    font-size: 3.2rem;
  }

  .format-card,
  .format-card.large {
    min-height: 360px;
  }

  .format-card h2 {
    font-size: 2.15rem;
  }

  .format-card h3 {
    font-size: 1.5rem;
  }

  .footer-row {
    flex-direction: column;
  }

  .whatsapp-float {
    right: auto;
    left: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
  }

  .whatsapp-float b {
    display: none;
  }
}
