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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg) url(/assets/img/speckle.svg) 0 0 / 180px 180px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  margin: 0;
}
h1 { font-size: clamp(2.625rem, 5.4vw, 4.375rem); font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-brand); }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1152px, 100% - 48px); margin-inline: auto; }
.accent { color: var(--color-brand); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 8px 16px; border-radius: 8px;
  background: var(--color-surface); color: var(--color-text); border: 2px solid var(--color-line);
}
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-small { min-height: 44px; padding: 0 20px; border-radius: 10px; font-size: .9375rem; }
.btn-primary { background: var(--color-brand); color: var(--color-on-brand); }
.btn-primary:hover { background: #7A3224; color: var(--color-on-brand); }
.btn-outline { border-color: var(--color-line); color: var(--color-text); padding: 0 22px; }
.btn-outline:hover { background: var(--color-surface); color: var(--color-text); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--cacao); color: var(--cream); }
.btn-light { background: var(--cream-light); color: var(--ink); font-weight: 700; padding: 0 28px; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg) url(/assets/img/speckle.svg) 0 0 / 180px 180px;
  border-bottom: 2px solid var(--color-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); }
.brand:hover { color: var(--color-text); }
.brand img { width: 28px; height: 28px; }
.brand span {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.125rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; font-size: .9375rem; font-weight: 600; }
.nav-toggle { display: none; }
.lang-switch {
  padding: 4px 12px; border: 1.5px solid var(--color-line); border-radius: 999px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 6px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; inset: 100% 0 auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 24px 24px; background: var(--color-surface);
    border-bottom: 2px solid var(--color-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 1.0625rem; }
  .nav-links .btn { margin-top: 8px; }
  .nav-links .lang-switch { align-self: flex-start; padding: 4px 12px; margin: 6px 0; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 88px 96px; }
.hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1.5px solid var(--color-line); border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--color-text-muted); background: var(--color-surface);
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta); border: 1.5px solid var(--color-line);
}
.hero h1 { max-width: 820px; }
.lead { max-width: 640px; font-size: 1.1875rem; color: var(--color-text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 600px) { .hero { padding-block: 56px 72px; } }

/* Decorative band from the vase rims */
.band { height: 56px; background: url(/assets/img/band.svg) repeat-x 0 0 / 160px 56px; }

/* Sections */
.section { padding-block: 112px 104px; }
.eyebrow {
  margin-bottom: 14px;
  font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-brand);
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head > div { max-width: 640px; }
.section-head > p { max-width: 380px; color: var(--color-text-muted); }
.section > .container > h2 { max-width: 680px; margin-bottom: 56px; }
@media (max-width: 600px) { .section { padding-block: 80px; } }

/* Service cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card {
  flex: 1 1 300px; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px; border: 2px solid var(--color-line); border-radius: 18px;
  background: var(--color-surface);
}
.card p { color: var(--color-text-muted); font-size: 1rem; }
.icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--color-line); background: var(--terracotta); color: var(--ink);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-ochre { background: var(--ochre); }
.icon-almagre { background: var(--almagre); color: var(--cream-light); }
.icon-plum { background: var(--plum); color: var(--cream-light); }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 32px 24px;
}
.steps li {
  flex: 1 1 220px; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  border-top: 4px double var(--color-line); padding-top: 24px;
}
.steps p { color: var(--color-text-muted); font-size: 1rem; }
.dots { display: flex; gap: 6px; height: 16px; }
.dots i { width: 12px; height: 12px; margin-top: 2px; border-radius: 50%; background: var(--terracotta); border: 2px solid var(--color-line); }

/* Why Astra (dark) */
.dark { background: var(--color-bg-dark) url(/assets/img/speckle.svg) 0 0 / 260px 260px; color: var(--color-text-on-dark); }
.why { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 104px; }
.why-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.why-copy .eyebrow { margin: 0; color: var(--color-label-on-dark); }
.why-copy h2 { color: var(--cream-light); }
.why-copy p:last-child { max-width: 520px; color: var(--color-text-muted-on-dark); }
.why-list { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.why-list li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--cacao); }
.why-list .mono { font-family: "JetBrains Mono", ui-monospace, monospace; width: 28px; flex-shrink: 0; padding-top: 3px; font-size: .875rem; color: var(--color-label-on-dark); }
.why-list h3 { margin-bottom: 4px; font-size: 1.25rem; color: var(--cream-light); }
.why-list p { font-size: 1rem; color: var(--color-text-muted-on-dark); }

/* CTA */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
  padding: 64px 48px; border: 2px solid var(--color-line); border-radius: 28px;
  background: var(--color-brand); color: var(--color-on-brand);
}
.cta-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: clamp(1.875rem, 3.4vw, 2.625rem); }
.cta p { max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-mail { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--color-on-brand); }
.cta-mail:hover { color: var(--color-on-brand); text-decoration: underline; }
@media (max-width: 600px) { .cta { padding: 40px 24px; border-radius: 20px; } }

/* Footer */
.site-footer { border-top: 2px solid var(--color-line); font-size: .875rem; color: var(--color-text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 40px; }
.site-footer .brand img { width: 20px; height: 20px; }
.site-footer .brand span { font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a:not(.brand) { color: var(--color-text-muted); }
.site-footer a:not(.brand):hover { color: var(--color-brand); }

/* Error page */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.error-page > div { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.error-page .pill { align-self: center; }
.error-page .lead { margin-inline: auto; }
.error-page .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
