:root {
  --brand-900: #04243a;
  --brand-800: #062f4a;
  --brand-700: #093e60;
  --brand-600: #145275;
  --brand-500: #1f6a96;
  --brand-400: #4d8eb6;
  --brand-200: #b3cee0;
  --brand-100: #d8e5ee;
  --brand-50:  #eef4f8;
  --ink:       #161c25;
  --muted:     #5a6573;
  --line:      #d6dee5;
  --bg:        #fbfcfd;
  --white:     #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  color: var(--brand-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-900);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo { height: 48px; }
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
}

.nav-links a.active {
  color: var(--brand-700);
  border-bottom: 2px solid var(--brand-700);
}

.nav-cta {
  background: var(--brand-700);
  color: white !important;
  padding: 12px 22px !important;
  font-weight: 600 !important;
  margin-left: 10px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--brand-900);
  margin: 5px 0;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { margin: 8px 0 4px; text-align: center; }
}

/* ---------- Hero (Homepage) ---------- */
.hero {
  padding: 80px 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 14px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--brand-700);
  background: var(--brand-700);
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--brand-700); color: white; border-color: var(--brand-700); }
.btn-ghost {
  background: transparent;
  color: var(--brand-800);
  border-color: var(--brand-700);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt {
  background: var(--brand-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards (Homepage) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.card-icon {
  width: 40px; height: 40px;
  color: var(--brand-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.card-icon svg { width: 32px; height: 32px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card .more {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Detail page ---------- */
.page-hero {
  padding: 72px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.page-hero p.lead {
  color: var(--ink);
  font-size: 1.08rem;
  max-width: 60ch;
  margin-top: 14px;
}
.page-hero p.lead + p.lead { margin-top: 14px; }

.page-hero .hero-grid {
  align-items: stretch;
  gap: 56px;
}

.page-hero .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero .hero-img {
  display: block;
  height: 100%;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
}
.page-hero .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

@media (max-width: 820px) {
  .page-hero { padding: 48px 0 40px; }
  .page-hero .hero-grid { gap: 32px; }
  .page-hero .hero-img {
    min-height: 0;
    height: auto;
  }
  .page-hero .hero-img img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

.detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.aside-card h3 { margin-bottom: 8px; }
.aside-card p { color: var(--muted); margin-bottom: 18px; }
.aside-card .btn { width: 100%; text-align: center; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 780px;
}
.feature-list li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 27px;
  width: 14px; height: 2px;
  background: var(--brand-700);
}

/* ---------- CTA (Homepage) ---------- */
.cta {
  background: var(--brand-800);
  color: white;
  text-align: center;
  padding: 64px 0;
}
.cta h2 { color: white; }
.cta p {
  color: rgba(255,255,255,.9);
  max-width: 56ch;
  margin: 0 auto 24px;
}
.cta .btn {
  background: white;
  color: var(--brand-800);
  border-color: white;
}

/* ---------- Contact / forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field label {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brand-900);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-600);
  outline: 2px solid var(--brand-200);
  outline-offset: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #c64545; }
.field .err {
  display: none;
  color: #b03333;
  font-size: .85rem;
  margin-top: 6px;
}
.field.invalid .err { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
  margin: 4px 0 18px;
}
.checkbox input { margin-top: 4px; }

.form .btn { width: 100%; text-align: center; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--brand-100);
  color: var(--brand-800);
  border: 1px solid var(--brand-200);
  font-weight: 500;
}
.form-status.show { display: block; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 24px;
}
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block h3 { margin-bottom: 8px; }
.info-block p { color: var(--ink); margin: 0; }
.info-block a { color: var(--brand-700); }
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.info-row:last-child { margin-bottom: 0; }
.info-row svg { flex-shrink: 0; color: var(--brand-700); }

/* ---------- Legal pages ---------- */
.legal {
  padding: 56px 0 80px;
  background: var(--bg);
}
.legal .container { max-width: 800px; }
.legal h2 { margin-top: 36px; }
.legal h3 { margin-top: 24px; color: var(--brand-800); }
.legal p, .legal li { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-900);
  color: rgba(255,255,255,.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: white;
  font-size: 1rem;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer .brand { color: white; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .9rem;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.7rem); }

  section { padding: 56px 0; }
  section.alt { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .page-hero { padding: 40px 0 32px; }
  .hero p.lead,
  .page-hero p.lead { font-size: 1rem; }

  .section-head { margin-bottom: 28px; }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; text-align: center; }

  .btn { padding: 14px 22px; }

  .cta { padding: 48px 0; }
  .cta .btn {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
  }

  .cards .card { padding: 26px 22px; }
  .card .more { margin-top: 18px; }

  .aside-card { padding: 22px; }

  .feature-list li {
    font-size: .98rem;
    padding: 16px 0 16px 28px;
  }
  .feature-list li::before { top: 24px; }

  .info-block { padding: 20px; }

  .footer-grid { gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: .85rem;
  }

  .nav-cta { padding: 12px 18px !important; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav { height: 76px; }
  .nav-links { top: 76px; }
  .brand-logo { height: 42px; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-700);
  box-shadow: 0 18px 40px rgba(4, 36, 58, .18);
  padding: 24px 28px;
  max-width: 1080px;
  margin: 0 auto;
  display: none;
}
.cookie-banner.show { display: block; }

.cookie-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cookie-text h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.cookie-text p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 64ch;
}
.cookie-text a {
  color: var(--brand-700);
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 12px 20px;
  font-size: .95rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 20px 20px;
  }
  .cookie-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cookie-actions {
    flex-direction: column-reverse;
  }
  .cookie-actions .btn {
    width: 100%;
    text-align: center;
  }
}
