/*
Theme Name: PascALL-Tech Classic
Theme URI: https://www.pascall-tech.be
Author: Esbee. IT Consultancy
Author URI: https://www.esbee.io
Description: Klassiek PHP-thema voor PascALL-Tech — Elektrische huisinstallaties. Bouwt de website met aparte PHP-bestanden (geen blokken), zodat alle markup, styling en inhoud rechtstreeks in de code aanpasbaar zijn.
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pascall-tech-classic
Tags: one-column, custom-logo, custom-menu, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN TOKENS — wijzig hier de huisstijl in één keer
   ============================================================ */
:root {
  /* Kleuren */
  --green: #023d3b; /* primair: donkergroen/teal */
  --accent: #d96101; /* accent:  oranje/oker */
  --bg: #f6f3ed; /* warme lichtgrond */
  --text: #1f2726;
  --surface: #ffffff;
  --secondary: #5e6966;
  --rules: #dfe2dd;
  --birch: #e9e4dc;

  /* Typografie */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: clamp(2rem, 5vw, 4rem);
  --font-headline: clamp(1.4rem, 2.4vw, 1.9rem);
  --font-body: 1.0625rem;
  --font-label: 0.8rem;
  --font-small: 0.85rem;

  /* Maten */
  --radius: 4px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --content: 1000px;
  --wide: 1280px;
}

/* ============================================================
   BASIS
   ============================================================ */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--text);
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition:
    color 0.25s ease-out,
    opacity 0.25s ease-out;
}
a:hover {
  color: var(--green);
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0.9rem 1.6rem;
  font-size: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background-color 0.25s ease-out,
    color 0.25s ease-out,
    opacity 0.25s ease-out;
}
.btn:hover {
  color: #fff;
  opacity: 0.9;
}
.btn.outline {
  background: transparent;
  color: var(--green);
}
.btn.outline:hover {
  background: var(--green);
  color: #fff;
  opacity: 1;
}

.container {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow {
  max-width: var(--content);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--rules);
  color: var(--text);
}
.site-header a {
  color: var(--text);
  text-decoration: none;
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem var(--gutter);
  max-width: var(--wide);
  margin-inline: auto;
}
.site-brand {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.site-brand img {
  max-height: 46px;
  width: auto;
  display: block;
}
.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover {
  opacity: 0.8;
}

/* Header over de hero (alleen op de homepage) */
body:not(.is-front) .site-header {
  position: relative;
}
body.is-front .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(23, 30, 40, 0.45), transparent);
  border-bottom: none;
  color: #fff;
}
body.is-front .site-header a,
body.is-front .site-brand {
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(23, 30, 40, 0.74) 0%,
    rgba(23, 30, 40, 0.5) 40%,
    rgba(23, 30, 40, 0.16) 62%,
    transparent 78%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 7rem var(--gutter) 6rem;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--font-label);
  color: #fff;
  opacity: 0.92;
}
.hero h1 {
  color: #fff;
  font-size: var(--font-display);
}
.hero p {
  color: #f4f1ea;
  max-width: 34em;
}
.hero .btn {
  margin-top: 0.4rem;
}

/* ============================================================
   BANDS & SECTIES
   ============================================================ */
.band {
  padding-block: clamp(5rem, 9vw, 8rem);
}
.band--bg {
  background: var(--bg);
}
.band--surface {
  background: var(--surface);
}
.band--birch {
  background: var(--birch);
}

.band__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.band__head h2 {
  font-size: var(--font-headline);
  margin: 0;
}
.band__head p {
  color: var(--secondary);
  font-size: var(--font-small);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--font-label);
  color: var(--accent);
}

/* Diensten: 3 kaarten */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rules);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__media {
  height: 190px;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__body {
  padding: 1.5rem 1.6rem 1.7rem;
}
.card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
.card__body p {
  font-size: var(--font-small);
  color: var(--text);
  margin: 0;
}

/* Over ons: twee kolommen */
.split {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 3rem;
}
.split__media img {
  border-radius: var(--radius);
  display: block;
  width: 100%;
}
.feat {
  color: var(--secondary);
  font-size: var(--font-small);
}

/* Contact CTA */
.cta {
  text-align: center;
}
.cta h2 {
  font-size: var(--font-headline);
}
.cta p {
  max-width: 34em;
  margin-inline: auto;
}
.cta .cta__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   INNER PAGINA'S (page.php, privacy, voorwaarden)
   ============================================================ */
.entry {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.entry h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 1.2rem;
}
.entry h2 {
  font-size: 1.45rem;
  margin-top: 1.6em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--rules);
  padding-block: clamp(3rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
}
.footer-grid h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.2em 0 0.6em;
}
.footer-grid p {
  margin: 0 0 0.6em;
}
.footer-brand-label,
.footer-col-label {
  font-size: var(--font-label);
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rules);
  color: var(--secondary);
  font-size: var(--font-small);
}
.footer-bottom a {
  font-size: var(--font-small);
}

/* Back-to-top (rond, groen) */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: 1.5rem;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.22);
  transition:
    background-color 0.3s,
    opacity 0.35s ease-out,
    transform 0.35s ease-out,
    visibility 0.35s;
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
}
.to-top:hover {
  background: #00504d;
  color: #fff;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hero__inner {
    padding-top: 6.5rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
