/* All4s public pages. Colours from the Trinidad and Tobago flag: red, black, white. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5b5750;
  --line: #e4ded3;
  --red: #ce1126;
  --red-ink: #a30d1e;
  --band: #111111;
  --band-text: #ffffff;
  --note-bg: #fff4e5;
  --note-line: #f0c27a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121212;
    --surface: #1c1c1c;
    --text: #f1eee9;
    --muted: #aaa39a;
    --line: #333030;
    --red: #ff4d5e;
    --red-ink: #ff7a86;
    --band: #000000;
    --band-text: #ffffff;
    --note-bg: #2a2214;
    --note-line: #7a5a20;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #121212;
  --surface: #1c1c1c;
  --text: #f1eee9;
  --muted: #aaa39a;
  --line: #333030;
  --red: #ff4d5e;
  --red-ink: #ff7a86;
  --band: #000000;
  --band-text: #ffffff;
  --note-bg: #2a2214;
  --note-line: #7a5a20;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
a {
  color: var(--red-ink);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Flag stripe: red, white, black, white, red. */
.flag {
  height: 8px;
  background: linear-gradient(
    100deg,
    var(--red) 0 38%,
    #fff 38% 41%,
    #000 41% 59%,
    #fff 59% 62%,
    var(--red) 62%
  );
}
header.site {
  background: var(--band);
  color: var(--band-text);
}
header.site .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 16px;
  max-width: 880px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--band-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 15px;
}
nav.site a {
  color: #ddd;
  text-decoration: none;
}
nav.site a:hover,
nav.site a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #ce1126;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 8px 0 4px;
}
h2 {
  font-size: 22px;
  margin: 36px 0 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  margin-top: 0;
}
.meta {
  color: var(--muted);
  font-size: 15px;
}
.note {
  background: var(--note-bg);
  border-left: 4px solid var(--note-line);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 16px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--surface);
}
.table-wrap {
  overflow-x: auto;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 10px 0;
}
details summary {
  cursor: pointer;
  font-weight: 700;
}
details[open] summary {
  margin-bottom: 6px;
}
ol.steps li,
ul li {
  margin: 4px 0;
}

/* Landing */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0 8px;
}
.hero img.logo {
  width: 180px;
  max-width: 50vw;
  height: auto;
}
.hero h1 {
  font-size: 40px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 8px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #555;
}
.badge small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.1;
}
.badge strong {
  display: block;
  font-size: 19px;
  line-height: 1.2;
}
.badge svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  flex: none;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.features .card {
  flex: 1 1 240px;
  margin: 0;
}
.features h3 {
  margin-top: 0;
}

/* Forms */
form.request {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
form.request label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}
form.request input,
form.request textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.button {
  display: inline-block;
  align-self: flex-start;
  font: inherit;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  border: 0;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer.site .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
footer.site a {
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 27px;
  }
  .hero h1 {
    font-size: 34px;
  }
}
