/* ===========================================================
   DUNN RIGHT CUES — Design Tokens
   Palette pulled directly from the subject: rail felt, cue
   wood, chalk dust, walnut butt-caps, and the red of a
   solid ball. Not a generic dark/neon SaaS palette.
=========================================================== */
:root {
  --rail-green: #1B3A2E;
  --rail-green-deep: #102420;
  --cue-wood: #C9A36A;
  --cue-wood-light: #E7D2A3;
  --chalk: #F2EFE9;
  --walnut: #1A1612;
  --walnut-soft: #2B2420;
  --felt-red: #8B2E2E;
  --felt-red-bright: #A93838;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-soft: 0 12px 32px -12px rgba(16, 36, 32, 0.35);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--chalk);
  color: var(--walnut);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--felt-red);
  color: var(--chalk);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--felt-red);
  outline-offset: 2px;
}

/* ===========================================================
   TYPE
=========================================================== */
h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--walnut);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.04; font-weight: 700; }
h2, .section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.5rem; }

p { color: var(--walnut-soft); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--felt-red);
  margin-bottom: 0.85rem;
}
.eyebrow.center { text-align: center; }

.section-lede {
  max-width: 620px;
  font-size: 1.08rem;
}
.section-lede.center { margin: 0.75rem auto 0; text-align: center; }

.center { text-align: center; }

/* ===========================================================
   BUTTONS
=========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--felt-red);
  color: var(--chalk);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--felt-red-bright); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--walnut);
}
.btn-ghost:hover { background: rgba(26, 22, 18, 0.06); }

.btn-small { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-large { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ===========================================================
   HEADER
=========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(242, 239, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 22, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rail-green-deep);
  white-space: nowrap;
}
.logo-mark { color: var(--felt-red); display: inline-flex; }

.main-nav {
  display: flex;
  gap: 1.8rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--felt-red);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-cta { margin-left: auto; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--walnut);
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--chalk);
  border-top: 1px solid rgba(26,22,18,0.08);
  padding: 0.5rem 24px 1rem;
}
.mobile-nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(26,22,18,0.06);
}
.mobile-nav.open { display: flex; }

@media (max-width: 820px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ===========================================================
   HERO
=========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background: linear-gradient(180deg, var(--rail-green) 0%, var(--rail-green-deep) 100%);
  color: var(--chalk);
}

.hero-felt {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 2px, transparent 2px, transparent 14px);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
  padding-top: 4.5rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero h1 { color: var(--chalk); }
.hero-accent { color: var(--cue-wood-light); }

.hero .eyebrow { color: var(--cue-wood-light); }

.hero-sub {
  color: rgba(242,239,233,0.85);
  font-size: 1.12rem;
  max-width: 480px;
  margin: 1.2rem 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .btn-ghost {
  border-color: rgba(242,239,233,0.5);
  color: var(--chalk);
}
.hero .btn-ghost:hover { background: rgba(242,239,233,0.1); }

.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cue-wood-light);
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(242,239,233,0.7);
}
.hero-footnote {
  font-size: 0.72rem;
  color: rgba(242,239,233,0.45);
  margin-top: 0.9rem;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 56px -16px rgba(0,0,0,0.55);
  border: 1px solid rgba(201,163,106,0.35);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-divider svg {
  width: 100%;
  height: 40px;
  display: block;
}
.hero-divider path {
  fill: none;
  stroke: var(--cue-wood);
  stroke-width: 2;
  opacity: 0.5;
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 4rem; }
  .hero-visual { min-height: 220px; order: -1; }
}

/* ===========================================================
   TRUST BAR
=========================================================== */
.trust-bar {
  background: var(--walnut);
  color: var(--cue-wood-light);
  padding: 0.85rem 0;
}
.trust-bar-inner p {
  color: var(--cue-wood-light);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ===========================================================
   SECTIONS — shared rhythm
=========================================================== */
.section { padding: 5.5rem 0; }

/* ===========================================================
   SERVICES
=========================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(26,22,18,0.08);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.card-icon {
  width: 48px; height: 48px;
  color: var(--felt-red);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 100%; height: 100%; }
.card p { font-size: 0.96rem; }

/* Cards are visible by default; JS adds .reveal-ready then .revealed
   for a subtle rise-in. No JS = no hidden content. */
.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-ready.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   SHOP SECTION
=========================================================== */
.shop-section {
  position: relative;
  background: var(--rail-green-deep);
  color: var(--chalk);
  overflow: hidden;
}
.hero-felt-alt { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 14px); }

.shop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.shop-section .eyebrow { color: var(--cue-wood-light); }
.shop-section h2 { color: var(--chalk); }
.shop-section p { color: rgba(242,239,233,0.82); }

.checklist {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checklist li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--chalk);
  font-weight: 500;
}
.checklist li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--cue-wood);
  font-size: 0.7rem;
  top: 6px;
}

.shop-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-frame {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(45deg, rgba(201,163,106,0.15), rgba(201,163,106,0.15) 10px, rgba(201,163,106,0.05) 10px, rgba(201,163,106,0.05) 20px);
  border: 1px dashed rgba(201,163,106,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.gallery-frame span {
  font-size: 0.78rem;
  color: rgba(242,239,233,0.55);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.frame-1 { grid-column: 1 / 2; grid-row: 1 / 3; aspect-ratio: auto; }
.frame-2 { grid-column: 2 / 3; }
.frame-3 { grid-column: 2 / 3; }

@media (max-width: 880px) {
  .shop-inner { grid-template-columns: 1fr; }
  .shop-gallery { order: -1; }
}

/* ===========================================================
   REVIEWS
=========================================================== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(26,22,18,0.08);
  position: relative;
}
.stars {
  color: var(--cue-wood);
  letter-spacing: 0.15em;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.review-card blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--walnut);
  margin-bottom: 1.2rem;
}
.review-card figcaption {
  font-size: 0.85rem;
  color: var(--walnut-soft);
  font-weight: 600;
}
.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.reviews-cta a {
  color: var(--felt-red);
  font-weight: 600;
  border-bottom: 2px solid var(--felt-red);
  padding-bottom: 2px;
}

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

/* ===========================================================
   VISIT / LOCATION
=========================================================== */
.visit { background: #fff; }
.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.visit-details {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.visit-details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--felt-red);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.visit-details dd {
  font-weight: 500;
  line-height: 1.5;
}
.visit-details a { text-decoration: underline; }
.muted { color: #8a8178; font-size: 0.85rem; font-weight: 400; }

.visit-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.visit-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(26,22,18,0.1);
}
.visit-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.map-note {
  font-size: 0.78rem;
  padding: 0.85rem 1rem;
  background: var(--chalk);
  color: #8a8178;
}

@media (max-width: 880px) {
  .visit-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .visit-details { grid-template-columns: 1fr; }
}

/* ===========================================================
   FINAL CTA
=========================================================== */
.final-cta {
  background: var(--felt-red);
  color: var(--chalk);
  text-align: center;
}
.final-cta h2 { color: var(--chalk); }
.final-cta p {
  color: rgba(242,239,233,0.85);
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
}
.final-cta .btn-primary {
  background: var(--chalk);
  color: var(--felt-red);
}
.final-cta .btn-primary:hover { background: var(--cue-wood-light); }

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer {
  background: var(--walnut);
  color: rgba(242,239,233,0.65);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a { text-decoration: underline; }
.footer-links a:hover { color: var(--cue-wood-light); }
