/* =====================================================================
   Tiny Village Spirit — Richmond project page
   Palette: teal #04747C (primary) / #07b1bd (accent) / #ffcc02 (yellow)
   Fonts: Poppins (body) + Fraunces (editorial headlines)
   ===================================================================== */

:root {
    --teal:        #04747c;
    --teal-dark:   #035c62;
    --teal-accent: #07b1bd;
    --yellow:      #ffcc02;
    --cream:       #faf7f2;
    --cream-warm:  #f4ede0;
    --ink:         #1b2426;
    --muted:       #5b6769;
    --hairline:    rgba(4, 116, 124, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

main { padding-top: 94px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }

/* Shared section primitives (reused from index) */
.section-head {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.section-eyebrow {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--teal);
    display: inline-block;
}
.section-eyebrow.center { justify-content: center; text-align: center; }
.section-eyebrow.on-dark { color: var(--yellow); }
.section-eyebrow.on-dark::before { background: var(--yellow); }
.section-headline {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
}
.section-headline.center { text-align: center; }

/* Shared buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow {
    background: var(--yellow);
    color: #1b1b1b;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.btn-yellow:hover { background: #ffd733; }
.btn-teal, .btn-teal:visited {
    background: var(--teal);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(4,116,124,0.3);
}
.btn-teal:hover { background: var(--teal-dark); color: #fff !important; }
.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* Live pulse animation (shared) */
@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(192,36,27,0.6); }
    70%{ box-shadow: 0 0 0 8px rgba(192,36,27,0); }
    100%{box-shadow: 0 0 0 0 rgba(192,36,27,0); }
}
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(255,204,2,0.25); }
    50%    { box-shadow: 0 0 0 9px rgba(255,204,2,0.05); }
}

/* ============== RICHMOND HERO ============== */
.r-hero {
  position: relative;
  background: var(--teal-dark);
  color: #fff;
  padding: 80px 6vw 0;
  overflow: hidden;
}
.r-hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 90px;
  position: relative;
  z-index: 1;
}
.r-crumbs {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  font-weight: 500;
}
.r-crumbs a { color: rgba(255,255,255,0.65); text-decoration: none; }
.r-crumbs a:hover { color: var(--yellow); }
.r-crumbs .sep { margin: 0 10px; opacity: 0.5; }

.r-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #1b1b1b;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.r-status .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c0241b;
  box-shadow: 0 0 0 0 rgba(192,36,27,0.7);
  animation: live-pulse 1.6s infinite;
}
.r-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.r-title em { font-style: italic; color: var(--yellow); font-weight: 400; }
.r-lede {
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 0 36px;
  font-weight: 300;
  line-height: 1.55;
}
.r-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.r-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  width: fit-content;
}
.r-hs-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: -0.02em;
  line-height: 1;
}
.r-hs-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

.r-hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  transform: rotate(1deg);
}
.r-hero-photo-inner {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
}
.r-hero-photo-inner img { width: 100%; height: 100%; object-fit: cover; }
.r-hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  pointer-events: none;
}
.r-hero-tape {
  position: absolute;
  bottom: -28px; left: -28px;
  background: var(--yellow);
  color: #1b1b1b;
  padding: 14px 22px 12px;
  border-radius: 8px;
  transform: rotate(-4deg);
  box-shadow: 0 14px 28px rgba(0,0,0,0.3);
  z-index: 2;
}
.r-hero-tape .small {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.r-hero-tape .big {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.r-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,204,2,0.15), transparent 65%);
  pointer-events: none;
}

/* ============== QUICK FACTS ============== */
.r-facts {
  background: var(--cream-warm);
  padding: 48px 6vw;
  border-bottom: none;
}
.r-facts-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.r-fact {
  padding: 8px 28px;
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.r-fact:first-child { border-left: none; padding-left: 0; }
.r-fact-icon { display: none; }
.r-fact-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.r-fact-value {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.r-fact-value a { color: var(--teal); text-decoration: none; }
.r-fact-value a:hover { text-decoration: underline; }

/* ============== ABOUT ============== */
.r-about {
  padding: 120px 6vw;
  background: var(--cream);
}
.r-about-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.r-about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(4,116,124,0.2);
}
.r-about-photo img { width: 100%; height: 100%; object-fit: cover; }
.r-about-text p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}
.r-about-text p strong { color: var(--ink); }
.r-about-text a:not(.btn) { color: var(--teal); font-weight: 600; }

.r-doubling {
  margin-top: 36px;
  padding: 28px 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-accent) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 24px;
  align-items: center;
}
.r-doubling .from, .r-doubling .to {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.r-doubling .from {
  font-size: 56px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.r-doubling .arrow {
  font-size: 32px;
  color: var(--yellow);
}
.r-doubling .to-block { display: flex; flex-direction: column; gap: 4px; }
.r-doubling .to {
  font-size: 64px;
  color: var(--yellow);
}
.r-doubling .to-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ============== TIMELINE ============== */
.r-timeline {
  background: #fff;
  padding: 120px 6vw;
}
.r-tl-track {
  max-width: 1240px;
  margin: 60px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.r-tl-track::before {
  content: '';
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 2px;
  background: var(--hairline);
}
.r-tl-track::after {
  content: '';
  position: absolute;
  top: 22px; left: 0;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
}
.r-tl-step {
  position: relative;
  padding-top: 60px;
  text-align: center;
}
.r-tl-dot {
  position: absolute;
  top: 14px; left: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--teal);
  transform: translateX(-50%);
  z-index: 2;
}
.r-tl-step.done .r-tl-dot {
  background: var(--teal);
}
.r-tl-step.now .r-tl-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  width: 22px; height: 22px;
  top: 12px;
  box-shadow: 0 0 0 6px rgba(255,204,2,0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
.r-tl-step.todo .r-tl-dot {
  border-color: var(--hairline);
}
.r-tl-step .when {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.r-tl-step .what {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.r-tl-step.now .when { color: var(--teal); }
.r-tl-step.now .what { color: var(--teal); }
.r-tl-here {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: #1b1b1b;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.r-tl-here::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--yellow);
}

/* ============== GALLERY ============== */
.r-gallery {
  padding: 120px 6vw;
  background: var(--cream);
}
.r-gallery-grid {
  max-width: 1240px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 14px;
}
.r-gi {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  cursor: zoom-in;
  background: var(--cream-warm);
}
.r-gi img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.r-gi:hover img { transform: scale(1.05); }
.r-gi-1 { grid-column: span 3; grid-row: span 3; }
.r-gi-2 { grid-column: span 3; grid-row: span 2; }
.r-gi-3 { grid-column: span 2; grid-row: span 2; }
.r-gi-4 { grid-column: span 2; grid-row: span 2; }
.r-gi-5 { grid-column: span 2; grid-row: span 3; }
.r-gi-6 { grid-column: span 4; grid-row: span 2; }

/* ============== INVOLVE STRIP ============== */
.r-involve {
  background: var(--teal);
  color: #fff;
  padding: 110px 6vw;
}
.r-involve-grid {
  max-width: 1240px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.r-iv-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 32px 28px;
  text-decoration: none;
  color: #fff;
  transition: transform .3s, background .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.r-iv-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,204,2,0.4);
}
.r-iv-card.primary {
  background: var(--yellow);
  color: #1b1b1b;
  border-color: var(--yellow);
}
.r-iv-card.primary:hover { background: #ffd733; border-color: #ffd733; }
.r-iv-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--yellow);
  margin-bottom: 22px;
}
.r-iv-card.primary .r-iv-icon { background: rgba(0,0,0,0.1); color: #1b1b1b; }
.r-iv-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.r-iv-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  margin: 0 0 22px;
  flex-grow: 1;
  line-height: 1.6;
}
.r-iv-card.primary p { color: rgba(0,0,0,0.75); }
.r-iv-go {
  font-weight: 600;
  font-size: 14px;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.r-iv-card.primary .r-iv-go { color: #1b1b1b; }

/* ============== VISIT ============== */
.r-visit {
  background: var(--cream);
  padding: 100px 6vw;
}
.r-visit-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(4,116,124,0.08);
}
.r-visit h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 36px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.r-visit address {
  font-style: normal;
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 8px;
}
.r-visit address a { color: var(--teal); font-weight: 600; }
.r-visit-map {
  aspect-ratio: 4/3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.r-visit-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}
.r-visit-pin {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(4,116,124,0.4);
  position: relative;
}
.r-visit-pin::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid var(--teal);
  transform: translateX(-50%);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .r-hero-grid { grid-template-columns: 1fr; gap: 50px; padding-bottom: 70px; }
  .r-hero-photo { max-width: 480px; margin: 0 auto; }
  .r-hero-stats { grid-template-columns: repeat(3, 1fr); width: 100%; gap: 18px; }
  .r-facts-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .r-fact { border-left: none; padding-left: 0; padding-right: 0; }
  .r-about-grid { grid-template-columns: 1fr; gap: 50px; }
  .r-about-photo { max-width: 460px; margin: 0 auto; aspect-ratio: 4/3; }
  .r-doubling { grid-template-columns: 1fr; text-align: center; }
  .r-tl-track { grid-template-columns: 1fr; gap: 0; }
  .r-tl-track::before { left: 22px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .r-tl-track::after { left: 22px; top: 0; width: 2px; height: 60%; background: linear-gradient(180deg, var(--teal), var(--yellow)); }
  .r-tl-step { padding-top: 0; padding-left: 60px; text-align: left; padding-bottom: 30px; }
  .r-tl-dot { left: 22px; top: 4px; }
  .r-tl-here { position: static; transform: none; display: inline-block; margin-bottom: 6px; }
  .r-tl-here::after { display: none; }
  .r-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .r-gi-1, .r-gi-2, .r-gi-3, .r-gi-4, .r-gi-5, .r-gi-6 { grid-column: span 1; grid-row: span 2; }
  .r-involve-grid { grid-template-columns: 1fr; }
  .r-visit-card { grid-template-columns: 1fr; padding: 30px; }
}

@media (max-width: 620px) {
  .r-hero { padding-top: 100px; }
  .r-hero-grid { padding-bottom: 50px; }
  .r-facts-inner { grid-template-columns: 1fr; }
  .r-about, .r-timeline, .r-gallery, .r-involve, .r-visit { padding: 70px 5vw; }
  .r-hero-stats { grid-template-columns: 1fr 1fr; }
  .r-hs-num { font-size: 28px; }
  .r-doubling .from { font-size: 42px; }
  .r-doubling .to { font-size: 50px; }
}
