/*
Theme Name: Belsem
Description: Classic theme for Stichting Belsem. Rebuild of the 2014 site layout; reads logo, social icons, footer text, background and slider from the existing database content.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: belsem
*/

:root { --accent: #c10b62; --slate: #3a454d; --slate-light: #4e5c64; --text: #727a7e; --line: #e6e6e6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 32px 16px; background: #f5f5f5 center top / cover no-repeat fixed; color: var(--text); font: 14px/1.6 Oxygen, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--slate-light); font-weight: 300; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 32px; } h2 { font-size: 22px; } h5 { font-size: 18px; }
#page { max-width: 1000px; margin: 0 auto; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .25); }
#header { padding: 30px 30px 0; }
.header-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 87px; }
.logo { display: block; font-size: 28px; color: var(--slate); }
.social { display: flex; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.social a { display: block; background: #d9d9d9; transition: background .2s; }
.social a:hover, .social a:focus { background: #214798; }
.social img { display: block; }
#nav { background: var(--slate); border-bottom: 2px solid #cfd3d5; }
.navigation { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.navigation li { position: relative; }
.navigation a { display: block; padding: 18px 36px; color: #fff; font-weight: 700; }
.navigation a:hover, .navigation a:focus, .navigation .current-menu-item > a, .navigation .current_page_item > a, .navigation .current-menu-ancestor > a { background: var(--accent); text-decoration: none; }
.navigation ul { display: none; position: absolute; left: 0; top: 100%; z-index: 5; min-width: 200px; list-style: none; margin: 0; padding: 0; background: var(--slate); }
.navigation li:hover > ul, .navigation li:focus-within > ul { display: block; }
.nav-toggle { display: none; width: 100%; padding: 14px; border: 0; background: var(--slate); color: #fff; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
#middle { display: block; min-height: 200px; }
.headline { padding: 46px 30px 20px; }
.headline h1 { margin: 0; }
.breadcrumbs { padding: 14px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #222; }
.entry { padding: 34px 30px 60px; }
.entry::after, .entry-content::after { content: ""; display: table; clear: both; }
.home .entry { padding-top: 64px; }
.entry-content strong { color: var(--slate-light); }
.one_first { clear: both; }
.two_third { float: left; width: 64%; margin-right: 4%; }
.one_third { float: left; width: 32%; }
.one_half { float: left; width: 48%; margin-right: 4%; }
.one_half + .one_half { margin-right: 0; }
.belsem-map { display: block; width: 100%; height: 300px; border: 0; }
.belsem-slider { position: relative; overflow: hidden; aspect-ratio: 3 / 1; border: 5px solid #fff; border-radius: 4px; box-shadow: 0 1px 6px rgba(0, 0, 0, .45); background: #eee; }
.belsem-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.belsem-slide.is-active { opacity: 1; }
.belsem-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.belsem-slide-caption { position: absolute; right: 4%; bottom: 8%; color: #fff; font-size: clamp(18px, 3.4vw, 34px); font-weight: 300; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.belsem-slider button { position: absolute; top: 50%; z-index: 2; width: 30px; height: 60px; margin-top: -30px; border: 0; background: rgba(255, 255, 255, .85); color: var(--slate); font-size: 24px; line-height: 1; cursor: pointer; }
.belsem-slider-prev { left: 0; border-radius: 0 30px 30px 0; }
.belsem-slider-next { right: 0; border-radius: 30px 0 0 30px; }
.project-filter { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; list-style: none; margin: -14px 0 30px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.project-filter a { display: block; padding: 8px 16px; background: #f5f5f5; color: #222; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.project-filter a.is-current, .project-filter a:hover { background: var(--accent); color: #fff; text-decoration: none; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.project-tile { position: relative; background: var(--accent); color: #fff; }
.project-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-tile a { color: #fff; }
.project-tile-title { display: block; padding: 10px 20px 0; font-size: 16px; line-height: 1.2; }
.project-tile-terms { display: block; padding: 2px 20px 0; font-size: 12px; font-weight: 700; }
.project-tile time { display: block; padding: 2px 20px 10px; font-size: 11px; opacity: .8; }
.project-image { margin: 0 0 24px; }
.project-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.project-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.project-details ul { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.project-details li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.project-details li span { display: inline-block; min-width: 110px; color: #222; }
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; }
.archive-list article { padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.archive-list h2 { margin-bottom: .3em; }
.more { font-weight: 700; }
.error-404 { text-align: center; }
.error-404 h1 { font-size: 120px; color: var(--accent); margin: 0; }
#bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 36px 30px 60px; background: var(--slate); color: #fff; }
#bottom h1, #bottom h2, #bottom h5, #bottom a { color: #fff; }
#bottom .widgettitle { font-size: 18px; margin-bottom: 1.6em; }
#bottom iframe { display: block; width: 100%; max-width: 350px; border: 0; }
#bottom .widget { min-width: 0; font-size: 13px; }
input[type=text], input[type=email], input[type=tel], input[type=search], textarea { width: 100%; max-width: 100%; padding: 9px 10px; border: 1px solid #dcdcdc; background: #fafafa; color: #222; font: inherit; }
#bottom input[type=text], #bottom input[type=email], #bottom input[type=tel], #bottom textarea { border-color: var(--slate); background: var(--slate-light); color: #fff; }
input[type=submit], button[type=submit] { padding: 10px 20px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.wpcf7 form p { margin: 0 0 6px; }
.wpcf7-not-valid-tip { color: #ffb3b3; font-size: 12px; }
.entry .wpcf7-not-valid-tip { color: #c00; }
.wpcf7-response-output { margin: 12px 0 0; padding: 8px 12px; border: 1px solid currentColor; }
.wpcf7-response-output:empty { display: none; }
.belsem-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-response, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
#footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 30px; background: var(--slate); border-top: 1px solid var(--slate-light); color: #fff; font-size: 13px; }
#footer a { color: #cfd3d5; }
@media (max-width: 800px) {
  body { padding: 0; }
  .nav-toggle { display: block; }
  .navigation { display: none; flex-direction: column; }
  .navigation.is-open { display: flex; }
  .navigation ul { position: static; display: block; padding-left: 20px; }
  .two_third, .one_third, .one_half { float: none; width: 100%; margin-right: 0; }
  .project-grid, .project-gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  #bottom { grid-template-columns: 1fr; }
  .belsem-slider { aspect-ratio: 2 / 1; }
}
