/*
Theme Name: Nederlandsche Tafelronde Template voor Lokale Tafels
Theme URI: https://roundtable.nl/
Author: MediaMere
Description: Een herbruikbaar responsive WordPress-thema voor lokale Tafelrondes in de huisstijl van de Nederlandsche Tafelronde.
Version: 1.3.1
Text Domain: nederlandsche-tafelronde-template-lokale-tafels
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --rt-orange: #ef7d00;
  --rt-orange-deep: #d66f00;
  --rt-orange-soft: #fff3e5;
  --rt-red: #e73137;
  --rt-blue: #004280;
  --rt-yellow: #ffd139;
  --rt-heading: #333c4e;
  --rt-text: #737373;
  --rt-white: #ffffff;
  --rt-black: #000000;
  --rt-surface: #fffdfb;
  --rt-line: rgba(51, 60, 78, 0.14);
  --rt-shadow: 0 22px 54px rgba(51, 60, 78, 0.14);
  --rt-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: hidden;
}
body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: var(--rt-white);
  color: var(--rt-heading);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* Hard reset for WordPress/site wrappers.
   Some installs or starter content can add max-width: 700px to body or top-level wrappers. */
body,
body.wp-site-blocks,
.wp-site-blocks,
.site,
#page {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Layout consistency
   The front page is forced to the viewport width. This prevents WordPress
   page/template wrappers from showing the homepage in a narrow boxed column. */
.container { width: min(1140px, calc(100vw - 40px)); margin-inline: auto; }
.site-header,
.site-main,
.site-footer {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.ntr-homepage,
.rt12-homepage { width: 100vw; max-width: 100vw; overflow: hidden; background: var(--rt-white); }
.ntr-homepage .hero,
.ntr-homepage .section,
.rt12-homepage .hero,
.rt12-homepage .section { width: 100vw; max-width: 100vw; margin-inline: 0; }
.ntr-homepage .hero > .container,
.ntr-homepage .section > .container,
.rt12-homepage .hero > .container,
.rt12-homepage .section > .container { width: min(1140px, calc(100vw - 40px)); max-width: 1140px; }
.rt12-page { width: 100vw; max-width: 100vw; }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.entry-content > .alignwide { width: min(1140px, calc(100vw - 40px)); max-width: min(1140px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }

.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rt-line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-logo, .custom-logo { display: block; width: 230px; max-height: 70px; object-fit: contain; object-position: left center; }
.custom-logo-link { display: flex; align-items: center; }
.brand-divider { width: 1px; height: 42px; background: var(--rt-line); }
.local-brand { display: grid; line-height: 1.1; }
.local-brand strong { font-family: "Roboto Slab", sans-serif; font-size: 16px; color: var(--rt-heading); }
.local-brand span { margin-top: 5px; color: var(--rt-orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--rt-heading); font-size: 15px; font-weight: 800; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--rt-orange); }
.main-nav .menu-item:last-child > a, .nav-button { padding: 9px 18px; border: 2px solid var(--rt-orange); border-radius: 999px; color: var(--rt-orange); }
.main-nav .menu-item:last-child > a:hover, .nav-button:hover { background: var(--rt-orange); color: var(--rt-white); }

.main-nav .sub-menu { position: absolute; display: none; min-width: 190px; margin-top: 10px; padding: 10px; border: 1px solid var(--rt-line); border-radius: 14px; background: var(--rt-white); box-shadow: var(--rt-shadow); }
.main-nav .menu-item { position: relative; }
.main-nav .menu-item:hover > .sub-menu, .main-nav .menu-item:focus-within > .sub-menu { display: grid; gap: 4px; }
.main-nav .sub-menu a { display: block; padding: 8px 10px; }
.menu-setup-link { color: var(--rt-orange); font-size: 15px; font-weight: 800; text-decoration: none; }
.menu-setup-link:hover { text-decoration: underline; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--rt-heading); }

.hero { position: relative; overflow: hidden; background: var(--rt-orange); color: var(--rt-white); padding: 96px 0 104px; }
.hero-pattern { position: absolute; top: -260px; right: -160px; width: 760px; height: 760px; border: 44px solid rgba(255,255,255,.13); border-radius: 50%; opacity: .85; }
.hero-pattern::before, .hero-pattern::after { position: absolute; inset: 84px; border: 3px solid rgba(255,255,255,.14); border-radius: 50%; content: ""; }
.hero-pattern::after { inset: 190px; border-width: 28px; }
.hero-grid, .split-grid, .projects-grid, .contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.hero-copy, .hero-card { position: relative; z-index: 2; }
.eyebrow, .mini-label { margin: 0 0 14px; color: var(--rt-orange); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.82); }
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-family: "Roboto Slab", sans-serif; line-height: 1.13; }
h1 { margin-bottom: 24px; font-size: clamp(46px, 6vw, 78px); letter-spacing: -.04em; }
.hero h1,
.hero .hero-copy h1 {
  color: var(--rt-white) !important;
  text-shadow: 0 2px 12px rgba(51, 60, 78, 0.18);
}

h2 { margin-bottom: 18px; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: 24px; letter-spacing: -.02em; }
p { margin-top: 0; }
.hero-text { max-width: 690px; color: rgba(255,255,255,.9); font-size: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(51,60,78,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(51,60,78,.24); }
.button:hover::after,
.button:focus-visible::after { transform: translateX(3px); }
.button:focus-visible { outline: 3px solid rgba(255,255,255,.65); outline-offset: 3px; }
.button-light { background: var(--rt-white); color: var(--rt-orange); }
.button-light::after { background: var(--rt-orange-soft); color: var(--rt-orange); }
.button-light:hover,
.button-light:focus-visible { background: var(--rt-heading); color: var(--rt-white); }
.button-light:hover::after,
.button-light:focus-visible::after { background: rgba(255,255,255,.16); color: var(--rt-white); }
.button-outline-light {
  border: 2px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  color: var(--rt-white);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.button-outline-light::after { background: rgba(255,255,255,.18); color: var(--rt-white); }
.button-outline-light:hover,
.button-outline-light:focus-visible { border-color: var(--rt-white); background: var(--rt-white); color: var(--rt-orange); }
.button-outline-light:hover::after,
.button-outline-light:focus-visible::after { background: var(--rt-orange-soft); color: var(--rt-orange); }
.button-dark { background: var(--rt-heading); color: var(--rt-white); }
.button-dark:hover { background: var(--rt-black); }
.hero-card { display: grid; min-height: 430px; align-content: space-between; padding: 34px; border: 1px solid rgba(255,255,255,.38); border-radius: 28px; background: rgba(255,255,255,.16); box-shadow: 0 24px 60px rgba(119,56,0,.18); backdrop-filter: blur(8px); }
.hero-rondel { width: 190px; height: 190px; filter: drop-shadow(0 16px 20px rgba(112,54,0,.2)); }
.hero-card .mini-label { color: rgba(255,255,255,.8); }
.hero-card h2 { margin-bottom: 8px; color: var(--rt-white); }
.hero-card p:last-child { max-width: 400px; margin-bottom: 0; color: rgba(255,255,255,.83); }

.section { padding: 108px 0; }
.intro, .projects, .content-area { background: var(--rt-white); }
.prose, .entry-content { color: var(--rt-text); font-size: 19px; }
.prose p:last-child { margin-bottom: 0; }
.values-section, .contact { background: var(--rt-orange-soft); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--rt-text); font-size: 19px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { position: relative; overflow: hidden; min-height: 290px; padding: 28px; border: 1px solid rgba(239,125,0,.22); border-radius: var(--rt-radius); background: var(--rt-white); box-shadow: 0 14px 28px rgba(239,125,0,.06); }
.value-card::after { position: absolute; right: -40px; bottom: -40px; width: 116px; height: 116px; border: 20px solid rgba(239,125,0,.08); border-radius: 50%; content: ""; }
.card-number { display: inline-flex; margin-bottom: 70px; color: var(--rt-orange); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.value-card p { position: relative; z-index: 1; margin-bottom: 0; color: var(--rt-text); }
.projects-grid { grid-template-columns: 1fr .9fr; }
.projects p, .contact p { color: var(--rt-text); font-size: 19px; }
.text-link { color: var(--rt-blue); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.project-panel { position: relative; overflow: hidden; padding: 36px; border-radius: 28px; background: var(--rt-orange); color: var(--rt-white); box-shadow: var(--rt-shadow); }
.project-panel::after { position: absolute; right: -52px; bottom: -52px; width: 190px; height: 190px; border: 30px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.project-panel .mini-label, .project-panel p { position: relative; z-index: 1; color: rgba(255,255,255,.85); }
.project-panel h3, .project-panel .button { position: relative; z-index: 1; }
.contact-grid { grid-template-columns: 1fr .8fr; }
.contact p { max-width: 660px; }
.contact-card { padding: 34px; border: 1px solid rgba(239,125,0,.22); border-radius: var(--rt-radius); background: var(--rt-white); }

.contact-form-card .gform_wrapper,
.contact-form-card .gform_heading,
.contact-form-card .gform_body,
.contact-form-card .gform_footer { margin: 0; }
.contact-form-card .gform_title { margin: 0 0 14px; color: var(--rt-heading); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.contact-form-card .gform_description { color: var(--rt-text); }
.contact-form-card .gfield_label { color: var(--rt-heading); font-weight: 800; }
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card textarea,
.contact-form-card select { width: 100%; border: 1px solid rgba(51,60,78,.24); border-radius: 14px; padding: 13px 15px; color: var(--rt-heading); background: var(--rt-white); font: inherit; }
.contact-form-card input:focus,
.contact-form-card textarea:focus,
.contact-form-card select:focus { outline: 3px solid rgba(239,125,0,.22); border-color: var(--rt-orange); }
.contact-form-card input[type="submit"],
.contact-form-card .gform_button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 2px solid var(--rt-orange); border-radius: 999px; background: var(--rt-orange); color: var(--rt-white); font-weight: 800; cursor: pointer; }
.contact-form-card input[type="submit"]:hover,
.contact-form-card .gform_button:hover { background: var(--rt-orange-deep); border-color: var(--rt-orange-deep); }
.social-links-form { margin-top: 26px; }

.email-link { display: inline-block; margin-bottom: 22px; color: var(--rt-blue); font-family: "Roboto Slab", sans-serif; font-size: clamp(23px, 3vw, 32px); font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.email-link:hover { text-decoration: underline; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 18px; border-top: 1px solid var(--rt-line); padding-top: 18px; }
.social-links a { color: var(--rt-heading); font-size: 14px; font-weight: 800; text-decoration: none; }
.social-links a:hover { color: var(--rt-orange); }
.site-footer { display: block; clear: both; background: var(--rt-heading); color: var(--rt-white); }
.footer-inner { min-height: 112px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 54px; height: 54px; }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: "Roboto Slab", sans-serif; font-size: 15px; }
.footer-brand span { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }

.content-area { padding: 80px 0; min-height: 55vh; }
.content-narrow { max-width: 820px; }
.page-header { margin-bottom: 30px; }
.page-title { color: var(--rt-heading); font-size: clamp(36px,5vw,60px); }
.entry-content a { color: var(--rt-blue); }
.entry-content img { border-radius: 14px; }
.post-card { padding: 24px 0; border-bottom: 1px solid var(--rt-line); }
.post-card h2 { font-size: 30px; }
.post-card h2 a { color: var(--rt-heading); text-decoration: none; }
.post-card h2 a:hover { color: var(--rt-orange); }
.post-meta { color: var(--rt-text); font-size: 14px; }

@media (max-width: 980px) {
  .brand-logo, .custom-logo { width: 200px; }
  .brand-divider, .local-brand { display: none; }
}
@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; }
  .brand-logo, .custom-logo { width: 188px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; right: 20px; left: 20px; display: none; padding: 18px; border: 1px solid var(--rt-line); border-radius: 18px; background: var(--rt-white); box-shadow: var(--rt-shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav ul { display: grid; gap: 4px; }
  .main-nav a { display: block; padding: 8px; }
  .hero { padding: 68px 0 76px; }
  .hero-pattern { top: auto; right: -220px; bottom: -300px; width: 600px; height: 600px; }
  .hero-grid, .split-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-card { min-height: 330px; }
  .hero-rondel { width: 142px; height: 142px; }
  .section { padding: 76px 0; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: auto; }
  .card-number { margin-bottom: 42px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
}

.contact-form-placeholder {
  padding: 18px 20px;
  border: 1px dashed rgba(0, 66, 128, 0.28);
  border-radius: 16px;
  background: rgba(255, 243, 229, 0.8);
  color: var(--rt-heading);
  font-weight: 700;
}
