/*
Theme Name: Allard Sijtsinga 2026
Theme URI: https://allardsijtsinga.frl/
Description: Child theme of Twenty Twenty-Five for Allard Sijtsinga Agrarische Dienstverlening.
Author: Allard Sijtsinga
Template: twentytwentyfive
Version: 1.0.4
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allard-2026
*/

:root {
	--as-leaf-light: #9CCD9A;
	--as-radius-lg: 28px;
	--as-radius: 18px;
	--as-shadow: 0 1px 2px rgba(24, 33, 26, .06), 0 12px 32px -12px rgba(24, 33, 26, .18);
	--as-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
[id] { scroll-margin-top: 96px; }

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-1);
	outline-offset: 3px;
	border-radius: 6px;
}

.as-skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--wp--preset--color--accent-2); color: #fff;
	padding: .75rem 1rem; border-radius: 10px;
}
.as-skip-link:focus { top: 1rem; }

/* ---------- Eyebrow / lead ---------- */
.as-eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: .8125rem !important; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--accent-6);
	margin-bottom: 0 !important;
}
.as-eyebrow::before {
	content: ""; width: 1.75rem; height: 2px; border-radius: 2px;
	background: currentColor; opacity: .9;
}
.has-text-align-center.as-eyebrow,
.as-eyebrow.has-text-align-center { justify-content: center; }
.as-on-dark .as-eyebrow, .as-eyebrow.as-on-dark { color: var(--as-leaf-light); }
.as-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--wp--preset--color--accent-4); }
.as-on-dark .as-lead, .as-on-dark p { color: rgba(247, 245, 239, .82); }
.as-on-dark :where(h1, h2, h3, h4) { color: var(--wp--preset--color--base); }

/* ---------- Header ---------- */
.as-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--as-ease), box-shadow .3s var(--as-ease);
}
/* Glass effect lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu overlay. */
.as-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(247, 245, 239, .82);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
}
.admin-bar .as-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .as-header { top: 0; } }
.as-header.is-scrolled {
	border-bottom-color: rgba(33, 46, 33, .08);
	box-shadow: 0 8px 24px -18px rgba(24, 33, 26, .35);
}
.as-brand { text-decoration: none; display: flex; align-items: center; gap: .8rem; color: var(--wp--preset--color--accent-2); }
.as-brand img { width: 42px; height: auto; display: block; transition: transform .4s var(--as-ease); }
.as-brand:hover img { transform: rotate(-8deg) scale(1.04); }
.as-brand-text { display: flex; flex-direction: column; line-height: 1; }
.as-brand-name {
	font-family: var(--wp--preset--font-family--heading); font-weight: 700;
	font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase;
}
.as-brand-tag {
	font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--wp--preset--color--accent-6); margin-top: .3rem;
}
.as-header .wp-block-navigation a { text-decoration: none; position: relative; }
.as-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
	background: var(--wp--preset--color--accent-1); border-radius: 2px;
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--as-ease);
}
.as-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.as-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.as-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--accent-2) !important; color: var(--wp--preset--color--base) !important;
	padding: 2rem;
}
.as-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading); font-size: 2.5rem; font-weight: 700; text-transform: uppercase;
}
.as-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
.as-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important; padding-top: 3rem;
}
.as-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important; gap: 1rem !important;
}
.as-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover { color: var(--as-leaf-light); }
.as-header .wp-block-navigation__responsive-container.is-menu-open :focus-visible { outline-color: var(--as-leaf-light); }
.as-header-cta .wp-block-button__link { padding: .7rem 1.2rem; font-size: .9375rem; }
.as-header-cta .wp-block-button__link::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 781px) {
	.as-brand-tag { display: none; }
	.as-brand-name { font-size: 1.25rem; }
	.as-header-cta .wp-block-button__link { font-size: 0; padding: .7rem; }
	.as-header-cta .wp-block-button__link::before { font-size: 1.1rem; margin: 0; }
}

/* ---------- Hero ---------- */
.as-hero.wp-block-cover { border-radius: var(--as-radius-lg); overflow: hidden; }
.as-hero .wp-block-cover__image-background { transform: scale(1.04); animation: as-hero-zoom 14s var(--as-ease) forwards; }
@keyframes as-hero-zoom { to { transform: scale(1); } }
.as-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(180deg, rgba(24, 33, 26, .05) 0%, rgba(24, 33, 26, .25) 40%, rgba(24, 33, 26, .86) 100%),
		linear-gradient(90deg, rgba(24, 33, 26, .55) 0%, rgba(24, 33, 26, 0) 65%) !important;
}
.as-hero h1 { color: #fff; max-width: 14ch; }
.as-hero .as-lead { color: rgba(255, 255, 255, .88); max-width: 46ch; }
.as-hero .as-eyebrow { color: var(--as-leaf-light); }
.as-btn-ghost .wp-block-button__link {
	background: rgba(255, 255, 255, .08) !important; color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, .55) !important;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.as-btn-ghost .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--accent-2) !important; }
.as-btn-outline .wp-block-button__link {
	background: transparent !important; color: var(--wp--preset--color--accent-2) !important;
	border: 1.5px solid currentColor !important;
}
.as-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--accent-2) !important; color: #fff !important; }
.wp-block-button__link { transition: background-color .25s var(--as-ease), color .25s var(--as-ease), transform .25s var(--as-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Trust strip */
.as-trust { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.as-trust li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--wp--preset--color--accent-2); }
.as-trust li::before, .as-check li::before {
	content: ""; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%;
	background: var(--wp--preset--color--accent-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.as-check { list-style: none; padding: 0 !important; display: grid; gap: .7rem; }
.as-check li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }

/* ---------- Cards ---------- */
.as-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--as-radius-lg);
	box-shadow: var(--as-shadow);
	transition: transform .4s var(--as-ease), box-shadow .4s var(--as-ease);
	height: 100%;
}
.as-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(24, 33, 26, .06), 0 24px 48px -18px rgba(24, 33, 26, .28); }
.as-card .wp-block-image { overflow: hidden; border-radius: var(--as-radius); margin-bottom: 0; }
.as-card .wp-block-image img { transition: transform .8s var(--as-ease); }
.as-card:hover .wp-block-image img { transform: scale(1.05); }
.as-card-num {
	font-family: var(--wp--preset--font-family--heading); font-weight: 600;
	font-size: .9375rem !important; letter-spacing: .12em; color: var(--wp--preset--color--accent-6);
}
.wp-block-columns.as-cards > .wp-block-column { display: flex; flex-direction: column; }

/* Feature rows on dark */
.as-feature { border-top: 1px solid rgba(247, 245, 239, .16); padding-top: 1.5rem; }
.as-feature h3 { font-size: var(--wp--preset--font-size--x-large) !important; }
.as-feature-num { font-family: var(--wp--preset--font-family--heading); font-weight: 600; color: var(--as-leaf-light); letter-spacing: .1em; }

.as-rounded, .as-rounded img { border-radius: var(--as-radius-lg); }
.as-img-fill { height: 100%; margin: 0 !important; }
.as-img-fill img { height: 100% !important; width: 100%; object-fit: cover; min-height: 360px; border-radius: var(--as-radius-lg); }

/* ---------- Projects grid ---------- */
.as-projects .wp-block-post { position: relative; }
.as-project-card { position: relative; border-radius: var(--as-radius-lg); overflow: hidden; isolation: isolate; background: var(--wp--preset--color--accent-2); }
.as-project-card .wp-block-post-featured-image { margin: 0; border-radius: 0; }
.as-project-card .wp-block-post-featured-image img { border-radius: 0; transition: transform .9s var(--as-ease), opacity .4s; }
.as-project-card:hover .wp-block-post-featured-image img { transform: scale(1.06); opacity: .85; }
.as-project-card::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(180deg, rgba(24, 33, 26, 0) 40%, rgba(24, 33, 26, .88) 100%);
}
.as-project-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem 1.75rem; }
.as-project-meta .wp-block-post-title { color: #fff; margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.as-project-meta .wp-block-post-title a { color: inherit; text-decoration: none; }
.as-project-meta .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.as-project-meta .wp-block-post-terms { color: var(--as-leaf-light); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.as-project-meta .wp-block-post-terms a { color: inherit; text-decoration: none; position: relative; z-index: 4; }

/* ---------- CTA band ---------- */
.as-cta { border-radius: var(--as-radius-lg); position: relative; overflow: hidden; }
.as-cta::after {
	content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 380px; pointer-events: none;
	background: url("assets/img/mark.png") center / contain no-repeat; opacity: .07; transform: rotate(-12deg);
}
.as-cta > * { position: relative; z-index: 1; }

/* ---------- Page hero (inner pages) ---------- */
.as-page-hero h1 { max-width: 16ch; }

/* ---------- Footer ---------- */
.as-footer a { color: var(--wp--preset--color--base); text-decoration: none; }
.as-footer a:hover { color: var(--as-leaf-light); }
.as-footer h2 { font-size: 1rem !important; letter-spacing: .14em; color: var(--as-leaf-light) !important; font-family: var(--wp--preset--font-family--body); font-weight: 600; }
.as-footer ul { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .5rem; }
.as-footer .as-footer-bottom { border-top: 1px solid rgba(247, 245, 239, .14); color: rgba(247, 245, 239, .6); }
.as-footer .as-footer-bottom a { color: rgba(247, 245, 239, .75); }
.as-footer-mark img { width: 64px; height: auto; }

/* ---------- Contact ---------- */
.as-info-card { background: var(--wp--preset--color--white); border-radius: var(--as-radius); padding: 1.5rem 1.75rem; box-shadow: var(--as-shadow); }
.as-info-card h3 { font-family: var(--wp--preset--font-family--body) !important; text-transform: uppercase; font-size: .75rem !important; letter-spacing: .14em; color: var(--wp--preset--color--accent-6) !important; margin-bottom: .5rem; }
.as-info-card p { margin: 0; }
.as-info-card a { text-decoration: none; font-weight: 600; color: var(--wp--preset--color--accent-2); }
.as-info-card a:hover { color: var(--wp--preset--color--accent-6); }

.as-form { display: grid; gap: 1.1rem; }
.as-form .as-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .as-form .as-row { grid-template-columns: 1fr; } }
.as-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .4rem; color: var(--wp--preset--color--accent-2); }
.as-form label .as-opt { font-weight: 400; color: var(--wp--preset--color--accent-4); }
.as-form input[type=text], .as-form input[type=email], .as-form input[type=tel], .as-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base); border: 1.5px solid #DCD6C6; border-radius: 12px;
	padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.as-form textarea { min-height: 170px; resize: vertical; }
.as-form input:focus, .as-form textarea:focus {
	outline: none; border-color: var(--wp--preset--color--accent-1); background: #fff;
	box-shadow: 0 0 0 4px rgba(92, 154, 91, .2);
}
.as-form .as-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.as-form button {
	justify-self: start; cursor: pointer; border: 0; font: inherit; font-weight: 600;
	background: var(--wp--preset--color--accent-6); color: #fff; border-radius: 999px; padding: .95rem 1.9rem;
	transition: background-color .25s, transform .25s;
}
.as-form button:hover { background: var(--wp--preset--color--accent-2); transform: translateY(-1px); }
.as-form .as-privacy { font-size: .875rem; color: var(--wp--preset--color--accent-4); margin: 0; }
.as-notice { border-radius: 12px; padding: 1rem 1.25rem; font-weight: 500; }
.as-notice.is-success { background: #E3F0E2; color: #1F4A1F; }
.as-notice.is-error { background: #F8E3DE; color: #6B2414; }

.as-map { position: relative; border-radius: var(--as-radius-lg); overflow: hidden; background: var(--wp--preset--color--accent-2); min-height: 380px; display: grid; place-items: center; text-align: center; }
.as-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.as-map-placeholder { color: var(--wp--preset--color--base); padding: 2rem; max-width: 34rem; }
.as-map-placeholder p { color: rgba(247, 245, 239, .8); font-size: .9375rem; }
.as-map-placeholder .as-map-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.25rem; }
.as-map-placeholder button, .as-map-placeholder a {
	cursor: pointer; font: inherit; font-weight: 600; border-radius: 999px; padding: .8rem 1.4rem; text-decoration: none;
	border: 1.5px solid rgba(247, 245, 239, .5); background: transparent; color: var(--wp--preset--color--base);
}
.as-map-placeholder button { background: var(--wp--preset--color--accent-1); border-color: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--accent-2); }
.as-map-placeholder button:hover, .as-map-placeholder a:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent-2); border-color: var(--wp--preset--color--base); }

/* ---------- Single project ---------- */
.as-back { font-weight: 600; text-decoration: none !important; }
.as-back::before { content: "← "; }
.single-my-product .wp-block-post-content img { border-radius: var(--as-radius); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
	.as-js .as-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--as-ease), transform .9s var(--as-ease); }
	.as-js .as-reveal.is-visible { opacity: 1; transform: none; }
	.as-js .as-cards > .wp-block-column:nth-child(2) .as-reveal,
	.as-js .as-reveal.as-delay-1 { transition-delay: .12s; }
	.as-js .as-cards > .wp-block-column:nth-child(3) .as-reveal,
	.as-js .as-reveal.as-delay-2 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
	.as-hero .wp-block-cover__image-background { animation: none; transform: none; }
	.as-card, .as-card img, .as-project-card img, .wp-block-button__link { transition: none !important; }
}

/* ---------- Fixes ---------- */
:where(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.as-map-placeholder h3 { color: var(--wp--preset--color--base); font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .5rem; }
