/* =============== DESIGN TOKENS =============== */
:root {
  --bg: #f8f8f8;
  --surface: #eaeaea;
  --ink: #422;
  --ink-strong: #222;
  --accent: #551c3a;
  --focus: #003d80;
  --radius: 1px;
  --gap: 12px;
}

/* =============== RESET & BASE =============== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: .075em;
}

a:hover {
  color: var(--ink-strong);
  transition: color .25s ease .12s;
}

a:visited {
  color: #000000;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* =============== FONTS (as provided) =============== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Inter/Inter-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/Inter/Inter-SemiBold.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/Inter/Inter-Bold.woff2') format('woff2');
  font-display: swap;
}

/* =============== LAYOUT =============== */
.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  flex: 1 1 auto;
}

/* =============== HEADER =============== */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 3rem;
  width: 100%;
  background: var(--surface);
  padding: 1rem;
}

.header-logo-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 1 auto;
}

.header-logo-img {
  width: clamp(4rem, 5vw, 6rem);
  height: clamp(4rem, 5vw, 6rem);
  object-fit: contain;
}

.header-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name {
  font-size: clamp(1rem, 1.7vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-strong);
  text-align: left;
}

.header-description {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.description {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-strong);
}

/* =============== MAIN =============== */
.main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 .5rem;
}

.main h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 1rem 0;
  font-weight: 700;
  color: var(--ink-strong);
}

.main p {
  font-size: clamp(1.05rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1rem 0;
  text-align: left;
}

.main address {
  margin: 0 0 1.2rem 0;
}

.main address p {
  font-style: normal;
  margin: 0;
}

/* =============== FOOTER =============== */
.footer .trust-badges .badge-img {
  display: block;
  block-size: 100%;
  inline-size: auto;
}

.footer {
  background: var(--surface);
  color: var(--accent);
  width: 100%;
  padding: 1rem;
  text-align: left;
  font-size: clamp(.55rem, .75vw, 0.9rem);
  line-height: 1.4;
  margin-top: auto;
}
.trust-badges {
  display: inline-flex;
  vertical-align: top;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 .75rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  padding: 8px 10px;
  min-height: 2rem;
  line-height: 1;
}

.badge:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.badge img {
  display: block;
  height: 1.05rem;
  width: auto;
}

.badge-text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.footer .trust-badges:first-of-type .badge {
  padding-left: 0;
}

.footer .trust-badges .badge {
  display: inline-flex;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px) {
  .main {
    width: min(900px, calc(100% - 2rem));
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .header-logo-img {
    width: 5rem;
    height: 5rem;
  }

  .description {
    font-size: clamp(1.25rem, 3.8vw, 1.6rem);
  }

  .main {
    justify-content: flex-start;
    padding: 1.5rem 1rem;
  }

  .footer {
    font-size: .75rem;
  }
}

@media (max-width: 600px) {
  .name {
    font-size: 1.5rem;
  }

  .description {
    font-size: 1.3rem;
  }

  .main {
    justify-content: flex-start;
    padding: 1.5rem 1rem;
  }

  .badge img {
    height: 1.2rem;
  }

  .footer {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .header-logo-img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .name {
    font-size: 1.25rem;
  }

  .description {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .main {
    justify-content: flex-start;
    padding: 1.5rem 1rem;
  }

  .main h2 {
    font-size: 1.25rem;
  }

  .main p {
    font-size: .95rem;
    line-height: 1.6;
  }

  .badge-text {
    font-size: .85rem;
  }
}

@media (max-width: 360px) {
  .name {
    font-size: 1.1rem;
  }

  .description {
    font-size: 1rem;
  }

  .main {
    justify-content: flex-start;
    padding: 1.5rem 1rem;
    padding: 0 .75rem;
  }

  .footer {
    font-size: .85rem;
    line-height: 1.3;
  }

  a {
    word-break: break-word;
  }
}

/* =============== ACCESSIBILITY =============== */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --link: #004a99;
    --link-hover: #00346b;
  }

  .badge {
    border-color: #d0d0d0;
  }
}

@media (forced-colors: active) {
  .badge {
    border: 1px solid CanvasText;
  }

  a {
    outline: 1px solid Highlight;
  }
}