/* ── Inter font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Actor font (self-hosted, used for logo) ── */
@font-face {
  font-family: 'Actor';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Actor/regular.woff2') format('woff2'),
       url('../fonts/Actor/regular.woff') format('woff'),
       url('../fonts/Actor/regular.ttf') format('truetype');
}

/* ── Design tokens ── */
:root {
  --color-primary:       #1a3a5c;
  --color-accent:        #2e7dc4;
  --color-accent-light:  #e8f2fb;
  --color-text:          #333333;
  --color-text-muted:    #666666;
  --color-bg:            #ffffff;
  --color-bg-alt:        #f7f9fc;
  --color-border:        #e0e6ed;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-logo: 'Actor', 'Inter', sans-serif;

  --max-width: 1100px;
  --padding-x: 24px;
  --radius: 4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Base ── */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ── Page container ── */
.page-wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
#header-wrap {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

#header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

/* Top bar: logo + social + hamburger */
#header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 0;
}

#logo a {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}
#logo a:hover { text-decoration: none; color: var(--color-accent); }

#header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Social icons — SVG inline approach */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s;
}
.social-link:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
  text-decoration: none;
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-primary);
  line-height: 1;
}
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }

/* Nav */
#topnav {
  padding: 8px 0;
}
#topnav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
#topnav li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
#topnav li a:hover,
#topnav li#active a {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════ */
#main-wrap {
  min-height: calc(100vh - 200px);
}

#content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--padding-x);
}

/* Headings */
h2, .wsite-content-title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

/* Paragraphs */
.paragraph, p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Lists */
ul, ol { padding-left: 1.5rem; margin-bottom: 16px; }
li { margin-bottom: 8px; line-height: 1.6; }

/* Horizontal rule */
.styled-hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 24px 0;
}
hr { border: none; border-top: 1px solid var(--color-border); }

/* Spacer */
.wsite-spacer { display: block; }

/* ── Multicol grid ── */
.wsite-multicol { width: 100%; }
.wsite-multicol-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
}
.wsite-multicol-tbody,
.wsite-multicol-tr {
  display: contents;
}
.wsite-multicol-col {
  display: block;
  width: 100% !important;
  padding: 0 !important;
}

/* Desktop: restore column widths using auto-fill */
@media (min-width: 768px) {
  .wsite-multicol-table {
    display: table;
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
  }
  .wsite-multicol-tbody { display: table-row-group; }
  .wsite-multicol-tr    { display: table-row; }
  .wsite-multicol-col   { display: table-cell !important; vertical-align: top; }
}

/* ── Images ── */
.wsite-image { position: relative; }
.wsite-image img { max-width: 100%; height: auto; }
.wsite-image-border-none img { border: none; }

/* ── Button ── */
.wsite-button,
.wsite-button-large {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}
.wsite-button:hover,
.wsite-button-large:hover {
  background: var(--color-primary);
  text-decoration: none !important;
}
.wsite-button-inner { display: inline; }

/* ── Map ── */
.wsite-map { width: 100%; border-radius: var(--radius); overflow: hidden; }
.wsite-map iframe { display: block; width: 100%; border: none; }

/* ── Social icons (header sprite fallback — hidden, using SVG now) ── */
.wsite-social-item { display: none; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
#footer-wrap {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  margin-top: 64px;
}

#footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

#footer .paragraph,
#footer p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Hide old footer multicol spacer tables */
#footer .wsite-multicol { display: none; }

/* ════════════════════════════════════════
   MOBILE — 768px
════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --padding-x: 16px; }

  .nav-toggle { display: flex; }

  #topnav {
    display: none;
    padding: 8px 0 16px;
  }
  #topnav.open { display: block; }

  #topnav ul {
    flex-direction: column;
    gap: 2px;
  }
  #topnav li a {
    font-size: 0.9375rem;
    padding: 12px 16px;
  }

  #content { padding: 32px var(--padding-x); }

  h2, .wsite-content-title { font-size: 1.25rem; }

  #footer { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════
   MOBILE — 480px
════════════════════════════════════════ */
@media (max-width: 480px) {
  #logo a { font-size: 1.25rem; }
  h2, .wsite-content-title { font-size: 1.125rem; }
}
