/* ==========================================================================
   Ekelschot Projectstoffering — stylesheet
   Design tokens extracted 1:1 from Figma
   ========================================================================== */

:root {
  --color-primary: #1e40af;
  --color-primary-light: #eff6ff;
  --color-ink: #0f172a;
  --color-body: #475569;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --color-white: #ffffff;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-cta: 0 4px 6px rgba(30, 64, 175, 0.15);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;

  --container-width: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--color-body);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface);
}

.btn-lg { width: auto; }

/* ---------- Eyebrow / section header ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.section-header.align-left {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 24px;
}

.section-header h2 {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
}

/* ---------- Placeholder photo blocks ----------
   Real photos will replace these. Kept as a clearly
   marked placeholder so nothing here reads as a real,
   copyrighted photo of someone else's work. */
.placeholder-photo {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #dbeafe 100%);
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.placeholder-photo .placeholder-icon {
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

.placeholder-dark {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a8a 100%);
  border: none;
  color: rgba(255, 255, 255, 0.7);
}

.placeholder-dark .placeholder-icon { filter: invert(1); opacity: 0.5; }

/* ---------- Real photo blocks ---------- */
.photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Nav ---------- */
.nav-bar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-body);
}

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

.nav-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ---------- Hero ---------- */
.hero { background: var(--color-surface); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-text { display: flex; flex-direction: column; gap: 24px; }

.badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.hero h1 {
  font-weight: 800;
  font-size: 54px;
  line-height: 1.1;
}

.hero .lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-body);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-email-cta { font-weight: 700; color: var(--color-primary); }

.hero-image { aspect-ratio: 656 / 680; border-radius: 0; }

/* ---------- Why PVC ---------- */
.why-pvc, .process { padding: 100px 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-icon-wrap {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue { width: 24px; height: 24px; color: var(--color-primary); }

.why-card h3 { font-weight: 700; font-size: 22px; }
.why-card p { font-size: 14px; line-height: 1.5; }

/* ---------- Gallery ---------- */
.gallery { background: var(--color-surface); padding: 100px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-photo { aspect-ratio: 628 / 400; }

.gallery-more { text-align: center; margin-top: 40px; }

/* ---------- Nav active state ---------- */
.nav-links a.active { color: var(--color-primary); }

/* ---------- Projects page ---------- */
.projects-hero { padding: 64px 0 0; }

.projects-hero .section-header { margin-bottom: 0; }

.projects-hero .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.project-gallery { padding: 48px 0 100px; }

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-photo {
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
}

.project-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-body);
  padding: 40px 20px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  z-index: 999;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  width: auto;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Price ---------- */
.price { padding: 100px 0; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.price-text { display: flex; flex-direction: column; gap: 24px; }
.price-text > p { font-size: 16px; line-height: 1.6; }

.price-bullets { display: flex; flex-direction: column; gap: 12px; }

.price-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-ink);
}

.icon-check { width: 16px; height: 16px; flex-shrink: 0; }

.price-box {
  background: var(--color-primary-light);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.price-box .eyebrow { text-transform: uppercase; }

.price-amount { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.price-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  color: var(--color-primary);
}

.price-unit {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-ink);
}

/* ---------- Craftsman ---------- */
.craftsman { background: var(--color-surface); padding: 100px 0; }

.craftsman-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.craftsman-image { height: 480px; }

.craftsman-text { display: flex; flex-direction: column; gap: 24px; }

.craftsman-subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--color-primary);
}

.craftsman-text > p:not(.craftsman-subhead) { font-size: 16px; line-height: 1.6; }

.signature { display: flex; flex-direction: column; gap: 4px; }
.signature strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--color-ink); }
.signature span { font-size: 14px; color: var(--color-body); }

/* ---------- Process ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step { display: flex; flex-direction: column; gap: 16px; }

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  position: relative;
}

.process-step:not(:last-child) .step-number::after {
  content: '';
  position: absolute;
  left: 48px;
  width: 232px;
  height: 1px;
  background: var(--color-border);
}

.process-step h3 { font-weight: 700; font-size: 18px; }
.process-step p { font-size: 14px; line-height: 1.5; }

/* ---------- Legal ---------- */
.legal {
  padding: 100px 0;
  background: var(--color-surface);
}

.legal-cookies {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.legal-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.6;
}

.legal-card ul {
  list-style: disc;
  margin-left: 20px;
}

.legal-card a {
  color: var(--color-primary);
  font-weight: 600;
}

.cookie-status {
  font-weight: 600;
  color: var(--color-ink);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink);
}

/* ---------- Footer ---------- */
.footer { background: var(--color-ink); }

.footer-banner {
  border-bottom: 1px solid var(--color-body);
  padding: 80px 0;
  text-align: center;
}

.footer-banner h2 {
  color: var(--color-white);
  font-weight: 800;
  font-size: 36px;
  max-width: 46ch;
  margin: 0 auto;
}

.footer-banner p {
  color: var(--color-surface);
  opacity: 0.8;
  font-size: 18px;
  margin: 32px auto 0;
  max-width: 60ch;
}

.banner-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.footer-details { padding: 48px 0; }

.footer-details-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left { display: flex; flex-direction: column; gap: 12px; }
.footer-left strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--color-white); }
.footer-left span { font-size: 14px; color: var(--color-surface); opacity: 0.6; }

.footer-link {
  color: var(--color-surface);
  opacity: 0.85;
  font-size: 14px;
  text-decoration: underline;
}

.footer-link-button {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
}

.footer-right span { font-size: 14px; color: var(--color-surface); opacity: 0.6; }

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .process-step:not(:last-child) .step-number::after { display: none; }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links, .nav-contact { display: none; }
  .nav-inner { padding-top: 16px; padding-bottom: 16px; }
  .logo img { height: 40px; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-bottom: 56px;
    gap: 0;
  }

  .hero-image { aspect-ratio: 390 / 260; order: -1; border-radius: 0; }
  .hero-text { padding: 20px; gap: 20px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-actions .btn { width: 100%; }
  .why-pvc, .price, .craftsman, .gallery, .process { padding: 56px 0; }
  .legal { padding: 56px 0; }

  .section-header h2 { font-size: 32px; }
  .section-header { margin-bottom: 32px; }

  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card {
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 16px;
  }
  .card-icon-wrap { width: 36px; height: 36px; flex-shrink: 0; }
  .icon-blue { width: 20px; height: 20px; }
  .why-card h3 { font-size: 16px; }
  .why-card p { font-size: 13px; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-photo { aspect-ratio: 350 / 200; }

  .price-grid, .craftsman-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-box { padding: 32px; }
  .price-number { font-size: 48px; }
  .craftsman-image { height: 260px; }
  .craftsman-image { order: -1; }
  .section-header.align-left { align-items: center; text-align: center; }
  .craftsman-text, .price-text { text-align: center; align-items: center; }
  .price-bullets li { justify-content: center; }

  .process-flow { grid-template-columns: 1fr; gap: 24px; }
  .process-step { flex-direction: row; align-items: flex-start; }
  .step-number { flex-shrink: 0; width: 32px; height: 32px; font-size: 14px; }

  .footer-banner { padding: 56px 0; }
  .footer-banner h2 { font-size: 26px; }
  .footer-banner p { font-size: 15px; }
  .banner-ctas { flex-direction: column; width: 100%; }
  .banner-ctas .btn { width: 100%; text-align: center; }

  .footer-details-inner { flex-direction: column; }

  .legal-card { padding: 20px; }
  .legal-card h3 { font-size: 18px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }

  .projects-hero { padding: 40px 0 0; }
  .project-gallery { padding: 32px 0 56px; }
  .project-gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lightbox-close { top: 12px; right: 12px; }
}
