/*
Theme Name:  Paulus Folkertsma
Theme URI:   https://www.paulusfolkertsma.nl
Author:      Paulus Folkertsma Stichting
Author URI:  https://www.paulusfolkertsma.nl
Description: A refined heritage theme for the Paulus Folkertsma foundation, celebrating the life and music of the Frisian composer.
Version:     1.0.0
Requires at least: 6.0
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: folkertsma
Tags:        custom-colors, custom-menu, featured-images, full-width-template, sticky-post, translation-ready
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1510;
  --parchment: #f5f0e8;
  --warm-white: #faf8f4;
  --gold: #b8972a;
  --gold-light: #d4b04a;
  --rust: #7a3b1e;
  --muted: #7a7060;
  --border: rgba(184,151,42,0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--warm-white);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }

/* ── LANGUAGE BAR ── */
.lang-bar {
  background: var(--ink);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 48px;
  gap: 20px;
}
.lang-bar a {
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lang-bar a:hover,
.lang-bar a.current-lang { opacity: 1; border-bottom: 1px solid var(--gold-light); }
.lang-bar span { color: var(--gold); opacity: 0.3; font-size: 10px; }

/* ── HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-branding { text-decoration: none; display: flex; flex-direction: column; }
.site-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
  line-height: 1.2;
}
.site-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ── PRIMARY NAVIGATION ── */
#primary-navigation { display: flex; gap: 4px; align-items: center; }
#primary-navigation ul { list-style: none; display: flex; gap: 4px; align-items: center; margin: 0; padding: 0; }
#primary-navigation ul li { position: relative; }
#primary-navigation ul li a {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  display: block;
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a,
#primary-navigation ul li.current-page-ancestor > a { color: var(--gold); }

/* Contact button style — add CSS class "nav-cta" to the menu item in WP admin */
#primary-navigation ul li.nav-cta > a {
  background: var(--gold);
  color: var(--warm-white) !important;
  padding: 7px 16px;
}
#primary-navigation ul li.nav-cta > a:hover { background: var(--rust); }

/* Dropdown */
#primary-navigation ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--warm-white);
  border: 1px solid var(--border);
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 32px rgba(26,21,16,0.1);
}
#primary-navigation ul li:hover > ul { display: flex; }
#primary-navigation ul li ul li a { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 10px; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(20%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,21,16,0.88) 0%, rgba(26,21,16,0.6) 50%, rgba(122,59,30,0.3) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.6;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px 80px 96px;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.hero h1 em {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.52em;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.hero-dates {
  font-size: 15px;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}
.hero-intro {
  max-width: 560px;
  font-size: 19px;
  color: rgba(245,240,232,0.85);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 48px;
  font-family: 'EB Garamond', Georgia, serif;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-audio { margin-top: 48px; display: flex; align-items: center; gap: 16px; }
.hero-audio-label {
  font-style: italic;
  font-size: 14px;
  color: rgba(245,240,232,0.55);
  white-space: nowrap;
}
.hero-audio audio { height: 36px; opacity: 0.75; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--ink); }
.btn-ghost {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 13px 32px;
  border: 1px solid rgba(245,240,232,0.4);
  color: var(--parchment);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-dark {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 13px 32px;
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ── GENERAL SECTION ── */
.site-section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 48px;
}

/* ── BIOGRAFIE SECTION ── */
.bio-section { background: var(--parchment); }
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.bio-text p {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
  color: #3a3025;
  margin-bottom: 24px;
}
.bio-text p:first-of-type::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 4em;
  float: left;
  line-height: 0.75;
  margin-right: 8px;
  margin-top: 8px;
  color: var(--gold);
}
.bio-aside { position: sticky; top: 100px; }
.bio-quote {
  border-left: 2px solid var(--gold);
  padding: 24px 32px;
  background: rgba(184,151,42,0.06);
  margin-bottom: 40px;
}
.bio-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
}
.bio-quote cite {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.bio-facts { display: flex; flex-direction: column; }
.bio-fact {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.bio-fact dt { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); align-self: center; }
.bio-fact dd { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--ink); }

/* ── MUSIC SECTION ── */
.music-section { background: var(--warm-white); }
.music-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-bottom: 48px; }
.music-card {
  background: var(--parchment);
  padding: 32px;
  position: relative;
  transition: background 0.2s;
}
.music-card:hover { background: #ede8dc; }
.music-card-num {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  font-weight: 400;
  color: rgba(184,151,42,0.12);
  line-height: 1;
  margin-bottom: 16px;
}
.music-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.music-card p { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 24px; line-height: 1.5; }
.music-card audio { width: 100%; height: 32px; }

/* ── NEWS SECTION ── */
.news-section { background: var(--ink); }
.news-section .section-label { color: var(--gold-light); }
.news-section .section-label::after { background: var(--gold-light); }
.news-section .section-title { color: var(--parchment); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.news-card {
  background: rgba(255,255,255,0.04);
  padding: 40px;
  border-top: 1px solid rgba(184,151,42,0.2);
  transition: background 0.2s;
}
.news-card:hover { background: rgba(255,255,255,0.07); }
.news-card-date { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 16px; }
.news-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--parchment); margin-bottom: 12px; line-height: 1.3; }
.news-card p { font-family: 'EB Garamond', serif; font-size: 16px; color: rgba(245,240,232,0.6); line-height: 1.7; margin-bottom: 24px; }
.news-card .link-more {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-card .link-more:hover { color: var(--gold); }
.news-card .link-more::after { content: '→'; }
.news-footer { margin-top: 48px; text-align: right; }

/* ── WORKS SECTION ── */
.works-section { background: var(--parchment); }
.works-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 64px; }
.stat-block { background: var(--warm-white); padding: 40px 32px; text-align: center; }
.stat-number { font-family: 'Cinzel', serif; font-size: 56px; font-weight: 400; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-style: italic; color: var(--muted); }
.works-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.work-category h4 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.work-category ul { list-style: none; }
.work-category li {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  color: #4a4035;
  padding: 6px 0;
  border-bottom: 1px solid rgba(184,151,42,0.08);
  display: flex;
  justify-content: space-between;
}
.work-category li span { font-family: 'Cinzel', serif; font-size: 10px; color: var(--muted); letter-spacing: 0.05em; align-self: center; }
.work-category .view-all { border: none; color: var(--gold); font-style: italic; font-size: 14px; padding-top: 12px; }
.work-category .view-all a { color: var(--gold); text-decoration: none; }

/* ── PHOTO STRIP ── */
.photo-strip { background: var(--ink); overflow: hidden; }
.photo-strip-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; height: 320px; }
.photo-cell { overflow: hidden; position: relative; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; filter: sepia(30%) brightness(0.8); transition: filter 0.4s, transform 0.4s; }
.photo-cell:hover img { filter: sepia(10%) brightness(0.9); transform: scale(1.03); }
.photo-cell-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: 0.15em;
  color: rgba(245,240,232,0.7);
  background: rgba(26,21,16,0.6);
  padding: 4px 8px;
}
.photo-cta {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px; text-align: center; padding: 32px;
  background: rgba(255,255,255,0.03);
}
.photo-cta-label { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.2em; color: var(--gold); }
.photo-cta-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--parchment); line-height: 1.4; }

/* ── INNER PAGE CONTENT ── */
.page-hero {
  background: var(--ink);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 48px; top: 10%; bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.page-hero .container { position: relative; }
.page-hero-eyebrow { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.25em; color: var(--gold); margin-bottom: 16px; }
.page-hero h1 { font-family: 'Cinzel', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; color: var(--parchment); }

.page-content { padding: 80px 0; background: var(--warm-white); }
.page-content .entry-content {
  max-width: 720px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.85;
  color: #3a3025;
}
.page-content .entry-content h2 { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 400; color: var(--ink); margin: 48px 0 16px; }
.page-content .entry-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; color: var(--ink); margin: 32px 0 12px; }
.page-content .entry-content p { margin-bottom: 24px; }
.page-content .entry-content a { color: var(--gold); }
.page-content .entry-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 24px 32px;
  background: rgba(184,151,42,0.05);
  margin: 32px 0;
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
}
.page-content .entry-content audio { margin: 24px 0; width: 100%; max-width: 500px; }

/* Posts / News Archive */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.post-card {
  background: var(--parchment);
  padding: 40px;
  transition: background 0.2s;
}
.post-card:hover { background: #ede8dc; }
.post-date { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px; }
.post-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--gold); }
.post-excerpt { font-family: 'EB Garamond', serif; font-size: 16px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.post-pagination { display: flex; justify-content: center; gap: 8px; padding: 48px 0; }
.post-pagination a, .post-pagination span {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.1em;
  padding: 10px 16px;
  border: 1px solid var(--border);
  text-decoration: none; color: var(--ink);
}
.post-pagination .current { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ── FOOTER ── */
#site-footer { background: #100d0a; padding: 64px 0 32px; color: rgba(245,240,232,0.5); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.footer-brand .site-name { color: var(--parchment); font-size: 18px; }
.footer-brand .site-tagline { font-size: 14px; margin-top: 4px; }
.footer-brand p { font-family: 'EB Garamond', serif; font-size: 15px; line-height: 1.7; color: rgba(245,240,232,0.45); margin-top: 20px; }
.footer-col h5 { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-family: 'EB Garamond', serif; font-size: 16px; color: rgba(245,240,232,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-nav ul { list-style: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(184,151,42,0.1);
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.08em;
}
.footer-bottom a { color: rgba(245,240,232,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-lang { display: flex; gap: 12px; }
.footer-lang a { color: rgba(245,240,232,0.4); font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em; text-decoration: none; }
.footer-lang a:hover, .footer-lang a.current-lang { color: var(--gold); }

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .works-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner { padding: 0 24px; }
  #primary-navigation { display: none; }
  #primary-navigation.is-open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    flex-direction: column;
  }
  #primary-navigation.is-open ul { flex-direction: column; gap: 0; }
  #primary-navigation.is-open ul li a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .hero-content { padding: 60px 24px 60px 48px; }
  .hero::before { left: 24px; }
  .container { padding: 0 24px; }
  .bio-grid, .news-grid, .works-categories { grid-template-columns: 1fr; gap: 40px; }
  .music-grid { grid-template-columns: 1fr; }
  .photo-strip-inner { grid-template-columns: 1fr 1fr; height: 440px; }
  .lang-bar { padding: 6px 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .page-hero::before { left: 24px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.8rem; }
  .works-stats { grid-template-columns: 1fr; }
  .photo-strip-inner { grid-template-columns: 1fr; height: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
