:root {
  /* Netlify-inspired: cool ink + bright teal, dark text on bright surfaces */
  --teal: #00c7b7;          /* brand teal: buttons, accents, decoration */
  --teal-hover: #00b3a5;
  --teal-text: #00776e;     /* darker teal for links/text (AA on white) */
  --teal-icon: #009688;     /* icons & small graphics */
  --teal-dark: #014847;     /* deep teal for dark bands */
  --stamp: #263f8c;         /* stamp-ink blue */
  --teal-soft: #e3f3f1;
  --teal-muted: #8de3da;

  --ink: #0e1e25;           /* deep blue-black */
  --ink-soft: #213840;
  --muted: #4f6670;         /* cool slate, 5.2:1+ on all surfaces */
  --muted-light: #8ea2a9;

  --paper: #f5f8f8;
  --white: #ffffff;
  --surface: #e9f0f1;
  --line: #d8e3e5;
  --line-soft: #eef3f4;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 30, 37, 0.04);
  --shadow-hover: 0 1px 2px rgba(14, 30, 37, 0.04);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--teal-text);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
}

.logo {
  font: 700 1.4rem var(--serif);
  text-decoration: none;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 0.85rem var(--serif);
  flex-shrink: 0;
}

nav {
  display: flex;
  gap: 8px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s;
}

nav a:hover {
  color: var(--teal-text);
}

.lang {
  border: 1.5px solid var(--line);
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.lang:hover {
  border-color: var(--teal-text);
  background: var(--surface);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0, 199, 183, 0.3);
}

.btn:hover {
  background: var(--teal-hover);
  box-shadow: 0 4px 14px rgba(0, 199, 183, 0.3);
}

.btn.alt {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.btn.alt:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── Hero ── */
.hero {
  padding: 72px 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(38, 63, 140, 0.04), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(14, 30, 37, 0.03), transparent 50%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  position: relative;
}

h1 {
  font: 700 clamp(2rem, 5vw, 3.4rem) / 1.1 var(--serif);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 36em;
  line-height: 1.6;
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.seal {
  width: 240px;
  height: 240px;
  color: var(--stamp);
  transform: rotate(-6deg);
  justify-self: center;
  filter: drop-shadow(0 2px 6px rgba(38, 63, 140, 0.12));
}

/* ── Sections ── */
section {
  padding: 72px 0;
}

h2 {
  font: 700 clamp(1.7rem, 3.5vw, 2.3rem) / 1.15 var(--serif);
  margin: 0 0 36px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h3 {
  font: 700 1.2rem / 1.3 var(--serif);
  margin: 0 0 10px;
  color: var(--ink);
}

/* ── Service cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #b9cbcf;
}

.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card li {
  padding: 5px 0 5px 26px;
  position: relative;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.5;
}

.card li:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.78em;
  width: 6px;
  height: 6px;
  background: var(--muted-light);
  border-radius: 50%;
}

.card p {
  margin: 0 0 8px;
  font-size: 0.97rem;
  color: var(--muted);
}

/* ── Band sections ── */
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.band h2 {
  color: var(--ink);
}

.band .grid .card {
  background: var(--white);
  border-color: var(--line);
}

/* ── Why us ── */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}

.why > div {
  border-left: 3px solid var(--teal-text);
  padding: 4px 0 4px 18px;
}

.why h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.why p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Process steps ── */
.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: s;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.steps li:before {
  content: counter(s);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 700 1.15rem var(--serif);
  margin-bottom: 16px;
}

.steps strong {
  display: block;
  font: 700 1.15rem var(--serif);
  margin-bottom: 6px;
  color: var(--ink);
}

.steps span {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.5;
}

.note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── FAQ ── */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: border-color 0.15s;
}

details[open] {
  border-color: #b9cbcf;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}

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

summary:after {
  content: "+";
  font: 700 1.35rem / 1 var(--serif);
  color: var(--teal-text);
  flex-shrink: 0;
}

details[open] summary:after {
  content: "–";
}

details .a {
  padding: 0 22px 22px;
  color: var(--muted);
}

details .a p {
  margin: 0 0 10px;
  line-height: 1.6;
}

details .a a {
  color: var(--teal-text);
  font-weight: 600;
  text-decoration: none;
}

details .a a:hover {
  text-decoration: underline;
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  background: linear-gradient(160deg, #0e1e25 0%, #014847 65%, #01625e 100%);
  color: white;
  border: none;
}

.cta-band h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-band p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.cta-band .cta {
  justify-content: center;
}

.cta-band .btn {
  background: var(--teal);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-band .btn:hover {
  background: #2fe0d1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cta-band .btn.alt {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.cta-band .btn.alt:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
}

/* ── Contacts ── */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}

.contact > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.97rem;
}

.contact a {
  font-weight: 600;
  color: var(--teal-text);
  text-decoration: none;
  white-space: nowrap;
}

.contact a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--muted-light);
  padding: 32px 0;
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  color: var(--muted-light);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* ── Icons ── */
.ico {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--teal-text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact .ico {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}

/* ── Utility ── */
body { overflow-x: clip; }

h1, h2, h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero .wrap > div { min-width: 0; }

/* ── Terms page helpers (kept) ── */
.terms { padding: 48px 0; }
.terms h1 { font-size: clamp(2rem, 5vw, 3rem); }
.terms h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.terms p { max-width: 46em; color: var(--muted); margin: 0.4rem 0; }
.terms ul { max-width: 46em; color: var(--muted); padding-left: 1.2em; }
.terms a { color: var(--teal-text); font-weight: 600; text-decoration: none; }
.terms a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .seal {
    display: none;
  }
  section {
    padding: 52px 0;
  }
  .hero {
    padding: 48px 0 44px;
  }
}

@media (max-width: 640px) {
  header .wrap {
    position: relative;
    min-height: 0;
    padding: 12px 20px 14px;
    gap: 8px;
  }
  nav {
    width: 100%;
    gap: 6px 16px;
    font-size: 0.9rem;
  }
  .lang {
    position: absolute;
    top: 12px;
    right: 20px;
    padding: 5px 11px;
  }
  .logo {
    font-size: 1.25rem;
  }
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
