/* ============================================================
   Nova Top Woning — Warm Earth Theme
   Design System & Global Styles
   ============================================================ */

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

:root {
  /* Palette */
  --cream: #FAF6F1;
  --warm-white: #FFFDF9;
  --sand: #E8DDD3;
  --sand-light: #F0E8DF;
  --terracotta: #C4775A;
  --terracotta-dark: #A8604A;
  --terracotta-light: #D48B70;
  --charcoal: #2C2926;
  --stone: #8B7E74;
  --light-stone: #B5A99A;
  --gold: #D4A853;
  --sage: #9CAF92;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.15;
}

p {
  line-height: 1.7;
  color: var(--stone);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  letter-spacing: -1px;
}

.section-header p {
  font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: #1a1816;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(44, 41, 38, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--charcoal);
  padding: 16px 36px;
  border: 1.5px solid var(--sand);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--charcoal);
}

.btn-terracotta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.btn-terracotta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 119, 90, 0.25);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-2xl);
  height: var(--nav-height);
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 190, 180, 0.3);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--terracotta);
}

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

.nav-links a {
  font-size: 14px;
  color: var(--stone);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

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

/* Language switcher — segmented pill */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--sand-light);
  border-radius: 100px;
  padding: 3px;
}

.lang-switch button {
  padding: 5px 10px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--light-stone);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  line-height: 1;
}

.lang-switch button:hover {
  color: var(--charcoal);
}

.lang-switch button.active {
  background: #fff;
  color: var(--charcoal);
  box-shadow: 0 1px 4px rgba(44, 41, 38, 0.1);
}

/* Mobile bar layout — shown on tablet/mobile next to hamburger */
.nav-right-mobile {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.lang-switch--bar {
  display: flex;
}

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  color: #fff;
}

/* Mobile hamburger */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-mobile span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

/* Mobile menu open state */
.nav-mobile.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-mobile.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream);
  z-index: 99;
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-overlay.active {
  display: flex;
}

.nav-overlay a {
  font-size: 24px;
  font-family: 'Playfair Display', serif;
  color: var(--charcoal);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--sand);
  transition: color 0.3s;
}

.nav-overlay a:hover {
  color: var(--terracotta);
}

.nav-overlay .nav-cta-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: #fff;
  padding: 18px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  margin-top: var(--space-lg);
  border: none;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: var(--space-5xl) var(--space-2xl) var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-xl);
  font-weight: 500;
}

.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 72px);
  color: var(--charcoal);
  margin-bottom: 28px;
  letter-spacing: -1.5px;
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero > .hero-content > p {
  font-size: 18px;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

/* Hero decorative art */
.hero-art {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 720px;
  height: 80%;
  pointer-events: none;
}

.hero-art .shape-1 {
  position: absolute;
  right: 40px;
  top: 0;
  width: 380px;
  height: 480px;
  background: var(--sand);
  border-radius: 240px 240px 20px 20px;
  opacity: 0.6;
}

.hero-art .shape-2 {
  position: absolute;
  right: 120px;
  top: 60px;
  width: 300px;
  height: 400px;
  border: 1.5px solid var(--light-stone);
  border-radius: 200px 200px 16px 16px;
  opacity: 0.4;
}

.hero-art .shape-3 {
  position: absolute;
  right: 200px;
  bottom: 40px;
  width: 200px;
  height: 200px;
  background: var(--terracotta);
  border-radius: 50%;
  opacity: 0.12;
}

.hero-art .tile-pattern {
  position: absolute;
  right: 80px;
  top: 80px;
  width: 280px;
  height: 360px;
  opacity: 0.08;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: var(--space-2xl);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  background: var(--warm-white);
  flex-wrap: wrap;
}

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

.trust-item .num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--charcoal);
  font-weight: 600;
}

.trust-item .label {
  font-size: 13px;
  color: var(--light-stone);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--space-5xl) var(--space-2xl);
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--warm-white);
  border: 1px solid rgba(200, 190, 180, 0.3);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(44, 41, 38, 0.06);
  border-color: var(--terracotta);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--sand-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--terracotta);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  padding: var(--space-5xl) var(--space-2xl);
  background: var(--charcoal);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.why-us .section-header h2 {
  color: #fff;
}

.why-us .section-header p {
  color: var(--light-stone);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  gap: 20px;
}

.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--terracotta);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}

.why-item h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.why-item p {
  font-size: 15px;
  color: var(--light-stone);
  line-height: 1.7;
}

/* Decorative circles */
.why-us .bg-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.why-us .bg-circle.c1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.why-us .bg-circle.c2 {
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: -50px;
}

/* ============================================================
   PROCESS / WERKWIJZE
   ============================================================ */
.process {
  padding: var(--space-5xl) var(--space-2xl);
  background: var(--warm-white);
}

.process-steps {
  display: flex;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--sand);
  z-index: 0;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 var(--space-md);
}

.step-dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--terracotta);
  transition: all 0.3s var(--ease);
}

.process-step:hover .step-dot {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.process-step h4 {
  font-size: 17px;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.process-step p {
  font-size: 14px;
  color: var(--light-stone);
  line-height: 1.6;
}

/* ============================================================
   PORTFOLIO / PROJECTEN (placeholder section)
   ============================================================ */
.portfolio {
  padding: var(--space-5xl) var(--space-2xl);
  background: var(--cream);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.portfolio-card {
  aspect-ratio: 4/3;
  background: var(--sand-light);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44, 41, 38, 0.08);
}

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

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 41, 38, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.portfolio-card .overlay span {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* Placeholder state (before real images) */
.portfolio-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--light-stone);
}

.portfolio-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: var(--light-stone);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.5;
}

.portfolio-placeholder span {
  font-size: 14px;
  opacity: 0.6;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 100px var(--space-2xl);
  background: linear-gradient(135deg, var(--sand) 0%, var(--cream) 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--charcoal);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.cta-section p {
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 40px;
  color: var(--stone);
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: var(--light-stone);
  padding: 72px var(--space-2xl) 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-brand h3 span {
  color: var(--terracotta);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--light-stone);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--stone);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 13px;
  color: var(--stone);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--light-stone);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 400ms; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --space-2xl: 24px;
    --space-5xl: 80px;
  }

  .nav {
    padding: 0 var(--space-lg);
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }

  .nav-right-mobile {
    display: flex;
  }

  .hero {
    padding: 80px var(--space-lg) 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-art {
    display: none;
  }

  .trust-bar {
    gap: var(--space-xl);
    padding: 36px var(--space-lg);
  }

  .trust-item .num {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .process-steps {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .process-steps::before {
    display: none;
  }

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

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .btn-terracotta {
    text-align: center;
    justify-content: center;
  }

  .trust-bar {
    flex-direction: column;
    gap: var(--space-lg);
  }

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

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}
