/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; border: none; background: none; cursor: pointer; }

:root {
  --color-background: #001c2c;
  --color-surface: #00333d;
  --color-button: #ffb900;
  --color-button-hover: #ff9e00;
  --color-button-text: #4a1500;
  --color-secondary-button: #00a854;
  --color-secondary-button-hover: #00ff8c;
  --color-secondary-button-text: #001c2c;
  --color-font: #ffffff;
  --color-headers: #ffffff;
  --color-link: #0855cc;
  --color-link-hover: #00ff8c;
  --color-border: #184b4d;
  --color-accent: #ffb900;
  --font-family: Montserrat, sans-serif;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--color-background);
  color: var(--color-font);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-headers);
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-link);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-button);
  color: var(--color-button-text);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-button-hover);
  color: var(--color-button-text);
}

.btn--secondary {
  background-color: var(--color-secondary-button);
  color: var(--color-secondary-button-text);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--color-secondary-button-hover);
  color: var(--color-secondary-button-text);
}

/* Header */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__cta {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.site-footer__logo img {
  height: 36px;
  width: auto;
}

.site-footer__legal {
  color: var(--color-font);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Tablet */
@media (min-width: 600px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  html { font-size: 17px; }

  .site-header__inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* 404 page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.not-found__code {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
}

.not-found__text {
  color: var(--color-font);
  opacity: 0.85;
  max-width: 32rem;
}

/* Page-specific additions */
.hero-carousel { padding: 1.5rem 0; }
.hero-carousel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.hero-tile {
  position: relative;
  border-radius: 0.75rem;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  border: 1px solid var(--color-border);
}
.hero-tile__heading { font-size: 1.1rem; }
.hero-tile__text { font-size: 0.9rem; opacity: 0.9; }
.hero-tile .btn { align-self: flex-start; }

.page-title { padding: 1.5rem 0; }
.page-title h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.toc {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
.toc h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.toc ul { display: flex; flex-direction: column; gap: 0.4rem; }
.toc a { font-weight: 600; }

.intro { padding: 1rem 0 1.5rem; }
.intro p { margin-bottom: 0.9rem; }
.intro__banner { border-radius: 0.5rem; margin-top: 0.5rem; }

.article-section { padding: 1.5rem 0; border-top: 1px solid var(--color-border); }
.article-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.article-section h3 { font-size: 1.15rem; margin: 1rem 0 0.5rem; }
.article-section p { margin-bottom: 0.85rem; }
.article-section ul, .article-section ol { margin: 0 0 0.9rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.article-section ul { list-style: disc; }
.article-section ol { list-style: decimal; }
.article-section img { border-radius: 0.5rem; margin: 0.75rem 0; max-width: 320px; }
.article-section__cta { margin-top: 0.5rem; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { border: 1px solid var(--color-border); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
thead th { background-color: var(--color-surface); color: var(--color-headers); }
tbody tr:nth-child(even) { background-color: rgba(255,255,255,0.03); }

.trust-section, .support-section { padding: 1.5rem 0; border-top: 1px solid var(--color-border); }
.trust-section h2, .support-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.trust-section p, .support-section p { margin-bottom: 0.85rem; }

.faq-section { padding: 1.5rem 0 4.5rem; border-top: 1px solid var(--color-border); }
.faq-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.faq-accordion { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-surface);
  padding: 0.85rem 1rem;
}
.faq-item summary { font-weight: 700; cursor: pointer; color: var(--color-headers); }
.faq-item p { margin-top: 0.6rem; margin-bottom: 0; }

.sticky-promo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 40;
}
.sticky-promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.sticky-promo-bar__text { font-size: 0.9rem; font-weight: 600; flex: 1; }
.sticky-promo-bar__icon { color: var(--color-accent); font-size: 1.2rem; }

@media (min-width: 700px) {
  .hero-carousel__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .page-title h1 { font-size: 2.25rem; }
}