/*
Theme Name: Digi-Stock
Description: Zakelijke productcatalogus en inkoopaanvragen voor Digistock B.V.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: digi-stock
*/

@font-face {
    font-family: Manrope;
    src: url("assets/manrope.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --ink: #15151f;
    --muted: #585768;
    --night: #111119;
    --night-soft: #1b1a27;
    --paper: #f9f8f6;
    --white: #fff;
    --line: #dedce6;
    --accent: #5133cf;
    --accent-dark: #3e25a8;
    --accent-light: #b7a7ff;
    --shell: 1240px;
    --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.65 Manrope, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8767ff; outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.052em; }
p { margin: 0; }
.shell { max-width: calc(var(--shell) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 104px); }
.section h2 { font-size: clamp(1.9rem, 3.3vw, 3.15rem); }
.sr-only, .skip-link:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 12px 18px; background: var(--white); color: var(--ink); }
.arrow { color: inherit; font: 700 1.05em/1 system-ui, sans-serif; }

.site-header { background: var(--night); color: #fff; border-bottom: 1px solid #282733; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 29px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex: 0 0 auto; text-decoration: none; font-size: 1.45rem; line-height: 1.1; font-weight: 800; letter-spacing: -.07em; }
.brand-hyphen { color: var(--accent-light); }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; transform: rotate(-12deg); }
.brand-mark i { background: #c3b4ff; border-radius: 2px; }
.brand-mark i:nth-child(2) { background: #8d6aff; }
.brand-mark i:nth-child(3) { grid-column: span 2; background: #a48bff; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 42px); }
.site-nav a { text-decoration: none; color: #d3d0df; font-size: .88rem; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: .35em; }

.button { display: inline-flex; min-height: 49px; justify-content: center; align-items: center; gap: 14px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-size: .9rem; line-height: 1.35; font-weight: 800; text-align: center; }
.button:hover { background: var(--accent-dark); }
.button-small { min-height: 40px; padding: 8px 14px; font-size: .82rem; }
.button-outline { background: transparent; border-color: #67647c; }
.button-outline:hover { background: #2b263e; border-color: #ada2e9; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-dark); text-decoration: none; font-size: .91rem; font-weight: 800; text-underline-offset: .25em; }
.text-link:hover { text-decoration: underline; }

.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.09fr; align-items: center; gap: clamp(24px, 4vw, 56px); min-height: 500px; padding-block: clamp(44px, 5.2vw, 80px); }
.hero-copy { z-index: 1; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #ded4ff; font-size: .8rem; font-weight: 800; letter-spacing: .045em; }
.eyebrow span { flex: 0 0 8px; height: 8px; border-radius: 2px; background: #af96ff; transform: rotate(-12deg); }
.hero h1 { max-width: 12ch; font-size: clamp(3.2rem, 6.15vw, 6rem); line-height: 1; letter-spacing: -.07em; }
.hero h1 span, .page-hero h1 span { color: var(--accent-light); }
.hero-intro { max-width: 28rem; margin-block: 22px 26px; font-size: clamp(.97rem, 1.3vw, 1.12rem); color: #d0ccdd; }
.hero-media { overflow: hidden; min-height: 330px; height: 100%; border: 1px solid #2e2e37; border-radius: 10px; background: #121214; }
.hero-media img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: center; }

.section-top { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 26px; }
.section-top p { margin-top: 9px; color: var(--muted); }
.section-top > a { flex-shrink: 0; padding-bottom: 3px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 22px); }
.category-card { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; overflow: hidden; }
.category-visual { overflow: hidden; aspect-ratio: 1.52; background: #e7e5ef; }
.category-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.category-card:hover { border-color: #a28bf5; }
.category-card:hover img { transform: scale(1.035); }
.category-content { display: grid; grid-template-columns: 1fr 27px; align-items: start; gap: 7px 8px; padding: clamp(15px, 1.7vw, 22px); flex: 1; }
.category-content h3 { font-size: clamp(1.03rem, 1.65vw, 1.3rem); letter-spacing: -.03em; }
.category-content p { grid-column: 1; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.category-content .arrow { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #eeebfe; color: var(--accent-dark); font-size: .82rem; }

.inquiry-band { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(25px, 6vw, 110px); padding-top: 0; }
.inquiry-band > div, .steps { padding-top: clamp(25px, 4vw, 56px); border-top: 1px solid var(--line); }
.inquiry-band > div > p { max-width: 32rem; margin: 15px 0 20px; color: var(--muted); }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; display: flex; gap: 16px; }
.steps li + li { margin-top: 19px; }
.steps li::before { content: counter(steps); flex: 0 0 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #ece8ff; color: var(--accent-dark); font-size: .83rem; font-weight: 800; }
.steps h3 { margin-top: 3px; font-size: 1rem; letter-spacing: -.02em; }
.steps p { margin-top: 4px; color: var(--muted); font-size: .89rem; }

.page-hero { background: radial-gradient(ellipse at right bottom, #2c2248, transparent 59%), var(--night); color: #fff; }
.page-hero-inner { padding-block: 27px clamp(36px, 6.3vw, 74px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 24px; color: #c8c2db; font-size: .82rem; }
.breadcrumbs a { text-underline-offset: .22em; }
.page-hero h1 { font-size: clamp(2.8rem, 7.3vw, 5.7rem); overflow-wrap: anywhere; }
.page-hero p { margin-top: 15px; color: #ddd6ed; font-size: 1.06rem; max-width: 50ch; }
.page-hero .button-row { margin-top: 24px; }
.catalog-tools { display: grid; gap: 14px; margin-bottom: 27px; }
.category-grid + .catalog-tools, .category-grid + .catalog-inquiry { margin-top: 36px; }
.catalog-search { display: flex; gap: 8px; max-width: 580px; }
.catalog-search input { min-width: 0; flex: 1; }
.filter-links { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-links a, .pagination .page-numbers { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 700; }
.filter-links a:hover, .filter-links a[aria-current], .pagination .current { background: #ebe6fb; border-color: #b9a3fb; color: var(--accent-dark); }
.catalog-inquiry, .light-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: clamp(20px, 4vw, 42px); }
.catalog-inquiry.has-visual { display: grid; align-items: center; grid-template-columns: 1fr .65fr; gap: 28px; }
.catalog-inquiry img { width: 100%; border-radius: 12px; }
.catalog-inquiry h2, .light-card h2, .form-layout h2, .prose h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); }
.catalog-inquiry p, .light-card p { margin: 12px 0 18px; max-width: 52ch; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 23px; }
.product-card a { display: block; overflow: hidden; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.product-card a:hover { border-color: #a28bf5; }
.product-card img { width: 100%; aspect-ratio: 1.4; object-fit: contain; background: #f0eef5; }
.product-card a > div { padding: 19px; }
.product-card h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.product-card p { margin-top: 7px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.article-layout.has-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 36px; }
.article-image { overflow: hidden; border-radius: 16px; }
.article-image img { width: 100%; }
.spec-list { margin: 20px 0 25px; padding: 0; }
.spec-list:empty { display: none; }
.spec-list div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-block: 7px; }
.spec-list dt { font-weight: 800; }
.spec-list dd { margin: 0; overflow-wrap: anywhere; }

.form-layout { display: grid; grid-template-columns: .72fr 1.35fr; gap: clamp(28px, 7vw, 100px); align-items: start; }
.form-aside p { margin-top: 14px; color: var(--muted); }
.form-aside a { margin-top: 18px; }
.form-card { padding: clamp(19px, 3.5vw, 37px); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.form-card form { margin-top: 18px; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-card label { display: block; font-size: .83rem; font-weight: 800; }
.form-card label span { color: var(--accent); }
.form-card input:not([type=hidden]), .form-card select, .form-card textarea, .catalog-search input {
    width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #9893a7; border-radius: 7px;
    background: #fff; color: var(--ink);
}
.form-card input:not([type=hidden]), .form-card select, .form-card textarea { margin-top: 5px; font-size: 1rem; }
.form-card textarea { display: block; resize: vertical; }
.wide-input { margin-top: 14px; }
.trap { display: none; }
.form-caption { margin: 12px 0 16px; color: var(--muted); font-size: .79rem; }
.form-notice { margin: 15px 0; padding: 10px 12px; border-radius: 7px; color: #653d02; background: #fff1d2; }
.form-notice.success { color: #174e38; background: #e3f6ec; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-details { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); }
.prose { max-width: 83ch; }
.prose p, .prose ul { margin-block: 12px 20px; }
.prose > * + h2 { margin-top: 28px; }
.prose p a { color: var(--accent-dark); }

.site-footer { color: #d7d4e4; background: var(--night); }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 20px; align-items: start; padding-block: 38px; }
.footer-main .brand { color: #fff; }
.footer-main p { margin-top: 9px; color: #bbb5cf; font-size: .88rem; }
.footer-main nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .85rem; }
.footer-main nav a, .footer-bottom a { text-decoration: none; }
.footer-main nav a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-email { color: #e1d7ff; font-size: .88rem; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 16px; padding-block: 14px; border-top: 1px solid #343141; color: #bdb7ce; font-size: .77rem; }

@media (max-width: 970px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-visual { aspect-ratio: 1.8; }
    .hero h1 { font-size: clamp(3.15rem, 7vw, 5.6rem); }
    .header-inner { gap: 18px; }
}
@media (max-width: 730px) {
    .header-inner { min-height: 0; flex-wrap: wrap; padding-block: 14px 0; gap: 10px 14px; }
    .site-nav { order: 3; width: 100%; padding-block: 10px 12px; border-top: 1px solid #302d3a; gap: 8px 21px; }
    .site-nav a { font-size: .83rem; }
    .header-cta { min-height: 36px; margin-left: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 37px 24px; min-height: 0; }
    .hero h1 { font-size: clamp(2.88rem, 10.1vw, 4.65rem); }
    .hero-intro { margin-block: 14px 20px; }
    .hero-media, .hero-media img { min-height: 0; }
    .hero-media { aspect-ratio: 1.65; }
    .article-layout.has-visual, .form-layout, .inquiry-band { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inquiry-band { gap: 20px; }
    .inquiry-band .steps { padding-top: 0; border-top: 0; }
    .optional-break { display: none; }
    .footer-main { grid-template-columns: 1fr; padding-block: 30px; gap: 12px; }
}
@media (max-width: 460px) {
    .section-top { display: block; }
    .section-top > a { margin-top: 11px; }
    .input-grid, .contact-grid, .catalog-inquiry.has-visual { grid-template-columns: 1fr; }
    .catalog-inquiry.has-visual img { grid-row: 1; }
    .category-visual { aspect-ratio: 1.3; }
    .category-content { grid-template-columns: 1fr; padding: 12px; }
    .category-content .arrow { display: none; }
    .category-content h3 { overflow-wrap: anywhere; }
    .category-content p { font-size: .78rem; }
    .button-row .button { min-height: 45px; font-size: .83rem; padding-inline: 12px; gap: 8px; }
    .eyebrow { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
