/* BTD INVEST LTD - site styles. System fonts only, no external assets. */

:root {
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --text: #1c2331;
  --muted: #4a5568;
  --accent: #1f3d63;
  --accent-hover: #16304f;
  --border: #d5dbe4;
  --max-width: 66rem;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); margin-top: 2.25rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; }

p, dl, ul, ol, address {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

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

.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--accent-hover);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--border);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section + .section {
  padding-top: 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section + .section--alt {
  padding-top: 3rem;
}

.hero {
  padding: 4rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 44rem;
}

.prose {
  max-width: 44rem;
}

.prose p {
  max-width: 44rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Fact panels (definition lists) */

.panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
}

.facts dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.facts dd {
  margin: 0 0 0.6rem;
}

@media (min-width: 40em) {
  .facts {
    grid-template-columns: max-content 1fr;
  }
  .facts dt {
    padding-top: 0.15rem;
  }
  .facts dd {
    margin: 0;
  }
}

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 52em) {
  .two-col {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
  }
}

/* Contact cards */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .contact-list {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

.contact-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
}

.contact-list h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.contact-list a {
  font-size: 1.1rem;
  word-break: break-word;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer strong {
  color: var(--text);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-nav a {
  color: var(--text);
}

/* Utilities */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

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

@media print {
  .site-nav, .skip-link, .button { display: none; }
  a { color: inherit; text-decoration: none; }
}

.mt-0 {
  margin-top: 0;
}

.panel--wide {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.site-footer .footer-identity {
  flex: 1 1 28rem;
  max-width: 40rem;
}

.footer-nav {
  flex: 0 0 auto;
}
