/* ============================================================
   De Houtbrouwers — Global Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #1A1A1A;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

address { font-style: normal; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #C5AD84;
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.header-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-logo-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.875rem;
}

.site-nav a,
.site-nav .nav-dropdown-trigger {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #2B4B2B;
  transition: opacity 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.site-nav a:hover,
.site-nav .nav-dropdown-trigger:hover { opacity: 0.7; }

.site-nav a.active { font-weight: 700; }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 4px;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 130px;
}

.nav-dropdown-inner a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  transition: background 0.15s;
  font-weight: 400;
}

.nav-dropdown-inner a:hover { background: #f9fafb; }

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #2B4B2B;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg { display: block; }

/* Mobile menu — full screen overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 4rem 1rem 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #1f2937;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu a,
.mobile-menu .mobile-dropdown-trigger {
  display: block;
  padding: 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 300;
  color: #1f2937;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mobile-menu a.active,
.mobile-menu .mobile-dropdown-trigger.active {
  color: #8B1A3C;
}

.mobile-menu .mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-submenu {
  display: none;
  text-align: center;
  width: 100%;
}

.mobile-submenu.open { display: block; }

.mobile-submenu a {
  color: #4b5563;
  font-weight: 300;
  padding: 0.2rem 0;
  font-size: 1.4rem;
}

.mobile-menu .arrow { display: none; }

.mobile-submenu a.active {
  color: #8B1A3C;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #E2DDD7;
}

.footer-inner {
  max-width: 100%;
  margin: 0;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-right {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 300;
  color: #1f2937;
  line-height: 1.25;
}

.footer-brand-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #4b5563;
  transition: color 0.15s;
}

.footer-links a:hover { color: #111; }

.footer-offerte-btn,
.footer-links a.footer-offerte-btn {
  display: block;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  width: 120px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff !important;
  background-color: #2B4B2B;
  border-radius: 9999px;
  transition: opacity 0.15s;
}

.footer-offerte-btn:hover { opacity: 0.9; color: #fff !important; }

.footer-contact {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.75;
  text-align: right;
}

.footer-contact a:hover { color: #111; }

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

.footer-socials a {
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-socials a:hover { opacity: 1; }

.footer-socials img { width: 22px; height: 22px; }

/* ============================================================
   SOCIAL SIDEBAR
   ============================================================ */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  padding: 0.75rem 0.5rem;
  box-shadow: -2px 0 6px rgba(0,0,0,0.08);
}

.social-sidebar a {
  opacity: 0.8;
  transition: opacity 0.15s;
  display: block;
}

.social-sidebar a:hover { opacity: 1; }

.social-sidebar img { width: 24px; height: 24px; }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero-fullwidth {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-fullwidth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center center);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-home {
  height: 460px;
}

.hero-page {
  height: 420px;
}

.hero-offerte {
  height: 200px;
}

/* White card centered on hero */
.hero-card-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero-card {
  background: #fff;
  padding: 2rem 2.5rem;
  max-width: 32rem;
  width: 100%;
  text-align: center;
}

.hero-card h1 {
  font-size: 1.875rem;
  font-weight: 300;
  color: #1f2937;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
}

.hero-card p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
}

/* Offerte hero overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

.hero-overlay h1 {
  font-size: 1.875rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.025em;
}

/* ============================================================
   GREEN BANNER (home)
   ============================================================ */
.green-banner {
  background-color: #2B4B2B;
}

.green-banner-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.green-banner h1 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.green-banner-sub {
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
}

.green-banner p:last-child {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   USP SECTION
   ============================================================ */
.usp-section {
  background-color: #E3DDD7;
}

.usp-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.usp-inner h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 3rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.usp-item { text-align: center; }

.usp-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}

.usp-icon-ph {
  display: block;
  font-size: 48px;
  color: #2B4B2B;
  margin: 0 auto 1rem;
  text-align: center;
}

.usp-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.usp-item p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
}

/* ============================================================
   TESTIMONIAL SLIDER
   ============================================================ */
.testimonials {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
}

.testimonials-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-overlay {
  display: none;
}

.testimonials-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 3rem 1.5rem;
}

.testimonials-card {
  background: rgba(255,255,255,0.85);
  max-width: 36rem;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.testimonials-card blockquote {
  font-style: italic;
  color: #374151;
  font-size: 1rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.testimonials-card cite {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: normal;
  display: block;
  margin-bottom: 1.5rem;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-color: #C5AD84;
  transition: background 0.2s;
}

.testimonials-dot.active { background-color: #2B4B2B; }

.testimonials-arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.testimonials-arrows button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #9ca3af;
  background: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.testimonials-arrows button:hover {
  border-color: #374151;
  color: #1f2937;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.page-content-wide {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  color: #111;
  margin-bottom: 1.5rem;
}

.page-intro {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 42rem;
}

/* ============================================================
   ALTERNATING ITEMS (werkwijze / tafels / bureau / etc.)
   ============================================================ */
.items-container {
  max-width: 64rem;
  margin: 0 auto;
}

.item-divider {
  height: 1px;
  background-color: #8B1A3C;
}

.item-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 2.5rem 0;
}

.item-img {
  overflow: hidden;
  height: 300px;
}

.item-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.item-img-placeholder {
  width: 100%;
  height: 300px;
  background-color: #e5e7eb;
}

.item-text {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-text h2 {
  font-size: 1.25rem;
  font-weight: 300;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.item-text p {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.625;
}

.item-text ul {
  list-style: disc;
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.75;
}

/* ============================================================
   PROJECTEN OVERVIEW
   ============================================================ */
.project-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.project-category-img {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.75rem;
  aspect-ratio: 286/335;
}

.project-category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s;
}

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

.project-category-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.project-category-link {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: underline;
  transition: color 0.15s;
}

.project-category-link:hover { color: #1f2937; }

/* ============================================================
   OVER ONS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.team-member { text-align: center; }

.team-member-img {
  width: 280px;
  height: 278px;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.team-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.team-member-name {
  font-weight: 500;
  color: #374151;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.contact-info {
  color: #4b5563;
  line-height: 1.75;
  font-size: 0.9375rem;
}

.contact-info a:hover { color: #111; }

.contact-socials {
  display: flex;
  gap: 1rem;
}

.contact-socials a {
  font-size: 0.875rem;
  color: #4b5563;
  transition: color 0.15s;
}

.contact-socials a:hover { color: #111; }

.map-embed {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  height: 288px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 300px;
}

.contact-cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.contact-cta p:first-child {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.contact-cta p:last-of-type {
  font-size: 0.875rem;
  color: #6b7280;
}

.btn-dark {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.625rem 1.5rem;
  background: #1f2937;
  color: #fff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-dark:hover { background: #374151; }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote-form {
  max-width: 36rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #6b7280; }

.form-group textarea { resize: vertical; }

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.form-success {
  padding: 2rem 0;
  text-align: center;
}

.form-success p:first-child {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.form-success p:last-child { color: #4b5563; }

.btn-submit {
  padding: 0.625rem 2rem;
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover { background: #374151; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   LEGAL PAGES (voorwaarden / privacy)
   ============================================================ */
.legal-page {
  background-color: #E3DDD7;
  min-height: 100vh;
}

.legal-inner {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-inner h1 {
  font-size: 2.25rem;
  font-weight: 300;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.legal-inner h2 {
  font-size: 1.25rem;
  font-weight: 300;
  color: #374151;
  margin-bottom: 2.5rem;
}

.legal-content {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.75;
}

.legal-content section { margin-bottom: 2rem; }

.legal-content h3 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.legal-content p { margin-bottom: 0.75rem; }

.legal-content ol,
.legal-content ul {
  margin-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content li { margin-bottom: 0.375rem; }

.legal-content a {
  text-decoration: underline;
  color: #1f2937;
}

.legal-content a:hover { color: #000; }

/* ============================================================
   CONTACT SECTION SPACING
   ============================================================ */
.contact-section { margin-bottom: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .social-sidebar { display: none; }

  .hero-home { height: 260px; }
  .hero-page { height: 200px; }

  /* Hero card: kleiner en compacter op mobiel */
  .hero-card {
    padding: 1rem 1.25rem;
    max-width: 100%;
  }
  .hero-card h1 { font-size: 1.25rem; margin-bottom: 0.5rem; }
  .hero-card p { font-size: 0.8rem; line-height: 1.5; }

  .green-banner-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .green-banner h1 { font-size: 2rem; }

  .usp-grid { grid-template-columns: 1fr; }

  /* Project items: foto bovenaan, tekst eronder */
  .items-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .item-divider {
    margin: 1.5rem 0;
  }

  .item-row {
    grid-template-columns: 1fr;
    padding: 0;
    margin-bottom: 0;
  }
  .item-row.reverse { direction: ltr; }

  .item-img,
  .item-img img,
  .item-img-placeholder {
    width: 100% !important;
    height: 260px !important;
  }

  .item-img img {
    object-position: center center;
  }

  .item-text {
    padding: 1.25rem 1rem;
  }

  /* Footer: gestapeld, links uitgelijnd, volgorde: brand → offerte → contact → links → socials */
  .footer-inner {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 1rem;
  }

  .footer-brand {
    width: 100%;
    margin-bottom: 1rem;
  }

  .footer-right {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .footer-links {
    width: 100%;
    order: 1;
    margin-bottom: 1rem;
  }

  .footer-contact {
    width: 100%;
    text-align: left;
    order: 2;
    margin-bottom: 1rem;
  }

  .footer-socials {
    justify-content: flex-start;
    order: 3;
  }

  .project-categories {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .map-embed { height: 250px; }
}

@media (max-width: 480px) {
  .project-categories { grid-template-columns: 1fr; }
  .team-member-img { width: 240px; height: 238px; }
  .hero-home { height: 220px; }
  .hero-page { height: 180px; }
}
