/*
Theme Name: Atlas Verkeersopleidingen
Theme URI: https://atlasverkeersopleidingen.nl
Author: Evers Operations
Author URI: https://eversoperations.com
Description: Eigen blokthema voor Atlas Verkeersopleidingen. Teksten, foto's en prijzen zijn aan te passen in de WordPress-editor.
Version: 0.2.1
Requires at least: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: atlas
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #32dba7; color: #11161b; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

/* ---------- Header ---------- */
.atlas-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid #e2e0d8;
}
.admin-bar .atlas-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .atlas-header { top: 0; } }
.atlas-header .wp-block-site-logo img { height: auto; }
.atlas-header .wp-block-navigation a { text-decoration: none; }
.atlas-header .wp-block-navigation-item a:hover { color: #0f7a59; }
.atlas-header .wp-block-navigation .current-menu-item > a { box-shadow: inset 0 -2px 0 #32dba7; }
.atlas-tel a { color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 1080px) { .atlas-tel { display: none; } }
@media (max-width: 600px) { .atlas-header .wp-block-buttons { display: none; } }

/* ---------- Kopjes ---------- */
.atlas-eyebrow {
	font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	display: flex; align-items: center; gap: .6rem;
}
.atlas-eyebrow::before { content: ""; width: 28px; height: 3px; background: #32dba7; display: inline-block; }
h1 em, h2 em { font-style: normal; color: #32dba7; }
.has-papier-background-color h2 em, .has-wit-background-color h2 em,
.has-papier-background-color h1 em, .has-wit-background-color h1 em { color: #0f7a59; }

/* ---------- Hero ---------- */
.atlas-hero.wp-block-cover { min-height: min(88vh, 760px); align-items: flex-end; }
.wp-block-cover.atlas-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1200px; margin-inline: auto !important; }
.wp-block-cover.atlas-hero .wp-block-cover__inner-container > .wp-block-group { margin-left: 0 !important; }
.atlas-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(17,22,27,.92) 0%, rgba(17,22,27,.72) 42%, rgba(17,22,27,.15) 75%, rgba(17,22,27,0) 100%) !important;
	opacity: 1 !important;
}
@media (max-width: 781px) {
	.atlas-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(17,22,27,.95) 0%, rgba(17,22,27,.75) 55%, rgba(17,22,27,.35) 100%) !important; }
	.atlas-hero .wp-block-cover__image-background { object-position: 62% 50% !important; }
}
.atlas-feiten { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.atlas-feiten li { display: flex; align-items: center; gap: .5rem; }
.atlas-feiten li::before { content: ""; width: 8px; height: 8px; background: #32dba7; border-radius: 1px; transform: rotate(45deg); }

/* Wegmarkering: onderbroken streep als scheiding */
.atlas-streep { height: 6px; border: 0; margin: 0 !important; background: repeating-linear-gradient(90deg, #32dba7 0 48px, transparent 48px 84px); opacity: 1; }
.atlas-band { border-top: 0; }

/* ---------- Genummerde lijst (waarom Atlas) ---------- */
.atlas-punten > .wp-block-group { border-top: 1px solid #d7d5cc; padding-top: 1.25rem; }
.atlas-punten .atlas-nr { font-weight: 600; font-size: .875rem; color: #5a626a; }
.has-asfalt-background-color .atlas-punten > .wp-block-group { border-top-color: #2b343d; }
.has-asfalt-background-color .atlas-punten .atlas-nr { color: #32dba7; }

/* ---------- Prijslijst ---------- */
.atlas-prijslijst { border-top: 2px solid #151a1f; }
.atlas-prijsregel {
	display: grid !important; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; align-items: baseline;
	padding: 1.1rem 0 !important; border-bottom: 1px solid #d7d5cc; margin: 0 !important;
}
.atlas-prijsregel > * { margin: 0 !important; }
.atlas-prijsregel h3 { font-size: 1.375rem; grid-column: 1; }
.atlas-prijsregel .atlas-prijs { grid-column: 2; grid-row: 1 / span 2; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 2rem; line-height: 1; align-self: center; }
.atlas-prijsregel .atlas-sub { grid-column: 1; color: #5a626a; font-size: .95rem; }
.atlas-prijsregel.is-uitgelicht { background: #fff; border: 2px solid #32dba7; padding: 1.1rem 1.25rem !important; margin: .5rem -1.25rem !important; border-radius: 4px; }
.atlas-prijsregel.is-uitgelicht h3::after { content: "Meest gekozen"; font-family: Barlow, sans-serif; text-transform: none; font-size: .75rem; font-weight: 600; letter-spacing: .02em; background: #32dba7; color: #11161b; padding: .2rem .55rem; border-radius: 3px; margin-left: .75rem; vertical-align: middle; }
@media (max-width: 600px) { .atlas-prijsregel.is-uitgelicht { margin: .5rem 0 !important; } }

/* ---------- Stappen ---------- */
.atlas-stappen { counter-reset: stap; }
.atlas-stappen > .wp-block-column { position: relative; padding-top: 3.25rem; }
.atlas-stappen > .wp-block-column::before {
	counter-increment: stap; content: counter(stap);
	position: absolute; top: 0; left: 0; width: 2.25rem; height: 2.25rem;
	display: grid; place-items: center; border: 2px solid #151a1f; color: #151a1f;
	font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.125rem; border-radius: 50%;
}

/* ---------- Veelgestelde vragen (details-blok) ---------- */
.wp-block-details { border-bottom: 1px solid #d7d5cc; padding: 1.1rem 0; margin: 0 !important; }
.wp-block-details:first-of-type { border-top: 2px solid #151a1f; }
.wp-block-details summary {
	cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem;
	display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-family: "Barlow Condensed", sans-serif; font-size: 1.75rem; line-height: 1; color: #0f7a59; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: #3f464d; max-width: 62ch; margin-top: .75rem; }

/* ---------- Knoppen ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; padding: calc(.9rem - 2px) calc(1.5rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.08); }
.wp-block-button__link { transition: background-color .15s, transform .15s; }
.wp-block-button__link:active { transform: translateY(1px); }

/* ---------- 2toDrive ---------- */
.atlas-2td img { width: 120px; height: auto; }

/* ---------- Contactformulier ---------- */
.atlas-form { display: grid; gap: 1rem; }
.atlas-form .rij { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .atlas-form .rij { grid-template-columns: 1fr; } }
.atlas-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.atlas-form label span { color: #0f7a59; }
.atlas-form input, .atlas-form select, .atlas-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: #151a1f;
	background: #fff; border: 1px solid #c9c7be; border-radius: 4px; padding: .8rem .9rem;
}
.atlas-form input:focus, .atlas-form select:focus, .atlas-form textarea:focus { outline: 2px solid #32dba7; outline-offset: 1px; border-color: #32dba7; }
.atlas-form textarea { min-height: 140px; resize: vertical; }
.atlas-form .hp { position: absolute; left: -9999px; }
.atlas-form button {
	justify-self: start; font: inherit; font-weight: 600; cursor: pointer;
	background: #32dba7; color: #11161b; border: 0; border-radius: 4px; padding: .9rem 1.75rem;
}
.atlas-form button:hover { background: #5ee6bb; }
.atlas-melding { padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 1rem; font-weight: 500; }
.atlas-melding.ok { background: #dff7ee; border-left: 4px solid #0f7a59; }
.atlas-melding.fout { background: #fde8e6; border-left: 4px solid #c0392b; }

/* ---------- Footer ---------- */
.atlas-footer a { color: #e9ecef; text-decoration: none; }
.atlas-footer a:hover { color: #32dba7; }
.atlas-footer .wp-block-site-logo img { filter: none; }

/* ---------- Zwevende belknop mobiel ---------- */
.atlas-belbalk { display: none; }
@media (max-width: 600px) {
	.atlas-belbalk { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #11161b; border-top: 1px solid #2b343d; }
	.atlas-belbalk a { padding: .9rem; text-align: center; font-weight: 600; text-decoration: none; color: #fff; }
	.atlas-belbalk a + a { background: #32dba7; color: #11161b; }
	body { padding-bottom: 52px; }
}

/* hero: zelfde zijmarge als de rest van de pagina */
.wp-block-cover.atlas-hero { padding-left: var(--wp--style--root--padding-left) !important; padding-right: var(--wp--style--root--padding-right) !important; }

.atlas-hero a:not(.wp-block-button__link) { color: #fff; }
