/* STERK Projectmanagement — static rebuild of the WordPress TwentyTwenty site */

/* Self-hosted Inter (variable font, latin subset) — no external dependencies */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --accent: #214292;
  --accent-hover: #3572d4;
  --footer-icon-bg: #253786;
  --page-bg: #f4f4f4;
  --text: #000000;
  --muted: #6d6d6d;
  --border: #dbdbdb;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Hoefler Text", Garamond, "Times New Roman", serif;
}

* { box-sizing: border-box; }

/* TwentyTwenty scale: 1rem = 10px */
html { font-size: 62.5%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.8rem;
  color: var(--text);
  background-color: var(--page-bg);
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

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

/* Headings — Inter, bold, tight tracking (TwentyTwenty) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.0415625em;
  line-height: 1.25;
  margin: 3.5rem 0 2rem;
}
.has-text-align-center { text-align: center; }

/* Width helpers (TwentyTwenty section-inner) */
.container {            /* wide column ≈ 120rem */
  width: calc(100% - 4rem);
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
}
.thin {                 /* reading column ≈ 58rem */
  max-width: 58rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 2rem;
  max-width: 120rem;
  margin: 0 auto;
}

.icon-links,
.primary-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.icon-links { gap: 2rem; }
.primary-nav { gap: 2.4rem; }

.primary-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--accent);
}

.icon-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.icon-links svg { width: 1.8rem; height: 1.8rem; fill: currentColor; }

/* Header social icons are icon-only (label hidden but kept for a11y) */
.site-header .icon-links a { font-size: 0; gap: 0; }
.site-header .icon-links svg { width: 2.1rem; height: 2.1rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Main / content ---------- */
main { padding: 2rem 0 4rem; }

/* Featured logo banner at top of page body */
.featured-banner {
  text-align: center;
  padding: 2rem 2rem 1rem;
}
.featured-banner img {
  display: inline-block;
  width: 100%;
  max-width: 67.3rem;
  height: auto;
  margin: 0 auto;
}

/* Page body text — SERIF (TwentyTwenty .entry-content) */
.entry-content {
  font-family: var(--serif);
  letter-spacing: normal;
}
.entry-content p,
.entry-content li { font-size: 1.8rem; line-height: 1.55; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 { font-family: var(--sans); margin: 3.5rem auto 2rem; }

/* Hero (h4, centered) sits in the reading column */
.hero { margin-top: 1rem; }
.hero h4 { font-size: 2.4rem; margin-top: 2rem; }

/* ---------- Service blocks (2-col) ---------- */
.services {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
}
.services-col { flex: 1; min-width: 0; }
.service { margin-bottom: 1.5rem; }
.service h4 { font-size: 2.4rem; margin: 0 0 1.5rem; }
.service figure { margin: 0 0 1.5rem; }
.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service p { margin: 0; }

/* ---------- CTA section ---------- */
.cta { margin-top: 4rem; }
.cta h4 { font-size: 2.4rem; }
.cta ul { margin: 0 0 2rem; padding-left: 2rem; }
.cta li { margin-bottom: 0.5rem; }

.domains {
  font-family: var(--sans) !important;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.6;
  color: var(--accent);
}

/* ---------- Contact page ---------- */
.page-title { font-size: 3.6rem; text-align: center; margin: 2rem 0 1rem; }
.contact-details p { margin: 0 0 2rem; }
.contact-details strong { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: #fff;
  border-top: 1px solid var(--border);
  padding: 4rem 0;
  color: var(--text);
  font-size: 1.6rem;
}
.footer-grid p,
.footer-grid address { font-family: var(--serif); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 120rem;
}
.site-footer h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.2rem;
}
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-logo { width: 100%; max-width: 34rem; height: auto; margin: 0 0 1.5rem; }

/* Blue circular social-icon row above footer columns */
.footer-social {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--footer-icon-bg);
  color: #fff;
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 1.8rem; height: 1.8rem; fill: #fff; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 1.4rem;
  color: var(--muted);
}

/* ---------- Desktop heading scale-up (TwentyTwenty ≥700px) ---------- */
@media (min-width: 700px) {
  .hero h4,
  .service h4,
  .cta h4 { font-size: 3.2rem; }
  .domains { font-size: 2.4rem; }
  .page-title { font-size: 6.4rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 699px) {
  .services { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }

  .menu-toggle { display: inline-block; order: 3; }

  .header-inner { flex-wrap: wrap; }

  .primary-nav-wrap {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }
  .primary-nav-wrap.open { display: block; }

  .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 1.4rem 0 0.5rem;
  }
}
