/*
Theme Name:   AM Loodgieter & Dakwerk
Description:  Blokthema voor AM Loodgieter & Dakwerk. Kleuren komen uit het logo; opmaak zit in theme.json en dit bestand.
Version:      1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain:  am-loodgieter
*/
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }
h1, h2, h3 { text-wrap: balance; letter-spacing: .005em; }
h1, h2 { text-transform: uppercase; }

/* Kop */
.am-kop { border-bottom: 1px solid var(--wp--preset--color--lijn); position: sticky; top: 0; z-index: 20; background: #fff; }
.am-kop img { display: block; height: 64px; width: auto; }
.am-kop .wp-block-navigation a { text-decoration: none; font-weight: 500; }
.am-kop .wp-block-navigation a:hover { color: var(--wp--preset--color--rood); }
.am-kop .wp-block-button__link { white-space: nowrap; }

/* Hero */
.am-hero { background: var(--wp--preset--color--inkt); color: #fff; }
.am-hero h1 { color: #fff; max-width: 14ch; }
.am-hero h1 em { font-style: normal; color: #ff7377; }
.am-hero .am-lead { color: #e2dfdb; max-width: 34rem; }
.am-hero img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; border-radius: 4px; display: block; }
.am-oogje { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--rood); margin: 0 0 .75rem; }
.am-hero .am-oogje { color: #ff7377; }

/* Knoppen */
.wp-block-button__link { transition: background-color .15s ease; }
.wp-block-button__link:hover { background: var(--wp--preset--color--rood-donker) !important; }
.is-style-outline .wp-block-button__link { background: transparent !important; color: #fff; border: 2px solid #fff; }
.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.14) !important; }
.am-licht .is-style-outline .wp-block-button__link { color: var(--wp--preset--color--inkt); border-color: var(--wp--preset--color--inkt); }

/* Band met feiten */
.am-band { background: var(--wp--preset--color--rood); color: #fff; }
.am-band p { margin: 0; color: #fff; font-weight: 500; }
.am-band strong { font-size: 1.5rem; font-weight: 700; margin-right: .4rem; font-variant-numeric: tabular-nums; }

/* Dienst: tekst + foto's */
.am-dienst { border-top: 1px solid var(--wp--preset--color--lijn); padding-top: 2.5rem; margin-top: 2.5rem; }
.am-dienst h2 { margin-top: 0; }
.am-dienst figure { margin: 0; }
.am-dienst img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; display: block; }
.am-dienst figcaption { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--grijs); margin-top: .4rem; }
.am-label { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.am-label li { border: 1px solid var(--wp--preset--color--lijn); padding: .2rem .7rem; font-size: .9rem; border-radius: 2px; margin: 0; }

/* Tarief */
.am-licht { background: var(--wp--preset--color--licht); }
.am-prijs { border-left: 6px solid var(--wp--preset--color--rood); padding-left: 1.5rem; }
.am-prijs .am-bedrag { font-size: clamp(3rem, 8vw, 4.75rem); font-weight: 800; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.am-prijs .am-bedrag small { font-size: 1.1rem; font-weight: 600; color: var(--wp--preset--color--grijs); }
.am-rij { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--wp--preset--color--lijn); margin: 0; }
.am-rij span:last-child { font-weight: 600; text-align: right; }

/* Open vlak met belknop */
.am-rood { background: var(--wp--preset--color--rood); color: #fff; border-radius: 4px; }
.am-rood h2, .am-rood h3, .am-rood p { color: #fff; }
.am-rood .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--rood-donker) !important; }
.am-rood .wp-block-button__link:hover { background: var(--wp--preset--color--inkt) !important; color: #fff !important; }

/* Nog in te vullen (alleen zolang de site in preview staat) */
.nog { background: #fff3c4; color: #4a3b00; padding: 0 .35rem; border-radius: 2px; font-weight: 600; font-size: .92em; }

/* Formulier (Contact Form 7) */
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea {
  width: 100%; margin-top: .35rem; padding: .7rem .85rem; border: 1px solid #b9b4ae; border-radius: 4px; font: inherit; background: #fff; color: var(--wp--preset--color--tekst); box-sizing: border-box;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 3px solid #9a212455; border-color: var(--wp--preset--color--rood); }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--rood); color: #fff; border: 0; border-radius: 4px; padding: .8rem 1.6rem; font: inherit; font-weight: 600; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--wp--preset--color--rood-donker); }
.wpcf7 .wpcf7-not-valid-tip { color: #b42318; font-weight: 400; }

/* Voet */
.am-voet { background: var(--wp--preset--color--inkt); color: #d3cfca; }
.am-voet a { color: #fff; }
.am-voet a:hover { color: #ff9a9d; }
.am-voet img { height: 72px; width: auto; background: #fff; border-radius: 6px; padding: 4px; display: block; }
:focus-visible { outline: 3px solid var(--wp--preset--color--rood); outline-offset: 2px; }
.am-hero :focus-visible, .am-voet :focus-visible { outline-color: #fff; }
@media (max-width: 781px) { .am-dienst img { aspect-ratio: 4 / 3; } }

/* Dienstkaarten op de voorpagina */
.am-dienstkaarten figure { margin: 0 0 .9rem; }
.am-dienstkaarten img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; display: block; }
.am-dienstkaarten h3 { margin: 0 0 .35rem; }
.am-hero figure { margin: 0; }
.am-hero figcaption { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #cfcbc6; margin-top: .5rem; }

/* Foto's naast de tekst op dienstpagina's */
.am-fotostapel { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-content: start; }
.am-fotostapel figure { margin: 0; }
.am-fotostapel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; display: block; }
.am-fotostapel figcaption { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--grijs); margin-top: .35rem; }
.am-dienst h2 a { text-decoration: none; color: inherit; }
.am-dienst h2 a:hover { color: var(--wp--preset--color--rood); }
.am-dienstkaarten h3 a { text-decoration: none; color: inherit; }
.am-dienstkaarten h3 a:hover { color: var(--wp--preset--color--rood); }
.wp-block-list li { margin-bottom: .45rem; }
.am-kop .wp-block-navigation__submenu-container a { white-space: nowrap; }
