/* =============================================
   THE TANGS — 11 YEARS OF US
   Styles for jevehome.com
   ============================================= */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
  /* Warm, romantic color palette */
  --color-bg:         #faf7f4;
  --color-bg-dark:    #2c2420;
  --color-bg-warm:    #f5ece3;
  --color-text:       #3a2e28;
  --color-text-light: #8a7b72;
  --color-accent:     #c8907e;
  --color-accent-dark:#a86f5e;
  --color-gold:       #d4a76a;
  --color-rose:       #e8b4b8;
  --color-cream:      #faf0e6;
  --color-white:      #ffffff;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-script:  'Great Vibes', cursive;

  /* Spacing */
  --section-padding: 120px 0;

  /* Transitions */
  --transition-smooth:  all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:    all 0.3s ease;
}


/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-fast);
}

.nav.scrolled {
  background: rgba(250, 247, 244, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 14px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.nav.scrolled .nav-logo {
  color: var(--color-text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--color-text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.nav.scrolled .nav-toggle span {
  background: var(--color-text);
}

/* Hide mobile-only menu items on desktop */
.nav-signout-mobile {
  display: none;
}

.nav-backdrop {
  display: none;
}


/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(44,36,32,0.7) 0%, rgba(200,144,126,0.4) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(44,36,32,0.3) 100%);
}

/* Floating hearts particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.heart-particle {
  position: absolute;
  bottom: -30px;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatHeart var(--duration, 8s) var(--delay, 0s) infinite;
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg) scale(1);
  }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 20px;
}

.hero-prelude {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 30px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.hero-date-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-arrow {
  margin-top: 8px;
  animation: bounce 2s ease-in-out infinite;
}

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


/* =============================================
   ANIMATE ON LOAD (Hero entrance animations)
   ============================================= */
.animate-on-load {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-load.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================
   SCROLL REVEAL (for sections below hero)
   ============================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* =============================================
   COUNTER SECTION
   ============================================= */
.counter-section {
  padding: 80px 0;
  background: var(--color-bg-warm);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item {
  padding: 20px;
}

.counter-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.counter-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}


/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
}


/* =============================================
   OUR STORY / TIMELINE
   ============================================= */
.story-section {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), var(--color-rose), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dot on the timeline */
.timeline-dot {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 3px var(--color-accent);
  z-index: 2;
}

.timeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Alternate layout: even items swap image and text */
.timeline-item:nth-child(even) .timeline-content {
  direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content > * {
  direction: ltr;
}

.timeline-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  transition: var(--transition-smooth);
}

.timeline-image-wrapper:hover {
  transform: scale(1.02) rotate(-1deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
}

.timeline-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.timeline-image-wrapper:hover .timeline-image {
  transform: scale(1.08);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}


/* =============================================
   QUOTE SECTION
   ============================================= */
.quote-section {
  padding: 100px 0;
  background: var(--color-bg-dark);
  color: var(--color-cream);
  text-align: center;
}

.big-quote {
  max-width: 700px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
}

.quote-author {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.1em;
  opacity: 0.6;
}


/* =============================================
   PHOTO GALLERY
   ============================================= */
.gallery-section {
  padding: var(--section-padding);
  background: var(--color-bg-warm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Make some items taller for visual variety */
.gallery-item:nth-child(3n+1) {
  aspect-ratio: 3 / 4;
  grid-row: span 2;
}

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

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

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,32,0.85) 0%, rgba(44,36,32,0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

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

.gallery-caption {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transform: translateY(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-icon {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-icon::after {
  content: 'View';
}

.gallery-overlay-icon {
  color: var(--color-white);
  font-size: 1.5rem;
}

/* Touch devices - tap to reveal */
@media (hover: none) {
  .gallery-overlay {
    opacity: 0;
  }

  .gallery-item:active .gallery-overlay,
  .gallery-item:focus .gallery-overlay {
    opacity: 1;
  }

  .gallery-item:active .gallery-caption,
  .gallery-item:focus .gallery-caption {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Load more button */
.gallery-load-more {
  text-align: center;
  margin-top: 50px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,144,126,0.3);
}


/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 50%;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.3s ease;
}


/* =============================================
   ODOW - ONE DAY ONE WORD (STICKY NOTES)
   ============================================= */
.odow-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #faf8f5 0%, #f5ece3 100%);
  position: relative;
  overflow: hidden;
}

.odow-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200,144,126,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(198,169,127,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.odow-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.odow-sticky-container {
  perspective: 1000px;
  margin-bottom: 30px;
}

.odow-sticky {
  position: relative;
  background: linear-gradient(135deg, #fffef5 0%, #fff9e6 100%);
  padding: 50px 40px 40px;
  min-height: 200px;
  border-radius: 4px;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.05),
    0 10px 30px rgba(0,0,0,0.08),
    0 20px 50px rgba(0,0,0,0.05),
    inset 0 -2px 8px rgba(0,0,0,0.02);
  transform-origin: top center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.odow-sticky:hover {
  transform: rotateX(-2deg) translateY(-5px);
  box-shadow:
    0 8px 12px rgba(0,0,0,0.08),
    0 15px 40px rgba(0,0,0,0.12),
    0 25px 60px rgba(0,0,0,0.08),
    inset 0 -2px 8px rgba(0,0,0,0.02);
}

/* Push pin */
.odow-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #d4534a 0%, #a63c34 100%);
  border-radius: 50%;
  box-shadow:
    0 3px 8px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.3);
}

.odow-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.odow-content {
  position: relative;
}

.odow-text {
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  font-size: 1.25rem;
  line-height: 2;
  color: #3a3530;
  margin-bottom: 20px;
  text-align: left;
  min-height: 80px;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.odow-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #8a7e78;
  text-align: right;
  font-style: italic;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Animation: fade out to the left */
.odow-sticky.slide-out-left .odow-text,
.odow-sticky.slide-out-left .odow-date {
  opacity: 0;
  transform: translateX(-50px);
}

/* Animation: fade out to the right (for prev button) */
.odow-sticky.slide-out-right .odow-text,
.odow-sticky.slide-out-right .odow-date {
  opacity: 0;
  transform: translateX(50px);
}

/* Animation: prepare to fade in from right */
.odow-sticky.slide-in-prepare .odow-text,
.odow-sticky.slide-in-prepare .odow-date {
  opacity: 0;
  transform: translateX(50px);
  transition: none;
}

/* Animation: prepare to fade in from left (for prev button) */
.odow-sticky.slide-in-prepare-left .odow-text,
.odow-sticky.slide-in-prepare-left .odow-date {
  opacity: 0;
  transform: translateX(-50px);
  transition: none;
}

/* Animation: fade in to center */
.odow-sticky.slide-in .odow-text,
.odow-sticky.slide-in .odow-date {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Navigation */
.odow-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.odow-nav-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.odow-nav-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.odow-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.odow-counter {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-muted);
  min-width: 80px;
}

/* Controls */
.odow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.odow-shuffle-btn,
.odow-autoplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(200,144,126,0.3);
  border-radius: 30px;
  background: var(--color-white);
  color: var(--color-accent-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.odow-shuffle-btn:hover,
.odow-autoplay-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.odow-autoplay-btn.playing {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.odow-autoplay-btn.playing .play-icon {
  display: none;
}

.odow-autoplay-btn.playing .pause-icon {
  display: block !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .odow-section {
    padding: 70px 0;
  }

  .odow-sticky {
    padding: 40px 25px 30px;
    min-height: 160px;
  }

  .odow-text {
    font-size: 1.1rem;
    line-height: 1.9;
  }

  .odow-nav {
    gap: 15px;
  }

  .odow-nav-btn {
    width: 40px;
    height: 40px;
  }
}


/* =============================================
   VOICE EASTER EGG
   ============================================= */
.voice-easter-egg {
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.voice-easter-egg:hover {
  color: var(--color-accent);
}

.voice-easter-egg:active {
  transform: scale(0.95);
}


/* =============================================
   MESSAGE / FOOTER SECTION
   ============================================= */
.message-section {
  padding: 120px 0 100px;
  background:
    linear-gradient(135deg, rgba(44,36,32,0.85) 0%, rgba(200,144,126,0.5) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-cream);
  text-align: center;
}

.message-content {
  max-width: 600px;
  margin: 0 auto;
}

.message-script {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.message-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.message-body {
  font-size: 1.05rem;
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 30px;
}

.message-signature {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--color-gold);
}

.message-hearts {
  margin-top: 20px;
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 40px 0;
  background: var(--color-bg-dark);
  text-align: center;
  color: rgba(250,240,230,0.5);
  font-size: 0.85rem;
}

.footer-text {
  margin-bottom: 6px;
}

.footer-year {
  letter-spacing: 0.1em;
}


/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: 1.1rem;
  }

  .nav-signout-mobile {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
  }

  .nav-signout-mobile a {
    color: var(--color-accent-dark) !important;
  }

  /* Nav backdrop - show on mobile */
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-backdrop.active {
    display: block;
  }

  /* Counter grid */
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Timeline — single column on mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
    top: 0;
  }

  .timeline-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 50px;
  }

  .timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
  }

  .timeline-image {
    height: 220px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item:nth-child(3n+1) {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  /* Hero parallax off on mobile */
  .hero,
  .message-section {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .counter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-number {
    font-size: 6rem;
  }
}


/* =============================================
   JEVE HOME — FAKE LANDING PAGE
   Distinct color palette: charcoal, warm white,
   gold accent. No visual connection to the real
   anniversary site.
   ============================================= */

/* ── Landing: Design Tokens ── */
#public-landing {
  --jh-bg: #fafafa;
  --jh-dark: #2d3436;
  --jh-text: #444;
  --jh-text-light: #888;
  --jh-accent: #c9a96e;
  --jh-accent-dark: #a88a4e;
  --jh-white: #fff;
  font-family: var(--font-body);
  color: var(--jh-text);
  background: var(--jh-bg);
}

/* ── Landing: Nav ── */
.jh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(45, 52, 54, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 0;
}

.jh-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jh-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--jh-white);
  text-decoration: none;
}

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

.jh-nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.jh-nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.jh-nav-links a:hover {
  color: var(--jh-accent);
}

.jh-signin-btn {
  background: var(--jh-accent);
  color: var(--jh-dark);
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.jh-signin-btn:hover {
  background: var(--jh-accent-dark);
  transform: translateY(-1px);
}

.jh-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.jh-nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--jh-white);
  transition: all 0.3s;
}

/* Hide mobile-only menu items on desktop */
.jh-nav-signin-mobile {
  display: none;
}

.jh-nav-backdrop {
  display: none;
}

/* ── Landing: Container ── */
.jh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Landing: Hero ── */
.jh-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jh-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #2d3436 0%, #636e72 40%, #b2bec3 70%, #dfe6e9 100%);
  z-index: 0;
}

.jh-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,169,110,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.1) 0%, transparent 50%);
}

.jh-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--jh-white);
  padding: 20px;
  max-width: 700px;
}

.jh-hero-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jh-accent);
  margin-bottom: 16px;
}

.jh-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.jh-hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.jh-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Landing: Buttons ── */
.jh-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: 2px solid transparent;
}

.jh-btn-primary {
  background: var(--jh-accent);
  color: var(--jh-dark);
  border-color: var(--jh-accent);
}

.jh-btn-primary:hover {
  background: var(--jh-accent-dark);
  border-color: var(--jh-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201,169,110,0.3);
}

.jh-btn-outline {
  background: transparent;
  color: var(--jh-white);
  border-color: rgba(255,255,255,0.4);
}

.jh-btn-outline:hover {
  border-color: var(--jh-white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ── Landing: Section headers ── */
.jh-section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--jh-accent);
  margin-bottom: 8px;
}

.jh-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--jh-dark);
  margin-bottom: 16px;
}

/* ── Landing: Services ── */
.jh-services {
  padding: 100px 0;
  background: var(--jh-white);
  text-align: center;
}

.jh-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.jh-service-card {
  background: var(--jh-bg);
  padding: 40px 28px;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.jh-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.jh-service-icon {
  color: var(--jh-accent);
  margin-bottom: 20px;
}

.jh-service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--jh-dark);
  margin-bottom: 12px;
}

.jh-service-card p {
  font-size: 0.95rem;
  color: var(--jh-text-light);
  line-height: 1.7;
}

/* ── Landing: Portfolio ── */
.jh-portfolio {
  padding: 100px 0;
  background: var(--jh-bg);
  text-align: center;
}

.jh-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.jh-portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.jh-portfolio-item.jh-portfolio-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.jh-portfolio-placeholder,
.jh-portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jh-portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 52, 54, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}

.jh-portfolio-overlay h4,
.jh-portfolio-overlay p {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s;
  color: var(--jh-white);
}

.jh-portfolio-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.jh-portfolio-overlay p {
  font-size: 0.85rem;
  color: var(--jh-accent);
}

.jh-portfolio-item:hover .jh-portfolio-overlay {
  background: rgba(45, 52, 54, 0.7);
}

.jh-portfolio-item:hover .jh-portfolio-overlay h4,
.jh-portfolio-item:hover .jh-portfolio-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ── Landing: About ── */
.jh-about {
  padding: 100px 0;
  background: var(--jh-white);
}

.jh-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.jh-about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--jh-text);
  margin-bottom: 16px;
}

.jh-about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.jh-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--jh-accent);
}

.jh-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jh-text-light);
}

.jh-about-placeholder,
.jh-about-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  object-fit: cover;
}

/* ── Landing: Testimonials ── */
.jh-testimonials {
  padding: 100px 0;
  background: var(--jh-dark);
  text-align: center;
}

.jh-testimonials .jh-section-title {
  color: var(--jh-white);
}

.jh-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.jh-testimonial {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: left;
}

.jh-testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 16px;
}

.jh-testimonial-author {
  font-size: 0.85rem;
  color: var(--jh-accent);
  font-weight: 600;
}

/* ── Landing: Shop the Look (affiliate) ── */
.jh-shop {
  padding: 100px 0;
  background: #f7f4f0;
}

.jh-shop-subtitle {
  text-align: center;
  color: var(--jh-text-light);
  font-size: 1.05rem;
  margin: -16px 0 48px;
}

.jh-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.jh-shop-card {
  display: flex;
  flex-direction: column;
  background: var(--jh-white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.jh-shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.13);
}

.jh-shop-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.jh-shop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.jh-shop-card:hover .jh-shop-img {
  transform: scale(1.06);
}

.jh-shop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--jh-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.jh-shop-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.jh-shop-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--jh-dark);
  margin-bottom: 6px;
}

.jh-shop-desc {
  font-size: 0.875rem;
  color: var(--jh-text-light);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}

.jh-shop-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jh-accent);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.jh-shop-card:hover .jh-shop-cta {
  color: var(--jh-accent-dark);
}

.jh-shop-disclosure {
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .jh-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .jh-shop-grid { grid-template-columns: 1fr; }
}

/* ── Landing: Contact ── */
.jh-contact {
  padding: 100px 0;
  background: var(--jh-bg);
  text-align: center;
}

.jh-contact-subtitle {
  font-size: 1.05rem;
  color: var(--jh-text-light);
  margin-bottom: 32px;
}

/* ── Landing: Footer ── */
.jh-footer {
  padding: 32px 0;
  background: var(--jh-dark);
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}


/* =============================================
   AUTH MODAL
   ============================================= */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  animation: authSlideUp 0.3s ease;
}

@keyframes authSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-modal-close:hover {
  color: #333;
}

.auth-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #2d3436;
  text-align: center;
  margin-bottom: 24px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.auth-tab.active {
  color: #2d3436;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #c9a96e;
}

/* Auth Forms */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.3s;
  outline: none;
}

.auth-field input:focus {
  border-color: #c9a96e;
}

.auth-error {
  background: #fff0f0;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #c0392b;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #c9a96e;
  color: #2d3436;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.auth-submit-btn:hover {
  background: #a88a4e;
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  background: #ddd;
  color: #999;
  cursor: not-allowed;
  transform: none;
}


/* =============================================
   FLOATING SIGN-OUT BUTTON — Bottom-right circle
   ============================================= */
#sign-out-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(45, 52, 54, 0.45);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#sign-out-float:hover {
  background: rgba(45, 52, 54, 0.75);
  transform: scale(1.1);
}

#sign-out-float svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.85);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   ACCESS RESTRICTED PAGE
   ============================================= */
#access-restricted {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg);
  flex-direction: column;
  gap: 24px;
  padding: 40px;
}

#access-restricted h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-text);
}

#access-restricted p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 420px;
}

#access-restricted button {
  padding: 12px 28px;
  background: #c9a96e;
  color: #2d3436;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

#access-restricted button:hover {
  background: #a88a4e;
}

/* =============================================
   READ THIS WHEN — Hidden supportive messages
   ============================================= */
#read-when-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 144, 126, 0.45);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#read-when-trigger:hover {
  background: rgba(200, 144, 126, 0.75);
  transform: scale(1.1);
}

#read-when-trigger svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.85);
  stroke: none;
}

/* Read When Menu */
.read-when-menu {
  position: fixed;
  inset: 0;
  z-index: 10003;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.read-when-menu.active {
  opacity: 1;
  visibility: visible;
}

.read-when-menu-content {
  background: linear-gradient(135deg, #faf7f4, #f5ece3);
  border-radius: 24px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.read-when-menu.active .read-when-menu-content {
  transform: scale(1) translateY(0);
}

.read-when-menu-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: 28px;
}

.read-when-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.read-when-close:hover {
  color: #333;
}

.read-when-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.read-when-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.read-when-option:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,144,126,0.2);
}

.read-when-icon {
  font-size: 1.5rem;
}

/* Read When Modal */
.read-when-modal {
  position: fixed;
  inset: 0;
  z-index: 10004;
  background: rgba(58, 46, 40, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.read-when-modal.active {
  opacity: 1;
  visibility: visible;
}

.read-when-modal-content {
  background: linear-gradient(135deg, #faf7f4, #f5ece3);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.read-when-modal.active .read-when-modal-content {
  transform: scale(1);
}

.read-when-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.read-when-modal-close:hover {
  color: #333;
}

.read-when-modal-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.read-when-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  margin-bottom: 20px;
}

.read-when-modal-message {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 24px;
}

.read-when-modal-signature {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-accent);
}

@media (max-width: 480px) {
  .read-when-options {
    grid-template-columns: 1fr;
  }

  .read-when-menu-content,
  .read-when-modal-content {
    padding: 32px 24px;
  }
}


/* =============================================
   LANDING PAGE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .jh-nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #2d3436;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  }

  .jh-nav-links.open {
    display: flex;
  }

  .jh-nav-toggle {
    display: flex;
  }

  .jh-signin-btn {
    display: none;
  }

  .jh-nav-signin-mobile {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .jh-nav-signin-mobile a {
    color: var(--jh-accent) !important;
    font-weight: 600;
  }

  /* Landing nav backdrop - show on mobile */
  .jh-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 899;
  }

  .jh-nav-backdrop.open {
    display: block;
  }

  .jh-services-grid,
  .jh-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .jh-portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .jh-portfolio-item.jh-portfolio-large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  .jh-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .jh-about-stats {
    gap: 24px;
  }

  .auth-modal-box {
    margin: 20px;
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .jh-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .jh-portfolio-item.jh-portfolio-large {
    grid-column: span 1;
  }

  .jh-about-stats {
    flex-direction: column;
    gap: 16px;
  }
}


/* =============================================
   AGENT CHAT WIDGET
   Floating AI assistant — authenticated area only.
   Positioned above the sign-out float (bottom-right).
   Theme colors use CSS custom properties that are
   overridden at runtime by agent.js based on admin config.
   ============================================= */

/* ── Runtime theme variables (defaults match warm preset) ── */
#agent-panel, #agent-trigger {
  --agent-primary:      #c8907e;
  --agent-primary-dark: #a86f5e;
}

/* ── Trigger button ── */
#agent-trigger {
  position: fixed;
  bottom: 74px;
  right: 24px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--agent-primary) 65%, transparent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#agent-trigger:hover {
  background: color-mix(in srgb, var(--agent-primary-dark) 85%, transparent);
  transform: scale(1.1);
}

#agent-trigger svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255,255,255,0.9);
  fill: none;
}

/* Pulse ring when loading */
#agent-trigger.agent-trigger--loading::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--agent-primary);
  animation: agentPulse 1.2s ease-in-out infinite;
}

/* Active state (panel open) */
#agent-trigger.agent-trigger--active {
  background: color-mix(in srgb, var(--agent-primary-dark) 85%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--agent-primary) 40%, transparent);
}

@keyframes agentPulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Chat panel ── */
.agent-panel {
  position: fixed;
  bottom: 124px;    /* above the trigger button */
  right: 24px;
  z-index: 1099;
  width: 340px;
  height: 480px;
  max-height: calc(100vh - 160px);
  border-radius: 20px;
  background: var(--color-bg);
  box-shadow: 0 8px 40px rgba(58, 46, 40, 0.18), 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid color-mix(in srgb, var(--agent-primary) 20%, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Hidden by default — toggled by JS class */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.34,1.4,0.64,1);
}

.agent-panel.agent-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ── Panel header ── */
.agent-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 10px 16px;
  background: linear-gradient(135deg, var(--agent-primary), var(--agent-primary-dark));
  flex-shrink: 0;
}

.agent-panel-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Header action buttons (history, new chat, close) */
.agent-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.agent-header-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.9);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.agent-header-btn:hover {
  background: rgba(255,255,255,0.3);
}

.agent-header-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-header-btn--active {
  background: rgba(255,255,255,0.35);
}

.agent-close-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.9);
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.agent-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Messages area ── */
.agent-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.agent-messages::-webkit-scrollbar {
  width: 4px;
}

.agent-messages::-webkit-scrollbar-track {
  background: transparent;
}

.agent-messages::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--agent-primary) 30%, transparent);
  border-radius: 2px;
}

/* ── Message bubbles ── */
.agent-msg {
  display: flex;
  max-width: 88%;
}

.agent-msg--user {
  align-self: flex-end;
}

.agent-msg--assistant {
  align-self: flex-start;
}

.agent-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}

.agent-msg--user .agent-bubble {
  background: var(--agent-primary);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
}

.agent-msg--assistant .agent-bubble {
  background: var(--color-bg-warm);
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--agent-primary) 15%, transparent);
  border-bottom-left-radius: 4px;
}

.agent-bubble--error {
  background: #fde8e8 !important;
  color: #c0392b !important;
  border-color: rgba(192, 57, 43, 0.2) !important;
}

/* ── Typing indicator ── */
.agent-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.agent-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--agent-primary);
  animation: agentTypingDot 1.2s ease-in-out infinite;
}

.agent-typing span:nth-child(2) { animation-delay: 0.2s; }
.agent-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes agentTypingDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1;   }
}

/* ── Input row ── */
.agent-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid color-mix(in srgb, var(--agent-primary) 15%, transparent);
  background: var(--color-bg);
  flex-shrink: 0;
}

.agent-input {
  flex: 1;
  resize: none;
  border: 1px solid color-mix(in srgb, var(--agent-primary) 30%, transparent);
  border-radius: 12px;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg-warm);
  line-height: 1.5;
  min-height: 38px;
  max-height: 120px;
  overflow-y: auto;
  transition: border-color 0.2s;
  outline: none;
}

.agent-input:focus {
  border-color: var(--agent-primary);
}

.agent-input::placeholder {
  color: var(--color-text-light);
}

.agent-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agent-send-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--agent-primary);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.agent-send-btn:hover:not(:disabled) {
  background: var(--agent-primary-dark);
  transform: scale(1.05);
}

.agent-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.agent-send-btn svg {
  width: 15px;
  height: 15px;
}

/* ── History sidebar (slides over message area) ── */
.agent-history-sidebar {
  position: absolute;
  inset: 0;
  top: 48px; /* below header */
  background: var(--color-bg);
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.agent-history-sidebar.open {
  transform: translateX(0);
}

.agent-history-sidebar::-webkit-scrollbar { width: 4px; }
.agent-history-sidebar::-webkit-scrollbar-track { background: transparent; }
.agent-history-sidebar::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--agent-primary) 25%, transparent);
  border-radius: 2px;
}

.agent-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--agent-primary) 12%, transparent);
}

.agent-history-header span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.agent-history-new-btn {
  background: var(--agent-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.agent-history-new-btn:hover {
  background: var(--agent-primary-dark);
}

.agent-history-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.82rem;
  padding: 24px;
  text-align: center;
}

.agent-conv-group {
  padding: 8px 0 2px;
}

.agent-conv-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  padding: 4px 14px 6px;
}

.agent-conv-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
}

.agent-conv-item:hover {
  background: color-mix(in srgb, var(--agent-primary) 8%, transparent);
}

.agent-conv-item.active {
  background: color-mix(in srgb, var(--agent-primary) 12%, transparent);
}

.agent-conv-title {
  flex: 1;
  font-size: 0.82rem;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.agent-conv-date {
  font-size: 0.7rem;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.agent-conv-delete {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  opacity: 0;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.75rem;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}

.agent-conv-item:hover .agent-conv-delete { opacity: 1; }
.agent-conv-delete:hover { color: #c0392b; }

/* ── Quick prompts ── */
.agent-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 0;
  flex-shrink: 0;
}

.agent-quick-prompt-btn {
  background: color-mix(in srgb, var(--agent-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--agent-primary) 25%, transparent);
  border-radius: 14px;
  color: var(--color-text);
  font-size: 0.75rem;
  padding: 5px 11px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.agent-quick-prompt-btn:hover {
  background: color-mix(in srgb, var(--agent-primary) 18%, transparent);
  border-color: var(--agent-primary);
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  .agent-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 120px;
    border-radius: 16px;
  }

  #agent-trigger {
    right: 12px;
    bottom: 72px;
  }
}
