/*
Theme Name: Festina Lente 2026
Theme URI: https://www.tpcvenlo.nl/
Author: Festina Lente
Description: Eenvoudige toernooiwebsite voor Festina Lente 2026 bij TPC Venlo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: festina-lente
*/

:root {
  --fl-green: #51b354;
  --fl-lime: #85cf0d;
  --fl-ink: #414345;
  --fl-muted: #66706a;
  --fl-soft: #f5f8f3;
  --fl-line: #dbe6d8;
  --fl-white: #ffffff;
  --fl-shadow: 0 10px 28px rgba(65, 67, 69, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fl-ink);
  background: var(--fl-white);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--fl-green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #338f37;
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--fl-white);
  background: var(--fl-ink);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--fl-line);
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  color: var(--fl-ink);
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  text-decoration: none;
}

.site-brand img {
  width: 52px;
  height: 55px;
  object-fit: contain;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

.site-brand small {
  color: var(--fl-muted);
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--fl-line);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--fl-ink);
  background: var(--fl-white);
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--fl-ink);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--fl-green);
  background: var(--fl-soft);
}

.hero {
  position: relative;
  min-height: 460px;
  color: var(--fl-white);
  background-color: var(--fl-ink);
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(35, 38, 36, 0.48);
}

.hero-inner {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 460px;
  padding: 66px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--fl-lime);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
}

.hero p {
  max-width: 690px;
  margin: 18px 0 0;
  font-size: 1.12rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--fl-green);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--fl-white);
  background: var(--fl-green);
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: var(--fl-white);
  background: #338f37;
  border-color: #338f37;
  text-decoration: none;
}

.button.secondary {
  color: var(--fl-white);
  background: transparent;
  border-color: var(--fl-white);
}

.button.secondary:hover,
.button.secondary:focus {
  color: var(--fl-ink);
  background: var(--fl-white);
  border-color: var(--fl-white);
}

.section {
  padding: 58px 0;
}

.section.soft {
  background: var(--fl-soft);
}

.section h2,
.entry-title,
.archive-title {
  margin: 0 0 18px;
  color: var(--fl-ink);
  font-size: 2rem;
  line-height: 1.2;
}

.section-intro {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--fl-muted);
}

.info-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.post-card {
  border: 1px solid var(--fl-line);
  border-radius: 8px;
  padding: 20px;
  background: var(--fl-white);
}

.info-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--fl-green);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.info-card p,
.post-card p {
  margin: 0;
  color: var(--fl-muted);
}

.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.post-card time,
.entry-meta {
  display: block;
  margin-bottom: 10px;
  color: var(--fl-muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: center;
}

.panel {
  border-left: 6px solid var(--fl-green);
  padding: 22px;
  background: var(--fl-white);
  box-shadow: var(--fl-shadow);
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.content-page {
  padding: 58px 0;
}

.entry-content {
  max-width: 820px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
  line-height: 1.25;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: 1.1em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--fl-line);
  padding: 10px 12px;
  text-align: left;
}

.entry-content th {
  background: var(--fl-soft);
}

.site-footer {
  color: var(--fl-white);
  background: var(--fl-ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 28px;
  align-items: center;
  padding: 38px 0;
}

.site-footer img {
  width: 116px;
  height: auto;
}

.site-footer h2,
.site-footer p {
  margin: 0;
}

.site-footer h2 {
  color: var(--fl-white);
  font-size: 1.35rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.footer-links a {
  color: var(--fl-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.redirect-box {
  border: 1px solid var(--fl-line);
  border-left: 6px solid var(--fl-lime);
  border-radius: 8px;
  max-width: 760px;
  padding: 22px;
  background: var(--fl-soft);
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav a {
    border: 1px solid var(--fl-line);
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .info-grid,
  .post-grid,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .site-brand {
    min-width: 0;
  }

  .hero,
  .hero-inner {
    min-height: 410px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section,
  .content-page {
    padding: 42px 0;
  }
}
