/*
Theme Name: Siteprovide
Theme URI: https://siteprovide.nl
Author: Siteprovide
Author URI: https://siteprovide.nl
Description: Maatwerkthema voor Siteprovide: professionele websites op maat voor lokale ondernemers en het MKB. Omgezet vanuit het statische ontwerp.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siteprovide
Tags: business, portfolio, one-column, custom-menu, custom-logo, translation-ready

De opmaak staat in assets/css/. Dit bestand bevat alleen de themakop en
de aanvullingen die WordPress zelf nodig heeft.
*/

/* ---------- WordPress-basisklassen ---------- */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 2px 2px rgba(16, 15, 108, .3);
  clip: auto !important;
  clip-path: none;
  color: #100F6C;
  display: block;
  font-size: 15px;
  font-weight: 700;
  height: auto;
  left: 16px;
  line-height: normal;
  padding: 14px 22px;
  text-decoration: none;
  top: 16px;
  width: auto;
  z-index: 100000;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #01BEE6;
  outline-offset: 2px;
}

.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- uitlijning van blokken ---------- */

.alignleft { float: left; margin: 0 24px 18px 0; }
.alignright { float: right; margin: 0 0 18px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }

/* ---------- vrije tekst uit de editor ---------- */

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--slate); }
.entry-content h2 { margin: 40px 0 16px; }
.entry-content h3 { margin: 32px 0 12px; }
.entry-content h4 { margin: 28px 0 10px; font-size: 17px; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px; padding-left: 22px; color: var(--slate); }
.entry-content li { margin-bottom: 8px; line-height: 1.65; }
.entry-content img { border-radius: 16px; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: 14px; color: var(--faint); margin-top: 10px; }
.entry-content blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--cyan);
  color: var(--navy);
  font-size: 19px;
  line-height: 1.55;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 15px; }
.entry-content th { background: var(--bg-soft); color: var(--navy); font-weight: 700; }
.entry-content code { background: var(--bg-soft); border-radius: 6px; padding: 2px 6px; font-size: 14px; }
.entry-content pre { background: var(--bg-soft); border-radius: 14px; padding: 18px; overflow: auto; }

/* ---------- eenvoudige blogopmaak ---------- */

.post-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .18s; }
.post-card:hover { border-color: #CDE9F1; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.post-card__thumb img { width: 100%; height: 180px; object-fit: cover; }
.post-card__body { padding: 22px 22px 24px; }
.post-card__meta { font-size: 13px; font-weight: 600; color: var(--faint); margin: 0 0 8px; }
.post-card__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.post-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--slate); margin: 0; }

.article-narrow { max-width: 760px; margin: 0 auto; }
.article-meta { font-size: 14px; font-weight: 600; color: var(--faint); margin: 0 0 14px; }
.article-thumb { border-radius: 22px; overflow: hidden; margin: 0 0 34px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; color: var(--slate); background: #fff;
}
.pagination .page-numbers:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.pagination .page-numbers.current { background: var(--cyan-tint); border-color: var(--cyan-border); color: var(--navy); }

/* ---------- foutmeldingen bij het contactformulier ---------- */

.form-error {
  background: #FFF3F3;
  border: 1px solid #F7CFCF;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-size: 15px;
  color: #A02525;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #E38585; }
.sp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- aanvullingen voor de WordPress-versie ---------- */

.sp-narrow { max-width: 820px; }
.sp-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.article-meta--after { margin-top: 32px; }

/* De kleurvarianten van de tegels zijn op elke pagina beschikbaar. */
.thumb-d { background: linear-gradient(135deg, #3B2E9E, #01BEE6); }
.thumb-e { background: linear-gradient(135deg, #0E7D5E, #12B187); }
.thumb-f { background: linear-gradient(135deg, #100F6C, #0A7A93); }
.thumb-g { background: linear-gradient(135deg, #241F9E, #3B6EF6); }
.thumb-h { background: linear-gradient(135deg, #0A7A93, #7A5AF5); }

/* Een uitgelichte afbeelding vult de tegel; zonder afbeelding blijven de initialen staan. */
.case-card__thumb,
.work-card__thumb { position: relative; overflow: hidden; }
.case-card__thumb img,
.work-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Banner op de case-pagina met een echte screenshot. */
.case-banner--image { background: var(--bg-soft); }
.case-banner--image img { width: 100%; height: 100%; object-fit: cover; }
.case-banner--image::after { display: none; }


/* Portret op de Over-pagina: WordPress zet er een <img> neer. */
img.portrait { display: block; }

/* Sterren boven de klantquote op een case. */
.quote-panel__stars { margin-bottom: 16px; }
.quote-panel__stars svg { fill: #FBBC04; }

/* ---------- formaat van de logo's ---------- */
/* Het beeldmerk is hoger dan de letters, dus op 24px werd het woordmerk te
   klein. Iets ruimer opgezet zodat 'siteprovide' goed leesbaar blijft. */

.nav-pill__logo img { height: 38px; width: auto; }
.footer-brand img { height: 40px; width: auto; }
.mobile-menu .nav-pill__logo img { height: 34px; }

@media (max-width: 600px) {
  .nav-pill__logo img { height: 32px; }
}

/* De scorekaart zweeft alleen naast een foto; in de gecentreerde hero staat
   hij gewoon in de tekstkolom. */
.hero__grid--solo .score-card {
  position: static;
  display: inline-flex;
  margin-top: 36px;
  left: auto;
  bottom: auto;
}
