/* ================================================================
   Yoink Adventures - How It Works Page Styles
   Extracted from page-how-it-works.php inline <style>
   ================================================================ */

/* ================================================================
   CSS VARIABLES
   ================================================================ */
:root {
  --leather-dark: #3D2914;
  --leather-mid: #5D4037;
  --leather-light: #8B5A2B;
  --brass: #B8860B;
  --brass-light: #DAA520;
  --brass-shine: #FFD700;
  --paper-cream: #F5F0E6;
  --text-light: #F5F0E6;
  --text-dark: #2C1810;
  --card-border: rgba(218, 165, 32, 0.3);
}

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--leather-dark);
  color: var(--text-light);
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   SHARED: CTA BUTTON
   ================================================================ */
.cta-button {
  display: inline-block;
  padding: 1.1rem 2.75rem;
  background: linear-gradient(180deg, var(--brass-shine) 0%, var(--brass) 50%, var(--brass-light) 100%);
  color: var(--leather-dark);
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(184,134,11,0.4), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.1);
}

.cta-button:hover, .cta-button:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(184,134,11,0.5), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -2px 0 rgba(0,0,0,0.1);
}

/* ================================================================
   SHARED: PLACEHOLDER IMAGE
   ================================================================ */
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ================================================================
   SHARED: STITCHING ACCENT
   ================================================================ */
.stitch-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, transparent, transparent 12px, var(--brass) 12px, var(--brass) 24px);
  opacity: 0.5;
}

/* ================================================================
   SECTION 1: PAGE HERO
   ================================================================ */
.page-hero {
  background: var(--leather-dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
}

/* Top stitching */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, transparent, transparent 12px, var(--brass) 12px, var(--brass) 24px);
  opacity: 0.7;
}

.page-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--paper-cream);
}

.page-hero-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--paper-cream);
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto;
}

/* ================================================================
   SECTIONS 2-4: STEPS (Geocaching 101 pattern)
   ================================================================ */
.step-section {
  padding: 4rem 2rem 5rem;
  position: relative;
}

.step-section--light {
  background: var(--paper-cream);
  color: var(--text-dark);
}

.step-section--dark {
  background: var(--leather-dark);
  color: var(--text-light);
}

.step-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.step-label {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.step-section--light .step-label { color: var(--brass); }
.step-section--dark .step-label { color: var(--brass-light); }

.step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.step-section--light .step-title { color: var(--leather-dark); }
.step-section--dark .step-title { color: var(--brass-light); }

.step-body {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.step-section--light .step-body { color: var(--leather-mid); }
.step-section--dark .step-body { color: var(--paper-cream); opacity: 0.9; }

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

/* Photo + phone overlap composite */
.step-media {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.step-photo {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(93,64,55,0.7) 0%, rgba(61,41,20,0.85) 100%);
}

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

.step-section--light .step-photo {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.step-section--dark .step-photo {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Phone overlapping bottom-right of photo */
.step-screenshot {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 160px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 3px solid #444;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 2;
}

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

/* Phone notch */
.step-screenshot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 16px;
  background: #1a1a2e;
  border-radius: 0 0 10px 10px;
}

/* ================================================================
   SECTION 5: REAL STORIES
   ================================================================ */
.stories-section {
  background: var(--paper-cream);
  color: var(--text-dark);
  padding: 4rem 2rem;
  position: relative;
}

.stories-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.stories-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 2.5rem;
  color: var(--leather-dark);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.story-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.story-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.story-photo {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(93,64,55,0.7) 0%, rgba(61,41,20,0.85) 100%);
}

.story-content {
  padding: 1.25rem;
}

.story-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--leather-dark);
}

.story-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--leather-mid);
  margin: 0;
}

/* ================================================================
   SECTION 6: FAQ
   ================================================================ */
.faq-section {
  background: var(--leather-dark);
  color: var(--text-light);
  padding: 4rem 2rem;
  position: relative;
}

.faq-inner {
  max-width: 700px;
  margin: 0 auto;
}

.faq-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 2.5rem;
  color: var(--brass-light);
  text-align: center;
}

/* Hidden checkbox drives the toggle — pure CSS, no JS */
.faq-toggle { display: none; }

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--card-border);
}

.faq-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper-cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
}

.faq-label::after {
  content: '+';
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brass-light);
  flex-shrink: 0;
}

.faq-toggle:checked + .faq-label::after {
  content: '\2212';
}

.faq-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--paper-cream);
  opacity: 0.85;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 600px;
  padding: 0 0 1.25rem;
}

.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ================================================================
   SECTION 7: CTA + FOOTER
   ================================================================ */
.footer-section {
  background: var(--paper-cream);
  color: var(--text-dark);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.footer-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--leather-dark);
}

.footer-sub {
  font-size: 1.05rem;
  color: var(--leather-mid);
  margin: 0 0 1.5rem;
}

.footer-cta {
  margin-bottom: 3rem;
}

.social-section {
  margin-bottom: 2rem;
}

.social-heading {
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--leather-mid);
}

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

.social-link {
  color: var(--leather-dark);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--brass);
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-link:hover, .social-link:focus {
  background: var(--brass);
  color: var(--leather-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(184,134,11,0.3);
}

.social-separator {
  color: var(--brass);
  opacity: 0.5;
  font-weight: 300;
}

.footer-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--brass);
  opacity: 0.7;
  margin: 2rem 0 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .page-hero { padding: 3.5rem 1.5rem 3rem; }

  .step-section { padding: 3rem 1.5rem; }

  .step-screenshot {
    width: 120px;
    right: -0.5rem;
    bottom: -1.5rem;
  }

  .stories-section, .faq-section, .footer-section {
    padding: 3rem 1.5rem;
  }

  .cta-button { padding: 1rem 2rem; font-size: 1.05rem; }

  .social-links { flex-direction: column; gap: 0.5rem; }
  .social-link { width: 100%; text-align: center; }
  .social-separator { display: none; }
}
