/*
Theme Name: Network LJNZ
Theme URI: https://networkljnz.com
Author: Laura, Joseph, Nova & Zeus
Author URI: https://networkljnz.com
Description: A family hub for the LJNZ network — connecting family life, memories, and professional portfolios including interactive resumes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: networkljnz
Tags: family, blog, portfolio, resume, custom-colors, custom-menu, featured-images, responsive-layout
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  /* Color Palette — deep navy family warmth */
  --color-navy:       #1b2d42;
  --color-ink:        #253d56;
  --color-slate:      #3a5878;
  --color-steel:      #3d7fbf;
  --color-sky:        #7fb3d9;
  --color-cream:      #f5f0e8;
  --color-warm:       #ede6d8;
  --color-gold:       #c07a30;
  --color-amber:      #a8661e;
  --color-coral:      #c0614a;
  --color-sage:       #4f9e6f;
  --color-white:      #ffffff;
  --color-text:       #1e2e3d;
  --color-muted:      #607590;

  /* Typography */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-heading:     'Cardo', Georgia, serif;
  --font-body:        'Lato', 'Helvetica Neue', sans-serif;
  --font-mono:        'JetBrains Mono', 'Courier New', monospace;
  --font-accent:      'Cinzel', Georgia, serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   2rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Sizing */
  --container:  1200px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.12);
  --shadow-md:  0 8px 32px rgba(13,27,42,0.18);
  --shadow-lg:  0 20px 60px rgba(13,27,42,0.25);

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --duration:   0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--color-muted); }
.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--color-warm);
}

.section--dark {
  background-color: var(--color-navy);
  color: var(--color-cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-cream);
}

/* =============================================
   SITE HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192, 122, 48, 0.14);
  transition: all var(--duration) var(--ease);
}

.site-header.scrolled {
  background: rgba(13, 27, 42, 0.99);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-amber) 100%);
  border-radius: 10px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-navy);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 400;
  margin-top: 2px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.75);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--duration) var(--ease);
}

.main-nav a:hover {
  color: var(--color-cream);
}

.main-nav a:hover::after {
  width: calc(100% - 2rem);
}

.main-nav a.active {
  color: var(--color-gold);
}

.nav-resume-btn {
  background: var(--color-gold);
  color: var(--color-navy) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem 1.2rem !important;
  font-weight: 700 !important;
  transition: all var(--duration) var(--ease) !important;
  box-shadow: 0 4px 12px rgba(192, 122, 48, 0.22);
}

.nav-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(192, 122, 48, 0.32) !important;
}

.nav-resume-btn::after { display: none !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(74, 127, 165, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(192, 122, 48, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(79, 158, 111, 0.09) 0%, transparent 50%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(122, 184, 217, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 184, 217, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--color-gold);
  font-style: italic;
  font-family: 'Cardo', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  word-spacing: 0.05em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 239, 230, 0.7);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.hero-members {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.member-pill {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(245, 239, 230, 0.08);
  border: 1px solid rgba(245, 239, 230, 0.15);
  border-radius: 50px;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  transition: all var(--duration) var(--ease);
}

.member-pill:hover {
  background: rgba(192, 122, 48, 0.12);
  border-color: rgba(232, 168, 56, 0.4);
  transform: translateY(-2px);
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-accent);
  flex-shrink: 0;
}

.member-avatar.laura  { background: #3d1a4a; color: #e8d5f5; }
.member-avatar.joseph { background: #5c1a2e; color: #f5d0e0; }
.member-avatar.nova   { background: #2e2e38; color: #fff; }
.member-avatar.zeus   { background: #7a7a8a; color: #fff; }

.member-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-floating-card {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(245, 239, 230, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 239, 230, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: none;
}

@media (min-width: 1100px) {
  .hero-floating-card { display: block; }
}

.floating-card-title {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.network-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(245, 239, 230, 0.08);
}

.network-stat:last-child { border-bottom: none; }

.stat-label {
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.6);
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-cream);
  font-weight: 700;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 14px rgba(192, 122, 48, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(192, 122, 48, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-cream);
  border: 1.5px solid rgba(245, 239, 230, 0.35);
}

.btn-outline:hover {
  border-color: rgba(245, 239, 230, 0.7);
  color: var(--color-cream);
}

.btn-dark {
  background: var(--color-navy);
  color: var(--color-cream);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background: var(--color-ink);
  box-shadow: var(--shadow-md);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.section--dark .section-title { color: var(--color-cream); }
.section--dark .section-eyebrow { color: var(--color-gold); }

.section-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.8;
}

.section--dark .section-desc { color: rgba(245, 239, 230, 0.65); }

/* =============================================
   FAMILY MEMBERS SECTION
   ============================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.member-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.member-card-top {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.member-card-top.laura  { background: #f5eef8; }
.member-card-top.joseph { background: #f5eaf0; }
.member-card-top.nova   { background: #e8e8ec; }
.member-card-top.zeus   { background: #e9e9ec; }

.member-big-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  border: 4px solid var(--color-white);
  position: absolute;
  bottom: -30px;
  box-shadow: var(--shadow-md);
}

.member-big-avatar.laura  { background: #3d1a4a; color: #e8d5f5; }
.member-big-avatar.joseph { background: #5c1a2e; color: #f5d0e0; }
.member-big-avatar.nova   { background: #2e2e38; color: #fff; }
.member-big-avatar.zeus   { background: #7a7a8a; color: #fff; }

.member-card-body {
  padding: 48px var(--space-lg) var(--space-lg);
  text-align: center;
}

.member-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}


/* Per-member role label color overrides */
.member-card.laura  .member-card-role { color: #7a3060; }
.member-card.joseph .member-card-role { color: #9e5270; }
.member-card.nova   .member-card-role { color: #2e2e38; }
.member-card.zeus   .member-card-role { color: #7a7a8a; }

/* Nova: black/white Klee Kai */
.member-card-top.nova   { background: #e8e8ec; }
.member-big-avatar.nova { background: #2e2e38; color: #fff; }

/* Zeus: grey American Shorthair */
.member-card-top.zeus   { background: #e9e9ec; }
.member-big-avatar.zeus { background: #7a7a8a; color: #fff; }

.member-card-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.member-card-bio {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: var(--color-warm);
  color: var(--color-slate);
  text-transform: uppercase;
}

/* =============================================
   BLOG / UPDATES SECTION
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--color-slate), var(--color-navy));
  position: relative;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-category-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.post-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.post-author-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  transition: color var(--duration) var(--ease);
  line-height: 1.35;
}

.post-card:hover .post-title { color: var(--color-steel); }

.post-excerpt {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-md);
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-steel);
  transition: gap var(--duration) var(--ease);
}

.post-card:hover .post-read-more { gap: var(--space-md); }

/* =============================================
   RESUME TEASER SECTION
   ============================================= */
.resume-teaser {
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.resume-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 100% 0%, rgba(192, 122, 48, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(74, 127, 165, 0.15) 0%, transparent 60%);
}

.resume-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .resume-inner { grid-template-columns: 1fr; }
}

.resume-preview {
  background: rgba(245, 239, 230, 0.05);
  border: 1px solid rgba(245, 239, 230, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  font-family: var(--font-mono);
}

.resume-preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(245, 239, 230, 0.1);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #c0614a; }
.dot-yellow { background: #c07a30; }
.dot-green { background: #4f9e6f; }

.resume-preview-filename {
  font-size: 0.75rem;
  color: rgba(245, 239, 230, 0.4);
  margin-left: auto;
}

.resume-line {
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.7);
  line-height: 2.2;
}

.resume-line .key   { color: var(--color-sky); }
.resume-line .val   { color: var(--color-gold); }
.resume-line .str   { color: var(--color-sage); }
.resume-line .punct { color: rgba(245, 239, 230, 0.35); }

.resume-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.resume-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(192, 122, 48, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.5);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-warm);
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.gallery-item:hover { transform: scale(1.02); }
.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; aspect-ratio: auto; min-height: 280px; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 3; }
.gallery-item:nth-child(6) { grid-column: span 4; grid-row: span 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  font-size: 0.82rem;
  color: var(--color-cream);
  font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(245, 239, 230, 0.08);
}

.footer-top {
  padding: var(--space-2xl) 0 var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 239, 230, 0.55);
  line-height: 1.8;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(245, 239, 230, 0.55);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--color-cream); }

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.08);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.35);
}

.footer-copy span { color: var(--color-gold); }

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid rgba(245, 239, 230, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(245, 239, 230, 0.55);
  transition: all var(--duration) var(--ease);
}

.social-link:hover {
  background: rgba(192, 122, 48, 0.12);
  border-color: rgba(232, 168, 56, 0.4);
  color: var(--color-gold);
}

/* =============================================
   SIDEBAR
   ============================================= */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}

.widget {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-warm);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-xl);
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-slate);
  background: var(--color-white);
  border: 1.5px solid var(--color-warm);
  transition: all var(--duration) var(--ease);
}

.page-link:hover,
.page-link.current {
  background: var(--color-navy);
  color: var(--color-cream);
  border-color: var(--color-navy);
}

/* =============================================
   SINGLE POST
   ============================================= */
.post-full {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-full-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--color-warm);
}

.post-full-content {
  padding: var(--space-xl);
  max-width: 720px;
}

.post-full-content p { margin-bottom: 1.5rem; }
.post-full-content h2 { margin: 2.5rem 0 1rem; }
.post-full-content h3 { margin: 2rem 0 0.75rem; }
.post-full-content ul, .post-full-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-full-content li { margin-bottom: 0.5rem; }
.post-full-content blockquote {
  border-left: 4px solid var(--color-gold);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-warm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-slate);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    padding: var(--space-lg);
    gap: var(--space-sm);
    border-bottom: 1px solid rgba(192, 122, 48, 0.14);
  }
  .menu-toggle { display: flex; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(n) { grid-column: span 1; min-height: 160px; }
  .resume-features { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(-50%) translateX(-8px); }
}

.animate-fade-up {
  animation: fadeInUp 0.7s var(--ease) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.hero-floating-card {
  animation: float 6s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   WORDPRESS CORE CLASSES
   ============================================= */
.wp-block-image { margin: var(--space-lg) 0; }
.aligncenter { margin: 0 auto; text-align: center; }
.alignleft { float: left; margin-right: var(--space-lg); }
.alignright { float: right; margin-left: var(--space-lg); }

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-md);
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 10000;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus { top: var(--space-md); }

/* Zeus — in memoriam */
.member-card.zeus {
  opacity: 0.88;
  position: relative;
}

.member-card.zeus::before {
  content: '🌙 In Memoriam';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-warm);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  z-index: 2;
}

.member-card.zeus .member-card-name {
  color: var(--color-muted);
}

.member-card.zeus .member-card-role {
  color: #9a9aaa !important;
  font-style: italic;
}


/* =============================================
   WORDPRESS ADMIN BAR OFFSET
   ============================================= */

/* When admin bar is showing, push fixed header down */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Push hero content down to account for header + admin bar */
.admin-bar .hero {
  padding-top: calc(72px + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .hero {
    padding-top: calc(72px + 46px);
  }
}

/* Fix all other page top padding for admin bar */
.admin-bar .akk-hero {
  padding-top: calc(72px + 32px);
}

.admin-bar [style*="padding-top: 72px"] {
  padding-top: calc(72px + 32px) !important;
}

/* =============================================
   FIRETV / TV BROWSER FIXES
   ============================================= */

/* FireTV renders at ~960px wide, no hover, no touch precision */
@media screen and (min-width: 960px) and (max-width: 1280px) and (-webkit-min-device-pixel-ratio: 1) {

  /* Larger click targets for nav */
  .main-nav a {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
  }

  /* Disable floating card — causes overlap on TV */
  .hero-floating-card { display: none !important; }

  /* Bigger hero text */
  .hero-title { font-size: clamp(3rem, 6vw, 5rem); }

  /* Member pills larger for TV remote navigation */
  .member-pill {
    padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  }

  .member-avatar {
    width: 40px;
    height: 40px;
  }

  /* Bigger buttons */
  .btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
  }
}

/* General TV/large screen — disable hover effects that don't work with remotes */
@media (hover: none) and (pointer: coarse), (hover: none) and (pointer: none) {
  .member-card:hover { transform: none; }
  .post-card:hover { transform: none; }
  .gallery-item:hover { transform: none; }
  .akk-owner:hover { transform: none; }
  .akk-trait:hover { transform: none; }
  .akk-care-card:hover { transform: none; }
}
