/* ============================================================
   Matika — Page layouts (namespaced per template)
   .t-home · .t-services · .t-service · .t-about · .t-contact · .err
   ============================================================ */

/* ================= HOME ================= */
.t-home .hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding-top: var(--header-h);
  overflow: hidden;
}
.t-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.t-home .hero-bg img,
.t-home .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.t-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 25, 28, 0.96) 0%, rgba(13, 38, 58, 0.86) 46%, rgba(0, 107, 169, 0.4) 100%);
}
.t-home .hero-accent {
  position: absolute;
  left: 0;
  top: var(--header-h);
  bottom: 0;
  width: 4px;
  background: var(--yellow);
  z-index: 2;
}
.t-home .hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 90px);
  text-align: left;
}
.t-home .hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.t-home .hero h1 .accent {
  color: var(--yellow);
}
.t-home .hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
  margin-bottom: 30px;
}
.t-home .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--anthracite);
  background: var(--yellow);
  padding: 16px 28px;
  border-radius: var(--radius);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.t-home .hero-cta svg {
  transition: transform var(--t) var(--ease);
}
.t-home .hero-cta:hover {
  background: #ffc92b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.t-home .hero-cta:hover svg {
  transform: translateX(3px);
}

.t-home .refs {
  background: #fff;
  border-bottom: 1px solid var(--bg-line);
  padding-block: 40px;
}
.t-home .refs-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 30px;
}
.t-home .marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.t-home .marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: matika-marquee 60s linear infinite;
}
.t-home .marquee-track > * {
  margin-right: 110px;
  flex-shrink: 0;
}
.t-home .marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes matika-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.t-home .ref-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter var(--t) var(--ease), opacity var(--t) var(--ease);
}
.t-home .ref-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}
.t-home .ref-logo--lg {
  height: 72px;
  max-width: 260px;
}
.t-home .ref {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
  color: #9aa6b0;
  transition: color var(--t) var(--ease);
}
.t-home .ref:hover {
  color: var(--anthracite);
}
@media (prefers-reduced-motion: reduce) {
  .t-home .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

.t-home .intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.t-home .intro-left h2 {
  margin: 0;
}
.t-home .intro-right p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 26px;
}
.t-home .intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.t-home .head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.t-home .head-row h2 {
  max-width: 22ch;
  margin: 0;
}
.t-home .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-home .ontzorg {
  background: var(--anthracite);
  color: #fff;
}
.t-home .ontzorg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: clamp(64px, 8vw, 110px);
}
.t-home .ontzorg-text .eyebrow {
  color: var(--yellow);
  margin-bottom: 16px;
}
.t-home .ontzorg-text .eyebrow::before {
  background: var(--yellow);
}
.t-home .ontzorg-text h2 {
  color: #fff;
  margin-bottom: 18px;
}
.t-home .ontzorg-text p {
  color: var(--on-dark-mute);
  font-size: 1.06rem;
  max-width: 52ch;
  margin-bottom: 28px;
}
.t-home .ontzorg-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.t-home .ontzorg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1100px) {
  .t-home .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .t-home .intro-grid,
  .t-home .ontzorg-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .t-home .ontzorg-media {
    order: -1;
  }
}
@media (max-width: 720px) {
  .t-home .hero {
    min-height: auto;
    display: block;
  }
  .t-home .hero-inner {
    padding-block: 40px;
  }
  .t-home .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .t-home .cards {
    grid-template-columns: 1fr;
  }
}

/* ================= SERVICES ARCHIVE ================= */
.t-services .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 980px) {
  .t-services .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .t-services .cards {
    grid-template-columns: 1fr;
  }
}

/* ================= SINGLE SERVICE ================= */
.t-service .prose {
  max-width: 820px;
}
.t-service .prose .lead-p {
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.65;
}
.t-service .sec {
  margin-top: 34px;
}
.t-service .sec h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.t-service .sec p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.t-service .svc-cta {
  background: linear-gradient(120deg, var(--blue-800), var(--blue));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.t-service .svc-cta::after {
  content: '';
  position: absolute;
  right: -6%;
  top: -40%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(252, 187, 0, 0.18), transparent 62%);
}
.t-service .svc-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: clamp(44px, 6vw, 72px);
}
.t-service .svc-cta-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.t-service .svc-cta-copy h2 {
  color: #fff;
  margin-bottom: 10px;
}
.t-service .svc-cta-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin: 0;
}
.t-service .svc-cta-action {
  flex-shrink: 0;
}
.t-service .head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.t-service .head-row h2 {
  margin: 0;
}
@media (max-width: 820px) {
  .t-service .svc-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= ABOUT ================= */
.t-about .intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 52px;
  align-items: start;
}
.t-about .intro-main .lead {
  font-size: 1.14rem;
  margin-bottom: 16px;
}
.t-about .intro-main p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.t-about .intro-media {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.t-about .intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t-about .about-block {
  max-width: 980px;
}
.t-about .about-block .eyebrow {
  margin-bottom: 14px;
}
.t-about .about-block h2 {
  margin-bottom: 28px;
  max-width: 26ch;
}
.t-about .about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.t-about .about-cols p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.t-about .about-close {
  margin: 30px 0 0;
  max-width: 62ch;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 960px) {
  .t-about .intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .t-about .intro-media {
    position: static;
    aspect-ratio: 16 / 10;
    order: -1;
  }
}
@media (max-width: 760px) {
  .t-about .about-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ================= CONTACT ================= */
.t-contact .contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: start;
}
.t-contact .info h2 {
  font-size: 1.7rem;
}
.t-contact .info .lead {
  margin-bottom: 28px;
}
.t-contact .info-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.t-contact .info-list li {
  display: flex;
  gap: 14px;
  align-items: center;
}
.t-contact .ic {
  flex-shrink: 0;
  width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.t-contact .info-list .lbl {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.t-contact .info-list a,
.t-contact .info-list div span:not(.lbl) {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t) var(--ease);
}
.t-contact .info-list a:hover {
  color: var(--blue);
}
.t-contact .form-wrap {
  background: #fff;
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(26px, 4vw, 42px);
}
.t-contact .form-intro {
  margin-bottom: 18px;
}
.t-contact .form-intro h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.t-contact .form-intro p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}
@media (max-width: 920px) {
  .t-contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ================= 404 ================= */
.err {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--anthracite);
  color: #fff;
}
.err .inner {
  text-align: center;
  max-width: 620px;
}
.err .code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  color: var(--yellow);
}
.err h1 {
  color: #fff;
  margin: 8px 0 14px;
}
.err p {
  color: var(--on-dark-mute);
  margin-bottom: 26px;
}
.err .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= FULL-WIDTH (Elementor / manual pages) ================= */
/* Content sits below the fixed header; Elementor/blocks handle their own
   widths and responsiveness edge-to-edge. */
.t-fullwidth {
  padding-top: var(--header-h);
}

/* ================= GENERIC PAGE / SEARCH / INDEX ================= */
.t-page .prose {
  max-width: 820px;
}
.t-page .prose h2 {
  font-size: 1.5rem;
  margin: 1.6em 0 0.5em;
}
.t-page .prose h3 {
  margin: 1.4em 0 0.4em;
}
.t-page .prose p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.t-page .prose ul,
.t-page .prose ol {
  color: var(--ink-soft);
  font-size: 1.08rem;
  padding-left: 1.2em;
}
.t-page .prose a {
  color: var(--blue);
  text-decoration: underline;
}
.t-page .cards .card .body h3 a {
  color: inherit;
}
.t-page .cards .card .body h3 a:hover {
  color: var(--blue);
}
