/* ============================================================
   The Faery Side — styles.css
   faerytech.org
   Theme: sunflowers, sky blue, forest green, organic warmth
   Fonts: Playfair Display (headings) + Lato (body)
   Sections:
     1. Variables & Reset
     2. Typography & Utilities
     3. Buttons
     4. Navbar
     5. Petal animation
     6. Homepage Hero
     7. Featured Work tabs
     8. About strip
     9. Page headers
    10. Gallery page + lightbox
    11. About page
    12. Contact / commission form
    13. Footer
    14. Gallery filter
    15. Responsive
    16. Quiz page (dark theme, scoped to body.quiz-page)
   ============================================================ */

/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
  --bg-main:        #faf8f3;
  --bg-card:        #ffffff;
  --bg-dark:        #2b3a2e;
  --accent-sun:     #f5c842;
  --accent-sky:     #6aabcc;
  --accent-green:   #4a7c59;
  --accent-peach:   #e8a87c;
  --text-dark:      #2b2b2b;
  --text-mid:       #555555;
  --text-light:     #888888;
  --text-on-dark:   #f0ede6;
  --border-soft:    rgba(0,0,0,0.08);
  --shadow-soft:    0 4px 20px rgba(0,0,0,0.07);
  --shadow-hover:   0 8px 32px rgba(0,0,0,0.13);
  --radius:         12px;
  --radius-sm:      8px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  line-height: 1.25;
  color: var(--text-dark);
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent-sun); }

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

/* ============================================================
   2. TYPOGRAPHY & UTILITIES
   ============================================================ */
.text-accent-sun   { color: var(--accent-sun); }
.text-accent-sky   { color: var(--accent-sky); }
.text-accent-green { color: var(--accent-green); }
.text-muted-custom { color: var(--text-light); }

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 0.4rem;
  font-family: "Lato", sans-serif;
  font-weight: 700;
}

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn-sun {
  display: inline-block;
  background: var(--accent-sun);
  color: var(--bg-dark);
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-transform: uppercase;
}

.btn-sun:hover {
  background: #e8b800;
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,200,66,0.35);
}

.btn-outline-green {
  display: inline-block;
  background: transparent;
  color: var(--accent-green);
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--accent-green);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-transform: uppercase;
}

.btn-outline-green:hover {
  background: var(--accent-green);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   4. NAVBAR
   ============================================================ */
.site-nav {
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0.75rem 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
}

/* Round logo — explicit overrides so it stays consistent everywhere */
.site-nav .nav-logo img,
.site-footer .nav-logo img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  min-width: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-sun);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-green);
}

/* Tech Side link gets its own color */
.nav-links .nav-tech-link a {
  color: var(--accent-sky);
}

.nav-links .nav-tech-link a:hover {
  color: var(--accent-green);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   5. PETAL ANIMATION (homepage hero)
   ============================================================ */
.petal-field {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -30px;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { transform: translateY(0) rotate(0deg);     opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ============================================================
   6. HOMEPAGE HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f7f3e8 0%, #e8f5e2 50%, #dceef7 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-portrait { display: flex; justify-content: center; }

.hero-portrait img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--accent-sun);
  box-shadow: 0 0 60px rgba(245,200,66,0.25);
}

/* ============================================================
   7. FEATURED WORK (homepage tabs)
   ============================================================ */
.featured-section {
  padding: 5rem 0;
  background: var(--bg-main);
}

.featured-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--border-soft);
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-family: "Lato", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

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

.work-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.work-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.work-card-body { padding: 1rem 1.25rem; }

.work-card-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.work-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================================
   8. ABOUT STRIP (homepage)
   ============================================================ */
.about-strip {
  padding: 5rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.about-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-strip-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.about-strip-inner p { color: var(--text-mid); margin-bottom: 1rem; }

/* ============================================================
   9. PAGE HEADERS
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #e8f5e2 0%, #dceef7 100%);
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================================
   10. GALLERY PAGE + LIGHTBOX
   ============================================================ */
.gallery-page { padding: 4rem 0; }

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: filter 0.25s ease;
}

.gallery-item:hover img { filter: brightness(0.75); }

/* Hover overlay — title + hint */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: linear-gradient(to top, rgba(43,58,46,0.82) 0%, transparent 60%);
}

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

.gallery-overlay h3 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.gallery-overlay p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.gallery-overlay .overlay-hint {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-sun);
  font-weight: 700;
}

/* --- Lightbox --- */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1100;
  cursor: zoom-out;
}

.lightbox-backdrop.open { display: block; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  position: relative;
}

.lightbox-img-wrap {
  background: #1a1a1a;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 75vh;
}

.lightbox-info {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px solid var(--border-soft);
}

.lightbox-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.lightbox-meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

.lightbox-sizes {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lightbox-sizes span {
  background: #f0ede6;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-mid);
  padding: 0.2rem 0.5rem;
}

.lightbox-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-green);
}

.lightbox-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.25rem;
}

.lightbox-buy {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.lightbox-commission {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
}

/* Lightbox nav arrows */
.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.lightbox-close:hover { background: rgba(0,0,0,0.8); }

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  transition: background 0.2s ease;
}

.lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox-arrow.prev { left: 1rem; }
.lightbox-arrow.next { right: 1rem; }

/* Shipping info banner on gallery page */
.shipping-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent-sun);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}

/* ============================================================
   11. ABOUT PAGE
   ============================================================ */
.about-page { padding: 4rem 0; }

.about-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-inner img.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-sun);
  float: right;
  margin: 0 0 1.5rem 2rem;
}

.about-inner p { color: var(--text-mid); margin-bottom: 1rem; }

.commission-steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin-top: 2rem;
}

.commission-steps li {
  counter-increment: steps;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.commission-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--accent-sun);
  color: var(--bg-dark);
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commission-steps li h4 { font-size: 1rem; margin-bottom: 0.2rem; }

.commission-steps li p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
}

/* ============================================================
   12. CONTACT / COMMISSION FORM
   ============================================================ */
.contact-page { padding: 4rem 0; }

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: "Lato", sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .nav-logo {
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: "Lato", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-sun);
  margin-bottom: 0.75rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.4rem; }

.footer-links ul a {
  font-size: 0.88rem;
  color: rgba(240,237,230,0.7);
  transition: color 0.2s ease;
}

.footer-links ul a:hover { color: var(--accent-sun); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  opacity: 0.55;
}

/* ============================================================
   14. GALLERY FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--border-soft);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-family: "Lato", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-sky);
  border-color: var(--accent-sky);
  color: #fff;
}

.gallery-item.hidden { display: none; }

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .lightbox-inner {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }

  .lightbox-img-wrap {
    border-radius: var(--radius) var(--radius) 0 0;
    min-height: 260px;
  }

  .lightbox-info {
    border-left: none;
    border-top: 1px solid var(--border-soft);
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-soft);
  }

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

  .nav-links li {
    width: 100%;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-links li:last-child { border-bottom: none; }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-portrait { order: -1; }

  .hero-portrait img { width: 200px; height: 200px; }

  .hero-buttons { justify-content: center; }

  .about-strip-inner { grid-template-columns: 1fr; gap: 2rem; }

  .about-inner img.about-photo {
    float: none;
    margin: 0 auto 1.5rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }

  .lightbox-arrow { display: none; }
}

/* ============================================================
   16. QUIZ PAGE
   Scoped entirely to body.quiz-page so it doesn't bleed
   into the rest of the site.
   ============================================================ */

/* Quiz overrides the light bg for <main> only */
body.quiz-page #quizMain {
  background: #0b0c1a;
  min-height: 80vh;
  color: #e8e4ff;
}

/* Starfield canvas */
body.quiz-page #starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Quiz screens — hidden by default, shown via .active */
body.quiz-page .quiz-screen {
  display: none;
  position: relative;
  z-index: 1;
}

body.quiz-page .quiz-screen.active { display: block; }

/* Intro hero */
body.quiz-page .quiz-intro-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

body.quiz-page .quiz-intro-content {
  max-width: 600px;
}

body.quiz-page .quiz-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #f5c842;
  line-height: 1.1;
  margin-bottom: 1rem;
}

body.quiz-page .quiz-subtitle {
  font-family: "Nunito", sans-serif;
  font-size: 1.1rem;
  color: rgba(232,228,255,0.75);
  margin-bottom: 1.5rem;
}

body.quiz-page .quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

body.quiz-page .quiz-meta span {
  font-size: 0.8rem;
  font-family: "Nunito", sans-serif;
  color: rgba(232,228,255,0.55);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
}

/* Quiz container */
body.quiz-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Progress bar */
body.quiz-page .quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

body.quiz-page .quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

body.quiz-page .quiz-progress-fill {
  height: 100%;
  background: #f5c842;
  border-radius: 2px;
  transition: width 0.4s ease;
}

body.quiz-page .quiz-progress-label {
  font-size: 0.78rem;
  color: rgba(232,228,255,0.45);
  font-family: "Nunito", sans-serif;
  white-space: nowrap;
}

/* Question */
body.quiz-page .quiz-q {
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  color: #e8e4ff;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.35;
}

/* Picture card grid */
body.quiz-page .quiz-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

body.quiz-page .qcard {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.quiz-page .qcard:hover { transform: translateY(-3px); }

body.quiz-page .qcard input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.quiz-page .qcard img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.2s ease;
}

body.quiz-page .qcard:hover img { filter: brightness(0.85); }

body.quiz-page .qcard:has(input:checked) {
  border-color: #f5c842;
  box-shadow: 0 0 0 3px rgba(245,200,66,0.25);
}

body.quiz-page .qcard:has(input:checked) img { filter: brightness(1); }

body.quiz-page .qcard-label {
  display: block;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.07);
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  color: #e8e4ff;
  line-height: 1.4;
}

/* Text list choices */
body.quiz-page .quiz-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

body.quiz-page .qchoice {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.quiz-page .qchoice:hover {
  background: rgba(255,255,255,0.09);
}

body.quiz-page .qchoice:has(input:checked) {
  background: rgba(245,200,66,0.12);
  border-color: rgba(245,200,66,0.45);
}

body.quiz-page .qchoice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.quiz-page .qchoice span {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: #e8e4ff;
}

/* Back nav */
body.quiz-page .quiz-nav { margin-top: 0.5rem; }

/* Buttons inside quiz */
body.quiz-page .btn-primary {
  display: inline-block;
  background: #f5c842;
  color: #1a1a2e;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.quiz-page .btn-primary:hover {
  background: #e8b800;
  transform: translateY(-2px);
  color: #1a1a2e;
}

body.quiz-page .btn-outline {
  display: inline-block;
  background: transparent;
  color: rgba(232,228,255,0.7);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

body.quiz-page .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

body.quiz-page .btn-sm { font-size: 0.82rem; padding: 0.45rem 1rem; }

body.quiz-page .quiz-start-btn { margin-top: 0.5rem; font-size: 1.05rem; }

body.quiz-page .quiz-skip {
  font-family: "Nunito", sans-serif;
  font-size: 0.85rem;
  color: rgba(232,228,255,0.45);
  margin-top: 0.75rem;
}

body.quiz-page .quiz-skip a {
  color: rgba(232,228,255,0.65);
  text-decoration: underline;
}

/* Result card */
body.quiz-page .result-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

body.quiz-page .result-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

body.quiz-page .result-name {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 900;
  color: #f5c842;
  margin-bottom: 0.75rem;
}

body.quiz-page .result-desc {
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: rgba(232,228,255,0.8);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

body.quiz-page .result-coupon-wrap {
  display: inline-block;
  background: rgba(245,200,66,0.12);
  border: 1px dashed rgba(245,200,66,0.5);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
}

body.quiz-page .result-coupon-label {
  font-size: 0.78rem;
  font-family: "Nunito", sans-serif;
  color: rgba(232,228,255,0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

body.quiz-page .result-coupon-code {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f5c842;
  letter-spacing: 0.2em;
}

/* Result CTA section */
body.quiz-page .result-email-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

body.quiz-page .result-email-head {
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: #e8e4ff;
  margin-bottom: 0.5rem;
}

body.quiz-page .result-email-sub {
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  color: rgba(232,228,255,0.55);
  margin-bottom: 1.25rem;
}

body.quiz-page .result-email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

body.quiz-page .result-email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #e8e4ff;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  outline: none;
}

body.quiz-page .result-email-form input[type="email"]:focus {
  border-color: rgba(245,200,66,0.5);
}

body.quiz-page .btn-green {
  background: #4a7c59;
  color: #fff;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

body.quiz-page .btn-green:hover { background: #3a6248; }

body.quiz-page .result-email-skip {
  font-size: 0.82rem;
  color: rgba(232,228,255,0.4);
  font-family: "Nunito", sans-serif;
}

body.quiz-page .result-email-skip a {
  color: rgba(232,228,255,0.6);
  text-decoration: underline;
}

/* Share */
body.quiz-page .result-share {
  text-align: center;
  margin-bottom: 1.5rem;
}

body.quiz-page .result-share-label {
  font-size: 0.82rem;
  font-family: "Nunito", sans-serif;
  color: rgba(232,228,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

body.quiz-page .result-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

body.quiz-page .result-share-note {
  font-size: 0.78rem;
  font-family: "Nunito", sans-serif;
  color: rgba(232,228,255,0.35);
}

/* Retake */
body.quiz-page .result-retake {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 3rem;
}

/* Quiz footer — inherit from regular footer but tweak */
body.quiz-page .site-footer {
  position: relative;
  z-index: 1;
}

/* Mobile quiz */
@media (max-width: 600px) {
  body.quiz-page .quiz-grid-2 {
    grid-template-columns: 1fr;
  }

  body.quiz-page .qcard img { height: 140px; }
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

/* Map section */
.blog-map-section {
  padding: 4rem 0 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
}

.blog-map-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-map-sub {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.map-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-mid);
  font-family: 'Lato', sans-serif;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.visited  { background: var(--accent-green); }
.legend-dot.current  { background: var(--accent-sun); border: 2px solid #c89000; }
.legend-dot.upcoming { background: #fff; border: 2px solid var(--text-light); }

#journeyMap {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
}

.map-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.map-popup-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.map-popup-note {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.map-popup-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-green);
  text-decoration: none;
}

/* Blog posts section */
.blog-posts-section {
  padding: 3rem 0 5rem;
  background: var(--bg-main);
}

.blog-posts-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

/* Post card */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8f5e2 0%, #dceef7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 1.25rem 1.5rem;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  font-family: 'Lato', sans-serif;
}

/* Category colors */
.cat-travel   { background: #dceef7; color: #2a6a8a; }
.cat-poetry   { background: #f0e6ff; color: #6a2a8a; }
.cat-theology { background: #fff3e0; color: #8a5a00; }
.cat-cooking  { background: #ffe8e8; color: #8a2a2a; }
.cat-nature   { background: #e8f5e2; color: var(--accent-green); }

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  color: var(--text-dark);
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-family: 'Lato', sans-serif;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}

/* Expand / collapse */
.blog-card-full {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  margin-top: 0.25rem;
  display: none;
}

.blog-card-full.open { display: block; }

.blog-card-full p { margin-bottom: 1rem; }
.blog-card-full p:last-child { margin-bottom: 0; }

/* Poetry styling inside posts */
.blog-card-full .poem-line {
  display: block;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.2rem;
}

.blog-card-full .poem-stanza { margin-bottom: 1.25rem; }

.blog-read-btn {
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-green);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.blog-read-btn:hover { color: var(--accent-sun); }

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-light);
  font-style: italic;
  grid-column: 1 / -1;
}

/* ============================================================
   LIGHTBOX SIZE SELECTOR
   ============================================================ */
.size-option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: #f0ede6;
  border: 2px solid transparent;
  border-radius: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.size-option span {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-light);
}

.size-option:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.size-option.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

.size-option.active span { color: rgba(255,255,255,0.75); }
