:root {
  --navy: #07173a;
  --red: #d9261c;
  --text: #1c2433;
  --muted: #566074;
  --line: #e3e6ec;
  --soft: #f5f6f9;
  --todo-bg: #fff3b0;
  --todo-line: #c9a400;
  --max: 64rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem;
}
.skip:focus { left: 0; z-index: 10; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.logo img { width: 8.5rem; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; }
.nav a:hover { color: var(--red); text-decoration: underline; }

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  min-height: 24rem;
  display: flex; align-items: flex-end;
  color: #fff;
  background-color: #0b2a3a;
  background-image:
    linear-gradient(to top, rgba(7, 23, 58, 0.85) 0%, rgba(7, 23, 58, 0.35) 60%, rgba(7, 23, 58, 0.15) 100%),
    url("/assets/banner.jpg");
  background-size: cover;
  background-position: center 55%;
}
.hero .wrap { width: 100%; }
.eyebrow {
  margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #ffb4ae;
}
h1 {
  margin: 0 0 1rem; color: var(--navy);
  font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.15; letter-spacing: -0.015em;
}
.hero h1 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.lead { max-width: 38rem; font-size: 1.2rem; color: var(--muted); margin: 0; }
.hero .lead { color: #eef1f8; }
.hero .note { color: #fff; }

/* Sections */
section { padding: 3rem 0; border-top: 1px solid var(--line); }
h2 { margin: 0 0 1.5rem; color: var(--navy); font-size: 1.5rem; line-height: 1.25; }
h3 { margin: 2rem 0 0.5rem; color: var(--navy); font-size: 1.1rem; }
p { margin: 0 0 1rem; }

/* Brands */
#brands { background: var(--soft); border-top: 0; padding: 4rem 0; }
#brands .eyebrow { color: var(--red); }
.brands { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.brands > li { display: flex; }
.brand {
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--text);
  box-shadow: 0 1px 2px rgba(7, 23, 58, 0.04), 0 8px 24px rgba(7, 23, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover, .brand:focus-visible {
  transform: translateY(-4px); color: var(--text);
  box-shadow: 0 2px 4px rgba(7, 23, 58, 0.06), 0 16px 40px rgba(7, 23, 58, 0.12);
}
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 2rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f1f6f1 100%);
}
.brand-logo img { width: min(17rem, 100%); }
.brand-body { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 1.75rem 1.75rem; flex: 1; justify-content: space-between; }
.brand-text { color: var(--muted); }
.brand-cta {
  align-self: flex-start; display: inline-flex; gap: 0.4rem; align-items: center;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s ease;
}
.brand:hover .brand-cta { background: var(--red); }
@media (prefers-reduced-motion: reduce) { .brand { transition: none; } .brand:hover { transform: none; } }
.note { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.contact dl {
  margin: 0; padding: 1.5rem 1.75rem;
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 8px 24px rgba(7, 23, 58, 0.05);
}
.contact dt {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: 1rem;
}
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 0.15rem 0 0; font-size: 1.1rem; }
address { font-style: normal; }

/* Footer */
.site-footer { background: var(--navy); color: #d7dcea; padding: 2.5rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb4ae; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.site-footer p { margin: 0 0 0.4rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.legal h2 { margin-top: 2.25rem; font-size: 1.25rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal .meta { color: var(--muted); font-size: 0.95rem; }

/* Visible TODO placeholders */
.todo {
  background: var(--todo-bg); border: 2px dashed var(--todo-line);
  color: #000; padding: 0.05rem 0.4rem; border-radius: 3px; font-weight: 700;
}
.site-footer .todo { color: #000; }

@media (min-width: 40rem) {
  .wrap { padding: 0 2rem; }
  .logo img { width: 10rem; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 60rem) {
  .brands { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 4.5rem 0; min-height: 32rem; align-items: center; }
}

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