:root {
  --navy: #17363d;
  --ink: #26383c;
  --accent: #397d79;
  --accent-light: #acd0c2;
  --brand-blue: #1f5b78;
  --brand-blue-light: #b7d8e4;
  --paper: #eef0f1;
  --surface: #fcfbf7;
  --white: #fffdf8;
  --muted: #687678;
  --line: #d4d9d5;
  --shadow: 0 14px 30px rgba(23, 54, 61, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Manrope, "DM Sans", sans-serif;
  line-height: 1.1;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.75rem, 5vw, 4.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: 1rem; margin-bottom: .55rem; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 30;
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--accent);
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--ink);
  background: rgba(252, 251, 247, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.inner-page .site-header {
  position: sticky;
  color: var(--ink);
  background: var(--white);
  border-bottom-color: var(--line);
}
.header-inner {
  width: calc(100% - 48px);
  max-width: none;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: block;
  flex: 0 0 auto;
  width: 126px;
  height: 64px;
  overflow: hidden;
  background: var(--paper);
}
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.main-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.8rem, 2vw, 1.5rem);
  min-width: 0;
  font-size: .85rem;
  font-weight: 600;
}
.main-nav a:not(.button) { opacity: .88; }
.main-nav a:hover { color: var(--accent); opacity: 1; }
.inner-page .main-nav a:hover { color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 40px;
  padding: .65rem 1.05rem;
  color: var(--white);
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  border-radius: 3px;
  font-size: .85rem;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
.button:hover { background: #184963; transform: translateY(-2px); }
.button-small { min-height: 34px; padding: .5rem .8rem; font-size: .78rem; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--ink); background: var(--accent-light); }
.button-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .65); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  padding: .5rem;
  color: currentColor;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media {
  background: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2200&q=85") center / cover;
  animation: hero-media-zoom 14s ease-out both;
  transform-origin: center;
  will-change: transform;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 35, 42, .94), rgba(10, 35, 42, .72) 48%, rgba(10, 35, 42, .2));
}
.hero-content { position: relative; z-index: 1; padding-top: 3rem; }
.hero-content h1,
.hero-content .hero-copy,
.hero-content .hero-about,
.hero-content .button-row {
  opacity: 0;
  animation: hero-content-reveal .7s ease-out forwards;
}
.hero-content h1 { animation-delay: .15s; }
.hero-content .hero-copy { animation-delay: .35s; }
.hero-content .hero-about { animation-delay: .45s; }
.hero-content .button-row { animation-delay: .55s; }
.hero-content h1.hero-text-focus,
.hero-content .hero-copy.hero-text-focus {
  animation: hero-text-focus .8s ease-out;
}
.hero h1 span, .section-heading em,
.offer-heading em { color: var(--brand-blue-light); font-style: normal; }
.eyebrow {
  margin-bottom: .7rem;
  color: var(--brand-blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--brand-blue-light); }
.hero-copy { max-width: 520px; margin-bottom: 2.2rem; color: rgba(255, 255, 255, .84); font-size: 1rem; }
.hero-about {
  max-width: 470px;
  margin: 0 0 1.5rem;
  padding-left: .85rem;
  color: rgba(255, 255, 255, .92);
  border-left: 2px solid var(--accent-light);
  font-size: .96rem;
}
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
@keyframes hero-media-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
@keyframes hero-content-reveal {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-text-focus {
  0% { opacity: .82; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-.2rem); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Shared sections and services */
.section { padding: 4.5rem 0; }
.services-section { padding-bottom: 2.25rem; background: var(--paper); }
.promise-heading { max-width: 720px; scroll-margin-top: 76px; margin-bottom: 1.5rem; }
.services-heading { max-width: 1050px; scroll-margin-top: 76px; margin-bottom: 1.5rem; }
.promise-heading h2,
.services-heading h2 { margin-bottom: 0; font-size: clamp(2.3rem, 5vw, 4.6rem); white-space: nowrap; }
.promise-heading h2 em,
.services-heading h2 em { margin-right: .2em; }
.services-heading > p { max-width: 1050px; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.promise-grid article {
  min-width: 0;
  padding: 1rem;
  border-top: 1px solid var(--line);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.promise-grid.is-reveal-ready article {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 1s ease, transform 1s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.promise-grid.is-reveal-ready article.is-visible,
.promise-grid.is-reveal-ready article.is-visible:hover,
.promise-grid.is-reveal-ready article.is-visible:focus-within {
  opacity: 1;
  transform: translateY(0);
}
.promise-grid.is-reveal-ready article.is-visible:hover,
.promise-grid.is-reveal-ready article.is-visible:focus-within {
  transform: translateY(-3px);
}
.promise-grid.is-reveal-ready.is-visible article.is-visible {
  opacity: 1;
}
.promise-grid:has(article:hover) article:not(:hover) { opacity: .72; }
.promise-grid article:hover,
.promise-grid article:focus-within {
  background: var(--surface);
  border-top-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.promise-mark {
  display: inline-block;
  margin-left: .35rem;
  color: var(--accent);
  font-size: 1.25em;
  line-height: 1;
  vertical-align: -.08em;
}
.promise-grid article:hover .promise-mark,
.promise-grid article:focus-within .promise-mark { color: var(--accent); }
.promise-grid h3 { margin-bottom: .45rem; font-size: 1.15rem; }
.promise-grid p { max-width: 300px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.services-heading p:last-child { max-width: 1050px; margin: 1rem 0 0; color: var(--muted); font-size: .96rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.service-card {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 0 1.1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.service-photo {
  height: clamp(9rem, 14vw, 11rem);
  display: block;
  margin: 0 -1.1rem;
  width: calc(100% + 2.2rem);
  object-fit: cover;
  object-position: center;
}
.service-card-heading {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  margin-top: .95rem;
}
.service-card h3 { margin: 0 0 .4rem; }
.service-card p { max-width: 250px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.service-icon {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: transform .25s ease, color .25s ease, background-color .25s ease;
}
.service-icon:hover, .service-icon:focus-visible {
  color: var(--white);
  background: var(--accent);
  transform: translateY(-3px) rotate(-8deg);
}
/* Offer and contact */
.contact-section { padding-top: 4.25rem; background: var(--paper); scroll-margin-top: 76px; }
.offer-layout {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: start;
  scroll-margin-top: 76px;
}
.offer-heading { margin: 0; }
.offer-heading h2 { margin-bottom: .85rem; }
.contact-intro { max-width: 440px; color: var(--muted); }
.offer-steps { display: grid; gap: 1.15rem; margin-top: 2rem; }
.offer-steps article { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.offer-steps article > span {
  color: var(--brand-blue);
  font-size: .82rem;
  font-weight: 700;
}
.offer-steps.is-reveal-ready article > span {
  opacity: 0;
  transform: translateY(.8rem);
  transition: opacity 1s ease, transform 1s ease;
}
.offer-steps.is-reveal-ready article:nth-child(1) > span { transition-delay: 0s; }
.offer-steps.is-reveal-ready article:nth-child(2) > span { transition-delay: .35s; }
.offer-steps.is-reveal-ready article:nth-child(3) > span { transition-delay: .7s; }
.offer-steps.is-reveal-ready.is-visible article > span {
  opacity: 1;
  transform: translateY(0);
}
.offer-steps h3 { margin-bottom: .25rem; font-size: .9rem; }
.offer-steps p { max-width: 330px; margin: 0; color: var(--muted); font-size: .86rem; }
.contact-form {
  min-width: 0;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.form-section-note { margin: 0 0 1rem; color: var(--brand-blue); font-size: .86rem; }
.optional-fields { margin-top: .25rem; }
.optional-fields > .form-field:last-child { grid-column: 1 / -1; }
.form-field { min-width: 0; margin-bottom: 1rem; }
.form-field label { display: block; margin-bottom: .35rem; font-size: .88rem; font-weight: 700; }
.form-field label span { color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: .72rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
}
.form-field textarea { resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8c9aab; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 3rem; }
.input-with-unit span { position: absolute; top: 50%; right: .8rem; color: var(--muted); font-size: .85rem; transform: translateY(-50%); }
.form-note { margin: 1rem 0; color: var(--muted); font-size: .76rem; }
.form-note a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: .15em; }
.form-summary {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.form-summary h3 { margin: 0 0 .7rem; font-size: .95rem; }
.form-summary dl { display: grid; gap: .35rem; margin: 0; }
.form-summary dl div { display: flex; justify-content: space-between; gap: 1rem; }
.form-summary dl div[hidden] { display: none; }
.form-summary dt { color: var(--muted); }
.form-summary dd { margin: 0; text-align: right; }
.form-feedback { margin-top: 1rem; padding: .7rem; color: #17623b; background: #e5f6ed; font-size: .86rem; }
.form-feedback.is-error { color: #8a2d2d; background: #fdecec; }
.placeholder { color: #b0642d !important; }

/* Footer and inner pages */
.site-footer { padding: 1.4rem 0 .7rem; color: var(--ink); background: var(--surface); }
.site-footer .container { width: 100%; max-width: none; margin-inline: 0; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 1.2rem; }
.footer-left { display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); min-width: 0; }
.brand-footer {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  color: var(--brand-blue);
  background: transparent;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  transform: translateX(10px);
}
.footer-contact,
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.2rem; min-width: 0; font-size: .84rem; }
.footer-contact { display: flex; flex: 0 1 auto; }
.footer-contact span { color: var(--muted); }
.footer-location { color: var(--muted); font-size: .84rem; }
.footer-legal { flex: 0 0 auto; }
.footer-contact a:hover,
.footer-legal a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .8rem;
  padding-left: 3px;
}
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 15;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 54, 61, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(23, 54, 61, .25);
}
.whatsapp-float.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.86);
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
}
.page-hero { padding: 8rem 0 4rem; color: var(--white); background: var(--navy); }
.page-hero h1 em { color: var(--accent-light); font-style: normal; }
.page-hero > .container > p:last-child { max-width: 600px; color: rgba(255, 255, 255, .75); }
.services-detail { background: var(--paper); }
.service-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-detail-grid article { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.service-detail-grid p { color: var(--muted); font-size: .95rem; }
.legal-page { padding: 5rem 0; }

@media (max-width: 900px) {
  .main-nav { gap: .8rem; font-size: .82rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 155px; }
  .offer-layout { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 2rem; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 600px); }
  .site-footer .container { width: min(100% - 32px, 600px); max-width: 600px; margin-inline: auto; }
  .header-inner { min-height: 64px; }
  .brand { width: 114px; height: 58px; }
  .site-footer .brand-footer { width: auto; height: auto; overflow: visible; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: .8rem 1rem 1.2rem;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .65rem 0; }
  .main-nav .button { margin-top: .35rem; text-align: center; }
  .hero { min-height: calc(100svh - 64px); }
  .hero-content { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.6rem); }
  .section { padding: 3.5rem 0; }
  .services-section { padding-bottom: 1.75rem; }
  .contact-section { padding-top: 3.25rem; }
  .promise-grid { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
  .promise-grid p { max-width: 440px; }
  .offer-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-columns { grid-template-columns: 1fr; }
  .form-summary dl div { display: grid; gap: .1rem; }
  .form-summary dd { text-align: left; }
  .footer-main { display: block; }
  .footer-left { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .footer-contact,
  .footer-legal { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; }
  .footer-bottom > span { display: block; white-space: nowrap; }
  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .promise-heading h2,
  .services-heading h2 { white-space: normal; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .promise-grid:has(article:hover) article:not(:hover) { opacity: 1; }
  .promise-grid article:hover,
  .promise-grid article:focus-within {
    transform: none;
    box-shadow: none;
  }
  .promise-grid.is-reveal-ready article {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .offer-steps.is-reveal-ready article > span {
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .hero-content h1,
  .hero-content .hero-copy,
  .hero-content .hero-about,
  .hero-content .button-row {
    opacity: 1;
    transform: none;
  }
}
