/*
Theme Name: Jorrit Hoekstra
Theme URI: https://jorrithoekstra.com
Author: Jorrit Hoekstra
Description: Een lichtgewicht, responsive WordPress-theme voor Jorrit Hoekstra — samenwerking, allianties en ecosystemen.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: jorrit-hoekstra
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --jh-navy: #0b2747;
  --jh-navy-2: #12395f;
  --jh-teal: #006d75;
  --jh-teal-dark: #00545b;
  --jh-aqua: #dff2f2;
  --jh-cream: #f6f4ef;
  --jh-white: #ffffff;
  --jh-ink: #102438;
  --jh-muted: #5d6b78;
  --jh-line: #dce5e8;
  --jh-shadow: 0 18px 50px rgba(11,39,71,.10);
  --jh-radius: 18px;
  --jh-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jh-ink);
  background: var(--jh-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jh-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jh-teal-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 12px; left: 12px; z-index: 9999;
  width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto;
  background: var(--jh-white); color: var(--jh-navy); border-radius: 8px;
}

.jh-container { width: min(calc(100% - 40px), var(--jh-max)); margin-inline: auto; }
.jh-section { padding: 88px 0; }
.jh-section--soft { background: linear-gradient(180deg, #f8fbfc 0%, #f0f7f7 100%); }
.jh-section--cream { background: var(--jh-cream); }
.jh-eyebrow {
  margin: 0 0 12px; color: var(--jh-teal); font-size: .82rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.jh-heading {
  margin: 0 0 18px; color: var(--jh-navy); font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.035em;
}
.jh-subheading { margin: 0 0 16px; color: var(--jh-navy); font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1.18; }
.jh-lead { max-width: 760px; margin: 0; color: #34495b; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.jh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px;
  background: var(--jh-teal); color: white; text-decoration: none; font-weight: 750;
  box-shadow: 0 8px 24px rgba(0,109,117,.18); transition: .2s ease;
}
.jh-button:hover { transform: translateY(-1px); background: var(--jh-teal-dark); color: white; }
.jh-button--outline { background: transparent; color: var(--jh-navy); border-color: rgba(11,39,71,.25); box-shadow: none; }
.jh-button--outline:hover { background: var(--jh-navy); color: white; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(11,39,71,.08);
}
.admin-bar .site-header { top: 32px; }
.jh-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.site-branding { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; }
.site-branding strong { color: var(--jh-navy); font-size: 1.22rem; letter-spacing: -.02em; }
.site-branding span { margin-top: 5px; color: var(--jh-teal); font-size: .72rem; font-weight: 700; }
.custom-logo { max-height: 52px; width: auto; }
.jh-menu-toggle { display: none; border: 0; background: transparent; color: var(--jh-navy); font-weight: 800; cursor: pointer; }
.jh-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.jh-nav a { color: var(--jh-navy); text-decoration: none; font-size: .93rem; font-weight: 700; }
.jh-nav a:hover, .jh-nav .current-menu-item > a { color: var(--jh-teal); }

/* Hero */
.jh-hero {
  position: relative; overflow: hidden; min-height: 660px; display: grid; align-items: center;
  background:
    radial-gradient(circle at 77% 25%, rgba(111,184,178,.38), transparent 25%),
    linear-gradient(125deg, #f5f8f8 0%, #ecf5f4 55%, #cddfdb 100%);
}
.jh-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11,39,71,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,39,71,.045) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: linear-gradient(90deg, rgba(0,0,0,.3), transparent 70%);
}
.jh-hero::after {
  content: ""; position: absolute; left: -8%; right: -8%; bottom: -120px; height: 260px;
  background: rgba(255,255,255,.56); border-radius: 50%; transform: rotate(-3deg);
}
.jh-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; min-height: 660px; }
.jh-hero-copy { padding: 90px 0 122px; max-width: 650px; }
.jh-hero-title { margin: 0 0 24px; color: var(--jh-navy); font-size: clamp(3rem, 6.4vw, 6.3rem); line-height: .96; letter-spacing: -.055em; }
.jh-hero-text { max-width: 620px; margin: 0 0 34px; color: #294052; font-size: clamp(1.08rem, 1.7vw, 1.33rem); }
.jh-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.jh-hero-portrait { position: relative; align-self: end; display: flex; justify-content: center; }
.jh-hero-portrait::before {
  content: ""; position: absolute; width: 460px; height: 460px; bottom: 52px;
  border-radius: 50%; border: 1px solid rgba(0,109,117,.28); box-shadow: inset 0 0 0 34px rgba(255,255,255,.13);
}
.jh-hero-portrait img {
  position: relative; z-index: 2; display: block; width: min(500px, 95%); max-height: 580px;
  object-fit: cover; object-position: center top; border-radius: 240px 240px 40px 40px;
  filter: saturate(.92); box-shadow: var(--jh-shadow);
}

/* Expertise */
.jh-intro { max-width: 780px; margin-bottom: 48px; }
.jh-expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jh-expertise-card {
  min-height: 210px; padding: 28px; background: white; border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius); box-shadow: 0 12px 35px rgba(11,39,71,.05);
}
.jh-icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 14px; background: var(--jh-aqua); color: var(--jh-teal); font-size: 1.35rem; font-weight: 900;
}
.jh-expertise-card h3 { margin: 0 0 10px; color: var(--jh-navy); font-size: 1.08rem; }
.jh-expertise-card p { margin: 0; color: var(--jh-muted); font-size: .95rem; }

/* Approach */
.jh-approach-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.jh-principles { display: grid; gap: 14px; margin-top: 28px; }
.jh-principle { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--jh-line); }
.jh-principle-number { color: var(--jh-teal); font-size: 1.5rem; font-weight: 900; }
.jh-principle h3 { margin: 0 0 5px; color: var(--jh-navy); }
.jh-principle p { margin: 0; color: var(--jh-muted); }
.jh-quote {
  position: relative; padding: 52px; border-radius: 28px; color: white;
  background: linear-gradient(150deg, var(--jh-teal-dark), var(--jh-navy)); box-shadow: var(--jh-shadow);
}
.jh-quote::before { content: "“"; position: absolute; top: 18px; left: 28px; font: 800 5rem/1 Georgia, serif; color: rgba(255,255,255,.25); }
.jh-quote blockquote { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.25rem); line-height: 1.35; letter-spacing: -.02em; }
.jh-quote p { margin: 28px 0 0; color: rgba(255,255,255,.78); }

/* Projects */
.jh-section-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.jh-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.jh-project-card { overflow: hidden; background: white; border: 1px solid var(--jh-line); border-radius: var(--jh-radius); box-shadow: 0 15px 42px rgba(11,39,71,.07); }
.jh-project-visual { height: 185px; position: relative; overflow: hidden; background: linear-gradient(145deg, #d7ebe9, #8bb9b5); }
.jh-project-visual::before, .jh-project-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(11,39,71,.25); }
.jh-project-visual::before { width: 180px; height: 180px; left: 20px; top: 18px; }
.jh-project-visual::after { width: 300px; height: 300px; right: -90px; bottom: -180px; }
.jh-project-visual span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--jh-navy); font-size: 4rem; font-weight: 900; }
.jh-project-card:nth-child(2) .jh-project-visual { background: linear-gradient(145deg, #e8e3d7, #b6a884); }
.jh-project-card:nth-child(3) .jh-project-visual { background: linear-gradient(145deg, #dbe5ef, #8ca8c3); }
.jh-project-body { padding: 24px; }
.jh-project-body h3 { margin: 0 0 10px; color: var(--jh-navy); font-size: 1.15rem; }
.jh-project-body p { margin: 0 0 18px; color: var(--jh-muted); font-size: .95rem; }
.jh-text-link { font-weight: 800; text-decoration: none; }

/* Insight */
.jh-insight-card { display: grid; grid-template-columns: 1fr .9fr; overflow: hidden; border-radius: 28px; background: var(--jh-navy); color: white; box-shadow: var(--jh-shadow); }
.jh-insight-copy { padding: 52px; }
.jh-insight-copy .jh-eyebrow { color: #78d3cf; }
.jh-insight-copy h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
.jh-insight-copy p { color: rgba(255,255,255,.78); }
.jh-insight-stat { display: grid; place-items: center; min-height: 380px; background: linear-gradient(145deg, #0e5964, #00727a); text-align: center; padding: 36px; }
.jh-insight-stat strong { display: block; font-size: clamp(4rem, 10vw, 8rem); line-height: 1; }
.jh-insight-stat span { max-width: 280px; display: block; margin-top: 14px; font-size: 1.1rem; }

/* About */
.jh-about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.jh-about-photo { position: relative; }
.jh-about-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--jh-aqua); border-radius: 26px; }
.jh-about-photo img { position: relative; z-index: 1; display: block; width: 100%; border-radius: 26px; box-shadow: var(--jh-shadow); }
.jh-role-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.jh-role-tags span { padding: 8px 12px; border-radius: 99px; background: #edf4f4; color: var(--jh-teal-dark); font-size: .83rem; font-weight: 750; }

/* Contact */
.jh-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.jh-contact-panel { padding: 36px; border-radius: 22px; background: white; border: 1px solid var(--jh-line); box-shadow: 0 14px 38px rgba(11,39,71,.06); }
.jh-contact-list { margin: 26px 0 0; padding: 0; list-style: none; }
.jh-contact-list li { margin: 10px 0; }
.jh-contact-form { display: grid; gap: 16px; }
.jh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jh-contact-form label { display: grid; gap: 7px; color: var(--jh-navy); font-size: .9rem; font-weight: 750; }
.jh-contact-form input, .jh-contact-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cbd8dc; border-radius: 10px; background: #fbfdfd; color: var(--jh-ink);
}
.jh-contact-form input:focus, .jh-contact-form textarea:focus { outline: 3px solid rgba(0,109,117,.13); border-color: var(--jh-teal); }
.jh-contact-form textarea { min-height: 150px; resize: vertical; }
.jh-form-message { padding: 12px 14px; border-radius: 10px; }
.jh-form-message--success { background: #e3f5e8; color: #195d2b; }
.jh-form-message--error { background: #fde9e7; color: #8b241b; }
.jh-honeypot { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #071d35; color: rgba(255,255,255,.75); }
.jh-footer-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.jh-footer-links { display: flex; gap: 20px; }
.jh-footer-links a { color: white; text-decoration: none; }

/* Generic content */
.jh-content { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 80px 0; }
.jh-content h1, .jh-content h2, .jh-content h3 { color: var(--jh-navy); line-height: 1.2; }
.jh-content h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.04em; }
.entry-meta { color: var(--jh-muted); font-size: .9rem; }
.wp-block-image img { border-radius: 14px; }

@media (max-width: 980px) {
  .jh-hero-grid { grid-template-columns: 1fr .72fr; }
  .jh-expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .jh-project-grid { grid-template-columns: 1fr; }
  .jh-project-card { display: grid; grid-template-columns: 260px 1fr; }
  .jh-project-visual { height: 100%; min-height: 220px; }
  .jh-approach-grid, .jh-contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .jh-about-grid { grid-template-columns: 280px 1fr; gap: 42px; }
}

@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .jh-container { width: min(calc(100% - 28px), var(--jh-max)); }
  .jh-menu-toggle { display: inline-flex; }
  .jh-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--jh-line); box-shadow: 0 18px 30px rgba(11,39,71,.08); }
  .jh-nav.is-open { display: block; }
  .jh-nav ul { display: grid; gap: 0; padding: 12px 20px 20px; }
  .jh-nav a { display: block; padding: 12px 0; }
  .jh-hero { min-height: auto; }
  .jh-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .jh-hero-copy { padding: 70px 0 34px; }
  .jh-hero-title { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .jh-hero-portrait { padding-bottom: 60px; }
  .jh-hero-portrait img { width: min(380px, 88%); max-height: 430px; }
  .jh-hero-portrait::before { width: 300px; height: 300px; bottom: 80px; }
  .jh-section { padding: 66px 0; }
  .jh-expertise-grid { grid-template-columns: 1fr; }
  .jh-insight-card { grid-template-columns: 1fr; }
  .jh-insight-copy, .jh-quote { padding: 34px; }
  .jh-about-grid { grid-template-columns: 1fr; }
  .jh-about-photo { max-width: 320px; }
  .jh-project-card { grid-template-columns: 1fr; }
  .jh-project-visual { height: 190px; min-height: 0; }
  .jh-section-header, .jh-footer-inner { align-items: flex-start; flex-direction: column; }
  .jh-form-row { grid-template-columns: 1fr; }
  .jh-footer-inner { padding: 26px 0; }
}
