/*
Theme Name: CHROOM Architecten
Theme URI: https://chroomarchitecten.be
Author: CHROOM
Author URI: https://chroomarchitecten.be
Description: Minimalistisches Portfolio-Theme für CHROOM Architecten
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chroom
*/

/* ====== GOOGLE FONTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ====== CSS RESET & BASICS ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray: #666666;
  --font-menu: 'Bebas Neue', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --header-height: 80px;
  --footer-height: 60px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-black);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.6;
}

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

/* ====== LAYOUT STRUCTURE ====== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

/* ====== HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-black);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.site-branding {
  font-family: var(--font-menu);
  font-size: 28px;
  letter-spacing: 2px;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
}

.main-navigation li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.main-navigation a {
  font-family: var(--font-menu);
  font-size: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.main-navigation li::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-black);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.main-navigation li:hover::after {
  transform: scale(1.2);
}

.main-navigation .current-menu-item::after,
.main-navigation .current_page_item::after,
.main-navigation .current-page-ancestor::after {
  width: 8px;
  height: 8px;
  background: transparent;
  border: 2px solid var(--color-black);
  box-shadow: inset 0 0 0 2px var(--color-black);
}

/* ====== FILTER NAVIGATION ====== */
.filter-navigation {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-black);
  padding: 15px 40px;
  z-index: 999;
}

.filter-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: center;
}

.filter-navigation li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.filter-navigation a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: lowercase;
}

.filter-navigation li::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--color-black);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.filter-navigation li:hover::after {
  transform: scale(1.2);
}

.filter-navigation a.active::after,
.filter-navigation .current-cat::after,
.filter-navigation .current-menu-item::after {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 2px solid var(--color-black);
  box-shadow: inset 0 0 0 1.5px var(--color-black);
}

/* Note: ::after is on parent li, not on the a tag */
.filter-navigation .active::after {
  width: 6px;
  height: 6px;
  background: transparent;
  border: 2px solid var(--color-black);
  box-shadow: inset 0 0 0 1.5px var(--color-black);
}

/* ====== FOOTER ====== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: var(--color-white);
  border-top: 1px solid var(--color-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-family: var(--font-body);
  font-size: 12px;
  z-index: 1000;
}

.footer-contact,
.footer-social,
.footer-credits {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  text-transform: lowercase;
}

/* ====== PORTFOLIO GRID ====== */
.portfolio-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 40px;
  margin-top: 60px;
}

.project-item {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-item-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

/* Project Gallery Slider */
.project-gallery-wrapper {
  position: relative;
  width: 100%;
}

.project-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}

.project-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-slide.active {
  opacity: 1;
  pointer-events: all;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Slide */
.project-slide-text {
  width: 100%;
  height: 100%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  box-sizing: border-box;
}

.slide-text-content {
  max-width: 600px;
  font-family: var(--font-body);
}

.slide-text-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.slide-text-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: 15px;
}

.slide-text-content p:last-child {
  margin-bottom: 0;
}

.slide-text-content ul,
.slide-text-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.slide-text-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--color-gray);
}

/* Gallery Navigation Dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
  padding: 10px 0;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  background: var(--color-black);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.gallery-dot:hover {
  transform: scale(1.3);
}

.gallery-dot.active {
  width: 8px;
  height: 8px;
  background: transparent;
  border: 2px solid var(--color-black);
  box-shadow: inset 0 0 0 2px var(--color-black);
}

/* Gallery Navigation Arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-black);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  z-index: 10;
}

.gallery-nav:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

/* Project Info Column */
.project-info-column {
  position: sticky;
  top: calc(var(--header-height) + 80px);
  height: fit-content;
}

.project-list-number {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-gray);
}

.project-list-title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.project-list-title a {
  color: var(--color-black);
  transition: opacity 0.3s ease;
}

.project-list-title a:hover {
  opacity: 0.6;
}

.project-list-meta {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.project-list-meta-item {
  display: flex;
  margin-bottom: 8px;
}

.project-list-meta-label {
  font-weight: 600;
  min-width: 100px;
  color: var(--color-gray);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-list-meta-value {
  flex: 1;
  font-size: 14px;
}

.project-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-list-tag {
  font-size: 12px;
  color: var(--color-gray);
  transition: color 0.3s ease;
}

.project-list-tag:hover {
  color: var(--color-black);
}

.project-list-excerpt {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* ====== OLD GRID STYLES (Keep for backwards compatibility) ====== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 0;
  padding: 60px 40px 40px;
  margin-top: 60px;
}

.project-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--color-black);
  margin: -1px 0 0 -1px;
  background: var(--color-white);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-number {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.project-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.project-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-gray);
}

/* ====== SINGLE PROJECT ====== */
.single-project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px;
}

.project-content {
  padding-right: 40px;
}

.project-images img {
  margin-bottom: 20px;
}

.project-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  height: fit-content;
  font-family: var(--font-body);
}

.project-info-item {
  margin-bottom: 20px;
}

.project-info-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.project-info-value {
  font-size: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.project-tag {
  font-size: 12px;
  color: var(--color-gray);
}

.project-description {
  font-size: 15px;
  line-height: 1.8;
  margin-top: 30px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .single-project-layout {
    grid-template-columns: 1fr;
  }
  
  .project-sidebar {
    position: relative;
    top: 0;
    order: 2;
  }
  
  .project-content {
    order: 1;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .project-item-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .project-info-column {
    position: relative;
    top: 0;
    order: 2;
  }
  
  .project-gallery-wrapper {
    order: 1;
  }
}

@media (max-width: 768px) {
  .site-header,
  .site-footer,
  .filter-navigation {
    padding: 0 20px;
  }
  
  .main-navigation ul {
    gap: 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 60px 20px 40px;
  }
  
  .portfolio-list {
    padding: 60px 20px 40px;
  }
  
  .single-project {
    padding: 60px 20px 40px;
  }
  
  .project-item {
    margin-bottom: 60px;
    padding-bottom: 60px;
  }
  
  .project-item-inner {
    gap: 30px;
  }
  
  .project-list-title {
    font-size: 24px;
  }
  
  .project-title-single {
    font-size: 18px;
  }
  
  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .gallery-prev {
    left: 10px;
  }
  
  .gallery-next {
    right: 10px;
  }
  
  .project-slide-text {
    padding: 30px;
  }
  
  .slide-text-content h3 {
    font-size: 20px;
  }
  
  .slide-text-content p {
    font-size: 14px;
  }
  
  .footer-contact,
  .footer-social,
  .footer-credits {
    font-size: 10px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .main-navigation ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .site-branding {
    font-size: 20px;
  }
  
  .site-footer {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    font-size: 10px;
  }
  
  .gallery-dots {
    gap: 8px;
  }
  
  .gallery-dot {
    width: 5px;
    height: 5px;
  }
  
  .gallery-dot.active {
    width: 7px;
    height: 7px;
  }
}