/*
Theme Name: Hogenbirk Zand, Grind & Transport
Theme URI: https://hogenbirk.nl
Author: Crusty ICT
Author URI: https://crustyict.nl
Description: Een snel, toegankelijk maatwerkthema voor Hogenbirk Zand, Grind & Transport v.o.f.
Version: 1.8.2
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: hogenbirk
*/

:root {
  --red: #e72b24;
  --red-dark: #ba1713;
  --ink: #161616;
  --muted: #66645f;
  --sand: #eee7dc;
  --sand-light: #f8f5ef;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(22, 22, 22, .12);
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; padding: 12px 18px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(22,22,22,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: 0 1 440px; }
.brand img, .custom-logo { width: min(440px, 100%); max-height: 76px; object-fit: contain; object-position: left center; }
.brand-text { font-weight: 900; font-size: 1.25rem; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: .9rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--red); }
.menu-toggle { display: none; border: 0; padding: 12px; color: var(--white); background: var(--ink); border-radius: 8px; font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 2px solid var(--red); border-radius: 8px; color: var(--white); background: var(--red); font-weight: 900; text-decoration: none; transition: .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--red-dark); background: var(--red-dark); }
.button-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.button-outline:hover, .button-outline:focus-visible { color: var(--white); background: var(--ink); border-color: var(--ink); }

.hero { position: relative; overflow: hidden; min-height: 660px; display: grid; align-items: center; color: var(--white); background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(118deg, transparent 0 64px, #fff 65px 66px); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -180px; border: 82px solid var(--red); border-radius: 50%; opacity: .85; }
.hero-inner { position: relative; z-index: 1; padding-block: 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--red); font-size: .8rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 4px; background: currentColor; }
.hero .eyebrow { color: #ff5b53; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(3rem, 7vw, 6.3rem); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
.hero h1 span { color: var(--red); }
.hero-copy { max-width: 670px; margin: 26px 0 34px; color: #d4d4d4; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-outline { color: var(--white); border-color: var(--white); }
.hero .button-outline:hover { color: var(--ink); background: var(--white); }

.trust-strip { color: var(--white); background: var(--red); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 26px; border-left: 1px solid rgba(255,255,255,.25); text-align: center; }
.trust-item:last-child { border-right: 1px solid rgba(255,255,255,.25); }
.trust-item strong { display: block; font-size: 1.1rem; text-transform: uppercase; }
.trust-item span { font-size: .88rem; opacity: .86; }

.section { padding-block: 100px; }
.section-sand { background: var(--sand-light); }
.section-head { max-width: 720px; margin-bottom: 45px; }
.section-head h2, .content-area h1 { margin: 0 0 16px; font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { position: relative; overflow: hidden; min-height: 310px; padding: 34px; border: 1px solid #e4ded4; border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(22,22,22,.06); }
.service-card::after { content: attr(data-number); position: absolute; right: 18px; bottom: -30px; color: var(--sand); font-size: 8rem; font-weight: 900; line-height: 1; }
.service-card h3 { position: relative; z-index: 1; margin: 0 0 14px; font-size: 1.55rem; text-transform: uppercase; }
.service-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }

.fleet-section { padding-block: 100px; color: var(--white); background: var(--ink); }
.fleet-head { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 42px; }
.fleet-head h2 { max-width: 750px; margin: 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.fleet-head p { max-width: 380px; margin: 0; color: #bcbcbc; }
.fleet-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 16px; }
.fleet-photo { position: relative; overflow: hidden; margin: 0; border-radius: 16px; background: #292929; }
.fleet-photo:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.fleet-photo:nth-child(2) { grid-column: span 4; }
.fleet-photo:nth-child(3) { grid-column: span 4; }
.fleet-photo:nth-child(4), .fleet-photo:nth-child(5) { grid-column: span 6; }
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fleet-photo:hover img { transform: scale(1.035); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.split-visual { min-height: 430px; padding: 50px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); background: var(--red); }
.split-visual strong { max-width: 400px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: .95; text-transform: uppercase; }
.split-copy { padding: 60px; background: var(--ink); color: var(--white); }
.split-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; text-transform: uppercase; }
.split-copy p { color: #c9c9c9; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { content: "✓"; color: var(--red); font-weight: 900; }

.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job-card { display: flex; flex-direction: column; min-height: 260px; padding: 30px; border: 1px solid #ded8ce; border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(22,22,22,.06); }
.job-card h3 { margin: 10px 0 12px; font-size: 1.45rem; line-height: 1.15; text-transform: uppercase; }
.job-card p { color: var(--muted); }
.job-card .button { align-self: flex-start; margin-top: auto; }
.job-meta { color: var(--red-dark); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.empty-jobs { padding: 30px; border: 2px dashed #d2c8ba; border-radius: var(--radius); color: var(--muted); }

.vacancy-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: start; }
.application-form { padding: 34px; border-radius: var(--radius); background: var(--sand-light); box-shadow: var(--shadow); }
.application-form h2 { margin-top: 0; font-size: 1.8rem; text-transform: uppercase; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 800; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #bdb7ad; border-radius: 7px; background: var(--white); font: inherit; }
.form-field input[type="file"] { padding: 10px; }
.form-field input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 13px; border: 0; border-radius: 5px; color: var(--white); background: var(--ink); font-weight: 800; cursor: pointer; }
.form-help { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 3px solid rgba(231,43,36,.2); border-color: var(--red); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: .88rem; }
.form-check input { margin-top: 5px; }
.form-status { margin-bottom: 22px; padding: 14px 18px; border-radius: 8px; background: #e7f5e9; color: #155b25; font-weight: 700; }
.form-status.error { color: #84201c; background: #fde8e7; }

.cta { position: relative; overflow: hidden; padding: 74px 0; color: var(--white); background: var(--red); }
.cta::after { content: ""; position: absolute; inset: 0; opacity: .15; background: radial-gradient(circle at 85% 40%, transparent 0 100px, #000 101px 150px, transparent 151px); }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 720px; margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; text-transform: uppercase; }
.cta .button { flex: none; color: var(--white); border-color: var(--ink); background: var(--ink); }

.content-area { min-height: 55vh; padding-block: 80px; }
.content-area article { max-width: 820px; }
.content-area a { color: var(--red-dark); }

.about-hero { position: relative; overflow: hidden; padding: 105px 0 90px; color: var(--white); background: var(--ink); }
.about-hero::after { content: ""; position: absolute; width: 390px; height: 390px; right: -130px; top: -170px; border: 65px solid var(--red); border-radius: 50%; }
.about-hero-inner { position: relative; z-index: 1; max-width: 890px; }
.about-hero h1 { margin: 0 0 24px; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.about-hero .lead { max-width: 790px; margin: 0; color: #d6d6d6; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.about-featured { width: var(--wrap); height: clamp(280px, 48vw, 590px); margin: -42px auto 82px; position: relative; z-index: 2; overflow: hidden; border: 10px solid var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.about-featured img { width: 100%; height: 100%; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.about-card { padding: 38px; border: 1px solid #ded8ce; border-radius: var(--radius); background: var(--white); }
.about-card:first-child { color: var(--white); background: var(--red); border-color: var(--red); }
.about-card .number { display: block; margin-bottom: 34px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.about-card:first-child .number { color: var(--white); opacity: .8; }
.about-card h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.about-card p { margin: 0; }
.about-card:not(:first-child) p { color: var(--muted); }
.about-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 24px; padding: 42px; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.about-cta h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.about-cta p { margin: 0; color: #c9c9c9; }
.about-cta .button { flex: none; }
.about-gallery { padding-top: 82px; }
.about-gallery-head { max-width: 700px; margin-bottom: 34px; }
.about-gallery-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; text-transform: uppercase; }
.about-gallery .wp-block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-gallery .wp-block-gallery .wp-block-image { width: 100% !important; margin: 0 !important; }
.about-gallery .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.about-gallery > .wp-block-image img { border-radius: 14px; }

.page-hero { padding: 92px 0 76px; color: var(--white); background: var(--ink); }
.page-hero h1 { max-width: 900px; margin: 0 0 20px; font-size: clamp(3rem, 7vw, 5.7rem); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.page-hero p:last-child { max-width: 740px; margin-bottom: 0; color: #d0d0d0; font-size: 1.2rem; }
.service-detail { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 42px 0; border-bottom: 1px solid #dcd5ca; }
.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { padding-bottom: 0; border-bottom: 0; }
.service-detail-number { color: var(--red); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.service-detail h2 { margin: 0 0 13px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.service-detail p { max-width: 760px; margin: 0; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; }
.contact-panel { padding: 38px; border-radius: var(--radius); color: var(--white); background: var(--ink); }
.contact-panel h2 { margin: 0 0 26px; font-size: 2rem; text-transform: uppercase; }
.contact-line { padding: 18px 0; border-top: 1px solid #393939; }
.contact-line span { display: block; margin-bottom: 4px; color: #999; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-line a { color: var(--white); }
.contact-form { padding: 38px; border: 1px solid #ded8ce; border-radius: var(--radius); background: var(--sand-light); }
.contact-form h2 { margin: 0 0 10px; font-size: 2rem; text-transform: uppercase; }
.contact-form > p { margin-top: 0; color: var(--muted); }

.site-footer { padding: 68px 0 24px; color: #c9c9c9; background: #101010; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 50px; padding-bottom: 48px; }
.footer-brand img { width: min(380px, 100%); padding: 12px; background: var(--white); border-radius: 8px; }
.site-footer h2 { margin: 0 0 14px; color: var(--white); font-size: 1rem; text-transform: uppercase; }
.site-footer p { margin: 6px 0; }
.site-footer a { text-decoration-color: var(--red); text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid #343434; font-size: .85rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .header-inner { min-height: 78px; }
  .brand { flex-basis: 320px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 22px; color: var(--white); background: var(--ink); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .site-nav .button { margin-top: 18px; width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .fleet-head { align-items: flex-start; flex-direction: column; }
  .fleet-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .fleet-photo:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .fleet-photo:nth-child(1) { grid-column: 1 / -1; }
  .jobs-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .vacancy-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-gallery .wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-cta { align-items: flex-start; flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .hero { min-height: 570px; }
  .hero-inner { padding-block: 78px; }
  .trust-grid { grid-template-columns: 1fr; }
  .fleet-section { padding-block: 70px; }
  .fleet-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .fleet-photo:nth-child(n) { grid-column: auto; }
  .trust-item, .trust-item:last-child { border: 0; border-bottom: 1px solid rgba(255,255,255,.25); }
  .section { padding-block: 70px; }
  .split-copy, .split-visual { padding: 38px 28px; }
  .service-detail { grid-template-columns: 1fr; gap: 14px; }
  .about-gallery .wp-block-gallery { grid-template-columns: 1fr; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
