/* ==========================================================
   Lapeks - mājaslapu izstrāde
   ========================================================== */

/* ---------- Self-hosted fonts (latin + latin-ext for Latvian) ---------- */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ECEBE6;
  --bg-soft: #E4E2DB;
  --surface: #F6F5F1;
  --ink: #252525;
  --ink-soft: #55534F;
  --line: rgba(37, 37, 37, 0.16);
  --accent: #C46C4D;
  --accent-strong: #A4502F;
  --accent-text: #8F4529;
  --peach: #E3B39C;
  --dark: #252525;
  --dark-line: rgba(236, 235, 230, 0.16);
  --on-dark: #ECEBE6;
  --on-dark-soft: #B9B6AE;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

html {
  scrollbar-color: #B9B6AE var(--bg);
  accent-color: var(--accent-strong);
}

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--accent-strong); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

h1, h2 { text-wrap: balance; }

p { margin: 0 0 1em; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--accent { --btn-bg: var(--accent-strong); --btn-fg: #fff; }
.btn--accent:hover { --btn-bg: #8E4327; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--light { --btn-bg: var(--on-dark); --btn-fg: var(--ink); }
.btn--light-ghost { --btn-bg: transparent; --btn-fg: var(--on-dark); border-color: var(--on-dark-soft); }
.btn--light-ghost:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 38px;
}
.topbar__group { display: flex; gap: 24px; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--ink); }
.topbar__dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #4C8A5B;
  vertical-align: middle;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 235, 230, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s;
}
.nav__link:hover { background: var(--bg-soft); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.hero__title {
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: var(--bg-soft);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
}
.price-chip {
  position: absolute;
  left: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(37, 37, 37, 0.45);
  text-decoration: none;
}
.price-chip__badge {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
}
.price-chip__badge svg { width: 22px; height: 22px; }
.price-chip small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-chip small.price-chip__vat { margin-top: 2px; }
.price-chip strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact { padding: 26px 28px 26px 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 28px; }
.fact__title { font-size: 1.1875rem; letter-spacing: -0.015em; margin-bottom: 4px; line-height: 1.2; }
.fact p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-title {
  font-size: clamp(2.25rem, 5.2vw, 4.4rem);
  letter-spacing: -0.03em;
}
.section-intro { color: var(--ink-soft); max-width: 46ch; margin: 0; font-size: 1.125rem; }

/* Payment promise (process section) */
.pay-note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 46ch;
  margin-top: 22px;
  padding: 16px 20px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 30px -22px rgba(37, 37, 37, 0.35);
}
.pay-note__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.pay-note__icon svg { width: 20px; height: 20px; }
.pay-note__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.pay-note__text span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about__media {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% 30%; }
.about__media figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.92);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about__text .section-title { margin-bottom: 28px; }
.about__text p { font-size: 1.125rem; color: var(--ink-soft); }
.about__text p.about__big {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
}
.values {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.values li {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.values strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.015em; }
.values span { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Services (dark) ---------- */
.services {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: clamp(24px, 4vw, 44px);
  margin-inline: clamp(8px, 1.4vw, 20px);
}
.services .section-intro { color: var(--on-dark-soft); }

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}
.services__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}
.services__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37, 37, 37, 0) 40%, rgba(37, 37, 37, 0.85) 100%);
}
.services__media-text {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 26px;
}
.services__media-text h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; margin-bottom: 8px; }
.services__media-text p { margin: 0; color: #E4E2DB; font-size: 1rem; max-width: 40ch; }

.package {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
}
.package__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.package__name { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; }
.package__sub { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.package__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent-strong);
  white-space: nowrap;
}
.package__vat {
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.35em;
}
.package__list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.package__list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9875rem;
  line-height: 1.45;
}
.package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.package__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.package__note {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.step {
  padding: 28px 24px 8px 0;
  display: flex;
  flex-direction: column;
}
.step + .step { border-left: 1px solid var(--line); padding-left: 24px; }
.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}
.step h3 { font-size: 1.625rem; letter-spacing: -0.02em; margin: 14px 0 10px; }
.step p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 24px; }
.step__media {
  margin-top: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}
.step__media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.step:hover .step__media img { transform: scale(1.04); }

/* ---------- Preparation row (process) ---------- */
.prep {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.prep__intro h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.prep__intro p { margin: 0; color: var(--ink-soft); font-size: 0.9875rem; }
.prep__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.prep__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.prep__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-strong);
}
.prep__icon svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact__grid {
  --form-pad: clamp(24px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
/* Both columns share one height: intro lines up with the form heading,
   the contact list sits at the bottom level with the submit button */
.contact__info {
  display: flex;
  flex-direction: column;
  padding-block: var(--form-pad);
}
.contact__info .contact-list { margin-top: auto; }
.contact__info .contact__actions { margin-bottom: 32px; }
.contact__title { margin-bottom: clamp(36px, 5vw, 64px); }
.contact__title span { display: block; color: var(--accent); }
.contact__info > p:first-child { margin-top: 0; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__info > p { color: var(--ink-soft); font-size: 1.125rem; max-width: 40ch; }

.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  text-decoration: none;
}
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  flex: none;
  transition: background-color 0.25s, color 0.25s;
}
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list a:hover .contact-list__icon { background: var(--ink); color: var(--bg); }
.contact-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  font-weight: 600;
  word-break: break-word;
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--form-pad);
  border: 1px solid var(--line);
}
.form-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.field label span { color: var(--accent-text); }
.field input,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(37, 37, 37, 0.24);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #74716B; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(196, 108, 77, 0.22);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #B3261E; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-consent { font-size: 0.875rem; color: var(--ink-soft); margin: 4px 0 22px; }
.form-consent a { color: var(--ink); }
.form-submit { width: 100%; }
.form-submit[disabled] { opacity: 0.6; cursor: progress; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
}
.form-status[hidden] { display: none; }
.form-status.is-success { background: #E2EEE3; color: #1F5130; }
.form-status.is-error { background: #F6E1DD; color: #8A1F14; }

/* ---------- Map ---------- */
.map-section { padding: clamp(56px, 7vw, 96px) 0; }
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}
.map-info { display: flex; flex-direction: column; justify-content: center; }
.map-info .section-title { margin-bottom: 20px; }
.map-info > p { color: var(--ink-soft); font-size: 1.125rem; max-width: 40ch; margin: 0; }
.map-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.map-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9875rem;
}
.map-facts span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.map-facts strong { font-weight: 700; text-align: right; }
.map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(400px, 56vh, 600px);
  border: 1px solid var(--line);
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.map__pin {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 12px rgba(196, 108, 77, 0.18), 0 0 0 26px rgba(196, 108, 77, 0.08);
}
.map__pin svg { width: 28px; height: 28px; }
.map__placeholder h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.map__placeholder p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 22px; font-size: 0.9375rem; }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dark-line);
}
.footer .brand { color: var(--on-dark); }
.footer__about { margin: 18px 0 0; color: var(--on-dark-soft); max-width: 36ch; font-size: 0.9875rem; }
.footer h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--on-dark); }
.footer a:hover { color: var(--peach); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}
.footer__bottom a { color: var(--on-dark-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a:hover { color: var(--peach); }

/* ---------- Mobile action bar ---------- */
.action-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(37, 37, 37, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.5);
}
.action-bar .btn { flex: 1; min-height: 50px; padding: 0 14px; }

/* ---------- Legal / simple pages ---------- */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); font-weight: 700; letter-spacing: -0.03em; }
.page-hero p { color: var(--ink-soft); margin: 18px 0 0; max-width: 60ch; }

.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.legal__body { max-width: 68ch; }
.legal__body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p,
.legal__body li { color: #3D3B38; }
.legal__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--accent-text); text-underline-offset: 3px; }
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.9875rem;
}
.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
.legal__table th { width: 38%; font-weight: 700; }

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(64px, 10vw, 140px) 0;
}
.notfound__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 24vw, 16rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.notfound h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; margin: 18px 0 14px; }
.notfound p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 32px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Stacked sections (enabled by script.js) ---------- */
.has-stack .stack-panel {
  --panel-bg: var(--bg);
  --stack-r: clamp(12px, 2vw, 22px);
  --stack-under: 48px;
  --stack-lift: 0 -22px 44px -26px rgba(37, 37, 37, 0.35);
  position: sticky;
  background: var(--panel-bg);
}
.has-stack .stack-panel.services {
  --panel-bg: var(--dark);
  margin-inline: 0;
}
/* Corners square off as a panel docks under the header (--round is set by script.js) */
.has-stack .stack-wrap + .stack-wrap > .stack-panel {
  border-radius: calc(var(--stack-r) * var(--round, 1)) calc(var(--stack-r) * var(--round, 1)) 0 0;
  box-shadow: var(--stack-lift);
}
/* Each panel extends its own colour under the next one, so rounded corners and sub-pixel seams never show through */
.has-stack .stack-panel:not(.is-last)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--stack-under);
  background: var(--panel-bg);
}
.has-stack .stack-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #161616;
  opacity: calc(var(--cover, 0) * 0.32);
  pointer-events: none;
}
.has-stack .stack-panel:not(.is-last)::after {
  bottom: calc(-1 * var(--stack-under));
}
.has-stack .hero { padding-bottom: clamp(48px, 6vw, 80px); }
.has-stack .footer { position: relative; z-index: 20; }
/* Every section is at least one screen tall, so the next one never shows early */
.has-stack .stack-panel { min-height: calc(100vh - var(--header-h)); }
/* Each section sits in a wrapper: the section pins under the header (headline visible)
   while the pause spacer passes, then scrolls; the wrapper pins at the bottom so the
   next section can slide over it */
.has-stack { --stack-pause: 40vh; }
.has-stack .stack-wrap { position: sticky; pointer-events: none; }
.has-stack .stack-wrap > .stack-panel { pointer-events: auto; }
.has-stack .stack-pause { height: var(--stack-pause); pointer-events: none; background: var(--bg); }
.has-stack .stack-wrap:has(> .services) > .stack-pause { background: var(--dark); }
/* Small-viewport units where supported (fallback above uses vh). Done with @supports because
   these values contain var(), so a plain "vh then svh" fallback would not work in older browsers. */
@supports (height: 1svh) {
  .has-stack { --stack-pause: 40svh; }
  .has-stack .stack-panel { min-height: calc(100svh - var(--header-h)); }
}
.has-stack .stack-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.has-stack .stack-panel > .container { width: 100%; }
/* Scale factor set by script.js so a docked section fits the screen on computers */
.has-stack .stack-panel > .container { zoom: var(--fit, 1); }
/* Vertical spacing follows the screen height, so a docked section fits the screen where possible */
.has-stack .section { padding-block: clamp(36px, 6vh, 104px); }
.has-stack .map-section { padding-block: clamp(36px, 6vh, 96px); }
.has-stack .section-head { margin-bottom: clamp(28px, 5vh, 72px); }
.has-stack .contact__title { margin-bottom: clamp(24px, 4vh, 56px); }
.has-stack .contact__grid { --form-pad: clamp(24px, 3.6vh, 44px); }
.has-stack .field textarea { min-height: clamp(96px, 11vh, 140px); }
.has-stack .prep { margin-top: clamp(24px, 4vh, 64px); padding-top: clamp(20px, 3vh, 40px); }
.has-snap { scroll-snap-type: y proximity; }
.has-snap main { position: relative; }
.snap-rail { position: absolute; inset: 0; pointer-events: none; }
.snap-rail span { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; }

/* ---------- Steps carousel controls (phones only) ---------- */
.steps-nav { display: none; }

/* ---------- Scroll reveal (class is added by script.js) ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .package__list { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .topbar__group--hide-sm { display: none; }

  .menu-toggle { display: inline-block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(37, 37, 37, 0.35);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__link {
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -0.015em;
  }
  .nav__link:hover { background: transparent; color: var(--accent-text); }

  .map-layout,
  .hero__grid,
  .section-head,
  .about__grid,
  .services__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .hero__lead { max-width: 52ch; }
  .hero__media { aspect-ratio: 4 / 3; margin-top: 8px; }
  .about__media { position: relative; top: 0; }
  .services__media { min-height: 340px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .contact__info { padding-block: 0; }
  .prep { grid-template-columns: 1fr; }
  .prep__cta { justify-self: start; }

  .action-bar { display: flex; }
  /* Keep each pinned section's last lines clear of the floating call bar */
  .has-stack body.has-action-bar section.stack-panel { border-bottom: 84px solid var(--panel-bg); }
  .has-action-bar .footer { padding-bottom: calc(32px + 84px); }
}

@media (max-width: 767px) {
  .has-stack { --stack-pause: 20vh; }
}
@supports (height: 1svh) {
  @media (max-width: 767px) {
    .has-stack { --stack-pause: 20svh; }
  }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar__inner { justify-content: center; }
  .topbar__group--hide-xs { display: none; }

  .hero__cta .btn { flex: 1 1 100%; }
  .price-chip { padding: 10px 16px 10px 10px; gap: 12px; }
  .price-chip__badge { width: 40px; height: 40px; }
  .price-chip strong { font-size: 1.125rem; }

  .facts { grid-template-columns: 1fr; }
  .fact,
  .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }

  .steps {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 4px;
    border-top: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps .step,
  .steps .step + .step,
  .steps .step:nth-child(n) {
    flex: 0 0 84%;
    scroll-snap-align: start;
    margin: 0;
    padding: 22px 20px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .step h3 { margin: 10px 0 8px; font-size: 1.5rem; }
  .step p { margin-bottom: 18px; font-size: 0.9875rem; }
  .step__media img { aspect-ratio: 16 / 10; }

  .steps-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
  }
  .steps-nav__count {
  font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .steps-nav__count span { color: var(--ink); }
  .steps-nav__bar {
    position: relative;
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
  }
  .steps-nav__bar span {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(0.25);
    transition: transform 0.35s ease-out;
  }
  .steps-nav__arrows { display: flex; gap: 8px; }
  .steps-nav__btn {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
  }
  .steps-nav__btn svg { width: 18px; height: 18px; }
  .steps-nav__btn:active { background: var(--ink); color: var(--bg); }
  .steps-nav__btn[disabled] { opacity: 0.3; cursor: default; }

  .package__top { flex-direction: column; }
  .package__cta .btn,
  .contact__actions .btn { flex: 1 1 100%; }
  .prep__list { grid-template-columns: 1fr; }
  .prep__cta { justify-self: stretch; }

  .services { margin-inline: 0; border-radius: 28px; }
  .services__media-text { left: 20px; right: 20px; bottom: 20px; }

  .map { min-height: 400px; }
  .footer__top { grid-template-columns: 1fr; }
  .legal__table th,
  .legal__table td { display: block; width: 100%; padding-right: 0; }
  .legal__table th { border-bottom: 0; padding-bottom: 2px; }
}
