:root {
  --text: #11110f;
  --muted: #686863;
  --surface: #f5f5f1;
  --surface-alt: #ebebe6;
  --white: #ffffff;
  --accent: #315fdb;
  --line: #d4d4cd;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
::selection { color: var(--white); background: var(--accent); }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--white); background: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(245, 245, 241, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 34px; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a, .footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.main-nav a:hover, .footer-links a:hover { color: var(--text); }
.menu-button { display: none; min-width: 48px; min-height: 44px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 4px; }

.hero { padding: 120px 0 112px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 96px; align-items: end; }
.overline { margin: 0 0 20px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 760px; margin: 0; font-size: clamp(52px, 7vw, 92px); font-weight: 650; line-height: .98; letter-spacing: -.065em; }
.lead { max-width: 640px; margin: 32px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; color: var(--white); background: var(--text); border: 1px solid var(--text); border-radius: 3px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.button:hover { color: var(--text); background: transparent; }
.text-link { font-weight: 700; text-underline-offset: 5px; }

.hero-list { border-top: 1px solid var(--text); }
.hero-list a { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hero-list a:hover strong { color: var(--accent); }
.hero-list span { color: var(--muted); font-size: 12px; }
.hero-list div { display: grid; }
.hero-list strong { font-size: 18px; letter-spacing: -.02em; }
.hero-list small { color: var(--muted); font-size: 14px; }
.hero-list b { font-weight: 500; }

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-muted { background: var(--surface-alt); }
.section-heading { max-width: 720px; }
.section-heading h2, .contact h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -.05em; }
.service-rows { margin-top: 64px; border-top: 1px solid var(--text); }
.service-rows article { display: grid; grid-template-columns: 64px .75fr 1fr auto; gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service-rows span { color: var(--muted); font-size: 13px; }
.service-rows h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.service-rows p { max-width: 480px; margin: 0; color: var(--muted); }
.service-rows a { font-size: 14px; font-weight: 700; text-underline-offset: 5px; }

.split-heading, .about-grid, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.split-heading > p { max-width: 520px; margin: 40px 0 0; color: var(--muted); font-size: 18px; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 0; margin-top: 72px; list-style: none; }
.process-list li { padding-top: 24px; border-top: 1px solid var(--text); }
.process-list span { color: var(--accent); font-size: 13px; }
.process-list h3 { margin: 32px 0 8px; font-size: 21px; }
.process-list p { margin: 0; color: var(--muted); font-size: 15px; }
.about-copy { padding-top: 42px; }
.about-copy p { max-width: 560px; margin: 0 0 20px; color: var(--muted); font-size: 18px; }

.contact { padding: 96px 0; color: var(--white); background: var(--text); }
.contact .overline { color: #9db8ff; }
.contact-inner > div:last-child { padding-top: 36px; }
.contact-inner p { max-width: 520px; margin: 0 0 28px; color: #c8c8c1; font-size: 18px; }
.button-light { color: var(--text); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.button-whatsapp { gap: 10px; color: var(--text); background: #25d366; border-color: #25d366; }
.button-whatsapp:hover { color: var(--text); background: #5de08d; border-color: #5de08d; }
.whatsapp-icon { display: block; flex: none; }
.whatsapp-float { position: fixed; z-index: 15; right: max(24px, env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); min-height: 56px; border-radius: 999px; box-shadow: 0 4px 20px #0003; }
.whatsapp-float.is-hidden, body.menu-open .whatsapp-float { opacity: 0; visibility: hidden; pointer-events: none; }
/* 0.5s fade. Visibility switches off only after the fade-out, and back on at the start of the fade-in. */
.whatsapp-float.is-animated { transition: background .2s, color .2s, opacity .5s ease, visibility 0s linear 0s; }
.whatsapp-float.is-animated.is-hidden, body.menu-open .whatsapp-float.is-animated { transition: background .2s, color .2s, opacity .5s ease, visibility 0s linear .5s; }
.button-whatsapp:focus-visible { outline-color: var(--text); box-shadow: 0 0 0 7px var(--white); }

.site-footer { padding: 40px 0 calc(104px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: center; }
.footer-links { display: flex; gap: 24px; }
.footer-inner small { color: var(--muted); }

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

@media (max-width: 900px) {
  .hero-grid, .split-heading, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 88px 0; }
  .service-rows article { grid-template-columns: 48px 1fr; }
  .service-rows p, .service-rows a { grid-column: 2; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner small { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 8px 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: grid; }
  .main-nav a { min-height: 48px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  h1 { font-size: clamp(46px, 14vw, 68px); }
  .actions { align-items: flex-start; flex-direction: column; }
  .section { padding: 80px 0; }
  .service-rows { margin-top: 48px; }
  .service-rows article { grid-template-columns: 36px 1fr; gap: 16px; }
  .process-list { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner small { grid-column: auto; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 52px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float.is-animated, .whatsapp-float.is-animated.is-hidden, body.menu-open .whatsapp-float.is-animated { transition: background .2s, color .2s; }
}
