/* Natural, Human, Imperfect Design for Franklin Park */
/* Mobile-First Approach - Base styles are for mobile, media queries add desktop */

:root {
  /* Lighter, natural color palette */
  --bg-dark: #1a3325;
  --bg-light: #f5f8f6;
  --bg-cream: #fef9e7;
  --text-dark: #1a3325;
  --text-light: #e7f3ea;
  --muted: #6b8e7c;
  --accent-yellow: #f4d03f;
  --accent-green: #7df2c0;
  --hay-yellow: #f9e79f;

  /* Cards and borders */
  --card-light: #ffffff;
  --border-light: #d5e8de;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Base font size - larger for mobile readability */
  font-size: 16px;

  /* Safe area insets for notched phones */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(165deg, #fef9e7 0%, #f5f8f6 50%, #e8f3ea 100%);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Handwritten elements using Caveat font */
.handwritten-label,
.sketch-label,
.polaroid-caption,
.hand-note,
.map-note {
  font-family: 'Caveat', cursive;
}

/* Typography - mobile optimized with larger base */
h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.2;
  color: var(--bg);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ============================================
   NAVIGATION - Mobile First
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--border-light);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding-top: var(--safe-top);
  transition: transform 0.3s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 101;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-green));
  box-shadow: 0 0 0 6px rgba(244, 208, 63, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Hamburger Menu Button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--bg-light);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Links */
.nav-links {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 2px solid var(--text-dark);
}

.nav-links.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-links a {
  padding: 1rem 2rem;
  border-radius: 12px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
  width: 100%;
  max-width: 280px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:active {
  background: var(--bg-light);
  transform: scale(1.02);
}

.tech-link {
  border: 2px solid var(--text-dark);
  background: var(--hay-yellow);
  color: var(--text-dark) !important;
  font-weight: 700;
}

.tech-link:hover {
  background: var(--accent-yellow);
  transform: translateX(3px);
}

/* ============================================
   CONTAINER
   ============================================ */

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

/* ============================================
   HERO SECTION - Mobile First
   ============================================ */

.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: auto;
}

.hero-content {
  order: 2;
}

.hero-image {
  order: 1;
}

.sketch-box {
  display: inline-block;
  margin-bottom: 1rem;
}

.handwritten-label {
  font-size: 1.2rem;
  color: var(--hay-yellow);
  font-weight: 700;
  background: var(--text-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transform: rotate(-1.5deg);
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-title {
  margin-bottom: 1.5rem;
}

.natural-text {
  display: block;
  color: var(--bg);
}

.accent-underline {
  display: inline-block;
  color: var(--text);
  position: relative;
  padding-bottom: 0.3rem;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--accent);
  opacity: 0.5;
  transform: skewY(-1deg);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

/* Hero Actions - Mobile: Full width stacked buttons */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Primary and Secondary Buttons - Larger touch targets */
.btn-primary,
.btn-secondary {
  background: var(--text-dark);
  color: var(--hay-yellow);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 51, 37, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  border: 2px solid var(--text-dark);
}

.btn-primary:hover,
.btn-primary:active {
  background: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 51, 37, 0.4);
}

.btn-secondary:hover,
.btn-secondary:active {
  background: var(--text-dark);
  color: white;
  transform: translateY(-2px);
}

.hand-drawn-arrow {
  margin-top: 1.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--sage);
  font-weight: 600;
  animation: gentle-bounce 2s ease-in-out infinite;
}

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

/* Polaroid style image */
.polaroid {
  background: var(--card);
  padding: 0.75rem;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15),
              0 2px 4px rgba(0, 0, 0, 0.1);
  transform: rotate(1deg);
  transition: transform 0.4s ease;
  max-width: 100%;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-img {
  background: var(--card);
  border-radius: 2px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  overflow: hidden;
  position: relative;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.placeholder-garden {
  font-size: 1.2rem;
  color: #fff;
  font-family: 'Caveat', cursive;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  background: rgba(26, 51, 37, 0.75);
  border-radius: 8px;
}

.polaroid-caption {
  font-size: 1.1rem;
  text-align: center;
  color: var(--soil-medium);
  margin: 0;
  font-weight: 600;
}

/* ============================================
   SECTIONS - Mobile First
   ============================================ */

.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sketch-label {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--text);
  background: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  transform: rotate(-1deg);
  font-weight: 600;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  background: var(--text-dark);
  color: white;
}

.about-section h2 {
  color: white;
}

.about-section .sketch-label {
  color: var(--hay-yellow);
}

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

.natural-card {
  background: var(--hay-yellow);
  border: 3px solid var(--text-dark);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(0deg);
  transition: all 0.4s ease;
  position: relative;
}

.natural-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.natural-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.natural-card:hover,
.natural-card:active {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-icon {
  display: block;
  margin-bottom: 1.25rem;
  width: 64px;
  height: 64px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-image {
  width: 100%;
  height: 150px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.natural-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.natural-card p {
  color: var(--text-dark);
  line-height: 1.7;
}

/* ============================================
   LOCATION SECTION
   ============================================ */

.location-section {
  background: var(--bg-cream);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.address-card {
  background: var(--card);
  border: 3px solid var(--muted);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.address {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.visiting-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--muted);
}

.visiting-hours h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.visiting-hours p {
  color: var(--muted);
}

.hand-note {
  background: var(--bg-cream);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  transform: rotate(-1deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  color: var(--text-dark);
}

.hand-note p {
  color: var(--text-dark);
  font-weight: 700;
  margin: 0;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sketch-map {
  background: var(--card);
  border: 3px solid var(--muted);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: rotate(1deg);
}

.sketch-map p:first-child {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.map-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.map-note {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Video Box */
.video-box {
  background: var(--card);
  border: 3px solid var(--muted);
  border-radius: 16px;
  padding: 1rem;
  padding-bottom: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: rotate(-0.5deg);
  transition: transform 0.3s ease;
}

.video-box:hover {
  transform: rotate(0deg);
}

.video-box video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--bg);
  display: block;
  margin-bottom: 0.75rem;
}

.video-caption {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
  font-family: 'Caveat', cursive;
  font-weight: 600;
}

/* ============================================
   STORIES SECTION
   ============================================ */

.stories-section {
  background: var(--bg-cream);
}

.scroll-hint {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.stories-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--card);
  /* Swipe indicator gradient */
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.stories-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.stories-scroll-container::-webkit-scrollbar-track {
  background: var(--card);
  border-radius: 10px;
}

.stories-scroll-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.stories-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

.story-card {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  min-width: 260px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  /* Ensure tappable area */
  min-height: 200px;
}

.stories-loading {
  padding: 1.5rem;
  color: var(--muted);
  font-style: italic;
}

.story-cover {
  margin-bottom: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-strong);
}

.story-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.story-cover--modal {
  margin-bottom: 1.5rem;
}

.story-card:hover,
.story-card:active {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.clickable-story {
  cursor: pointer;
}

.read-more {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  font-family: 'Caveat', cursive;
}

.story-date {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--accent-yellow);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.story-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.story-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.story-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--muted);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================
   NEWSLETTER SIGNUP
   ============================================ */

.newsletter-signup {
  background: var(--text-dark);
  color: white;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.newsletter-signup h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.8rem;
}

.newsletter-signup p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.signup-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  background: var(--card-strong);
  color: var(--text);
  border: 1px solid var(--border);
  min-height: 56px;
}

.signup-form input:focus {
  outline: 3px solid var(--accent);
}

.signup-form input::placeholder {
  color: var(--muted);
}

.signup-form button {
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 56px;
}

.signup-form button:hover,
.signup-form button:active {
  background: var(--accent-2);
  transform: scale(1.02);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
  background: var(--bg-cream);
}

.gallery-container {
  margin-top: 1.5rem;
}

.gallery-loading {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
}

.gallery-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
}

.gallery-error {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #8b0000;
  font-size: 1rem;
}

.gallery-folder-section {
  margin-bottom: 2.5rem;
}

.gallery-folder {
  margin-bottom: 2.5rem;
}

.gallery-folder-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--muted);
}

.gallery-folder-title {
  font-size: 1.4rem;
  color: var(--text);
  font-family: 'Newsreader', serif;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.gallery-folder-count {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
  /* Touch-friendly tap target */
  min-height: 120px;
}

.gallery-item:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.gallery-item:nth-child(even) {
  transform: rotate(0.5deg);
}

.gallery-item:hover,
.gallery-item:active {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(3, 12, 8, 0.8), transparent);
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item-name {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ============================================
   GALLERY LIGHTBOX - Mobile Optimized
   ============================================ */

.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 12, 8, 0.97);
  z-index: 2000;
  overflow: hidden;
}

.gallery-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: max(1rem, var(--safe-top));
  right: max(1rem, var(--safe-right));
  width: 56px;
  height: 56px;
  background: var(--card);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:active {
  background: var(--accent);
  transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover,
.lightbox-nav:active {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: max(0.75rem, var(--safe-left));
}

.lightbox-next {
  right: max(0.75rem, var(--safe-right));
}

.lightbox-info {
  position: fixed;
  bottom: max(1.5rem, calc(var(--safe-bottom) + 1rem));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2001;
  max-width: calc(100% - 2rem);
  text-align: center;
}

.lightbox-counter {
  margin-left: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   JOIN SECTION
   ============================================ */

.join-section {
  background: var(--text-dark);
  color: white;
}

.join-section h2 {
  color: white;
}

.join-section .sketch-label {
  color: var(--hay-yellow);
}

.join-content {
  max-width: 900px;
  margin: 0 auto;
}

.join-intro {
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.ways-to-help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  /* Touch-friendly */
  min-height: 120px;
}

.help-card h4 {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  white-space: nowrap;
}

.help-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact-box {
  background: var(--bg-cream);
  border: 3px dashed var(--text);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-box h4 {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-box p {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-box a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  /* Touch-friendly link area */
  display: inline-block;
  padding: 0.25rem 0;
}

.contact-box a:hover {
  color: var(--bg);
}

/* ============================================
   PLANNER SECTION
   ============================================ */

.planner-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

.planner-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-light);
  border: 2px solid var(--text-dark);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.tech-badge {
  display: inline-block;
  background: var(--text-dark);
  color: var(--hay-yellow);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.planner-card h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.planner-card p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.btn-tech {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-height: 56px;
}

.btn-tech:hover,
.btn-tech:active {
  background: var(--accent-2);
  transform: translateX(4px);
}

.planner-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--muted);
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 2rem 0 calc(2rem + var(--safe-bottom));
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.footer-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-dark);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.footer-links a:hover,
.footer-links a:active {
  color: var(--text-dark);
  background: var(--hay-yellow);
}

.footer-note {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   CLICKABLE CARDS
   ============================================ */

.clickable-card {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.clickable-card:hover,
.clickable-card:active {
  transform: rotate(0deg) translateY(-6px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.tap-hint {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Caveat', cursive;
}

/* ============================================
   MODALS - Mobile Optimized
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 12, 8, 0.95);
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-cream);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close {
  position: fixed;
  top: max(1rem, var(--safe-top));
  right: max(1rem, var(--safe-right));
  width: 56px;
  height: 56px;
  background: var(--bg-dark);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:active {
  background: var(--accent-green);
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  padding: 1.25rem;
  padding-top: calc(4rem + var(--safe-top));
  padding-bottom: calc(2rem + var(--safe-bottom));
  max-width: 900px;
  margin: 0 auto;
}

.modal-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text h2 {
  color: var(--bg);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-intro {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-text h3 {
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.modal-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.modal-text ul li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
  line-height: 1.7;
  border-bottom: 1px dashed rgba(26, 51, 37, 0.2);
}

.modal-text ul li:last-child {
  border-bottom: none;
}

.modal-text ul li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.modal-text ul li strong {
  color: var(--text);
}

.modal-callout {
  background: var(--accent-2);
  border: 3px solid var(--text);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.modal-callout p {
  margin: 0;
  color: var(--text);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ============================================
   STORY MODAL SPECIFIC
   ============================================ */

.story-modal .modal-body {
  max-width: 800px;
}

.story-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--accent);
}

.story-date-full {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  color: var(--accent-yellow);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.story-header h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin: 0;
}

.story-content {
  font-size: 1rem;
  line-height: 1.8;
}

.story-intro {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.story-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-size: 1.4rem;
}

.story-content p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.story-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.story-images {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: 12px;
  border: 2px dashed var(--muted);
}

.story-images p {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-images-grid {
  display: grid;
  gap: 0.75rem;
}

.story-images-grid img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.story-images-grid figcaption {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   TABLET BREAKPOINT (640px and up)
   ============================================ */

@media (min-width: 640px) {
  :root {
    font-size: 17px;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 3rem 1.5rem;
    gap: 2.5rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .btn-primary,
  .btn-secondary {
    padding: 1rem 2rem;
    min-width: 180px;
  }

  .polaroid {
    padding: 1rem;
    max-width: 350px;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .signup-form {
    flex-direction: row;
    align-items: center;
  }

  .signup-form input {
    flex: 1;
    min-width: 250px;
  }

  .signup-form button {
    width: auto;
    padding: 1rem 2rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .modal-body {
    padding: 1.5rem;
    padding-top: 4.5rem;
  }

  .modal-text h2 {
    font-size: 2rem;
  }

  .story-header h2 {
    font-size: 2rem;
  }
}

/* ============================================
   DESKTOP BREAKPOINT (968px and up)
   ============================================ */

@media (min-width: 968px) {
  /* Hide hamburger menu on desktop */
  .nav-toggle {
    display: none;
  }

  /* Desktop navigation */
  .nav-content {
    padding: 1rem 2rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .nav-links {
    position: static;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    opacity: 1;
    visibility: visible;
    gap: 1.5rem;
    transform: none;
    box-shadow: none;
    border-bottom: none;
  }

  .nav-links a {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 500;
    font-size: 1rem;
    min-height: auto;
    width: auto;
    max-width: none;
  }

  .nav-links a:hover {
    color: var(--text);
    background: var(--card);
    transform: none;
  }

  .tech-link {
    border: 1px solid var(--border);
    background: var(--card-strong);
    color: var(--accent) !important;
    font-weight: 600;
  }

  .tech-link:hover {
    background: var(--accent);
    color: var(--bg) !important;
    transform: translateX(3px);
  }

  /* Hero Desktop Layout */
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 2rem;
    min-height: 85vh;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .handwritten-label {
    font-size: 1.4rem;
    padding: 0.5rem 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .polaroid {
    transform: rotate(2deg);
    max-width: 400px;
  }

  .placeholder-garden {
    font-size: 1.5rem;
    padding: 2rem;
  }

  .polaroid-caption {
    font-size: 1.3rem;
  }

  /* Sections Desktop */
  .section {
    padding: 5rem 0;
  }

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

  .sketch-label {
    font-size: 1.6rem;
    padding: 0.4rem 1.2rem;
  }

  /* Cards Grid Desktop */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .natural-card {
    padding: 2rem;
  }

  .card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  /* Location Desktop */
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .address-card {
    padding: 2rem;
  }

  .address {
    font-size: 1.3rem;
  }

  .hand-note {
    font-size: 1.4rem;
    padding: 1.2rem;
  }

  .sketch-map {
    padding: 4rem 2rem;
  }

  .sketch-map p:first-child {
    font-size: 4rem;
  }

  .map-label {
    font-size: 1.8rem;
  }

  .map-note {
    font-size: 1.3rem;
  }

  .video-box {
    padding: 1.5rem;
  }

  .video-caption {
    font-size: 1.2rem;
  }

  /* Stories Desktop */
  .scroll-hint {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .stories-scroll-container {
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 4rem;
  }

  .story-card {
    min-width: 320px;
    max-width: 400px;
    padding: 1.8rem;
  }

  .story-card h3 {
    font-size: 1.4rem;
  }

  .read-more {
    font-size: 1.1rem;
  }

  .story-date {
    font-size: 1.2rem;
  }

  /* Newsletter Desktop */
  .newsletter-signup {
    padding: 3rem;
  }

  .newsletter-signup p {
    margin-bottom: 2rem;
  }

  /* Gallery Desktop */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-folder-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .gallery-folder-title {
    font-size: 1.8rem;
  }

  .gallery-folder-count {
    font-size: 1.2rem;
  }

  /* Join Desktop */
  .join-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
  }

  .ways-to-help {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .help-card {
    padding: 1.8rem;
  }

  .help-card h4 {
    font-size: 1.3rem;
  }

  .contact-box {
    padding: 2.5rem;
  }

  /* Planner Desktop */
  .planner-card {
    padding: 3rem;
  }

  .planner-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .btn-tech {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }

  .planner-note {
    margin-top: 2rem;
    padding-top: 2rem;
    font-size: 1.3rem;
  }

  /* Footer Desktop */
  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-name {
    font-size: 1.15rem;
  }

  .footer-subtitle {
    font-size: 0.75rem;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .footer-links a {
    padding: 0.5rem 1rem;
    min-height: auto;
  }

  /* Modal Desktop */
  .lightbox-close,
  .modal-close {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .lightbox-nav {
    width: 50px;
    height: 50px;
  }

  .lightbox-prev {
    left: 2rem;
  }

  .lightbox-next {
    right: 2rem;
  }

  .lightbox-info {
    bottom: 2rem;
    padding: 1rem 2rem;
  }

  .modal-body {
    padding: 1.5rem;
    padding-top: 4rem;
  }

  .modal-text h2 {
    font-size: 2.2rem;
  }

  .modal-intro {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .modal-text h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
  }

  .modal-callout {
    padding: 1.5rem;
    font-size: 1.4rem;
  }

  .story-header h2 {
    font-size: 2.5rem;
  }

  .story-date-full {
    font-size: 1.4rem;
  }

  .story-intro {
    font-size: 1.25rem;
  }

  .story-content {
    font-size: 1.05rem;
  }

  .story-content h3 {
    font-size: 1.6rem;
    margin-top: 2rem;
  }
}

/* ============================================
   LARGE DESKTOP (1200px and up)
   ============================================ */

@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 6rem 2rem;
  }

  .natural-card:hover {
    transform: rotate(0deg) translateY(-8px);
  }
}
