/*
Theme Name:  David Jacobs – Actor & Voice Talent
Theme URI:   https://davidjacobsvo.com
Author:      David Jacobs
Author URI:  https://davidjacobsvo.com
Description: Custom single-page portfolio theme for David Jacobs, Actor and Voice Talent. Teal, charcoal, and warm off-white palette with Playfair Display and DM Sans typography.
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: david-jacobs
Tags:        portfolio, one-page, actor, voiceover, custom-colors
*/

/* ─────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   ───────────────────────────────────────────── */
:root {
  --teal:           #3a9e9e;
  --teal-light:     #4dbdbd;
  --teal-dark:      #2a7a7a;
  --black:          #0f0f0f;
  --charcoal:       #1c1c1c;
  --warm-off-white: #f5f2ee;
  --cream:          #ede9e3;
  --mid-gray:       #888;
  --text-dark:      #1a1a1a;
}

/* ─────────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-off-white);
  color: var(--text-dark);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ─────────────────────────────────────────────
   WORDPRESS CORE OVERRIDES
   ───────────────────────────────────────────── */
.wp-block-image img { border-radius: 4px; }
.alignnone, .alignleft, .alignright, .aligncenter { margin-bottom: 1.5rem; }
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }

/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */

/* Logo height token — change this one value to resize your logo */
:root { --nav-logo-height: 40px; }

#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(15,15,15,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58,158,158,0.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 72px;
}

/* ── Logo link ── */
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* WordPress custom_logo outputs an <img> wrapped in a <a> inside .custom-logo-link.
   We target the img directly so it scales to the nav height cleanly. */
.nav-logo .custom-logo-link { display: flex; align-items: center; }
.nav-logo .custom-logo-link img,
.nav-logo img.custom-logo {
  height: var(--nav-logo-height);
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
}

/* SVG icon + text fallback (shown when no custom logo is uploaded) */
.nav-logo-icon { display: flex; align-items: center; color: var(--teal); }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* ── Desktop menu ── */
#site-nav .nav-menu {
  display: flex; gap: 36px; list-style: none;
  align-items: center;
  margin: 0; padding: 0;
}
#site-nav .nav-menu a {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
#site-nav .nav-menu a:hover,
#site-nav .nav-menu .current-menu-item > a { color: var(--teal-light); }
#site-nav .nav-menu .menu-item-hire > a {
  background: var(--teal);
  color: white !important;
  padding: 9px 22px;
  border-radius: 2px;
  transition: background 0.2s;
}
#site-nav .nav-menu .menu-item-hire > a:hover { background: var(--teal-dark); }

/* ── Hamburger button (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease;
  transform-origin: center;
}

/* Animate bars → X when menu is open */
#site-nav.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#site-nav.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#site-nav.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer overlay ── */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 190;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-visible {
  opacity: 1;
}

/* ── Mobile breakpoint ── */
@media (max-width: 900px) {

  /* Show the hamburger */
  .nav-toggle { display: flex; }

  /* Show the overlay element (JS adds .is-visible to fade it in) */
  .nav-overlay { display: block; }

  /* Drawer: slide in from the right */
  #site-nav .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: rgba(15,15,15,0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(58,158,158,0.2);
    flex-direction: column;
    justify-content: flex-start;   /* start from top, not center */
    align-items: flex-start;
    gap: 0;
    /* Top padding clears the nav bar; bottom padding handles notched phones */
    padding: 88px 40px calc(48px + env(safe-area-inset-bottom)) 40px;
    overflow-y: auto;              /* scroll if menu is taller than screen */
    -webkit-overflow-scrolling: touch;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* override any display:none from previous breakpoint logic */
    display: flex !important;
  }

  /* Slide in when open */
  #site-nav.nav-open .nav-menu {
    transform: translateX(0);
  }

  /* Mobile menu items */
  #site-nav .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #site-nav .nav-menu li:last-child { border-bottom: none; }

  #site-nav .nav-menu a {
    display: block;
    padding: 16px 0;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.75);
  }
  #site-nav .nav-menu a:hover { color: var(--teal-light); }

  /* "Hire Me" CTA in drawer */
  #site-nav .nav-menu .menu-item-hire {
    border-bottom: none;
    margin-top: 24px;
  }
  #site-nav .nav-menu .menu-item-hire > a {
    display: inline-block;
    padding: 12px 28px !important;
    border-radius: 2px;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn-primary {
  background: var(--teal);
  color: white;
  padding: 14px 36px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); color: white; }
.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 36px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ─────────────────────────────────────────────
   SECTION SHARED STYLES
   ───────────────────────────────────────────── */
.site-section { padding: 75px 5%; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.section-label-line { width: 32px; height: 2px; background: var(--teal); flex-shrink: 0; }
.section-label span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title.light { color: white; }
.section-subtitle {
  font-size: 1rem;
  color: var(--mid-gray);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 60px;
}
.section-subtitle.light { color: rgba(255,255,255,0.5); }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
#hero {
  min-height: 75vh;          /* was 100vh — reduced by 25% */
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 8% 60px;   /* was 120px top / 80px bottom */
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;       /* was 24px */
}
.hero-eyebrow-line { width: 40px; height: 2px; background: var(--teal); }
.hero-eyebrow span {
  font-size: 0.78rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); font-weight: 500;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 4rem); /* was clamp(3rem, 5vw, 5rem) */
  color: white; line-height: 1.0; margin-bottom: 8px;
}
.hero-name span { color: var(--teal); }
.hero-title {
  font-size: 0.9rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 28px; font-weight: 300; /* was 40px */
}
.hero-description {
  font-size: 0.95rem; line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 460px; margin-bottom: 36px; /* was 48px */
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-right { position: relative; overflow: hidden; }
.hero-image-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(0.85);
}
.hero-image-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--charcoal) 0%, transparent 35%),
              linear-gradient(to top, rgba(58,158,158,0.18) 0%, transparent 60%);
}
.hero-stats {
  position: absolute; bottom: 32px; left: 0; right: 0; /* was 48px */
  display: flex; justify-content: center; gap: 28px;    /* was 40px */
  z-index: 10; padding: 0 40px;
}
.hero-stat {
  text-align: center;
  background: rgba(15,15,15,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(58,158,158,0.25);
  padding: 12px 20px; border-radius: 4px; min-width: 90px; /* was 16px 24px / 100px */
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--teal);  /* was 2rem */
  font-weight: 700; display: block; line-height: 1;
}
.hero-stat-label {
  font-size: 0.62rem; letter-spacing: 0.15em; /* was 0.68rem */
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-top: 4px; display: block;
}

/* ─────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────── */
#about {
  background: white;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center;
  padding-top: 56px;    /* 75px × 0.75 */
  padding-bottom: 56px;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%; border-radius: 4px;
  box-shadow: 20px 20px 0 var(--cream);
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--teal); color: white;
  padding: 20px 24px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  border-radius: 4px; text-align: center; line-height: 1.2;
}
.about-badge small {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 400;
  opacity: 0.8; margin-top: 2px;
}
.about-skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill-tag {
  background: var(--cream); color: var(--teal-dark);
  font-size: 0.78rem; letter-spacing: 0.08em;
  padding: 6px 16px; border-radius: 2px; font-weight: 500;
  border: 1px solid rgba(58,158,158,0.2);
}

/* ─────────────────────────────────────────────
   VOICE DEMOS
   ───────────────────────────────────────────── */
#demos { background: var(--charcoal); }

/* Four-across fixed grid */
.demos-grid.demos-grid--four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Card as flex column so bottom controls always stick to the bottom */
.demo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(58,158,158,0.18);
  border-radius: 4px;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, background 0.25s;
}
.demo-card:hover { border-color: var(--teal); background: rgba(58,158,158,0.07); }

.demo-card-top {
  padding: 24px 24px 16px;
  flex: 1;
}
.demo-card-bottom {
  padding: 0 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
}

.demo-icon {
  width: 44px; height: 44px;
  background: rgba(58,158,158,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--teal);
}
.demo-label {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal);
  font-weight: 500; margin-bottom: 6px;
}
.demo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: white; margin-bottom: 8px; line-height: 1.3;
}
.demo-desc {
  font-size: 0.83rem; color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

/* Audio Player */
.audio-player { display: flex; align-items: center; gap: 10px; }
.play-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s, transform 0.15s;
}
.play-btn:hover { background: var(--teal-dark); transform: scale(1.05); }
.play-btn svg { margin-left: 2px; }
.audio-track { flex: 1; min-width: 0; }
.audio-progress-bg {
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; cursor: pointer;
  position: relative; margin-bottom: 5px;
}
.audio-progress-fill {
  height: 100%; width: 0%;
  background: var(--teal); border-radius: 2px;
  transition: width 0.1s linear;
}
.audio-time { font-size: 0.68rem; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; }

/* Download button */
.demo-download-btn {
  display: flex; align-items: center; gap: 7px;
  background: transparent;
  border: 1px solid rgba(58,158,158,0.35);
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  width: 100%;
  justify-content: center;
}
.demo-download-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(58,158,158,0.06);
}
.demo-download-btn--placeholder {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .demos-grid.demos-grid--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .demos-grid.demos-grid--four { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   VIDEO REEL
   ───────────────────────────────────────────── */
#reel {
  background: var(--warm-off-white);
  text-align: center;
  padding-top: 56px;    /* 75px × 0.75 */
  padding-bottom: 56px;
}
#reel .section-label { justify-content: center; }
#reel .section-subtitle { margin: 0 auto 36px; } /* was 48px */
.video-wrapper {
  max-width: 900px; margin: 0 auto;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  background: #000; position: relative; aspect-ratio: 16/9;
}
.video-wrapper iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.video-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a4a4a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.video-placeholder p { color: rgba(255,255,255,0.5); font-size: 0.85rem; letter-spacing: 0.1em; }
.video-placeholder .video-title {
  font-family: 'Playfair Display', serif;
  color: white; font-size: 1.4rem; font-weight: 700; margin-top: -8px;
}

/* ─────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────── */
#services { background: var(--charcoal); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px; margin-top: 52px;
  background: rgba(58,158,158,0.1);
  border: 1px solid rgba(58,158,158,0.15);
  border-radius: 4px; overflow: hidden;
}

/* Each card is an <a> tag — reset link styles, keep card look */
a.service-item {
  background: var(--charcoal);
  padding: 36px 28px 28px;
  display: flex; flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
}
a.service-item:hover { background: rgba(58,158,158,0.1); }

/* Teal left-border reveal on hover */
a.service-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}
a.service-item:hover::before { transform: scaleY(1); }

.service-icon {
  color: var(--teal);
  opacity: 0.7;
  margin-bottom: 18px;
  display: block;
  transition: opacity 0.25s, transform 0.25s;
}
a.service-item:hover .service-icon { opacity: 1; transform: translateY(-2px); }

.service-name {
  font-weight: 500; color: white; margin-bottom: 10px; font-size: 1rem;
  transition: color 0.2s;
}
a.service-item:hover .service-name { color: var(--teal-light); }

.service-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  line-height: 1.65;
  flex: 1;
}

/* Arrow — slides in from left on hover */
.service-arrow {
  display: flex; align-items: center;
  margin-top: 20px;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
a.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─────────────────────────────────────────────
   TESTIMONIALS
   ───────────────────────────────────────────── */
#testimonials { background: white; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 48px;
}
.testimonial-card {
  background: var(--warm-off-white); border-radius: 4px;
  padding: 36px 32px; position: relative;
  border-left: 3px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.07); }
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; color: var(--teal);
  line-height: 0.5; margin-bottom: 20px; opacity: 0.5;
}
.testimonial-text {
  font-size: 0.95rem; line-height: 1.8; color: #444;
  margin-bottom: 24px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); display: flex;
  align-items: center; justify-content: center;
  color: white; font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 500; font-size: 0.9rem; color: var(--text-dark); }
.author-role { font-size: 0.75rem; color: var(--mid-gray); margin-top: 2px; }
.testimonial-stars {
  position: absolute; top: 28px; right: 28px;
  color: var(--teal); font-size: 0.75rem; letter-spacing: 2px;
}

/* ─────────────────────────────────────────────
   ORGANIZATIONS
   ───────────────────────────────────────────── */
#organizations { background: var(--cream); text-align: center; }
#organizations .section-label { justify-content: center; }
#organizations .section-subtitle { margin: 0 auto 52px; }

.orgs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.org-badge {
  background: white;
  border: 1px solid rgba(58,158,158,0.15);
  border-radius: 6px;
  padding: 24px 28px 18px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  min-width: 160px;
  flex: 1 1 160px;
  max-width: 200px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.org-badge:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(58,158,158,0.12);
  transform: translateY(-2px);
}

/* Image container — fixed height so all cards are uniform */
.org-logo-wrap {
  width: 100%;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.org-logo-wrap img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.org-badge:hover .org-logo-wrap img { filter: grayscale(0%); }

/* Placeholder SVG styling */
.org-placeholder-svg {
  width: 100%;
  height: 64px;
}

.org-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────── */
#contact {
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: start;
}
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 42px; height: 42px;
  background: rgba(58,158,158,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--teal);
}
.contact-item-label {
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal);
  font-weight: 500; margin-bottom: 4px;
}
.contact-item-value { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.contact-social { display: flex; gap: 12px; margin-top: 40px; }
.social-btn {
  width: 44px; height: 44px;
  border: 1px solid rgba(58,158,158,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-size: 16px;
}
.social-btn:hover { border-color: var(--teal); color: var(--teal); background: rgba(58,158,158,0.08); }
/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(58,158,158,0.15);
  border-radius: 4px; padding: 44px 40px;
}
.form-title {
  font-family: 'Playfair Display', serif;
  color: white; font-size: 1.4rem; margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 8px; font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; padding: 12px 16px;
  border-radius: 2px; outline: none;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: rgba(58,158,158,0.06); }
.form-group select option { background: #1c1c1c; }
.form-group textarea { resize: vertical; min-height: 120px; }
/* WP Contact Form 7 overrides */
.wpcf7-form .form-group input,
.wpcf7-form .form-group textarea,
.wpcf7-form .form-group select { color: white; }
.wpcf7-submit, .form-submit {
  width: 100%; background: var(--teal); color: white;
  border: none; padding: 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500;
  border-radius: 2px; cursor: pointer;
  transition: background 0.2s; margin-top: 8px;
}
.wpcf7-submit:hover, .form-submit:hover { background: var(--teal-dark); }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
#site-footer {
  background: var(--black);
  padding: 40px 5%;
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(58,158,158,0.12);
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: 'Playfair Display', serif; color: white; font-size: 1.1rem; }
.footer-logo span { color: var(--teal); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: rgba(255,255,255,0.3); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

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

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 50vh; }
  #about { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .about-image-wrap { max-width: 400px; margin: 0 auto; }
  #contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; padding: 0 20px; }
}
@media (max-width: 600px) {
  .site-section { padding: 70px 5%; }
  .contact-form { padding: 28px 20px; }
  #site-footer { flex-direction: column; text-align: center; }
}


/* ═════════════════════════════════════════════
   INTERIOR PAGES — SHARED
   (page.php, single.php, page-blog.php)
   ═════════════════════════════════════════════ */

/* Push content below fixed nav */
.interior-page { padding-top: 72px; }

/* ── Page hero banner ── */
.page-hero {
  background: var(--charcoal);
  padding: 64px 5% 60px;
  position: relative;
  overflow: hidden;
}

/* When a featured image is set, use it as a background */
.page-hero--has-image {
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center top;
}
/* Dark overlay so text stays readable over any photo */
.page-hero--has-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,15,0.72) 0%,
    rgba(15,15,15,0.55) 60%,
    rgba(28,28,28,0.85) 100%
  );
}
/* Blog hero — subtle teal accent instead of photo */
.page-hero--blog {
  background: var(--charcoal);
  border-bottom: 3px solid var(--teal);
}
/* Post hero is slightly taller */
.page-hero--post { padding: 72px 5% 68px; }

.page-hero-inner {
  position: relative; /* above ::before overlay */
  max-width: 860px;
}

/* Breadcrumb */
.page-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-breadcrumb a,
.page-breadcrumb span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.page-breadcrumb a:hover { color: var(--teal-light); }
.page-breadcrumb [aria-current="page"] { color: var(--teal); }

/* Page / post title */
.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 700;
}
.page-hero-title--post { font-size: clamp(1.8rem, 3.5vw, 3rem); }

.page-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 640px;
}

/* Post hero meta */
.post-hero-meta { margin-bottom: 12px; }
.post-hero-cat {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(58,158,158,0.4);
  padding: 4px 12px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.post-hero-cat:hover { background: var(--teal); color: white; }

.post-hero-byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.post-hero-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(58,158,158,0.4);
  object-fit: cover;
}
.post-hero-author { color: rgba(255,255,255,0.8); font-weight: 500; }
.post-hero-sep { color: rgba(255,255,255,0.25); }

/* ── Content + sidebar grid ── */
.page-content-wrap {
  background: var(--warm-off-white);
  padding: 64px 5%;
}
.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

/* ── Page / Post body ── */
.page-main { min-width: 0; }

.page-body,
.post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #333;
}
.page-body h2, .post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-dark);
  margin: 2.2rem 0 0.8rem;
  line-height: 1.2;
}
.page-body h3, .post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 1.8rem 0 0.6rem;
}
.page-body h4, .post-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.4rem 0 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-body p, .post-body p { margin-bottom: 1.4rem; }
.page-body a, .post-body a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.page-body a:hover, .post-body a:hover { color: var(--teal); }
.page-body ul, .post-body ul,
.page-body ol, .post-body ol {
  margin: 0 0 1.4rem 1.4rem;
}
.page-body li, .post-body li { margin-bottom: 0.4rem; }
.page-body blockquote, .post-body blockquote {
  border-left: 3px solid var(--teal);
  margin: 2rem 0;
  padding: 16px 24px;
  background: var(--cream);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: #555;
}
.page-body blockquote p, .post-body blockquote p { margin-bottom: 0; }
.page-body img, .post-body img {
  border-radius: 4px;
  margin: 1.6rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.page-body figcaption, .post-body figcaption {
  font-size: 0.8rem;
  color: var(--mid-gray);
  text-align: center;
  margin-top: -12px;
  margin-bottom: 1.4rem;
}
/* Horizontal rule */
.page-body hr, .post-body hr {
  border: none;
  border-top: 1px solid var(--cream);
  margin: 2.4rem 0;
}
/* Code */
.page-body code, .post-body code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: monospace;
}

/* ── Post tags ── */
.post-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid var(--cream);
}
.post-tags-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 500;
}
.post-tag {
  font-size: 0.75rem;
  background: var(--cream);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid rgba(58,158,158,0.2);
  transition: border-color 0.2s, background 0.2s;
}
.post-tag:hover { border-color: var(--teal); background: white; }

/* ── Author bio ── */
.post-author-bio {
  display: flex; gap: 20px; align-items: flex-start;
  background: white;
  border-radius: 4px;
  border-left: 3px solid var(--teal);
  padding: 28px 28px;
  margin-top: 48px;
}
.post-author-bio-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--cream);
}
.post-author-bio-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.post-author-bio-desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
  margin: 0;
}

/* ── Post navigation ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--cream);
}
.post-nav-item {
  background: white;
  border: 1px solid var(--cream);
  border-radius: 4px;
  padding: 20px 22px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-nav-item:hover { border-color: var(--teal); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.post-nav-item--next { text-align: right; }
.post-nav-direction {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.post-nav-item--next .post-nav-direction { justify-content: flex-end; }
.post-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ── Sidebar ── */
.page-sidebar {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 88px; /* 72px nav + 16px breathing room */
}
.sidebar-card {
  background: white;
  border-radius: 4px;
  border: 1px solid var(--cream);
  padding: 28px 24px;
}
.sidebar-card--dark {
  background: var(--charcoal);
  border-color: rgba(58,158,158,0.2);
}
.sidebar-card--cta {
  background: var(--charcoal);
  border: 1px solid rgba(58,158,158,0.25);
  border-top: 3px solid var(--teal);
}
.sidebar-cta-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}
.sidebar-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 10px;
}
.sidebar-cta-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}
.sidebar-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream);
}
.sidebar-card-title--light { color: white; border-color: rgba(255,255,255,0.08); }

/* Service quick-links in sidebar */
.sidebar-service-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.sidebar-service-links li { border-bottom: 1px solid var(--cream); }
.sidebar-service-links li:last-child { border-bottom: none; }
.sidebar-service-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-service-links a:hover { color: var(--teal); }
.sidebar-service-links a[aria-current="page"] {
  color: var(--teal);
  font-weight: 600;
}
.sidebar-service-links svg { opacity: 0.4; flex-shrink: 0; }

/* Recent posts list in sidebar */
.sidebar-recent-posts {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.sidebar-recent-posts li { border-bottom: 1px solid var(--cream); }
.sidebar-recent-posts li:last-child { border-bottom: none; }
.sidebar-recent-posts a {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 0;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-recent-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color 0.2s;
}
.sidebar-recent-posts a:hover .sidebar-recent-title { color: var(--teal); }
.sidebar-recent-date {
  font-size: 0.72rem;
  color: var(--mid-gray);
}

/* Small outline button variant for sidebar */
.btn-outline--sm {
  padding: 9px 20px;
  font-size: 0.78rem;
}

/* ═════════════════════════════════════════════
   BLOG INDEX (page-blog.php)
   ═════════════════════════════════════════════ */
.blog-wrap {
  background: var(--warm-off-white);
  padding: 64px 5%;
  max-width: 1280px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Blog card */
.blog-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cream);
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.blog-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

/* Thumbnail */
.blog-card-thumb {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--cream);
}
.blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal);
  color: rgba(58,158,158,0.4);
}

/* Card body */
.blog-card-body {
  padding: 24px 24px 20px;
  display: flex; flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.blog-card-date {
  font-size: 0.72rem;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}
.blog-card-sep { color: var(--mid-gray); font-size: 0.75rem; }
.blog-card-cat {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.blog-card-cat:hover { color: var(--teal-dark); }
.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 12px;
  flex: 1;
}
.blog-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card-title a:hover { color: var(--teal-dark); }
.blog-card-excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}
.blog-card-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  margin-top: auto;
}
.blog-card-read-more:hover { gap: 10px; color: var(--teal-dark); }

/* Pagination */
.blog-pagination {
  margin-top: 56px;
  display: flex; justify-content: center;
}
.blog-pagination .page-numbers {
  display: flex; gap: 6px; list-style: none;
  flex-wrap: wrap; justify-content: center;
}
.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border: 1px solid var(--cream);
  background: white;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.blog-pagination .page-numbers li a:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.blog-pagination .page-numbers li .current {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}
.blog-pagination .page-numbers li .prev,
.blog-pagination .page-numbers li .next {
  width: auto; padding: 0 16px;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  color: var(--mid-gray);
}
.blog-empty svg { color: rgba(58,158,158,0.3); margin-bottom: 8px; }
.blog-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text-dark);
}
.blog-empty p { font-size: 0.95rem; }

/* ═════════════════════════════════════════════
   INTERIOR PAGES — RESPONSIVE
   ═════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-content-grid { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item--next { text-align: left; }
  .post-nav-item--next .post-nav-direction { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .page-hero { padding: 48px 5% 44px; }
  .page-content-wrap { padding: 44px 5%; }
  .blog-wrap { padding: 44px 5%; }
  .blog-grid { grid-template-columns: 1fr; }
  .page-hero-title { font-size: 1.75rem; }
}
