/*
Theme Name: JMOTICA
Theme URI: https://www.jmotica.nl
Author: JMOTICA
Description: Eenvoudig one-page thema voor JMOTICA — domotica in Den Haag en omgeving.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jmotica
*/

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 96px; }

/* Header */
.jm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--wp--preset--color--mist); }
.jm-brand { gap: .7rem; }
.jm-brand img { width: 52px; height: auto; display: block; }
.jm-brand .wp-block-site-title, .jm-brand p { margin: 0; font-weight: 700; letter-spacing: -.01em; font-size: 1.35rem; }
.jm-brand a { text-decoration: none; color: var(--wp--preset--color--navy); }
.jm-header .wp-block-navigation a { text-decoration: none; font-weight: 500; }
.jm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--navy); text-decoration: underline; text-underline-offset: .3em; }

/* Hero: het dak uit het logo, groot */
.jm-hero { position: relative; overflow: hidden; isolation: isolate; }
.jm-hero::before {
  content: ""; position: absolute; z-index: -1;
  width: min(1100px, 140vw); aspect-ratio: 2 / 1;
  right: -18%; bottom: -8%;
  background: url("assets/dak.svg") no-repeat center / contain;
  opacity: .14;
}
.jm-hero h1 { max-width: 15ch; margin-left: 0 !important; }
.jm-lead { max-width: 52ch; margin-left: 0 !important; }
.jm-hero .jm-lead { max-width: 46ch; }

/* Knoppen */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:focus-visible, a:focus-visible { outline: 3px solid var(--wp--preset--color--signaal); outline-offset: 3px; }
.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.is-style-outline-light .wp-block-button__link:hover { border-color: #fff; }

/* Diensten */
section .jm-dienst { margin-bottom: 1.25rem; }
.jm-dienst { border-top: 3px solid var(--wp--preset--color--navy); padding-top: 1.1rem; }
.jm-dienst h3 { margin: 0 0 .5rem; }
.jm-dienst p { margin: 0; }

/* Werkwijze */
.wp-block-group.jm-stap { position: relative; padding-left: 4.2rem; margin-bottom: 1rem; }
.jm-stap .jm-nr {
  position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; margin: 0;
  display: grid; place-items: center;
  background: var(--wp--preset--color--navy); color: #fff; font-weight: 700;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.jm-stap h3 { margin: .35rem 0 .4rem; }
.jm-stap p { margin: 0; }

/* Contact */
.jm-contact a { color: inherit; }
.jm-contact-regel { margin: 0 0 .35rem; }
.jm-gegevens p { margin: 0 0 .25rem; }

/* Footer */
.jm-footer a { color: #fff; }
.jm-footer p { margin: 0; }

@media (max-width: 781px) {
  .jm-hero::before { right: -40%; bottom: -4%; opacity: .1; }
  .jm-header .wp-block-buttons { display: none; }
}
