/* Sonarwall website — shared styles
   Brand tokens from the Sonarwall design system. Page sections keep their
   layout styles inline, exactly as designed; this file holds the shared parts. */

:root {
  --shield: #d93c0c;
  --shield-text: #b3320a;
  --deep: #13102a;
  --deep-2: #2a2550;
  --ink: #13102a;
  --ink-muted: #5f5a72;
  --lilac: #eeeaff;
  --surface: #ffffff;
  --surface-alt: #f4f5f7;
  --line: #dde1e6;
  --field-line: #b9bfc8;
  --brand-blue: #1d5889;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--brand-blue); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--shield);
  outline-offset: 3px;
  border-radius: 4px;
}
[id] { scroll-margin-top: 24px; }

/* skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius-md);
  background: var(--deep); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-md);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--shield); color: #fff; }
.btn--primary:hover { background: #bf3409; color: #fff; }
.btn--outline { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }

/* site header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px;
}
.site-header__logo { display: flex; align-items: center; min-height: 44px; }
.site-header__logo img { height: 28px; width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--shield-text); }
.site-nav a[aria-current="page"] { color: var(--shield-text); }

@media (max-width: 720px) {
  .site-header__inner { padding: 12px 16px; }
  .site-nav { order: 3; width: 100%; gap: 0 18px; }
  .site-nav a { white-space: nowrap; }
}

/* cards with links: hover lift */
main a[style*="border-radius: 16px"]:hover { border-color: var(--ink) !important; }

/* contact form */
.contact-card {
  flex: 1.5 1 560px; min-width: 0;
  padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (max-width: 600px) { .contact-card { padding: 24px; flex-basis: 100%; } }
.contact-card__title { font-size: 28px; line-height: 34px; font-weight: 800; }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .product-picker legend { font-size: 14px; font-weight: 700; }
.optional { font-weight: 500; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field-line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.field textarea { padding: 12px 14px; line-height: 24px; resize: vertical; }
.product-picker { border: none; padding: 0; margin: 0; }
.product-picker legend { padding: 0; margin-bottom: 12px; }
.product-picker__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-check {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid #c9c3e6; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.chip-check:has(input:checked) { background: var(--lilac); border-color: var(--ink); }
.chip-check input, .consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--shield); flex-shrink: 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--ink-muted); }
.consent input { margin-top: 2px; }
.contact-form .btn { align-self: flex-start; }
.form-errors {
  padding: 16px 20px; border-radius: var(--radius-md);
  background: #fdf0eb; border: 1px solid var(--shield); color: var(--ink);
  font-size: 15px; line-height: 24px;
}
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.form-success { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.form-success .contact-card__title { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 404 */
.error-page { max-width: 1200px; margin: 0 auto; padding: 120px 24px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.error-page h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.error-page p { font-size: 18px; line-height: 30px; font-weight: 500; color: var(--ink-muted); max-width: 560px; }

/* phone widths: soften big paddings in designed sections */
@media (max-width: 600px) {
  main section > div[style*="padding: 112px 24px"],
  main section > div[style*="padding: 88px 24px"],
  main section > div[style*="padding: 104px 24px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  main figure { max-width: 100% !important; }
}
