/* =========================================================
   Eco-GenX — Site CSS (global) — CLEAN + STABLE (FIXED)
   ========================================================= */

:root{
  --maxw: 1200px;
  --pad: 1.25rem;

  --eco-dark: #0b3b2f;
  --eco-dark-2: #082a22;
  --eco-accent: #4bbf7a;
  --eco-cream: #f6f4ee;

  --ink: rgba(0,0,0,.86);
  --muted: rgba(0,0,0,.66);
  --line: rgba(0,0,0,.10);

  --shadow: 0 14px 36px rgba(0,0,0,.08);
  --shadow2: 0 18px 44px rgba(0,0,0,.10);
  --border: rgba(0,0,0,.08);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;

  color: var(--ink);
  background: #fff;

  /* safe default */
  text-align: left;
}

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

/* headings default */
h1,h2,h3{
  line-height: 1.2;
  margin-top: 0;
  color: var(--ink);
}

p{ margin: 0 0 1rem; }

a{
  color: inherit;
  text-underline-offset: .2em;
}
a:hover{ opacity: .95; }

/* =========================================================
   Main content area (default pages)
   ========================================================= */
main{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--pad);
  overflow: visible !important;

  text-align: left;
}

/* =========================================================
   HEADER — NEVER fixed/sticky (scrolls with page)
   ========================================================= */
header,
header.background,
.site-header,
.header{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  z-index: 50;
}

/* some themes add padding-top to body for sticky header */
body{ padding-top: 0 !important; }

header, header nav{ overflow: visible !important; }

header.background{
  display: block;
  padding: .65rem 0 !important;
  background: var(--eco-dark);
  color: rgba(255,255,255,.92);
}

header.background[data-big]{ padding: .85rem 0 !important; }

header.background .header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header.background a.home{
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: rgba(255,255,255,.92);
}

/* title/subtitle */
header.background .title{
  font-size: 1.25rem !important;
  line-height: 1.1 !important;
}
header.background .subtitle{
  font-size: .95rem !important;
  opacity: .85 !important;
}

/* logo */
header.background .logo{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .92;
}
header.background .logo img,
header.background .logo svg{
  width: 34px;
  height: 34px;
}

/* =========================================================
   NAV
   ========================================================= */
nav.main-nav{
  display: flex;
  gap: 1.05rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: .95rem;
  position: relative;
  z-index: 2000;
}

nav.main-nav a{
  text-decoration: none;
  padding: .35rem .45rem;
  border-radius: .45rem;
  color: rgba(255,255,255,.92);
  text-transform: uppercase;
  letter-spacing: .06em;
}
nav.main-nav a:hover{ background: rgba(255,255,255,.08); }

/* =========================================================
   CLICK dropdown wrapper
   ========================================================= */
.nav-dd{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dd__trigger{
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,.92) !important;
  font: inherit;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: .35rem;

  padding: .35rem .45rem;
  border-radius: .45rem;

  box-shadow: none !important;
  outline: none;

  text-transform: uppercase;
  letter-spacing: .06em;
}

.nav-dd__trigger:hover{ background: rgba(255,255,255,.08) !important; }

.nav-dd__trigger:focus-visible{
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}

.nav-dd__trigger span{
  opacity: .85;
  transform: translateY(1px);
}

.nav-dd.open .nav-dd__trigger{ background: rgba(255,255,255,.10) !important; }

.nav-dd__menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: .55rem;

  min-width: 16rem;
  padding: .45rem 0;

  background: rgba(11,59,47,.96) !important;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem;
  box-shadow: 0 16px 32px rgba(0,0,0,.30);
  z-index: 9999;
  max-width: calc(100vw - 2rem);
}

.nav-dd.open .nav-dd__menu{ display: block; }

.nav-dd__menu a{
  display: block;
  padding: .55rem .95rem;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255,255,255,.92);
  text-transform: none;
  letter-spacing: 0;
}
.nav-dd__menu a:hover{ background: rgba(255,255,255,.10); }

/* responsive header */
@media (max-width: 980px){
  header.background .header-inner{
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: .6rem;
  }
  nav.main-nav{ justify-content: center; }

  .nav-dd{ flex-direction: column; align-items: flex-start; }
  .nav-dd__menu{
    position: static;
    display: none;
    background: transparent !important;
    box-shadow: none;
    border: 0;
    padding: .2rem 0 0;
    margin-top: 0;
    min-width: unset;
    max-width: 100%;
  }
  .nav-dd.open .nav-dd__menu{ display: block; }

  .nav-dd__menu a{
    color: rgba(255,255,255,.92);
    padding: .35rem .45rem;
    border-radius: .45rem;
  }
  .nav-dd__menu a:hover{ background: rgba(255,255,255,.08); }
}

/* =========================================================
   FULL-BLEED helper
   ========================================================= */
.hero-full,
.full-bleed{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* =========================================================
   GLOBAL: ensure hero sections render WHITE text
   Add any page hero wrappers here if needed
   ========================================================= */
.hero,
.hero-full,
.full-bleed,
.vw-hero,
.rd-hero,
.al-hero,
.projects-hero,
.projects-top,
.proj-hero,
.service-hero,
.services-hero,
.city .hero{
  color: rgba(255,255,255,.92);
}

.hero h1, .hero h2, .hero h3, .hero p,
.hero-full h1, .hero-full h2, .hero-full h3, .hero-full p,
.full-bleed h1, .full-bleed h2, .full-bleed h3, .full-bleed p,
.vw-hero h1, .vw-hero h2, .vw-hero h3, .vw-hero p,
.rd-hero h1, .rd-hero h2, .rd-hero h3, .rd-hero p,
.al-hero h1, .al-hero h2, .al-hero h3, .al-hero p,
.projects-hero h1, .projects-hero h2, .projects-hero h3, .projects-hero p,
.projects-top h1, .projects-top h2, .projects-top h3, .projects-top p,
.proj-hero h1, .proj-hero h2, .proj-hero h3, .proj-hero p,
.service-hero h1, .service-hero h2, .service-hero h3, .service-hero p,
.services-hero h1, .services-hero h2, .services-hero h3, .services-hero p,
.city .hero h1, .city .hero h2, .city .hero h3, .city .hero p{
  color: rgba(255,255,255,.92) !important;
}

/* links in hero */
.hero a,
.hero-full a,
.full-bleed a,
.vw-hero a,
.rd-hero a,
.al-hero a,
.projects-hero a,
.projects-top a,
.proj-hero a,
.service-hero a,
.services-hero a,
.city .hero a{
  color: rgba(255,255,255,.92) !important;
}

/* =========================================================
   Theme-centering counter (SAFE)
   Only neutralize common centering containers, not everything
   ========================================================= */
main,
main .content,
main article,
main .page,
main .post{
  text-align: left;
}

/* =========================================================
   HOME polish — reusable cards/steps/cta
   ========================================================= */
.section p,
.card,
.step{ text-align: left !important; }

.cards, .steps{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem !important;
}

@media (min-width: 980px){
  .cards{ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .steps{ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

.card{
  border-radius: 20px !important;
  padding: 1.35rem 1.35rem 1.2rem !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--border) !important;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.step{
  border-radius: 20px !important;
  border: 1px solid var(--border) !important;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,.06);
  padding: 1.1rem 1.2rem;
}

.cta{ border-radius: 22px !important; }

/* =========================================================
   Service pills (optional)
   ========================================================= */
.service-topbar{
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.15rem;
}

.service-pills{
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .55rem .6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--eco-dark), var(--eco-dark-2));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}

.service-pills a{
  display: inline-flex;
  align-items: center;
  padding: .42rem .75rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;

  text-transform: none;
  letter-spacing: 0;
}

.service-pills a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.service-pills a.is-active{
  background: rgba(75,191,122,.22);
  border-color: rgba(75,191,122,.55);
  color: #fff;
}

@media (max-width: 980px){
  .service-topbar{ justify-content: center; }
  .service-pills{ border-radius: 18px; }
}

/* =========================================================
   HARD FIXES — Project hero must NEVER be sticky/fixed
   ========================================================= */
.project-hero,
.project-header,
.proj-hero,
.hero-project{
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  transform: none !important;
}

.project-hero{ height: auto !important; }

.project-hero .project-hero__bg,
.project-hero .hero-bg,
.project-hero .bg{
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

.project-hero .project-hero__inner,
.project-hero .hero-inner,
.project-hero .inner{
  position: relative !important;
  z-index: 1 !important;
}

/* =========================================================
   Utility: hard hide for filtered tiles
   ========================================================= */
.tile.is-hidden{ display: none !important; }

/* =========================================
   Fix branding casing: Eco-GenX mag niet uppercase worden
   ========================================= */
.no-upper{
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* =========================================
   MOBILE FIXES
   - voorkomt dat full-bleed blokken buiten beeld schuiven
   - voorkomt "onzichtbare" tekst in eerste blok op gsm
   ========================================= */
@media (max-width: 640px){
  /* Full-bleed kan op mobile content uit het zicht duwen */
  .hero-full,
  .full-bleed{
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Veiligheidsnet: als een hero/full-bleed géén donkere achtergrond heeft,
     forceer dan leesbare tekstkleur in de content. */
  main .hero,
  main .hero-full,
  main .full-bleed{
    color: var(--ink) !important;
  }
  main .hero h1, main .hero h2, main .hero h3, main .hero p,
  main .hero-full h1, main .hero-full h2, main .hero-full h3, main .hero-full p,
  main .full-bleed h1, main .full-bleed h2, main .full-bleed h3, main .full-bleed p{
    color: var(--ink) !important;
  }
}
