/* =====================================================================
   4H Solutions — styles.css
   Mobile-first. Brand colors extracted from the company logo.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (from logo) */
  --c-primary: #0F7373;
  --c-primary-dark: #0B5A54;
  --c-accent: #2FA39A;
  --c-accent-light: #63C4BB;
  --c-ink-deep: #0E2B2B;

  /* Light theme */
  --bg: #F7FAF9;
  --surface: #FFFFFF;
  --card-bg: #F7FAF9;
  --chip-bg: #FFFFFF;
  --input-bg: #F7FAF9;
  --ink: #0B2422;
  --muted: #4A6360;
  --nav-link: #3E5754;
  --border: #E2EDEA;
  --border-2: #EAF2F0;
  --tint: #ECF5F3;
  --page-top: #DDEEEA;
  --tint-border: #BFDDD7;
  --brand-text: #0F7373;
  --glass: rgba(255, 255, 255, 0.85);
  --line-subtle: rgba(15, 115, 115, 0.18);
  --header-bg: rgba(221, 238, 234, 0.55);

  /* Dark section (same in both themes) */
  --dark-bg: #0B2E2C;
  --dark-bg-2: #08211F;
  --dark-ink: #FFFFFF;
  --dark-muted: #9EC4BF;
  --dark-muted-2: #8FB5B0;
  --dark-accent: #63C4BB;

  /* Type */
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing / shape */
  --container: 1200px;
  --pad-x: 20px;
  --section-y: 64px;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-card: 0 16px 40px rgba(11, 54, 50, 0.10);
  --shadow-cta: 0 8px 24px rgba(15, 115, 115, 0.28);
  --transition: 0.2s ease;

  --header-h: 72px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #081D1C;
  --surface: #0D2A28;
  --card-bg: #10302E;
  --chip-bg: rgba(255, 255, 255, 0.05);
  --input-bg: rgba(255, 255, 255, 0.05);
  --ink: #EAF5F3;
  --muted: #9EC4BF;
  --nav-link: #B7D8D3;
  --border: rgba(255, 255, 255, 0.12);
  --border-2: rgba(255, 255, 255, 0.07);
  --tint: rgba(47, 163, 154, 0.14);
  --page-top: #0C2E2B;
  --tint-border: rgba(99, 196, 187, 0.35);
  --brand-text: #63C4BB;
  --glass: rgba(13, 42, 40, 0.80);
  --line-subtle: rgba(99, 196, 187, 0.22);
  --header-bg: rgba(12, 46, 43, 0.55);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(47, 163, 154, 0.20), transparent 70%),
    radial-gradient(720px 500px at -12% 42%, rgba(15, 115, 115, 0.12), transparent 70%),
    linear-gradient(180deg, var(--page-top) 0%, var(--bg) 55%);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
[data-theme="dark"] a:not(.btn) { color: var(--c-accent-light); }
[data-theme="dark"] a:not(.btn):hover { color: #8AD8D0; }

::selection { background: #BFE5DF; color: #0B2422; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--c-primary);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; color: #FFFFFF; }

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

/* Progressive enhancement: JS-only controls hidden without JS */
.no-js .js-only { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--c-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--c-primary-dark); color: #FFFFFF; transform: translateY(-2px); }

.btn-secondary {
  background: var(--chip-bg);
  color: var(--brand-text);
  border: 1.5px solid var(--tint-border);
}
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
[data-theme="dark"] .btn-secondary:hover { color: var(--c-accent-light); }

.btn-inverse {
  background: #FFFFFF;
  color: var(--c-primary-dark);
  box-shadow: 0 10px 28px rgba(4, 38, 35, 0.30);
}
.btn-inverse:hover { transform: translateY(-2px); color: var(--c-primary-dark); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-subtle);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: var(--header-bg);
}

.no-js .site-header { background: var(--header-bg); border-bottom-color: var(--border-2); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.nav-logo { display: flex; align-items: center; flex: none; }
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-logo .logo-dark { display: block; }
.nav-logo .logo-light { display: none; }
[data-theme="dark"] .nav-logo .logo-dark { display: none; }
[data-theme="dark"] .nav-logo .logo-light { display: block; }

.nav-links {
  display: none; /* mobile: shown via .is-open */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--nav-link);
  padding: 10px 4px;
  display: block;
  border-radius: 6px;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--c-primary); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.is-active { color: var(--c-accent-light); }

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--brand-text);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}
.icon-btn:hover { border-color: var(--tint-border); }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--tint);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-switch button {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  color: var(--nav-link);
  transition: background var(--transition), color var(--transition);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--c-primary);
  color: #FFFFFF;
}

/* Very narrow screens: shrink logo + controls so nav fits 320px */
@media (max-width: 420px) {
  .nav { gap: 6px; }
  .nav-logo img { height: 22px; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; font-size: 14px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 5px 7px; font-size: 12px; }
}

.nav-cta { font-size: 15px; padding: 11px 22px; display: none; }

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--chip-bg);
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu open state */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--pad-x) 20px;
  box-shadow: 0 24px 40px rgba(11, 54, 50, 0.12);
}
.nav-links.is-open a { font-size: 17px; padding: 12px 8px; }

/* No-JS fallback: keep links reachable on mobile */
.no-js .nav-links { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; order: 3; }
.no-js .menu-toggle { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.section-title {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 560px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-block: 48px 72px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; }

.kicker {
  display: block;
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-ctas .btn { font-size: 17px; padding: 15px 30px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.point-check { color: var(--c-accent); flex: none; }
.hero-points li {
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-link);
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
}

.diamond {
  width: 8px; height: 8px;
  flex: none;
  background: var(--c-accent);
  transform: rotate(45deg);
  border-radius: 2px;
}

.hero-visual {
  flex: 1 1 380px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 24px;
  min-height: 420px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  background: radial-gradient(closest-side, rgba(47, 163, 154, 0.16), rgba(47, 163, 154, 0));
  border-radius: 50%;
}

.hero-mark {
  width: min(240px, 50%);
  filter: drop-shadow(0 24px 40px rgba(11, 54, 50, 0.18));
  animation: floatY 7s ease-in-out infinite;
}
.mark-dark { display: block; }
.mark-light { display: none; }
[data-theme="dark"] .mark-dark { display: none; }
[data-theme="dark"] .mark-light { display: block; }
[data-theme="dark"] .hero-mark { filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45)); }

.hero-tag {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-tag.is-on { opacity: 1; transform: none; }
.no-js .hero-tag { opacity: 1; transform: none; }
.hero-tag {
  position: absolute;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text);
  box-shadow: 0 8px 20px rgba(11, 54, 50, 0.10);
  white-space: nowrap;
  animation: floatY 7s ease-in-out infinite;
}
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.hero-lines line {
  stroke: var(--c-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 3 7;
  animation: lineFlow 3.2s linear infinite;
  transition: opacity 0.9s ease;
}
.hero-lines line.is-on { opacity: 0.55; }
@keyframes lineFlow {
  to { stroke-dashoffset: -10.5; }
}

/* 15 module tags orbiting the mark */
.hero-tag:nth-of-type(1)  { top: 1%;   left: 24%;  animation-duration: 6.2s; }
.hero-tag:nth-of-type(2)  { top: 3%;   right: 22%; animation-duration: 7.4s; animation-delay: 0.5s; }
.hero-tag:nth-of-type(3)  { top: 13%;  left: 6%;   animation-duration: 8.1s; animation-delay: 1.1s; }
.hero-tag:nth-of-type(4)  { top: 15%;  right: 4%;  animation-duration: 6.8s; animation-delay: 0.2s; }
.hero-tag:nth-of-type(5)  { top: 30%;  left: 0;    animation-duration: 7.7s; animation-delay: 1.6s; }
.hero-tag:nth-of-type(6)  { top: 32%;  right: 0;   animation-duration: 6.5s; animation-delay: 0.9s; }
.hero-tag:nth-of-type(7)  { top: 47%;  left: 2%;   animation-duration: 8.4s; animation-delay: 0.4s; }
.hero-tag:nth-of-type(8)  { top: 49%;  right: 3%;  animation-duration: 7.1s; animation-delay: 1.9s; }
.hero-tag:nth-of-type(9)  { top: 64%;  left: 0;    animation-duration: 6.9s; animation-delay: 0.7s; }
.hero-tag:nth-of-type(10) { top: 63%;  right: 0;   animation-duration: 7.9s; animation-delay: 1.3s; }
.hero-tag:nth-of-type(11) { bottom: 17%; left: 10%;  animation-duration: 6.4s; animation-delay: 0.1s; }
.hero-tag:nth-of-type(12) { bottom: 15%; right: 12%; animation-duration: 7.6s; animation-delay: 1.5s; }
.hero-tag:nth-of-type(13) { bottom: 5%;  left: 26%;  animation-duration: 8.0s; animation-delay: 0.8s; }
.hero-tag:nth-of-type(14) { bottom: 4%;  right: 24%; animation-duration: 6.6s; animation-delay: 1.8s; }
.hero-tag:nth-of-type(15) { bottom: -4%; left: 30%;  animation-duration: 7.3s; animation-delay: 1.0s; }
.hero-tag:nth-of-type(16) { bottom: -4%; right: 30%; animation-duration: 6.7s; animation-delay: 0.6s; }

/* Small screens: tags become a static wrapped row of chips below the mark */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual {
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    gap: 8px;
    min-height: 0;
  }
  .hero-mark {
    flex: 0 0 100%;
    width: 100%;
    height: 170px;
    object-fit: contain;
    margin-bottom: 16px;
  }
  .hero-tag,
  .hero-tag:nth-of-type(n) {
    position: static;
    animation: none;
    inset: auto;
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Cards grid (services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--tint-border);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  transition: border-color var(--transition);
}
.why-item:hover { border-color: var(--tint-border); }
.why-item .diamond { width: 12px; height: 12px; margin-top: 6px; border-radius: 3px; }
.why-item h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.why-item p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Process (dark section) ---------- */
.section-dark { background: var(--dark-bg); }
.section-dark .section-title { color: var(--dark-ink); }
.section-dark .section-sub { color: var(--dark-muted); }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 26px 22px;
  transition: background 0.25s;
}
.step:hover { background: rgba(255, 255, 255, 0.09); }
.step-n {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark-accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; font-weight: 800; color: var(--dark-ink); margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--dark-muted); }

/* ---------- Tech chips ---------- */
.tech-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tech-list li:hover { border-color: var(--c-accent); box-shadow: 0 8px 20px rgba(11, 54, 50, 0.08); }
.tech-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-primary); flex: none; }

/* ---------- Testimonials ---------- */
.testi-note {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 32px;
}

.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.testi {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-quote-mark { font-size: 44px; line-height: 0.6; color: var(--c-accent); font-weight: 800; }
.testi blockquote { font-size: 16.5px; line-height: 1.65; color: var(--ink); margin: 0; flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex: none;
}
.testi-name { font-size: 15.5px; font-weight: 800; display: block; }
.testi-role { font-size: 13.5px; color: var(--muted); display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 80px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 115, 115, 0.30);
}
.cta-band h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 18px;
  line-height: 1.6;
  color: #C4E5E0;
  margin: 0 auto 36px;
  max-width: 560px;
}

/* ---------- Contact ---------- */
.contact-wrap { display: flex; flex-wrap: wrap; gap: 32px; padding-block: 16px var(--section-y); }

.contact-form-card {
  flex: 1.4 1 420px;
  min-width: 0;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
}
.contact-form-card h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; margin-bottom: 10px; }
.contact-form-card > p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--nav-link); }
.field .req { color: var(--c-accent); }

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  padding: 13px 16px;
  width: 100%;
  transition: border-color var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 0;
  border-color: var(--c-primary);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #C0392B; }

.field-error {
  font-size: 13px;
  font-weight: 600;
  color: #C0392B;
  min-height: 0;
  display: none;
}
.field-error.is-visible { display: block; }
[data-theme="dark"] .field-error { color: #F1948A; }

.consent-row { flex-direction: row; align-items: flex-start; gap: 10px; }
.consent-row input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--c-primary);
  flex: none;
}
.consent-row label { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.5; }

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-m);
  padding: 18px 20px;
  font-size: 15.5px;
  font-weight: 600;
}
.form-status.is-visible { display: flex; }
.form-status.is-success {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  color: var(--brand-text);
}
.form-status.is-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: #C0392B;
}
[data-theme="dark"] .form-status.is-error { color: #F1948A; }
.form-status .status-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
}

.contact-aside {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--dark-bg);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-aside img { height: 34px; width: auto; align-self: flex-start; }
.contact-aside hr {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
}
.contact-aside address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
}
.contact-aside address span { color: #C4E5E0; }
.contact-aside address a { color: #FFFFFF; font-weight: 700; }
.contact-aside address a:hover { color: var(--dark-accent); }

main { flex: 1 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg-2);
  border-top: 1px solid var(--line-subtle);
  position: sticky;
  bottom: 0;
  z-index: 80;
  /*padding: 40px 0 24px;*/
  padding: 40px 0 16px;
  margin-top: 0;
  border-radius: 44px 44px 0 0;
  position: relative;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
}
.footer-brand { max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 26px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--dark-muted-2); }

.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col-wide { width: 100%; }
.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.footer-contact-row a {
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-contact-row svg { color: var(--dark-accent); flex: none; }
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 16px;
  padding-top: 16px;
  text-align: center;
  font-size: 13.5px;
  color: #6E9691;
}

@media (max-width: 640px) {
  .footer-bottom { justify-content: center; }
  .footer-contact-row { justify-content: center; width: 100%; }
  .footer-legal { justify-content: center; width: 100%; }
  .footer-bottom .footer-social { margin-left: auto; margin-right: auto; }
}
.footer-col h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-accent);
  margin-bottom: 4px;
}
.footer-col a, .footer-col span { color: #C4E5E0; font-size: 14px; }
.footer-col a:hover { color: #FFFFFF; }

.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4E5E0;
  font-size: 13px;
  font-weight: 800;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--c-primary); color: #FFFFFF; }

.footer-bottom {
  /*margin-top: 24px;*/
  align-items: center;
  /*padding-top: 24px;*/
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13.5px;
  color: #6E9691;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-inline: auto; }
.footer-legal a { color: #8FB5B0; font-size: 13.5px; }
.footer-legal a:hover { color: #FFFFFF; }
.footer-legal button {
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font);
  font-size: 13.5px;
  color: #8FB5B0;
  cursor: pointer;
}
.footer-legal button:hover { color: #FFFFFF; }

.footer-bottom .footer-social { margin-top: 0; margin-left: auto; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  box-shadow: 0 24px 60px rgba(11, 54, 50, 0.25);
  padding: 24px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { font-size: 14px; padding: 11px 20px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 54, 50, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Legal pages / 404 ---------- */
.legal-main { padding-block: 48px var(--section-y); max-width: 760px; }
.legal-main h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 12px; }
.legal-main h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.legal-main p, .legal-main li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal-main ul { padding-left: 22px; margin: 10px 0; }
.legal-updated { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.legal-notice {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 32px;
}

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding-block: 80px;
}
.error-code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; color: var(--c-primary); line-height: 1; }
.error-page h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; }
.error-page p { font-size: 17px; color: var(--muted); max-width: 440px; }

/* =====================================================================
   Responsive — tablet and up
   ===================================================================== */
@media (min-width: 640px) {
  :root { --pad-x: 32px; --section-y: 80px; }
  .card-grid, .why-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-full { grid-column: 1 / -1; }
  .form-grid .form-submit { grid-column: 1 / -1; justify-self: start; }
}

@media (min-width: 900px) {
  :root { --section-y: 96px; }
  .steps-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .card-grid, .testi-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
  }
  .nav-links a { padding: 8px 2px; }
  .nav-cta { display: inline-flex; }
  .nav { gap: 24px; }
}

/* Large screens */
@media (min-width: 1700px) {
  :root { --container: 1320px; }
}

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

/* =====================================================================
   Print
   ===================================================================== */
@media print {
  .site-header, .cookie-banner, .back-to-top, .hero-visual { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
