/*
Theme Name: PT Studio Almelo
Description: One-pager block theme voor de personal training studio in Almelo. Gemaakt door Ligtenberg Communicatie.
Author: Ligtenberg Communicatie
Version: 0.1.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: pt-studio-almelo
*/

html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 90px; }

/* ---------- Header ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.pt-header { border-bottom: 1px solid var(--wp--preset--color--line); padding-top: 18px; padding-bottom: 18px; background: #fff; }
.pt-header .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.5rem; margin: 0; }
.pt-header .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.pt-header .wp-block-navigation { font-weight: 500; gap: 28px; }
.pt-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; }
.pt-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }
.pt-header .wp-block-button__link { padding: 12px 22px; font-size: 1rem; }
@media (max-width: 781px) { .pt-header .pt-header-cta { display: none; } }

/* ---------- Sections ---------- */
.pt-section { padding-top: clamp(64px, 9vw, 104px); padding-bottom: clamp(64px, 9vw, 104px); margin-block-start: 0 !important; }
.pt-section.pt-tight-top { padding-top: 0; }
.pt-dark { background: var(--wp--preset--color--ink); color: #fff; }
.pt-dark .muted, .pt-dark .lead { color: #C9D4EA; }
.pt-dark a:not(.wp-block-button__link) { color: #fff; font-weight: 600; }
.pt-soft { background: var(--wp--preset--color--soft); }
.pt-soft-2 { background: var(--wp--preset--color--soft-2); }
.pt-center { text-align: center; }
.pt-center > * { margin-left: auto !important; margin-right: auto !important; }
.pt-narrow { max-width: 900px; }
main > .wp-block-group:first-child { margin-top: 0; }

.eyebrow { margin: 0; font-weight: 600; color: var(--wp--preset--color--primary); letter-spacing: .04em; text-transform: uppercase; font-size: .875rem; }
.lead { font-size: 1.25rem; color: var(--wp--preset--color--muted); max-width: 36rem; }
.is-layout-constrained:not(.pt-center) > .lead { margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1200px)) / 2)) !important; margin-right: auto !important; }
footer.wp-block-template-part, main.wp-block-group + footer { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.pt-center .lead { max-width: 44rem; }
.muted { color: var(--wp--preset--color--muted); }
.small { font-size: .9375rem; }

/* ---------- Buttons ---------- */
.btn-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 2px solid var(--wp--preset--color--ink); padding: 14px 26px; }
.btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }

/* ---------- Columns ---------- */
.pt-cols { gap: 56px; align-items: center; }
.pt-cards { gap: 24px; }
.pt-cards > .wp-block-column { display: flex; }
.pt-cards > .wp-block-column > * { flex: 1; }

/* ---------- Cards ---------- */
.pt-card { background: var(--wp--preset--color--soft); border-radius: 24px; padding: 36px; }
.pt-card h3 { margin-top: 0; }
.pt-card p:last-child { margin-bottom: 0; }
.pt-card.has-dot::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--wp--preset--color--accent); margin-bottom: 18px; }
.pt-card-white { background: #fff; }
.pt-card-line { background: #fff; border: 1px solid var(--wp--preset--color--line); }
.pt-card-dark { background: var(--wp--preset--color--ink); color: #fff; }
.pt-card-dark .muted { color: #C9D4EA; }

/* ---------- Image placeholders (vervang later door afbeelding-blokken) ---------- */
.pt-ph { background: var(--wp--preset--color--placeholder); border-radius: 24px; padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; color: #2E4470; font-size: .9375rem; }
.pt-ph p { margin: 0; }
.pt-ph-hero { min-height: 560px; border-radius: 28px; }
.pt-ph-wide { min-height: 280px; }
.pt-ph-food { min-height: 380px; border-radius: 28px; }
@media (max-width: 781px) { .pt-ph-hero { min-height: 380px; } }
.pt-gallery { gap: 16px; }
.wp-block-image.pt-img img { border-radius: 24px; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Checklist ---------- */
.pt-checks { list-style: none; padding-left: 0; }
.pt-checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.pt-checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 15px; border: solid var(--wp--preset--color--primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- Testimonials ---------- */
.pt-quote { font-size: 1.1875rem; line-height: 1.5; }
.pt-person { font-weight: 600; display: flex; align-items: center; gap: 12px; }
.pt-person::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--wp--preset--color--placeholder); flex: none; }

/* ---------- Steps ---------- */
.pt-steps { counter-reset: step; gap: 32px; }
.pt-step { counter-increment: step; }
.pt-step::before { content: counter(step); width: 56px; height: 56px; border-radius: 50%; background: var(--wp--preset--color--accent); display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.5rem; margin-bottom: 16px; }
.pt-step h3 { margin: 0 0 8px; font-size: 1.5rem; }

/* ---------- Prices ---------- */
.pt-price-label { font-size: 1.125rem; font-weight: 600; margin: 0; font-family: var(--wp--preset--font-family--body); }
.pt-price { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.75rem; line-height: 1; margin: 12px 0; }
.pt-price small { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 1rem; }

/* ---------- Coach ---------- */
.pt-coach { gap: 32px; align-items: center; }
.pt-coach .pt-ph { width: 160px; height: 160px; min-height: 0; border-radius: 50%; justify-content: center; text-align: center; font-size: .8125rem; padding: 16px; box-sizing: border-box; }
.pt-coach .wp-block-image img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ ---------- */
.pt-faq .wp-block-details { border-top: 1px solid var(--wp--preset--color--line); padding: 22px 0; margin: 0; }
.pt-faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.pt-faq summary { font-weight: 600; font-size: 1.1875rem; cursor: pointer; }
.pt-faq .wp-block-details p { color: var(--wp--preset--color--muted); margin: 12px 0 0; }

/* ---------- Form ---------- */
.pt-form { background: #fff; color: var(--wp--preset--color--ink); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.pt-form label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.pt-form input, .pt-form select { width: 100%; box-sizing: border-box; font: inherit; padding: 14px 16px; border: 1.5px solid #B9C3D6; border-radius: 12px; background: #fff; color: inherit; }
.pt-form input:focus, .pt-form select:focus { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 1px; border-color: var(--wp--preset--color--ink); }
.pt-form button { font: inherit; font-weight: 600; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); border: 0; padding: 16px 24px; border-radius: 999px; cursor: pointer; font-size: 1.0625rem; margin-top: 6px; }
.pt-form button:hover { background: #FF6640; }
.pt-form .pt-hp { position: absolute; left: -9999px; }
.pt-form-thanks { background: #fff; color: var(--wp--preset--color--ink); border-radius: 28px; padding: 36px; }
.pt-form-thanks h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.pt-footer { border-top: 1px solid var(--wp--preset--color--line); padding-top: 40px; padding-bottom: 40px; font-size: .9375rem; color: var(--wp--preset--color--muted); margin-block-start: 0 !important; }
.pt-footer .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.125rem; margin: 0; }
.pt-footer .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.pt-footer p { margin: 0; }

/* ---------- Mobiele sticky knop ---------- */
.pt-sticky-cta { display: none; }
@media (max-width: 781px) {
	.pt-sticky-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; text-align: center; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); font-weight: 600; padding: 16px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(22,33,58,.25); }
	body { padding-bottom: 80px; }
}
