/*
Theme Name:  GailHPhoto
Theme URI:   https://gailhphoto.co.uk
Author:      Gail Hurd
Author URI:  https://gailhphoto.co.uk
Description: Custom photography theme for Gail Hurd Photography. Dark, nature-inspired design with glassmorphism accents, ACF kit list integration, and affiliate link support.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gailhphoto
Tags:        photography, dark, custom-menu, featured-images, widgets
*/

/* ============================================
   GailHPhoto Theme — CSS Variables & Base
   ============================================ */

:root {

  /* --- Core backgrounds --- */
  --bg:               #0f1115;
  --panel:            #111318;
  --panel-raised:     #13161c;
  --field-bg:         #0f1117;

  /* --- Borders & lines --- */
  --line:             #262a33;
  --field-border:     rgba(255,255,255,.12);

  /* --- Typography --- */
  --text:             #e6e8eb;
  --muted:            #aab0bb;
  --hint:             #666d7a;

  /* --- Links --- */
  --link:             #8bd3ff;
  --link-hover:       #5ab8f5;

  /* --- Accent / brand pink --- */
  --accent:           #ef5a98;
  --accent-hover:     #c43d7a;
  --accent-light:     #ff8fc0;
  --accent-bg:        rgba(239,90,152,0.10);
  --accent-border:    rgba(239,90,152,0.22);

  /* --- Nature green --- */
  --nature:           #4a9e7a;
  --nature-hover:     #2d6e52;
  --nature-light:     #7ecba8;
  --nature-bg:        rgba(74,158,122,0.12);
  --nature-border:    rgba(74,158,122,0.22);

  /* --- Sky blue --- */
  --sky:              #8bd3ff;
  --sky-hover:        #5ab8f5;
  --sky-bg:           rgba(139,211,255,0.10);
  --sky-border:       rgba(139,211,255,0.20);

  /* --- Glassmorphism --- */
  --glass-bg:         rgba(17,19,24,0.55);
  --glass-border:     rgba(255,255,255,0.08);
  --glass-highlight:  rgba(255,255,255,0.04);
  --glass-blur:       blur(12px) saturate(1.4);

  /* --- Shadows --- */
  --shadow:           0 10px 30px rgba(0,0,0,.18);
  --shadow-sm:        0 4px 12px rgba(0,0,0,.14);
  --shadow-lg:        0 20px 50px rgba(0,0,0,.28);

  /* --- Border radius --- */
  --radius:           16px;
  --r-xl:             20px;
  --r-lg:             14px;
  --r-md:             12px;
  --r-sm:             10px;
  --r-xs:             6px;

  /* --- Layout --- */
  --max:              980px;
  --max-wide:         1200px;

  /* --- Transitions --- */
  --transition:       0.2s ease;
  --transition-slow:  0.35s ease;
}

/* ============================================
   Base reset & body
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
  color: var(--text);
  margin-bottom: 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--link-hover); }

strong { font-weight: 600; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.4rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-muted   { color: var(--muted); }
.text-hint    { color: var(--hint); }
.text-accent  { color: var(--accent); }
.text-nature  { color: var(--nature-light); }

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   Navigation
   ============================================ */

.site-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 0.5px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo span { color: var(--accent); }

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.current-menu-item { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   Main layout — content + sidebar
   ============================================ */

.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.content-area { min-width: 0; }

.sidebar { position: sticky; top: 90px; }

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.card:hover { border-color: rgba(255,255,255,0.12); }

.card--raised {
  background: var(--panel-raised);
  box-shadow: var(--shadow);
}

.card--glass {
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.card--glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--glass-highlight);
  pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-border);
}

.btn--outline:hover {
  background: var(--accent-bg);
  color: var(--accent-light);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--panel-raised);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
}

/* ============================================
   Tags / badges
   ============================================ */

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 0.5px solid transparent;
}

.tag--accent {
  background: var(--accent-bg);
  color: var(--accent-light);
  border-color: var(--accent-border);
}

.tag--nature {
  background: var(--nature-bg);
  color: var(--nature-light);
  border-color: var(--nature-border);
}

.tag--sky {
  background: var(--sky-bg);
  color: var(--sky);
  border-color: var(--sky-border);
}

.tag--muted {
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  border-color: var(--line);
}

/* ============================================
   Form fields
   ============================================ */

input, textarea, select {
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
  color: var(--hint);
}

/* ============================================
   Post content styles
   ============================================ */

.post-content h2 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--line);
}

.post-content h3 { margin-top: 1.5rem; }

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
}

.post-content li { margin-bottom: 0.5rem; }

.post-content img {
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--panel);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--muted);
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 0.5px solid var(--line);
  margin: 2rem 0;
}

/* ============================================
   Post meta
   ============================================ */

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }

/* ============================================
   Featured image
   ============================================ */

.post-thumbnail {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-thumbnail:hover img { transform: scale(1.02); }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--panel);
  border-top: 0.5px solid var(--line);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__social {
  display: flex;
  gap: 1rem;
}

.site-footer__social a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.site-footer__social a:hover { color: var(--accent); }

/* ============================================
   Kit sidebar
   ============================================ */

.kit-sidebar {
  background: var(--glass-bg);
  border: 0.5px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.kit-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--glass-highlight);
}

.kit-sidebar__heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.kit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid var(--line);
  text-decoration: none;
  transition: all var(--transition);
}

.kit-item:last-child { border-bottom: none; }

.kit-item:hover { padding-left: 4px; }

.kit-item__image {
  width: 44px;
  height: 44px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: var(--panel-raised);
  flex-shrink: 0;
}

.kit-item__info { flex: 1; min-width: 0; }

.kit-item__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kit-item__category {
  font-size: 0.75rem;
  color: var(--muted);
}

.kit-item__arrow {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.kit-sidebar__disclosure {
  font-size: 0.7rem;
  color: var(--hint);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ============================================
   Video embed
   ============================================ */

.video-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 1.5rem 0;
  background: var(--panel);
}

.video-embed--16x9 {
  aspect-ratio: 16/9;
  position: relative;
}

.video-embed--16x9 iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed--tiktok {
  max-width: 325px;
  margin: 1.5rem auto;
}

/* ============================================
   Utility
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  border: none;
  border-top: 0.5px solid var(--line);
  margin: 1.5rem 0;
}

.accent-bar {
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .site-nav { display: none; }
  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 0;
  }

  .site-nav a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 0.5px solid var(--line);
  }

  .nav-toggle { display: flex; }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Footer extended
   ============================================ */

.site-footer__inner {
  align-items: flex-start;
}

.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.site-footer__disclosure {
  font-size: 0.78rem;
  color: var(--hint);
  line-height: 1.6;
}

.site-footer__nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__nav a {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__nav a:hover { color: var(--text); }

.site-logo--small {
  font-size: 1rem;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-footer__social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  border: 0.5px solid var(--line);
  transition: all var(--transition);
}

.site-footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-bg);
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    gap: 2rem;
  }
  .site-footer__right {
    align-items: flex-start;
  }
}

/* ============================================
   Post grid (index / archive)
   ============================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
}

.post-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.post-card__image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.post-card__title {
  font-size: 1.1rem;
  margin: 0;
}

.post-card__title a {
  color: var(--text);
}

.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
  margin: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination .page-numbers {
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  border: 0.5px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ============================================
   Single post
   ============================================ */

.content-single {
  max-width: 720px;
  margin: 0 auto;
}

.post-header { margin-bottom: 1.75rem; }

.post-header__cats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.post-header__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-meta__sep { margin: 0 0.1rem; }

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--line);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--line);
}

.post-nav__prev a,
.post-nav__next a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.post-nav__prev a:hover,
.post-nav__next a:hover { color: var(--accent); }

.post-nav__next { text-align: right; }

.kit-item__note {
  font-size: 0.75rem;
  color: var(--hint);
  display: block;
  margin-top: 1px;
}

/* ============================================
   Archive header
   ============================================ */

.archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--line);
}

.archive-header__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.archive-header__desc { margin: 0; }

/* ============================================
   Video embeds
   ============================================ */

.video-figure {
  margin: 2rem 0;
}

.video-figure--tiktok {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-figure__caption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.video-embed--tiktok .tiktok-embed {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .video-embed--tiktok {
    max-width: 100%;
  }
}

/* ============================================
   Hamburger animation
   ============================================ */

.nav-toggle__top,
.nav-toggle__middle,
.nav-toggle__bottom {
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.is-active .nav-toggle__top {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__middle {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.is-active .nav-toggle__bottom {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   Header scrolled state
   ============================================ */

.site-header.is-scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,.25);
}

/* ============================================
   Scroll reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   Homepage — Hero
   ============================================ */

.hero {
  padding: 4rem 0 3rem;
  border-bottom: 0.5px solid var(--line);
}

.hero__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.hero__image-wrap {
  position: sticky;
  top: 90px;
}

.hero__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 0.5px solid var(--line);
}

.hero__image--placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--panel);
  border-radius: var(--radius);
  border: 0.5px solid var(--line);
}

.hero__heading {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero__lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero__body {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.hero__nudge {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 0.5px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* ============================================
   Homepage — Middle grid
   ============================================ */

.home-middle {
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--line);
}

.home-middle__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.home-youtube__title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.home-posts__title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.home-post-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--line);
  text-decoration: none;
  transition: all var(--transition);
  align-items: flex-start;
}

.home-post-item:last-of-type {
  border-bottom: none;
}

.home-post-item:hover {
  padding-left: 4px;
}

.home-post-item__image {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.home-post-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-post-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.home-post-item__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.home-post-item:hover .home-post-item__title {
  color: var(--accent-light);
}

.home-post-item__date {
  font-size: 0.78rem;
  color: var(--muted);
}

.home-post-item__excerpt {
  font-size: 0.78rem;
  color: var(--hint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Homepage — Featured photos grid
   ============================================ */

.home-photos {
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--line);
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin-bottom: 0;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.photo-grid__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  display: block;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.photo-grid__item:hover img {
  transform: scale(1.05);
}

.photo-grid__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  opacity: 0;
  transition: opacity var(--transition);
}

.photo-grid__item:hover .photo-grid__overlay {
  opacity: 1;
}

.photo-grid__title {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 500;
}

/* ============================================
   Homepage — Stay in touch
   ============================================ */

.home-touch {
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--line);
}

.home-touch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.home-touch__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.mailerlite-placeholder {
  background: var(--field-bg);
  border: 1px dashed var(--field-border);
  border-radius: var(--r-sm);
  padding: 1rem;
  margin: 0.75rem 0;
}

/* ============================================
   Homepage — Tools
   ============================================ */

.home-tools {
  padding: 3rem 0;
}

.home-tools__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* ============================================
   Homepage — Responsive
   ============================================ */

@media (max-width: 768px) {

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__image-wrap {
    position: static;
    max-width: 200px;
  }

  .home-middle__grid,
  .home-touch__grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-tools__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Nav active pill — pink (fixed!) 🩷
   ============================================ */

.site-nav a.current-menu-item,
.site-nav a.current_page_item,
.site-nav a.current-menu-ancestor,
.site-nav a.current_page_ancestor,
.site-nav a.active,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_ancestor > a {
  color: var(--accent-light) !important;
  background: var(--accent-bg) !important;
  border-color: var(--accent-border) !important;
}

/* ============================================
   Hero editor content — Yoast friendly
   Styles WP editor output inside hero
   ============================================ */

.hero__editor-content p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-size: 0.97rem;
}

.hero__editor-content p:first-child {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.hero__editor-content strong {
  color: var(--text);
}

.hero__editor-content a {
  color: var(--link);
}

.hero__editor-content a:hover {
  color: var(--link-hover);
}

/* Hide default WP block padding in hero */
.hero__editor-content .wp-block-paragraph {
  margin-bottom: 0.75rem;
}

/* ============================================
   Videos page
   ============================================ */

.page-videos__header {
  margin-bottom: 2.5rem;
}

.page-videos__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.page-videos__intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
}

.videos-section {
  margin-bottom: 3rem;
}

.videos-section__header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.videos-section__header h2 {
  margin: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-grid--tiktok {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.video-card--featured {
  border-color: var(--accent-border);
}

.video-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.video-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.video-card__title {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

.video-card__summary {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}

.video-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.video-card__yt-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
  transition: color var(--transition);
}

.video-card__yt-link:hover {
  color: var(--accent-light);
}

/* Transcript toggle */
.video-card__transcript {
  border-top: 0.5px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.video-card__transcript summary {
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}

.video-card__transcript summary:hover {
  color: var(--text);
}

.video-card__transcript-body {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.video-card__transcript-body p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* TikTok card */
.video-card--tiktok .video-embed--tiktok {
  background: var(--panel-raised);
}

@media (max-width: 768px) {
  .video-grid,
  .video-grid--tiktok {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TikTok thumbnail cards
   ============================================ */

.tiktok-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--panel-raised);
  width: 100%;
}

.tiktok-thumb__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.tiktok-thumb:hover .tiktok-thumb__image {
  transform: scale(1.04);
}

.tiktok-thumb__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity var(--transition);
}

.tiktok-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-raised);
  padding: 1.5rem;
}

.tiktok-thumb__placeholder-text {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}


.tiktok-thumb:hover .tiktok-thumb__overlay {
  opacity: 1;
}

.tiktok-thumb__play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(239,90,152,0.5);
  transition: transform var(--transition);
}

.tiktok-thumb:hover .tiktok-thumb__play {
  transform: scale(1.1);
}

.tiktok-thumb__label {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.video-grid--tiktok {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-items: start;
}

.video-card--tiktok {
  max-width: 320px;
  width: 100%;
}

@media (max-width: 768px) {
  .video-grid--tiktok {
    grid-template-columns: repeat(2, 1fr);
    justify-items: stretch;
  }
  .video-card--tiktok {
    max-width: 100%;
  }
}
