/*
Theme Name: SKEE Custom Theme V5
Author: OpenAI
Description: Verbeterde custom WordPress theme voor SK Elektro Engineering, met werkende homepage en koppeling naar het klantenportaal.
Version: 5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: skee-theme
*/

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --text: #182434;
  --muted: #5e7085;
  --line: #dbe6f0;
  --primary: #11a8e8;
  --primary-dark: #0f2135;
  --accent: #1f5fff;
  --dark: #0b1726;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(10, 27, 45, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f7f9fc 0%, #f2f6fb 100%);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219,230,240,0.8);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.brand-image, .custom-logo {
  width: auto;
  max-height: 56px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  color: var(--primary-dark);
}
.main-nav a:hover,
.footer-links a:hover,
.text-link:hover { color: var(--primary); }
.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px auto;
  transition: .25s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: linear-gradient(90deg, #08203a 0%, #0a1e35 38%, #082652 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.18;
}
.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}
.hero-orb-1 {
  width: 260px;
  height: 260px;
  right: -60px;
  top: 110px;
  background: rgba(17,168,232,0.18);
}
.hero-orb-2 {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: 80px;
  background: rgba(31,95,255,0.14);
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 70px 0 84px;
}
.hero-copy { max-width: 720px; }
.eyebrow,
.section-kicker,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  padding: 9px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-kicker {
  color: var(--primary);
  margin-bottom: 10px;
}
.kicker-light { color: #7ed4ff; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 650px;
  color: rgba(255,255,255,0.84);
}
.hero-actions,
.contact-actions,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.cta-link,
.btn-secondary,
.header-button,
.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta-link,
.header-button,
.portal-button {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(17,168,232,0.28);
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  background: rgba(255,255,255,0.05);
}
.btn-dark {
  color: var(--primary-dark);
  background: transparent;
  border: 1px solid var(--line);
}
.header-actions { margin-top: 0; }
.header-button {
  min-height: 44px;
  padding: 10px 16px;
  font-size: .95rem;
}

.header-button-secondary {
  color: var(--primary-dark);
  background: white;
  box-shadow: none;
  border: 1px solid var(--line);
}
.portal-button {
  min-height: 46px;
  padding: 10px 18px;
}
.cta-link:hover,
.btn-secondary:hover,
.header-button:hover,
.portal-button:hover { transform: translateY(-2px); }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-size: .95rem;
}
.hero-panel {
  display: flex;
  justify-content: flex-end;
}
.hero-panel-card,
.card,
.service-card,
.audience-card,
.process-card,
.portal-card,
.contact-strip {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel-card {
  width: min(100%, 430px);
  padding: 30px;
  color: var(--text);
}
.hero-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.hero-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hero-list li:last-child { border-bottom: 0; }

.section { padding: 86px 0; }
.section-muted { background: linear-gradient(180deg, rgba(238,244,250,0.55), rgba(238,244,250,0.85)); }
.section-dark {
  background: linear-gradient(135deg, #081321 0%, #0f2135 100%);
  color: white;
}
.section-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.title-light { color: white; }
.title-small { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}
.intro-light { color: rgba(255,255,255,0.78); }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.split-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 26px;
  align-items: end;
  margin-bottom: 24px;
}
.card,
.portal-card { padding: 30px; }
.intro-card,
.emphasis-card { border: 1px solid var(--line); }
.services-grid,
.audience-grid,
.process-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card,
.audience-card,
.process-card {
  padding: 28px;
  border: 1px solid rgba(219,230,240,0.8);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(17,168,232,0.12), rgba(31,95,255,0.12));
  margin-bottom: 14px;
}
.service-card h3,
.audience-card h3,
.process-card h3,
.portal-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.service-card p,
.audience-card p,
.process-card p,
.portal-card p,
.card p { margin: 0; color: var(--muted); }
.section-dark .process-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: white;
}
.section-dark .process-card p { color: rgba(255,255,255,0.76); }
.process-number {
  display: inline-flex;
  min-width: 54px;
  min-height: 54px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: rgba(126,212,255,0.1);
  color: #7ed4ff;
  margin-bottom: 16px;
}
.portal-grid .portal-card {
  border: 1px solid var(--line);
}
.contact-strip {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
}
.contact-strip p { color: var(--muted); }
.site-footer {
  padding: 34px 0 18px;
  background: #091523;
  color: rgba(255,255,255,0.86);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .9fr;
  gap: 24px;
  padding-bottom: 28px;
}
.site-footer h3,
.site-footer h4 { margin: 0 0 12px; color: white; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 10px; }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
}
.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.62);
  font-size: .95rem;
}
.page-shell {
  padding: 64px 0 90px;
}
.page-shell .entry-content,
.page-shell .page-content {
  max-width: 980px;
  margin: 0 auto;
}
body.page .entry-content,
body.page .page-content { font-size: 1rem; }
body.page .entry-content .skee-card { border-radius: 24px; }
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .split-head,
  .footer-grid,
  .services-grid,
  .audience-grid,
  .process-grid,
  .portal-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }
  .contact-strip {
    display: grid;
  }
  .site-header-inner {
    min-height: 80px;
  }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a,
  .header-button {
    display: block;
    padding: 12px 10px;
    border-radius: 14px;
  }
  .header-actions {
    display: none;
  }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .hero-grid { min-height: auto; padding: 54px 0 72px; }
  .hero-panel-card,
  .card,
  .portal-card,
  .service-card,
  .audience-card,
  .process-card,
  .contact-strip { padding: 24px; }
}


/* Front-end toolbar removal and portal contrast helpers */
html{margin-top:0!important;}
body.admin-bar{margin-top:0!important;padding-top:0!important;}
#wpadminbar{display:none!important;}

.skee-portal-shell .skee-notice.warning{background:#fff4d8;border-color:#f3c469;color:#7a4d00;}
.skee-portal-shell .skee-notice.success{background:#e8fff4;border-color:#89ddb4;color:#0f6a42;}

@media (max-width: 768px) {
  .skee-portal-shell,
  .skee-portal-layout,
  .skee-portal-grid {
    display: block !important;
  }

  .skee-portal-sidebar {
    margin-bottom: 16px;
    width: 100%;
  }

  .skee-portal-sidebar a,
  .skee-portal-nav a {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .skee-portal-content,
  .skee-portal-main {
    width: 100%;
  }

  .skee-card,
  .skee-panel,
  .skee-portal-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .skee-form-row,
  .skee-grid-2,
  .skee-grid-3 {
    display: block !important;
  }

  .skee-form-row > *,
  .skee-grid-2 > *,
  .skee-grid-3 > * {
    width: 100% !important;
    margin-bottom: 12px;
  }

  .skee-portal-content input,
  .skee-portal-content select,
  .skee-portal-content textarea,
  .skee-portal-content button,
  .skee-portal-content .button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .skee-portal-content textarea {
    min-height: 120px;
  }

  .skee-status,
  .status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
  }

  table.skee-table,
  .skee-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {

  /* HERO TITLE FIX */
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  /* HERO TEKST */
  .hero p {
    font-size: 0.95rem;
  }

  /* KNOPPEN ONDER ELKAAR */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta-link,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* HERO BADGES NETTER */
  .hero-points {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points span {
    width: 100%;
    text-align: center;
  }

  /* WITTE KAART FIX */
  .hero-panel-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
  }

  /* ALGEMENE PADDING */
  .container {
    width: calc(100% - 24px);
  }

  /* TITELS SECTIES */
  .section-title {
    font-size: 1.8rem;
  }

}
@media (max-width: 480px) {

  /* HERO TITLE FIX */
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  /* HERO TEKST */
  .hero p {
    font-size: 0.95rem;
  }

  /* KNOPPEN ONDER ELKAAR */
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .cta-link,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* HERO BADGES NETTER */
  .hero-points {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-points span {
    width: 100%;
    text-align: center;
  }

  /* WITTE KAART FIX */
  .hero-panel-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
  }

  /* ALGEMENE PADDING */
  .container {
    width: calc(100% - 24px);
  }

  /* TITELS SECTIES */
  .section-title {
    font-size: 1.8rem;
  }

}
@media (max-width: 480px) {
  .cta-link {
    box-shadow: 0 12px 24px rgba(17,168,232,0.35);
  }

  .cta-link:active {
    transform: scale(0.98);
  }
}
@media (max-width: 480px) {
  .hero p {
    opacity: 0.9;
  }
}
body {
  -webkit-font-smoothing: antialiased;
}
/* Desktop hero fix */
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: 56px;
    align-items: center;
  }

  .hero-copy {
    max-width: 760px;
    padding-right: 10px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: clamp(3.4rem, 5.6vw, 5.4rem);
    line-height: 1.02;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero p {
    max-width: 640px;
  }

  .hero-panel {
    justify-content: flex-end;
    align-self: center;
  }

  .hero-panel-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 390px;
    margin-left: auto;
  }
}

/* Witte kaart: labelkleur corrigeren */
.hero-panel-card .kicker-light,
.hero-panel-card .section-kicker,
.hero-panel-card .mini-label,
.hero-panel-card .eyebrow {
  color: var(--primary) !important;
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 12px;
}

/* Extra leesbaarheid in witte kaart */
.hero-panel-card h3,
.hero-panel-card h2,
.hero-panel-card strong {
  color: var(--primary-dark);
}

.hero-panel-card p,
.hero-panel-card li {
  color: var(--muted);
}

/* Veiligheid: niets buiten beeld duwen */
.hero {
  overflow: hidden;
}

.hero-panel-card {
  box-sizing: border-box;
}
@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 360px);
    gap: 72px;
    align-items: center;
  }

  .hero-copy {
    max-width: 780px;
    padding-right: 24px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(3.2rem, 5.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .hero p {
    max-width: 620px;
  }

  .hero-panel {
    justify-content: flex-end;
    padding-left: 28px;
  }

  .hero-panel-card {
    max-width: 340px;
    padding: 28px;
    border-radius: 28px;
  }
}
@media (min-width: 1100px) {
  .hero-actions {
    margin-top: 22px;
  }

  .hero-points {
    margin-top: 18px;
  }
}