:root {
  --bg: #f7faff;
  --surface: #ffffff;
  --text: #1f2529;
  --muted: #64717a;
  --primary: #0047ab;
  --primary-strong: #002b66;
  --secondary: #315f8f;
  --accent: #0074d9;
  --success: #3f6b4f;
  --border: #d6deea;
  --shadow: 0 18px 45px rgba(0, 47, 115, 0.13);
  --radius: 8px;
  --max: 1180px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

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

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

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

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

:focus-visible {
  outline: 3px solid rgba(0, 71, 171, 0.62);
  outline-offset: 3px;
}

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

.skip-link:focus {
  top: 14px;
  left: 14px;
  z-index: 2000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(247, 250, 255, 0.94);
  border-bottom: 1px solid rgba(214, 222, 234, 0.92);
  box-shadow: 0 12px 28px rgba(24, 34, 40, 0.1);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: clamp(170px, 20vw, 246px);
  max-height: 52px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transition: opacity 180ms ease;
}

.brand-logo-blue {
  position: absolute;
  inset: 50% auto auto 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.site-header.is-scrolled .brand-logo-white,
.site-header.menu-open .brand-logo-white {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-blue,
.site-header.menu-open .brand-logo-blue {
  opacity: 1;
}

.footer-brand .brand-logo {
  width: min(260px, 100%);
  max-height: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.site-header.is-scrolled .brand small,
.site-header.menu-open .brand small,
.footer-brand small {
  color: var(--muted);
}

.site-header:not(.is-scrolled):not(.menu-open) .brand strong {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.36);
}

.site-menu {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-header.is-scrolled .site-menu a,
.site-header.menu-open .site-menu a {
  color: var(--primary);
}

.site-menu a:hover {
  color: #fff;
}

.site-header.is-scrolled .site-menu a:hover,
.site-header.menu-open .site-menu a:hover {
  color: var(--accent);
}

.nav-cta,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-cta {
  padding: 0 15px;
  color: #fff;
  background: var(--primary);
}

.button {
  padding: 13px 18px;
}

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

.button-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--primary-strong);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .menu-toggle,
.site-header.menu-open .menu-toggle {
  color: var(--primary);
  border-color: var(--border);
  background: var(--surface);
}

.hero {
  position: relative;
  min-height: clamp(620px, 86svh, 840px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 24, 29, 0.9) 0%, rgba(15, 24, 29, 0.64) 38%, rgba(15, 24, 29, 0.08) 76%),
    linear-gradient(180deg, rgba(15, 24, 29, 0.5) 0%, rgba(15, 24, 29, 0.06) 45%, rgba(15, 24, 29, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9d9ff;
}

.hero-slogan {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(185, 217, 255, 0.45);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(0, 71, 171, 0.58);
  font-size: clamp(0.95rem, 2vw, 1.14rem);
  font-weight: 900;
}

h1,
h2,
h3,
p,
li,
dd {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  width: min(760px, 100%);
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(700px, 100%);
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

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

.trust-strip {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.trust-strip div {
  padding: 15px 16px;
  background: rgba(24, 34, 40, 0.32);
}

.trust-strip dt {
  color: #b9d9ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.section {
  padding: 92px 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-alt {
  background: #eef4ff;
}

.section-dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24, 34, 40, 0.96), rgba(36, 50, 58, 0.94)),
    var(--primary);
}

.section-heading {
  width: min(780px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-heading p,
.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.quote-band {
  color: #fff;
  background: var(--primary-strong);
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 1.25fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}

.quote-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.quick-list,
.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.quick-list li,
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.88);
}

.quick-list svg,
.feature-list svg,
.service-card svg,
.info-panels svg,
.contact-methods svg {
  flex: 0 0 auto;
  color: var(--accent);
}

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

.service-card,
.info-panels article,
.process-grid article,
.testimonial-grid figure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 34, 40, 0.06);
}

.service-card {
  min-height: 228px;
  padding: 26px;
}

.service-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
}

.service-card p,
.type-list p,
.process-grid p,
.info-panels p,
.testimonial-grid figcaption,
.fine-print {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: start;
}

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

.type-list article {
  min-height: 170px;
  padding: 22px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.type-list span,
.process-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
}

.visual-section {
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0), rgba(232, 241, 255, 0.86)),
    var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--primary);
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 360ms ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  content: "";
  background: linear-gradient(180deg, rgba(24, 34, 40, 0), rgba(24, 34, 40, 0.88));
}

.project-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 22px;
  color: #fff;
}

.project-card p {
  margin-bottom: 6px;
  color: #b9d9ff;
  font-weight: 800;
}

.project-card h3 {
  font-size: 1.35rem;
}

.project-card span {
  color: rgba(255, 255, 255, 0.8);
}

.project-featured {
  grid-row: span 3;
  min-height: 648px;
}

.automation-grid,
.guarantee-grid,
.contact-grid,
.faq-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.section-dark .button-primary {
  margin-top: 10px;
}

.guarantee-proof {
  margin: 26px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guarantee-proof img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guarantee-proof figcaption {
  padding: 12px 14px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.feature-list {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

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

.process-grid article {
  min-height: 240px;
  padding: 24px;
}

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

.info-panels article {
  padding: 24px;
}

.info-panels svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}

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

.testimonials .section-heading p,
.testimonial-grid figcaption {
  color: rgba(255, 255, 255, 0.68);
}

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

.testimonial-grid figure {
  margin: 0;
  padding: 24px;
  color: var(--text);
}

.testimonial-grid blockquote {
  margin: 0 0 16px;
  font-size: 1.04rem;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 850;
}

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

summary::after {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

details[open] summary::after {
  transform: rotate(225deg);
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(0, 71, 171, 0.06), rgba(0, 116, 217, 0.1)),
    var(--bg);
}

.contact-copy {
  grid-row: 1 / span 2;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.contact-methods a,
.contact-methods span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--primary);
  font-weight: 800;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row,
.form-row-full {
  display: grid;
  gap: 7px;
}

.form-row-full,
.checkbox-row,
.form-submit,
.form-note,
.form-status {
  grid-column: 1 / -1;
}

.map-card {
  grid-column: 2;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-card iframe {
  display: block;
  width: 100%;
}

label {
  font-weight: 800;
}

.optional-label {
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: #fbfaf7;
}

input,
select {
  padding: 0 13px;
}

textarea {
  min-height: 128px;
  padding: 12px 13px;
  resize: vertical;
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font-weight: 800;
}

.site-footer {
  padding: 50px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--primary-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 34px;
}

.footer-grid h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-grid p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #168a4f;
  box-shadow: 0 16px 38px rgba(17, 87, 53, 0.32);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

body.is-contact-visible .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

svg {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2.1;
}

@media (max-width: 1024px) {
  .site-menu {
    gap: 0;
  }

  .site-menu a {
    padding-inline: 8px;
  }

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

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

  .split,
  .automation-grid,
  .guarantee-grid,
  .contact-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    grid-row: auto;
    position: static;
  }

  .map-card {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 68px;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
    width: min(100% - 24px, var(--max));
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 170px;
    max-height: 46px;
  }

  .menu-toggle {
    display: grid;
    grid-column: 3;
    justify-self: end;
  }

  .site-menu {
    position: fixed;
    grid-column: 1 / -1;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    width: auto;
    justify-self: stretch;
    display: grid;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.menu-open .site-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-menu a {
    min-height: 48px;
    color: var(--primary);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 24, 29, 0.94), rgba(15, 24, 29, 0.58)),
      linear-gradient(180deg, rgba(15, 24, 29, 0.55), rgba(15, 24, 29, 0.25));
  }

  .trust-strip,
  .quote-grid,
  .quick-list,
  .feature-list,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-featured {
    grid-row: auto;
    min-height: 360px;
  }

  .project-card {
    min-height: 290px;
  }

  .section {
    padding: 64px 0;
  }

  .quote-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 146px;
    max-height: 42px;
  }

  .brand strong {
    max-width: 138px;
    font-size: 0.88rem;
  }

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

  .nav-cta {
    display: none;
  }

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

  .type-list,
  .service-grid,
  .process-grid,
  .info-panels,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    width: min(100% - 24px, var(--max));
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: 20px;
  }

  h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.25rem);
    line-height: 1.06;
  }

  h2 {
    font-size: clamp(1.65rem, 7.4vw, 2.05rem);
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero-actions {
    margin-bottom: 18px;
  }

  .trust-strip div {
    padding: 10px 12px;
  }

  .trust-strip dd {
    margin-top: 2px;
    font-size: 0.94rem;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
  }
}

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