/*
Theme Name: CAS Pierik
Theme URI: https://caspierik.nl/
Author: CAS Pierik
Description: Responsive WordPress theme voor Stichting Centraal Antenne Systeem Pierik.
Version: 1.1.1
Text Domain: cas-pierik
*/

:root {
  --navy-950: #162a3a;
  --navy-900: #1e3d57;
  --navy-800: #2a5268;
  --blue-600: #3d7184;
  --green-500: #667a3f;
  --green-100: #eef1e4;
  --sand-100: #f6f1e7;
  --white: #ffffff;
  --ink: #253238;
  --muted: #68747a;
  --border: #d8ddd7;
  --shadow: 0 18px 50px rgba(22, 42, 58, .10);
  --radius: 18px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
svg { display: block; width: 100%; height: 100%; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy-950);
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(216,221,215,.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-950);
  flex: 0 0 auto;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 13px;
  background: var(--green-100);
  color: var(--navy-800);
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}

.brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: .72rem;
}

.custom-logo-link img {
  max-height: 128px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 620;
  padding: 10px 11px;
  border-radius: 9px;
  color: #4b5960;
  transition: .2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--navy-900);
  background: #f1f3f0;
}

.main-nav .menu > li:last-child > a {
  margin-left: 6px;
  padding-inline: 16px;
  color: var(--white);
  background: var(--navy-900);
}
.main-nav .menu > li:last-child > a:hover {
  color: var(--white);
  background: var(--navy-800);
}

.nav-toggle,
.nav-button { display: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(102,122,63,.30), transparent 26%),
    radial-gradient(circle at 15% 95%, rgba(61,113,132,.24), transparent 34%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to left, #000, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 590px;
  padding-block: 84px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #d8e4b2;
}
.eyebrow.dark { color: var(--blue-600); }

.hero h1,
.section h2,
.contact-strip h2 {
  margin: 0;
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.hero h1 span { color: #c9d69a; }

.hero-copy > p {
  max-width: 660px;
  margin: 25px 0 0;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: #dbe5e8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 750;
  font-size: .92rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: #c9d69a; color: var(--navy-950); }
.button-primary:hover { background: #dce5b5; }
.button-ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.07); }
.button-ghost:hover { background: rgba(255,255,255,.13); }
.button-dark { background: var(--navy-900); color: var(--white); }
.button-dark:hover { background: var(--navy-800); }
.button-outline { border-color: #c7d1d2; color: var(--navy-900); background: var(--white); }
.button-light { background: var(--white); color: var(--navy-950); }

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 31px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 28px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(13px);
}

.signal {
  position: absolute;
  right: 27px;
  top: 25px;
  width: 80px;
  height: 80px;
}
.signal span {
  position: absolute;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(201,214,154,.6);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0 100% 0 0;
  transform: rotate(-45deg);
  transform-origin: bottom right;
}
.signal span:nth-child(1) { width: 28px; height: 28px; }
.signal span:nth-child(2) { width: 49px; height: 49px; }
.signal span:nth-child(3) { width: 70px; height: 70px; }
.signal i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d69a;
}

.hero-stat {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.hero-stat:nth-last-of-type(1) { border-bottom: none; padding-bottom: 0; }
.hero-stat strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero-stat span {
  display: block;
  margin-top: 6px;
  color: #d0dde0;
  font-size: .92rem;
}
.hero-panel > small { color: #aabcc2; font-size: .72rem; }

/* Quick links */
.quick-links {
  position: relative;
  z-index: 4;
  margin-top: -36px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.quick-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: #b4c6c8; }
.quick-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--green-100);
  color: var(--navy-800);
  font-weight: 850;
}
.quick-card strong { display: block; color: var(--navy-950); font-size: .94rem; }
.quick-card small { display: block; color: var(--muted); font-size: .78rem; }
.quick-card b { color: var(--blue-600); font-size: 1.25rem; }

/* Sections */
.section { padding-block: 92px; }
.section-soft { background: var(--sand-100); }
.section h2,
.contact-strip h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--navy-950);
}
.two-column {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(48px, 9vw, 120px);
}
.prose { color: #4a585e; font-size: 1.04rem; }
.prose p:first-child { margin-top: 0; }
.text-link {
  display: inline-flex;
  gap: 9px;
  margin-top: 8px;
  color: var(--blue-600);
  font-weight: 750;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.resident-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border: 1px solid #daddd8;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(22,42,58,.07);
}
.resident-card.has-resident-map {
  grid-template-columns: 1.08fr .92fr;
  grid-template-areas:
    "copy map"
    "copy coverage";
}
.resident-copy { padding: clamp(32px, 5vw, 60px); }
.has-resident-map .resident-copy {
  grid-area: copy;
  align-self: center;
}
.resident-copy p { max-width: 650px; color: var(--muted); font-size: 1.04rem; }
.resident-map {
  grid-area: map;margin: 0;
  overflow: hidden;
  background: #e5e7df;
}
.resident-map img {
  display: block;
  width: 100%;
  height: auto;
}
.coverage {
  padding: clamp(32px, 5vw, 55px);
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(102,122,63,.42), transparent 33%),
    var(--navy-900);
}
.has-resident-map .coverage { grid-area: coverage; }
.coverage h3 { margin: 0 0 19px; font-size: 1.3rem; }
.coverage ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 20px;
  margin: 0 0 21px;
  padding: 0;
  list-style: none;
}
.coverage li::before { content: "•"; margin-right: 8px; color: #c9d69a; }
.coverage small { color: #c6d4d5; }

.section-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-heading.compact { margin-bottom: 38px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  min-height: 250px;
  padding: 29px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fcfbf8;
}
.feature-number {
  display: inline-flex;
  margin-bottom: 37px;
  color: var(--green-500);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.feature h3 { margin: 0 0 10px; color: var(--navy-950); font-size: 1.22rem; }
.feature p { margin: 0; color: var(--muted); }

.notice {
  max-width: 860px;
  margin: 28px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 21px;
  border: 1px solid #dce3c8;
  border-radius: 13px;
  background: #f5f7ed;
}
.notice > span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  font-weight: 850;
}
.notice p { margin: 2px 0 0; color: #4c5c3e; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.person {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #deddd7;
  border-radius: 16px;
  background: var(--white);
}
.avatar {
  width: 50px;
  height: 50px;
  margin-bottom: 23px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--navy-800);
  font-weight: 850;
}
.person > span {
  color: var(--blue-600);
  font-size: .73rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.person h3 {
  margin: 5px 0 8px;
  color: var(--navy-950);
  font-size: 1.04rem;
}
.person a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .78rem;
  text-decoration: none;
}
.person a:hover { color: var(--blue-600); text-decoration: underline; }

.contact-strip {
  padding-block: 64px;
  color: var(--white);
  background: var(--navy-900);
}
.contact-strip h2 { color: var(--white); font-size: clamp(2rem, 3.8vw, 3rem); }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* Content pages */
.page-hero {
  padding: 72px 0 58px;
  background: var(--sand-100);
}
.page-hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--navy-950);
}
.page-content {
  padding: 70px 0 90px;
}
.entry-content {
  max-width: 850px;
  margin-inline: auto;
  color: #3f4e54;
  font-size: 1.04rem;
}
.entry-content h2,
.entry-content h3 {
  color: var(--navy-950);
  line-height: 1.2;
  margin-top: 2em;
}
.entry-content a { color: var(--blue-600); }
.entry-content img { border-radius: 14px; }

/* Footer */
.site-footer {
  padding: 60px 0 24px;
  color: #5e6d72;
  background: #f5f5f1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 45px;
}
.brand-footer { margin-bottom: 16px; }
.footer-grid p { max-width: 400px; font-size: .9rem; }
.footer-grid h3 { margin: 0 0 13px; color: var(--navy-950); font-size: .9rem; }
.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-grid a,
.footer-grid span { color: #5e6d72; font-size: .86rem; text-decoration: none; }
.footer-grid a:hover { color: var(--blue-600); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
}

/* Tablet */
@media (max-width: 1000px) {
  .main-nav a { padding-inline: 7px; font-size: .83rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 38px; }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 820px) {
  .container { width: min(calc(100% - 30px), var(--container)); }

  .header-inner { min-height: 70px; }
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .nav-button {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-button span { width: 19px; height: 2px; border-radius: 2px; background: var(--navy-950); }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 15px;
    right: 15px;
    display: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav .menu {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a { display: block; padding: 11px 12px; font-size: .94rem; }
  .main-nav .menu > li:last-child > a { margin: 4px 0 0; text-align: center; }
  .nav-toggle:checked ~ .main-nav { display: block; }

  .hero-grid {
    min-height: auto;
    padding: 68px 0 78px;
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
    padding: 22px;
  }
  .hero-stat { padding: 0 14px 0 0; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.14); }
  .hero-stat:nth-last-of-type(1) { border-right: 0; }
  .hero-stat strong { font-size: 1.55rem; }
  .signal { display: none; }
  .hero-panel > small { grid-column: 1 / -1; }

  .quick-links { margin-top: -28px; }
  .quick-grid { grid-template-columns: 1fr; }

  .section { padding-block: 70px; }
  .two-column,
  .resident-card { grid-template-columns: 1fr; gap: 28px; }
  .resident-card.has-resident-map {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "map"
      "coverage";
    gap: 0;
  }
  .two-column { gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .feature-number { margin-bottom: 20px; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .hero-grid { padding-top: 55px; }
  .hero-actions,
  .contact-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button,
  .contact-actions .button { width: 100%; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-stat { padding: 0 0 15px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .coverage ul { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

.anchor-target {
    scroll-margin-top: 100px;
}