/*
Theme Name:   VormEnZo
Theme URI:    https://vormenzo.nl
Description:  Clean, lightweight WordPress theme for VormEnZo.
Author:       Martin Broers
Author URI:   https://vormenzo.nl
Version:      2.0.0
Text Domain:  vormenzo
*/

/* --- Local Theme Fonts --- */
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  src: local('Fjalla One'), local('FjallaOne-Regular'), url(https://fonts.gstatic.com/s/fjallaone/v6/Yq6R-LCAWCX3-6Ky7FAFrOF6kg.woff2) format('woff2');
  font-display: swap;
}

/* Local Montserrat WOFF2 Font Definitions matching live site */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('./fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('./fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('./fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('./fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url('./fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --huisstyle: #b2b4b6;
  --magenta: #e6007e;
  --darkgray: #676366;
  --lightgray: #939598;
  --global-width: 90%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--darkgray);
  background-color: var(--huisstyle);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fjalla One', sans-serif;
  color: #616161;
  text-transform: uppercase;
  font-weight: 400;
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrapper {
  width: 100%;
}

.centered.global-width {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

/* --- Layer QuickInfo (Header Contact & Logo) --- */
.layer.quickinfo {
  background-color: white;
  margin: auto;
  padding-bottom: 25px;
  position: relative;
}

.layer.quickinfo .centered.global-padding {
  padding: 25px 0 10px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-holder {
  text-align: center;
  width: 100%;
  padding-bottom: 15px;
}

.logo-holder a {
  display: block;
  width: 100%;
}

.logo-holder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  display: block;
}

/* --- Layer Menu (Sticky Header with Social Media horizontally aligned) --- */
.layer.menu {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: white;
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.layer.menu .menu-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.layer.menu ul.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
}

.layer.menu ul.nav-menu li {
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  line-height: 28px;
}

.layer.menu ul.nav-menu li:first-child {
  padding-left: 0;
}

.layer.menu ul.nav-menu li:not(:first-child) {
  border-left: 4px solid #939598;
}

.layer.menu ul.nav-menu li a {
  font-family: 'Fjalla One', sans-serif;
  font-size: 36px;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--huisstyle);
  display: inline-block;
  transition: color 0.2s ease;
}

.layer.menu ul.nav-menu li a:hover,
.layer.menu ul.nav-menu li.current-menu-item a {
  color: var(--darkgray);
}

/* Right-aligned Social Media Icons horizontally aligned on same row */
.layer.menu .social-media {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

.layer.menu .social-media .buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.layer.menu .social-media .buttons .img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.layer.menu .social-media .buttons .img:hover {
  transform: scale(1.05);
}

.layer.menu .social-media .buttons .img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.layer.menu .social-media .telephone {
  position: relative;
  cursor: pointer;
}

.layer.menu .social-media .telephone.active .popup {
  display: block;
}

.layer.menu .social-media .telephone .popup {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  box-shadow: -4px 6px 12px rgba(0,0,0,0.25);
  border-radius: 6px;
  width: 260px;
  background-color: var(--magenta);
  color: white;
  z-index: 100;
  padding: 16px;
  font-size: 14px;
}

.layer.menu .social-media .telephone .popup .square {
  width: 16px;
  height: 16px;
  background-color: var(--magenta);
  position: absolute;
  top: -8px;
  right: 18px;
  transform: rotate(45deg);
}

/* --- Projects Portfolio Grid Layout --- */
.layer.projects {
  width: 100%;
  background-color: white;
  padding: 10px 0 30px 0;
  margin: 0 auto;
}

.layer.projects .centered.global-width {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background-color: white;
}

.portfolio-grid .grid-item {
  position: relative;
  overflow: hidden;
  background-color: white;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-grid .grid-item:hover {
  opacity: 0.92;
}

.portfolio-grid .grid-item.span-3 {
  grid-column: span 3;
}

.portfolio-grid .grid-item.span-2 {
  grid-column: span 2;
}

.portfolio-grid .grid-item.span-6 {
  grid-column: span 6;
}

.portfolio-grid .grid-item .featured-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Text title bar overlay - Exact 60% width matching original design */
.portfolio-grid .grid-item .article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  background-color: white;
  padding: 8px 14px 6px 10px;
  z-index: 2;
}

.portfolio-grid .grid-item .article-content h2.title {
  font-family: 'Fjalla One', sans-serif;
  font-size: 18px;
  margin: 0;
  color: var(--darkgray);
  text-transform: uppercase;
}

/* Pagination Styling */
.layer.projects .navigation.pagination {
  background-color: white;
  padding: 25px 0 10px 0;
  text-align: center;
}

.layer.projects .navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.layer.projects .navigation.pagination .page-numbers {
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: var(--darkgray);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.layer.projects .navigation.pagination .page-numbers:hover,
.layer.projects .navigation.pagination .page-numbers.current {
  background-color: var(--magenta);
  color: white;
}

/* --- Main Content & Single Layout --- */
.layer.content {
  width: 100%;
  background-color: white;
  padding: 30px 0;
  margin: 0 auto;
}

.layer.content .centered.global-width {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

/* --- Single Post Title & Subtitle Tags --- */
.project-header h1 {
  font-family: 'Fjalla One', sans-serif;
  font-size: 38px;
  margin-bottom: 8px;
  color: var(--darkgray);
}

.project-tags {
  color: var(--huisstyle);
  font-size: 14px;
  margin-bottom: 25px;
  text-transform: lowercase;
}

/* 2-Column Details Layout (Content + Attributes Sidebar) */
.project-details-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.project-main-content {
  flex: 1;
  max-width: 68%;
  color: var(--darkgray);
  font-size: 15px;
  line-height: 1.7;
}

.project-main-content p {
  margin-bottom: 16px;
}

.project-meta-sidebar {
  width: 30%;
  border-left: 1px solid var(--huisstyle);
  padding-left: 30px;
  min-height: 180px;
}

.project-meta-table {
  width: 100%;
  border-collapse: collapse;
}

.project-meta-table tr {
  border-bottom: 1px solid var(--huisstyle);
}

.project-meta-table td {
  padding: 12px 0;
  font-size: 14px;
  color: var(--darkgray);
}

.project-meta-table td.meta-label {
  width: 45%;
  text-transform: lowercase;
  font-weight: 400;
}

.project-meta-table td.meta-value {
  width: 55%;
  color: #616161;
}

/* --- Page Layout & Over Vorm En Zo Styling --- */
.page-content {
  background-color: white;
  padding: 25px 0 50px 0;
}

.bio-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
  align-items: flex-start;
}

.bio-image-col {
  flex: 1;
  width: 50%;
  max-width: 50%;
}

.bio-image-col img {
  width: 100%;
  height: auto;
  display: block;
}

.bio-text-col {
  flex: 1;
  width: 47%;
  max-width: 47%;
  font-size: 13px;
  color: var(--darkgray);
  line-height: 1.45;
}

.bio-text-col p {
  margin-bottom: 8px !important;
}

.bio-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--darkgray);
  text-transform: uppercase;
  margin-bottom: 2px !important;
  letter-spacing: 0.5px;
}

.bio-email {
  margin-bottom: 14px !important;
  font-size: 13px;
}

.bio-email a {
  color: var(--darkgray);
  text-decoration: none;
}

.bio-email a:hover {
  text-decoration: underline;
}

.bio-cv-item {
  margin-bottom: 8px !important;
  color: var(--darkgray);
  font-size: 13px;
  line-height: 1.4;
}

.bio-cv-item strong {
  font-weight: 400;
  color: #616161;
}

h2.section-title {
  font-family: 'Fjalla One', sans-serif;
  font-size: 38px;
  color: var(--darkgray);
  text-transform: uppercase;
  margin: 35px 0 15px 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.subtitle-quote {
  font-size: 15px;
  color: var(--lightgray);
  margin-bottom: 25px;
}

.entry-content p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--darkgray);
}

/* --- Contact Page Layout & Styling --- */
.contact-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  padding: 10px 0 40px 0;
}

.contact-image-col {
  flex: 1;
  width: 50%;
  max-width: 50%;
}

.contact-image-col img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-text-col {
  flex: 1;
  width: 47%;
  max-width: 47%;
  font-size: 13.5px;
  color: var(--darkgray);
  line-height: 1.5;
}

.contact-invitation {
  margin-bottom: 30px !important;
  color: var(--darkgray);
  font-size: 13.5px;
  line-height: 1.5;
}

.contact-block {
  margin-bottom: 35px;
}

.contact-block p {
  margin-bottom: 14px !important;
  font-size: 13.5px;
  color: var(--darkgray);
}

.contact-company {
  font-size: 13.5px;
  color: var(--darkgray);
  margin-bottom: 14px !important;
}

.contact-person {
  font-size: 13.5px;
  color: var(--darkgray);
  margin-bottom: 14px !important;
}

.contact-email a {
  color: var(--darkgray);
  text-decoration: none;
  font-weight: 400;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-phone {
  color: var(--darkgray);
  margin-bottom: 0 !important;
}

.contact-meta p {
  margin-bottom: 14px !important;
  font-size: 13.5px;
  color: var(--darkgray);
}

/* --- Slider Section for Single Projects --- */
.layer.content.slider {
  width: 100%;
  background-color: white;
  padding: 10px 0;
  margin: 0 auto;
}

.layer.content.slider .centered.global-width {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
}

.slider-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.slider-wrapper .slide {
  outline: none;
  width: 100%;
}

.slider-wrapper .slide img {
  width: 100%;
  max-width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

/* Transparent Overlay SVG Arrows using original left-arrow.svg and right-arrow.svg */
.slick-prev, .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none !important;
  width: 90px;
  height: 90px;
  cursor: pointer;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  background-color: transparent !important;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 0;
  box-shadow: none;
}

.slick-prev:hover, .slick-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  background-color: transparent !important;
}

.slick-prev {
  left: 15px;
  background-image: url('./images/left-arrow.svg') !important;
}

.slick-next {
  right: 15px;
  background-image: url('./images/right-arrow.svg') !important;
}

.slick-dots {
  list-style: none;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  padding: 15px 0 10px 0;
  margin: 0;
  background-color: white;
}

.slick-dots li button {
  font-size: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.slick-dots li.slick-active button {
  background: var(--magenta);
}

/* --- Footer Layer - Exact match to original design --- */
.layer.footer {
  text-align: right;
  color: white;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.2;
  padding: 6px 0 8px 0;
  width: 100%;
  margin: 0 auto;
  background-color: var(--huisstyle);
}

.layer.footer .centered.global-width {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
}

.layer.footer .custom-html-widget {
  color: white;
  font-weight: 400;
  font-size: 17px;
}

.layer.footer a {
  color: #4d4d4d;
  font-weight: 400;
  text-decoration: none;
}

.layer.footer a:hover {
  text-decoration: underline;
}

/* --- Top Scroller Pink Square Button --- */
.top-scroller {
  position: fixed;
  right: 40px;
  bottom: 12px;
  width: 76px;
  height: 76px;
  background-color: var(--magenta);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  cursor: pointer;
}

.top-scroller.visible {
  opacity: 1;
  visibility: visible;
}

.top-scroller svg {
  stroke: white;
  width: 40px;
  height: 40px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .centered.global-width {
    width: 95%;
    max-width: 95%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact-grid {
    flex-direction: column;
    gap: 25px;
  }

  .contact-image-col, .contact-text-col {
    width: 100%;
    max-width: 100%;
  }

  .bio-grid {
    flex-direction: column;
    gap: 25px;
  }

  .bio-image-col, .bio-text-col {
    width: 100%;
    max-width: 100%;
  }

  .project-details-grid {
    flex-direction: column;
    gap: 30px;
  }

  .project-main-content {
    max-width: 100%;
  }

  .project-meta-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--huisstyle);
    padding-left: 0;
    padding-top: 20px;
  }

  .layer.menu .menu-container {
    flex-direction: column;
    gap: 15px;
  }

  .layer.menu ul.nav-menu {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .layer.menu ul.nav-menu li:not(:first-child) {
    border-left: none;
  }

  .layer.menu ul.nav-menu li a {
    font-size: 24px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid .grid-item.span-3,
  .portfolio-grid .grid-item.span-2 {
    grid-column: span 1;
  }

  .portfolio-grid .grid-item .article-content {
    width: 80%;
  }

  .slider-wrapper .slide img {
    height: 320px;
  }

  .slick-prev, .slick-next {
    width: 50px;
    height: 50px;
  }

  .layer.footer {
    text-align: center;
    font-size: 15px;
  }

  .top-scroller {
    width: 54px;
    height: 54px;
    right: 20px;
    bottom: 10px;
  }

  .top-scroller svg {
    width: 28px;
    height: 28px;
  }
}
