/* Master Clean — design tokens & layout */
:root {
  --ink: #14212b;
  --ink-soft: #3a4a56;
  --linen: #f3f6f8;
  --paper: #ffffff;
  --atlantic: #0b6e7a;
  --atlantic-deep: #085560;
  --seafoam: #d8eef0;
  --sand: #e8e2d6;
  --focus: #0b6e7a;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--seafoam);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

a {
  color: var(--atlantic);
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  margin-top: 0;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--sand) 70%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo span {
  color: var(--atlantic);
}

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

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--sand);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary:hover {
  background: var(--atlantic-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

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

.btn--wa {
  background: #128c7e;
  color: #fff;
}

.btn--wa:hover {
  background: #0e7368;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 28, 36, 0.25) 0%, rgba(10, 28, 36, 0.72) 70%, rgba(10, 28, 36, 0.88) 100%),
    linear-gradient(120deg, #0b6e7a 0%, #1a3a45 45%, #2c4a3e 100%);
  background-size: cover;
  background-position: center;
}

.hero__media[data-bg] {
  background-image:
    linear-gradient(180deg, rgba(10, 28, 36, 0.28) 0%, rgba(10, 28, 36, 0.78) 72%, rgba(10, 28, 36, 0.9) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero__content {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero h1 {
  max-width: 16ch;
  opacity: 0;
  animation: rise 0.95s var(--ease) 0.22s forwards;
}

@media (min-width: 720px) {
  .hero h1 {
    max-width: 18ch;
  }
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 38ch;
  color: color-mix(in srgb, #fff 88%, transparent);
  opacity: 0;
  animation: rise 1s var(--ease) 0.36s forwards;
}

.hero .btn-row {
  opacity: 0;
  animation: rise 1s var(--ease) 0.5s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, #fff 65%, transparent);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

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

.section--seafoam {
  background: var(--seafoam);
}

.section__intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
}

.section__intro p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Service grid — choice, not decorative cards */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.service-list a {
  display: block;
  padding: 1.5rem 1.1rem 1.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  text-decoration: none;
  color: inherit;
  transition: background 160ms var(--ease), padding-left 160ms var(--ease);
}

.service-list a:hover {
  background: color-mix(in srgb, var(--seafoam) 55%, transparent);
  padding-left: 0.65rem;
}

.service-list h3 {
  color: var(--atlantic);
  margin-bottom: 0.4rem;
}

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

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--atlantic);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.04em;
}

.step p {
  color: var(--ink-soft);
}

/* Split */
.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
}

.split__visual {
  min-height: 18rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(11, 110, 122, 0.15), rgba(20, 33, 43, 0.08)),
    var(--sand);
  background-size: cover;
  background-position: center;
}

.split__visual[data-bg] {
  background-image:
    linear-gradient(160deg, rgba(11, 110, 122, 0.12), rgba(20, 33, 43, 0.15)),
    var(--panel-image);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--atlantic);
}

.checklist--out li::before {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  border-block: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink-soft);
  font-weight: 560;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.5rem;
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-family: var(--font-display);
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--atlantic);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
}

/* Quote */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin: 0 0 1rem;
}

.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 560;
}

.quote-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

/* Form */
.form-panel {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--radius);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--linen);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  width: 100%;
  caret-color: var(--atlantic);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--atlantic);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.form-error {
  color: #8b1e1e;
  font-size: 0.9rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.consent input {
  width: auto;
  margin-top: 0.3rem;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, var(--seafoam), var(--linen));
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

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

.breadcrumb a:hover {
  color: var(--atlantic);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, #fff 78%, transparent);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
  animation: wa-pulse 2.8s var(--ease) infinite;
}

.wa-float:hover {
  background: #0e7368;
  color: #fff;
  transform: scale(1.05);
  animation: none;
}

.wa-float svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
  }
  50% {
    box-shadow: 0 10px 28px rgba(18, 140, 126, 0.55);
  }
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset: 100% var(--gutter) auto;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0;
    display: none;
    box-shadow: 0 12px 28px rgba(20, 33, 43, 0.12);
  }

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

  .nav a,
  .nav .btn {
    padding: 0.75rem 0.65rem;
  }

  .nav .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__brand,
  .hero h1,
  .hero__lead,
  .hero .btn-row {
    opacity: 1;
  }
}
