/* ========================================
   GG-BOUW — MAIN CSS
   CSS Custom Properties, Reset, Typography,
   Layout Helpers, Buttons
   ======================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --primary:        #1a3c5e;
  --primary-light:  #2a5c8e;
  --primary-dark:   #122840;
  --accent:         #e8891a;
  --accent-hover:   #cf7615;
  --dark:           #111827;
  --gray:           #6b7280;
  --light-gray:     #f3f4f6;
  --border:         #e5e7eb;
  --white:          #ffffff;
  --overlay:        rgba(17, 24, 39, 0.75);

  --font-heading:   'Montserrat', sans-serif;
  --font-body:      'Open Sans', sans-serif;

  --container-max:  1280px;
  --container-pad:  clamp(1rem, 4vw, 2rem);

  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.2);

  --transition:     0.3s ease;
  --transition-fast:0.15s ease;

  --header-height:  80px;
  --header-scroll-height: 65px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

body.preloader-active {
  overflow: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

/* ---- Layout Helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.section-sm {
  padding-block: clamp(2rem, 4vw, 4rem);
}

.section-lg {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.section-bg-light {
  background-color: var(--light-gray);
}

.section-bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

.section-bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

/* Grid systeem */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

.grid-auto-fill-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-auto-fill-md { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-auto-fill-lg { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Text helpers */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-white  { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-gray    { color: var(--gray); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* Spacing helpers */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- Section Header / Title ---- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary: blauw */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Accent: oranje */
.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 25px rgba(232, 137, 26, 0.4);
}

/* Secondary: wit/transparant */
.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Ghost: outline blauw */
.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Maten */
.btn-small  { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-large  { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-xl     { padding: 1.15rem 2.6rem; font-size: 1.15rem; }
.btn-block  { display: flex; width: 100%; }

/* ---- Header Styles ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-header.scrolled .text-logo .logo-gg,
.site-header.scrolled .text-logo .logo-dash,
.site-header.scrolled .text-logo .logo-bouw {
  color: var(--primary);
}

.site-header.scrolled .nav-menu > li > a {
  color: var(--dark);
}

.site-header.scrolled .header-phone {
  color: var(--dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-height);
  transition: height var(--transition);
}

.site-header.scrolled .header-inner {
  height: var(--header-scroll-height);
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 58px;
  object-fit: contain;
}

.text-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.text-logo .logo-gg,
.text-logo .logo-bouw {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  display: inline;
  transition: color var(--transition);
}

.text-logo .logo-dash {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: inline;
}

.text-logo .logo-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  margin-top: 2px;
  transition: color var(--transition);
}

.site-header.scrolled .text-logo .logo-tagline {
  color: var(--gray);
}

/* Navigatie */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu > li > a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.site-header.scrolled .nav-menu > li > a:hover {
  background: var(--light-gray);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
}

.nav-menu > li.current-menu-item > a.nav-cta,
.nav-menu > li.current_page_item > a.nav-cta,
.nav-menu > li.current-menu-ancestor > a.nav-cta,
.site-header.scrolled .nav-menu > li.current-menu-item > a.nav-cta,
.site-header.scrolled .nav-menu > li.current_page_item > a.nav-cta {
  color: var(--white) !important;
  background: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Header CTA rechts */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

.header-phone:hover { color: var(--accent); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.site-header.scrolled .hamburger-line {
  background: var(--dark);
}

.menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Footer Styles ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.footer-top {
  padding-block: 4rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-logo .logo-gg  { color: var(--white); }
.footer-logo .logo-dash { color: var(--accent); }
.footer-logo .logo-bouw { color: var(--white); }

.footer-logo-img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 70px;
  object-fit: contain;
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-contact-info { margin-bottom: 1.5rem; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.footer-contact-item i {
  color: var(--accent);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--accent); }

.footer-link-accent {
  color: var(--accent) !important;
  font-weight: 600;
}

.footer-links-small {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5) !important;
}

.footer-links-small li {
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.25rem;
}

.footer-hours {
  width: 100%;
  margin-bottom: 1.5rem;
}

.footer-hours td {
  padding: 0.35rem 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.footer-hours td:last-child {
  text-align: right;
  color: var(--white);
}

.footer-kvk {
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.btn-footer-cta {
  display: inline-flex;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin: 0;
}

.footer-legal-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-legal-nav a {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.footer-legal-nav a:hover { color: var(--white); }

/* ---- Page Hero (niet homepage) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ---- Checklist ---- */
.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge i { color: var(--accent); }

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---- Skip link (toegankelijkheid) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover { color: var(--white); }

.breadcrumb-sep {
  color: rgba(255,255,255,0.4);
  margin-inline: 0.5rem;
  font-size: 0.85rem;
}

.breadcrumbs span[itemprop="name"] {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---- Twee-kolom layout ---- */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.two-col-layout.reverse { direction: rtl; }
.two-col-layout.reverse > * { direction: ltr; }

/* ---- Afbeelding container ---- */
.img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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