/* Woon-Wijs static site styles */

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

:root {
  --color-primary: #799F3B;
  --color-primary-dark: #3b4d23;
  --color-accent: #7a9f40;
  --color-blue: #C0DAFA;
  --color-text: #272626;
  --color-bg: #ffffff;
  --color-dark: #121212;
  --font: 'Poppins', Arial, Helvetica, sans-serif;
  --container: 1200px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a { color: var(--color-primary-dark); }
a:hover { color: var(--color-primary); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 1rem;
  background: var(--color-primary);
  color: #fff;
}
.skip-link:focus { left: 0; }

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

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logos img { padding-bottom: 0.5rem; }

.brand {
  text-decoration: none;
  text-align: center;
  color: var(--color-text);
  flex: 1;
}

.brand .site-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin: 0;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: transform 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(350px, 90vw);
  height: 100vh;
  background: var(--color-bg);
  z-index: 200;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.mobile-nav.is-open { transform: translateX(0); }

.menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  color: var(--color-text);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

.primary-menu {
  list-style: none;
  margin: 0;
  padding: 4rem 0 2rem;
}

.primary-menu > li {
  border-bottom: 1px solid #eee;
  position: relative;
}

.primary-menu a {
  display: block;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text);
}

.primary-menu a:hover { color: var(--color-primary); }

.primary-menu .has-children { position: relative; }

.submenu-toggle {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2;
}

.submenu-toggle .caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text);
  transition: transform 0.2s;
}

.submenu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background: #f9f9f9;
}

.sub-menu.is-open { display: block; }

.sub-menu a {
  padding-left: 2.5rem;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Main content */
.site-main { min-height: 60vh; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrap { padding: 0; }

.page-content, .post-content {
  padding: 2rem 0 4rem;
}

/* Homepage */
.page-home .content-wrap { max-width: 100%; padding: 0; }

.home-hero {
  width: 100%;
  overflow: hidden;
}

.hotspots-container { width: 100%; }

.hotspots-image-container {
  position: relative;
  width: 100%;
}

.hotspots-image {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.home-content {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.introhpage {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.video-wrap {
  margin: 2rem auto;
  max-width: 900px;
}

.video-wrap video { width: 100%; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.3;
}

h2 {
  font-size: 25px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-dark);
}

.ondertitel {
  text-align: center;
  color: var(--color-accent) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }

.has-small-font-size { font-size: 0.875em; }
.has-medium-font-size { font-size: 1.125em; }
.has-large-font-size { font-size: 1.5em; }

/* Columns */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.wp-block-column { flex: 1; min-width: 0; }

@media (max-width: 781px) {
  .wp-block-columns { flex-direction: column; }
}

/* Images & galleries */
figure { margin: 1.5rem 0; }

.aligncenter { text-align: center; }
.aligncenter img { margin: 0 auto; }

.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.wp-block-gallery figure { margin: 0; }

/* Inspiration cards */
.wp-block-latest-posts__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.wp-block-latest-posts__list li {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem;
}

.wp-block-latest-posts__featured-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.wp-block-latest-posts__post-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin: 0.75rem 0 0.5rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.wp-block-latest-posts__post-date {
  font-size: 0.8rem;
  color: #888;
}

.wp-block-latest-posts__post-excerpt {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Text boxes */
.text-inspireren, .text-top-inspireren {
  background-color: var(--color-blue);
  border: 1px solid var(--color-blue);
  border-radius: 0 30px 0 30px;
  padding: 15px;
}

.text-inspireren { padding: 10px 15px 30px; margin-top: -55px; line-height: 17px; }

.paddingtop {
  background-color: #f2f2f2;
  font-size: 25px;
  padding: 1rem;
  text-align: center;
}

/* Buttons */
.wp-block-button__link, .wp-element-button {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
}

.wp-block-button__link:hover { background: var(--color-primary-dark); color: #fff; }

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Contact form placeholder */
.wpcf7-form input, .wpcf7-form textarea, .wpcf7-form select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #ddd;
  border-radius: 3px;
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.wpcf7-form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }

.wpcf7-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 13px 15px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #2f5aae;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.scroll-to-top.is-visible { opacity: 1; visibility: visible; }

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

/* Responsive image map - scale coords via JS or use responsive approach */
@media (max-width: 768px) {
  .home-content { max-width: 95%; }
  .header-logos { display: none; }
  .brand .site-title { font-size: 1.2rem; }
}
