/*
Theme Name: Studio Hanna
Theme URI: https://ontwerpstudiohanna.nl
Author: Studio Hanna
Description: Eigen thema voor Studio Hanna, interieurontwerp. Rustig, beeldgericht, kleurpalet 03_Aards (Studio ZIV).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-hanna
*/

/* ---------- Lettertypes (meegeleverd, geen externe servers) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Italic-Variable.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}

/* ---------- Kleuren en maten (hier pas je de huisstijl aan) ---------- */
:root {
  --sh-wit: #F5F0E6;       /* warm wit, ondergrond */
  --sh-olijf: #9DAF4A;     /* basiskleur */
  --sh-walnoot: #3A271D;   /* tekstkleur, nooit zwart */
  --sh-kobalt: #2F4BD1;    /* accent: knoppen, links */
  --sh-kobalt-donker: #2440B8;
  --sh-roest: #8A3A2E;     /* detail: labels */
  --sh-terracotta: #D0764E;/* detail: lijn, hover */
  --sh-lijn: rgba(58, 39, 29, 0.12);
  --sh-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sh-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --sh-rand: clamp(20px, 3.3vw, 48px);  /* zijmarge */
  --sh-max: 1440px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sh-wit);
  color: var(--sh-walnoot);
  font-family: var(--sh-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sh-walnoot); text-decoration: none; transition: color .15s; }
a:hover { color: var(--sh-kobalt); }
h1, h2, h3, h4 { font-family: var(--sh-serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(34px, 3.8vw, 52px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); }
p { margin: 0 0 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--sh-walnoot); color: var(--sh-wit); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sh-kobalt); outline-offset: 3px; }

.sh-wrap { width: 100%; max-width: var(--sh-max); margin: 0 auto; padding-left: var(--sh-rand); padding-right: var(--sh-rand); }
.sh-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-roest); margin-bottom: 10px; }
.sh-section { padding-top: clamp(64px, 7.8vw, 112px); padding-bottom: clamp(64px, 6.7vw, 96px); }

/* Knoppen */
.sh-btn, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  background: var(--sh-kobalt); color: var(--sh-wit);
  font-family: var(--sh-sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 0; border-radius: 0; cursor: pointer; transition: background .15s, color .15s;
}
.sh-btn:hover, .wp-block-button__link:hover { background: var(--sh-kobalt-donker); color: var(--sh-wit); }
.sh-btn--outline, .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--sh-walnoot); border: 1.5px solid var(--sh-walnoot); min-height: 48px; padding: 0 24px; font-weight: 500; letter-spacing: .06em;
}
.sh-btn--outline:hover, .is-style-outline .wp-block-button__link:hover { background: var(--sh-walnoot); color: var(--sh-wit); }
.sh-arrowlink { display: inline-flex; align-items: center; gap: 10px; color: var(--sh-kobalt); font-weight: 500; font-size: 15px; }
.sh-arrowlink:hover { color: var(--sh-kobalt-donker); }

/* Placeholder voor ontbrekende foto's */
.sh-ph { position: relative; overflow: hidden; background: #E3E6CF; width: 100%; height: 100%; }
.sh-ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(157,175,74,.18) 0 2px, transparent 2px 22px); }
.sh-ph span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-walnoot); background: var(--sh-wit); padding: 8px 12px; white-space: nowrap; }

/* ---------- 1. Quotebalk ---------- */
.sh-quotebar { background: var(--sh-walnoot); color: var(--sh-wit); text-align: center; padding: 10px 20px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- 2. Navigatie ---------- */
.sh-header { border-bottom: 1px solid var(--sh-lijn); background: var(--sh-wit); position: relative; z-index: 20; }
.sh-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.sh-nav__left, .sh-nav__right { display: flex; align-items: center; gap: 32px; flex: 1; }
.sh-nav__right { justify-content: flex-end; }
.sh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.sh-nav a { font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.sh-nav .current-menu-item > a, .sh-nav .current_page_parent > a { color: var(--sh-kobalt); }
.sh-brand { display: flex; align-items: center; justify-content: center; text-align: center; }
.sh-brand a { font-family: var(--sh-serif); font-size: clamp(22px, 1.8vw, 26px); letter-spacing: .06em; text-transform: uppercase; color: var(--sh-walnoot); white-space: nowrap; }
.sh-brand img { max-height: 48px; width: auto; }
.sh-iconbtn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--sh-walnoot); display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.sh-iconbtn:hover { color: var(--sh-kobalt); }
.sh-menu-toggle { display: none; }
.sh-search { display: none; border-top: 1px solid var(--sh-lijn); padding: 16px 0; }
.sh-search.is-open { display: block; }
.sh-search form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; }
.sh-search input[type="search"] { flex: 1; min-height: 48px; border: 1.5px solid var(--sh-walnoot); background: transparent; padding: 0 16px; font: inherit; color: var(--sh-walnoot); border-radius: 0; }
.sh-search .sh-btn { min-height: 48px; padding: 0 20px; }

@media (max-width: 760px) {
  .sh-nav { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .sh-nav__left { display: none; }
  .sh-nav__left.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--sh-wit); border-bottom: 1px solid var(--sh-lijn); padding: 8px var(--sh-rand) 20px; }
  .sh-nav__left.is-open ul { flex-direction: column; gap: 0; }
  .sh-nav__left.is-open a { display: block; padding: 14px 0; border-bottom: 1px solid var(--sh-lijn); font-size: 18px; }
  .sh-nav__left.is-open li:last-child a { border-bottom: 0; }
  .sh-brand { flex: 1; justify-content: flex-start; }
  .sh-nav__right { flex: 0; gap: 4px; }
  .sh-menu-toggle { display: inline-flex; }
}

/* ---------- 3. Startscherm ---------- */
.sh-hero { position: relative; width: 100%; height: clamp(480px, 80vh, 820px); overflow: hidden; background: #E3E6CF; }
.sh-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.sh-hero__slide.is-active { opacity: 1; }
.sh-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.sh-hero__text { position: absolute; left: var(--sh-rand); bottom: clamp(28px, 3.3vw, 48px); font-family: var(--sh-serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; max-width: 560px; color: var(--sh-walnoot); margin: 0; }
.sh-hero__text--light { color: var(--sh-wit); text-shadow: 0 1px 24px rgba(58,39,29,.35); }
.sh-hero__dots { position: absolute; right: var(--sh-rand); bottom: clamp(36px, 3.9vw, 56px); display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sh-hero__dots button { width: 14px; height: 14px; padding: 2px; border: 0; background: none; cursor: pointer; }
.sh-hero__dots button::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--sh-walnoot); opacity: .35; }
.sh-hero__dots button.is-active::before { background: var(--sh-kobalt); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sh-hero__slide { transition: none; } }
@media (max-width: 760px) { .sh-hero__text { padding-right: 72px; } }

/* ---------- 4. Projecten ---------- */
.sh-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.sh-section__head h2, .sh-section__head h1 { margin: 0; }
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.sh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-card { display: flex; flex-direction: column; gap: 14px; color: var(--sh-walnoot); }
.sh-card__img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #E3E6CF; }
.sh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sh-card:hover .sh-card__img img { transform: scale(1.02); }
.sh-card__title { font-family: var(--sh-serif); font-size: 26px; line-height: 1.2; }
.sh-card:hover .sh-card__title { color: var(--sh-kobalt); }
.sh-card__meta { font-size: 14px; opacity: .7; margin-top: -8px; }
.sh-grid--stagger > :nth-child(even) { margin-top: 64px; }
@media (max-width: 760px) {
  .sh-grid, .sh-grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 40px; }
  .sh-grid--stagger > :nth-child(even) { margin-top: 0; }
  .sh-section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (min-width: 761px) and (max-width: 1100px) { .sh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 5. Over Hanna ---------- */
.sh-about { display: flex; gap: clamp(32px, 5.5vw, 80px); align-items: center; padding-top: 48px; padding-bottom: clamp(72px, 8.9vw, 128px); }
.sh-about__img { width: 36%; max-width: 520px; aspect-ratio: 13 / 16; flex-shrink: 0; overflow: hidden; background: #E3E6CF; }
.sh-about__img img { width: 100%; height: 100%; object-fit: cover; }
.sh-about__body { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.sh-about__body p { font-size: 18px; }
@media (max-width: 760px) { .sh-about { flex-direction: column; align-items: stretch; gap: 32px; } .sh-about__img { width: 100%; max-width: none; } }

/* ---------- 6. Oproep tot contact ---------- */
.sh-cta { background: var(--sh-olijf); color: var(--sh-walnoot); padding: clamp(72px, 7.8vw, 112px) var(--sh-rand); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.sh-cta .sh-label { color: var(--sh-walnoot); margin: 0; }
.sh-cta h2 { font-size: clamp(36px, 3.9vw, 56px); max-width: 720px; margin: 0; }
.sh-cta p { max-width: 520px; font-size: 18px; margin: 0; }
.sh-cta .sh-btn { margin-top: 8px; }

/* ---------- 7. Footer ---------- */
.sh-footer { background: var(--sh-walnoot); color: var(--sh-wit); border-top: 6px solid var(--sh-terracotta); padding-top: clamp(56px, 5vw, 72px); padding-bottom: 36px; }
.sh-footer a { color: var(--sh-wit); }
.sh-footer a:hover { color: var(--sh-terracotta); }
.sh-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.sh-footer__brand { font-family: var(--sh-serif); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.sh-footer__tag { font-size: 14px; opacity: .8; max-width: 240px; }
.sh-footer__h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; }
.sh-footer__col { font-size: 15px; display: flex; flex-direction: column; gap: 10px; }
.sh-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sh-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(245,240,230,.2); font-size: 13px; opacity: .75; }
.sh-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
@media (max-width: 760px) { .sh-footer__cols { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 32px; } .sh-footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Gewone pagina's en projectpagina ---------- */
.sh-page { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(72px, 8vw, 120px); }
.sh-page__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sh-page__intro { font-size: clamp(19px, 1.6vw, 22px); max-width: 680px; }
.sh-content { max-width: 760px; }
.sh-content--wide { max-width: none; }
.sh-content h2 { font-size: clamp(30px, 3vw, 40px); margin-top: 1.6em; }
.sh-content h3 { margin-top: 1.4em; }
.sh-content a:not(.wp-block-button__link):not(.sh-btn) { color: var(--sh-kobalt); border-bottom: 1px solid currentColor; }
.sh-content ul, .sh-content ol { padding-left: 1.2em; }
.sh-content li { margin-bottom: .4em; }
.sh-content .alignwide { max-width: none; width: 100%; }
.sh-content .alignfull { width: calc(100% + 2 * var(--sh-rand)); max-width: none; margin-left: calc(-1 * var(--sh-rand)); }
.sh-content figure { margin: 2em 0; }
.sh-content figcaption { font-size: 14px; opacity: .7; margin-top: 8px; }
.wp-block-gallery { gap: 24px !important; }
.wp-block-columns { gap: 40px; }
.wp-block-quote { border-left: 2px solid var(--sh-terracotta); padding-left: 24px; margin: 2em 0; font-family: var(--sh-serif); font-size: 24px; line-height: 1.3; }
.wp-block-separator { border: 0; border-top: 1px solid var(--sh-lijn); margin: 2.5em 0; }

/* Pakketten (Diensten) */
.sh-pakket { background: #FFFFFF66; border: 1px solid var(--sh-lijn); padding: clamp(28px, 3vw, 40px); }
.sh-pakket h3 { margin-top: 0; }

/* Projectpagina */
.sh-project__meta { font-size: 14px; opacity: .7; margin-bottom: 24px; }
.sh-project__hero { width: 100%; max-height: 80vh; overflow: hidden; margin-bottom: clamp(40px, 5vw, 72px); background: #E3E6CF; }
.sh-project__hero img { width: 100%; height: 100%; object-fit: cover; }
.sh-project__nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(56px, 6vw, 96px); padding-top: 32px; border-top: 1px solid var(--sh-lijn); font-size: 15px; font-weight: 500; }

/* Formulier (Contact Form 7) */
.wpcf7 label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea, .sh-content input:not([type="submit"]), .sh-content textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--sh-walnoot); background: transparent; font: inherit; color: var(--sh-walnoot); border-radius: 0;
}
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input[type="submit"], .sh-content input[type="submit"] {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 32px; background: var(--sh-kobalt); color: var(--sh-wit); font-family: var(--sh-sans); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 0; border-radius: 0; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--sh-kobalt-donker); }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 1.5px solid var(--sh-kobalt); }
.sh-notice { border: 1.5px dashed var(--sh-roest); padding: 20px; font-size: 15px; }

/* Contactpagina */
.wp-block-columns.sh-contact { gap: clamp(40px, 5vw, 80px); margin-top: 16px; }
.sh-contact__info { display: flex; flex-direction: column; gap: 24px; font-size: 17px; }
.sh-contact__info a { color: var(--sh-kobalt); }

/* Zoekresultaten en blog-fallback */
.sh-list { display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
.sh-list article h2 { font-size: 28px; margin-bottom: .2em; }
.sh-pagination { margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap; }
.sh-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--sh-walnoot); padding: 0 12px; font-size: 14px; }
.sh-pagination .page-numbers.current { background: var(--sh-walnoot); color: var(--sh-wit); }
