/* =========================================================
   Mijn Ecogroen – Medewerkersportaal
   Huisstijl gebaseerd op ecogroen.nl
   ========================================================= */

:root {
  /* Brand kleuren (uit logo SVG + screenshots) */
  --green-dark:    #007613;
  --green-forest:  #3d632b;
  --green-light:   #8ac650;
  --teal:          #00b5bd;
  --orange:        #faa61a;
  --gray-brand:    #708089;

  /* Header */
  --topbar-bg:     #f5f5f5;
  --topbar-border: #e2e2e2;
  --header-bg:     #ffffff;
  --header-border: #ebebeb;

  /* Footer — kleuren exact uit footer kleuren.png */
  --footer-bg:        #5d7280;   /* slate blauw-grijs achtergrond */
  --footer-head:      #ffffff;   /* headings: wit, bold */
  --footer-text:      rgba(255, 255, 255, 0.65);  /* bodytekst: gedempte witte toon */
  --footer-link-nav:  rgba(255, 255, 255, 0.68);  /* nav-links: zelfde gedempte toon */
  --footer-link-email:#7dcdd3;   /* e-maillinks: lichte teal afgeleid van #00b5bd */

  /* Tekst */
  --text-dark:     #1e2a1e;
  --text-mid:      #4a5e4a;
  --text-muted:    #708089;

  /* Card */
  --card-bg:       #ffffff;
  --card-radius:   4px;
  --card-shadow:   0 12px 50px rgba(0, 0, 0, 0.25);

  --font: 'Open Sans', system-ui, -apple-system, sans-serif;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Utility top bar ── */
.top-bar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  font-size: 0.8rem;
  color: var(--gray-brand);
}

.top-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.top-bar__item {
  color: var(--gray-brand);
  text-decoration: none;
  transition: color 0.15s;
}

.top-bar__item:hover { color: var(--green-dark); }

/* ── Main header ── */
.main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.main-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo {
  height: 62px;
  width: auto;
  display: block;
}

.header-right { display: flex; align-items: center; }

.portal-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-brand);
  background: var(--topbar-bg);
  border: 1px solid var(--topbar-border);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── Hero (forest background + login) ── */
.hero {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 580px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 40, 22, 0.72) 0%,
    rgba(20, 40, 22, 0.55) 50%,
    rgba(10, 25, 12, 0.45) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 28px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
}

/* ── Hero tagline (left) ── */
.hero__tagline {
  flex: 1;
  max-width: 520px;
}

.hero__tagline-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__tagline-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

/* ── Login card (right) ── */
.login-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  overflow: hidden;
  border-top: 4px solid var(--green-dark);
}

.login-card__header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid #ebebeb;
}

.login-card__title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.login-card__subtitle {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ── Card body ── */
.login-card__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Microsoft button ── */
.btn-microsoft {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 20px;
  background-color: var(--green-dark);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 118, 19, 0.25);
  border: none;
  justify-content: center;
}

.btn-microsoft:hover {
  background-color: var(--green-forest);
  box-shadow: 0 4px 18px rgba(0, 118, 19, 0.30);
  transform: translateY(-1px);
}

.btn-microsoft:active { transform: translateY(0); }

.btn-microsoft__icon {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.btn-microsoft__icon svg { width: 18px; height: 18px; display: block; }

/* ── Blocked notice ── */
.blocked-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdf6ec;
  border: 1px solid #f5d9a0;
  border-radius: var(--card-radius);
  padding: 12px 14px;
}

.blocked-notice__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 1px;
}

.blocked-notice p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Card footer ── */
.login-card__footer {
  padding: 16px 36px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid #ebebeb;
  background: #fafafa;
}

.card-link {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 28px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--footer-head);
  margin-bottom: 14px;
  line-height: 1.3;
}

.footer-col__heading--spaced { margin-top: 28px; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  color: var(--footer-link-nav);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

.footer-link:hover { color: #ffffff; }

.footer-link--email { color: var(--footer-link-email); }

.footer-link--email:hover { color: #ffffff; }

.footer-text {
  font-size: 0.88rem;
  color: var(--footer-text);
  line-height: 1.65;
  margin-bottom: 6px;
}

.footer-text--muted {
  color: rgba(255,255,255,0.55);
  margin-top: 12px;
}

.footer-logo-wrap {
  margin-top: 28px;
  display: inline-block;
}

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 28px;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-link-plain {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
}

.footer-link-plain:hover { color: rgba(255,255,255,0.8); }

/* ── Portaal header rechts ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-claude-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--green-dark);
  border-radius: 20px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.header-claude-btn:hover {
  background: var(--green-dark);
  color: #fff;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-user__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.header-logout-btn {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--topbar-border);
  border-radius: 20px;
  transition: color 0.15s, border-color 0.15s;
}

.header-logout-btn:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

/* ── Portaal hoofdinhoud ── */
.portaal-main {
  flex: 1;
  background: #f4f6f4;
  padding: 48px 28px 64px;
}

.portaal-main__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.portaal-main__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
}

/* ── Moduletegels ── */
.modules-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.module-tile {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.13);
  height: 260px;
  flex: 0 0 calc(33.333% - 16px);
  min-width: 260px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.module-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,.2);
}

.module-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .3s ease;
}

.module-tile:hover .module-tile__bg {
  transform: scale(1.05);
}

.module-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,50,20,.88) 0%, rgba(20,50,20,.3) 55%, transparent 100%);
}

.module-tile--soon .module-tile__overlay {
  background: linear-gradient(to top, rgba(20,50,20,.93) 0%, rgba(20,50,20,.45) 60%, transparent 100%);
}

.module-tile__body {
  position: relative;
  padding: 22px 24px 24px;
}

.module-tile__title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}

.module-tile__sub {
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  line-height: 1.45;
}

.tile-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  font-size: .73rem;
  letter-spacing: .03em;
}

/* ── Minimale footer ── */
.site-footer--minimal {
  height: 40px;
  background: var(--footer-bg);
}

/* ── Portaal responsive ── */
@media (max-width: 960px) {
  .module-tile {
    flex: 0 0 calc(50% - 12px);
    max-width: none;
  }
  .header-user__name { display: none; }
}

@media (max-width: 600px) {
  .module-tile {
    flex: 0 0 100%;
    max-width: 100%;
    height: 200px;
  }
  .portaal-main { padding: 28px 16px 48px; }
  .header-claude-btn span { display: none; }
  .header-claude-btn { padding: 8px 10px; }
}

/* ── Inlogformulier ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--card-radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.login-input:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(0, 118, 19, 0.12);
}

.login-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--card-radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #b91c1c;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__content {
    flex-direction: column;
    gap: 40px;
    padding: 48px 24px;
  }

  .hero__tagline { max-width: 100%; }

  .hero__tagline-title { font-size: 1.8rem; }

  .login-card { max-width: 100%; }

  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .main-header__inner { height: 70px; }

  .logo { height: 50px; }

  .portal-badge { display: none; }

  .login-card__header,
  .login-card__body,
  .login-card__footer { padding-left: 24px; padding-right: 24px; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 36px 24px 28px;
  }

  .hero { min-height: auto; }
}
