/* ============================================================
   Joysola — global styles
   Theme: warm ivory + emerald felt + brass (light, not b/w)
   Naming: BEM-ish custom classes, Bootstrap utilities first
   ============================================================ */

:root {
  --js-ivory: #f4eee1;
  --js-cream: #faf6ec;
  --js-paper: #fffdf7;
  --js-emerald: #173f30;
  --js-emerald-deep: #0e2a20;
  --js-emerald-soft: #e3ebe2;
  --js-brass: #b08a4f;
  --js-brass-soft: #e9dcc2;
  --js-clay: #c06b45;
  --js-ink: #22251f;
  --js-muted: #6f6a5d;
  --js-line: rgba(23, 63, 48, 0.16);

  --bs-body-bg: var(--js-ivory);
  --bs-body-color: var(--js-ink);
  --bs-body-font-family: "Manrope", system-ui, -apple-system, sans-serif;
  --bs-primary: var(--js-emerald);
  --bs-link-color: var(--js-emerald);
  --bs-link-hover-color: var(--js-brass);
}

html {
  scroll-behavior: smooth;
}

body,html {
  font-family: var(--bs-body-font-family);
  background-color: var(--js-ivory);
  color: var(--js-ink);
  overflow-x: hidden;
}

::selection {
  background: var(--js-brass);
  color: var(--js-paper);
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

img {
  object-fit: cover;
}

/* ---------- small type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--js-clay);
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--js-brass);
}

.eyebrow--center::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--js-brass);
}

.lead-copy {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--js-muted);
}

.text-brass { color: var(--js-brass) !important; }
.text-emerald { color: var(--js-emerald) !important; }
.text-clay { color: var(--js-clay) !important; }
.text-muted-2 { color: var(--js-muted) !important; }

.num-outline {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--js-brass);
  line-height: 1;
}

.headline-xl {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
}

.headline-lg {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
}

/* ---------- buttons ---------- */

.btn {
  --bs-btn-border-radius: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.6rem;
}

.btn-brand {
  --bs-btn-bg: var(--js-emerald);
  --bs-btn-border-color: var(--js-emerald);
  --bs-btn-color: var(--js-cream);
  --bs-btn-hover-bg: var(--js-emerald-deep);
  --bs-btn-hover-border-color: var(--js-emerald-deep);
  --bs-btn-hover-color: var(--js-cream);
  --bs-btn-active-bg: var(--js-emerald-deep);
  --bs-btn-active-border-color: var(--js-emerald-deep);
}

.btn-brass {
  --bs-btn-bg: var(--js-brass);
  --bs-btn-border-color: var(--js-brass);
  --bs-btn-color: var(--js-emerald-deep);
  --bs-btn-hover-bg: #c39a5c;
  --bs-btn-hover-border-color: #c39a5c;
  --bs-btn-hover-color: var(--js-emerald-deep);
  --bs-btn-active-bg: #c39a5c;
  --bs-btn-active-border-color: #c39a5c;
}

.btn-outline-brand {
  --bs-btn-color: var(--js-emerald);
  --bs-btn-border-color: var(--js-emerald);
  --bs-btn-hover-bg: var(--js-emerald);
  --bs-btn-hover-border-color: var(--js-emerald);
  --bs-btn-hover-color: var(--js-cream);
  --bs-btn-active-bg: var(--js-emerald-deep);
  --bs-btn-active-border-color: var(--js-emerald-deep);
}

.btn-light-2 {
  --bs-btn-bg: var(--js-cream);
  --bs-btn-border-color: var(--js-cream);
  --bs-btn-color: var(--js-emerald-deep);
  --bs-btn-hover-bg: var(--js-brass);
  --bs-btn-hover-border-color: var(--js-brass);
  --bs-btn-hover-color: var(--js-emerald-deep);
}

/* ---------- chips / badges ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--js-line);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--js-paper);
  color: var(--js-emerald);
}

.chip i { color: var(--js-brass); }

.chip--solid {
  background: var(--js-emerald);
  border-color: var(--js-emerald);
  color: var(--js-cream);
}

.chip--solid i { color: var(--js-brass-soft); }

.chip--clay {
  background: var(--js-clay);
  border-color: var(--js-clay);
  color: var(--js-paper);
}

.chip--clay i { color: var(--js-paper); }

/* ---------- surfaces ---------- */

.card-surface {
  background: var(--js-paper);
  border: 1px solid var(--js-line);
  border-radius: 1.1rem;
  box-shadow: 0 14px 34px -22px rgba(14, 42, 32, 0.45);
}

.section-dark {
  background: var(--js-emerald-deep);
  color: var(--js-cream);
}

.section-dark .lead-copy,
.section-dark p { color: rgba(250, 246, 236, 0.78); }

.section-dark .card-surface {
  background: rgba(250, 246, 236, 0.05);
  border-color: rgba(250, 246, 236, 0.16);
  color: var(--js-cream);
  box-shadow: none;
}

.section-dark .chip {
  background: rgba(250, 246, 236, 0.08);
  border-color: rgba(250, 246, 236, 0.2);
  color: var(--js-cream);
}

.section-tint {
  background: var(--js-emerald-soft);
}

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

/* ---------- background photo blocks ---------- */

/* note: url(../../images/joysola_343fd0a6f0f8c.60602483.jpg) stays empty on purpose — the build step fills real photos */
.bg-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-photo--soft {
  /* lighter overlay variant for daytime sections */
  color: var(--js-cream);
}

/* ---------- media frames ---------- */

.media-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--js-line);
  background: var(--js-brass-soft);
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

/* contour offset frame — editorial look */
.frame-offset {
  position: relative;
}

.frame-offset::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 1px solid var(--js-brass);
  border-radius: 1rem;
  pointer-events: none;
  z-index: 0;
}

.frame-offset .media-frame,
.frame-offset > img { position: relative; z-index: 1; }

/* arch-top portrait frame — signature Joysola shape */
.media-arch {
  border-radius: 12rem 12rem 1rem 1rem;
}

.round-badge {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--js-emerald);
  color: var(--js-brass-soft);
  font-size: 1.6rem;
  border: 1px solid var(--js-line);
}

.icon-tile {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--js-brass-soft);
  color: var(--js-emerald);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* floating caption card over photos */
.float-card {
  position: absolute;
  background: var(--js-paper);
  border: 1px solid var(--js-line);
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px -20px rgba(14, 42, 32, 0.5);
  padding: 0.9rem 1.2rem;
  z-index: 2;
}

/* ---------- dotted leader menu lines ---------- */

.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
}

.ledger .leader {
  flex: 1;
  border-bottom: 1px dotted rgba(23, 63, 48, 0.4);
  transform: translateY(-4px);
}

.ledger .price {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--js-brass);
  white-space: nowrap;
}

/* ---------- stats ---------- */

.stat {
  border-left: 2px solid var(--js-brass);
  padding-left: 1.1rem;
}

.stat__num {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--js-emerald);
}

.section-dark .stat__num { color: var(--js-brass-soft); }

.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--js-muted);
  font-weight: 700;
}

.section-dark .stat__label { color: rgba(250, 246, 236, 0.6); }

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--js-line);
}

.timeline__item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--js-brass);
  border: 2px solid var(--js-ivory);
  box-shadow: 0 0 0 1px var(--js-brass);
}

.timeline__year {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--js-clay);
}

/* ---------- marquee ticker ---------- */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--js-line);
  border-bottom: 1px solid var(--js-line);
  padding: 0.9rem 0;
}

.marquee__track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 26s linear infinite;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--js-emerald);
}

.marquee__track i { color: var(--js-brass); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- gallery ---------- */

.gallery-grid {
  columns: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid { columns: 3; }
}

.gallery-grid .media-frame {
  margin-bottom: 1rem;
  break-inside: avoid;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--js-ivory);
  border-bottom: 1px solid var(--js-line);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(14, 42, 32, 0.4);
}

.topbar {
  background: var(--js-emerald-deep);
  color: var(--js-cream);
  font-size: 0.8rem;
}

.topbar a {
  color: var(--js-cream);
  text-decoration: none;
}

.topbar a:hover { color: var(--js-brass-soft); }

.topbar i { color: var(--js-brass); }

.site-logo {
  height: 44px;
  width: auto;
}

.navbar-brand span {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--js-emerald);
}

.navbar .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--js-ink);
  padding: 0.5rem 0.9rem;
}

.navbar .nav-link:hover { color: var(--js-clay); }

.navbar .nav-link.active {
  color: var(--js-emerald);
  position: relative;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--js-brass);
  border-radius: 2px;
}

.navbar-toggler {
  border: 1px solid var(--js-line);
  border-radius: 0.6rem;
  padding: 0.45rem 0.7rem;
  color: var(--js-emerald);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--js-emerald-deep);
  color: rgba(250, 246, 236, 0.75);
}

.site-footer h6 {
  color: var(--js-cream);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.footer-link {
  color: rgba(250, 246, 236, 0.75);
  text-decoration: none;
  display: inline-block;
  padding: 0.22rem 0;
}

.footer-link:hover { color: var(--js-brass-soft); }

.footer-contacts li {
  display: flex;
  gap: 0.7rem;
  padding: 0.3rem 0;
}

.footer-contacts i {
  color: var(--js-brass);
  margin-top: 0.25rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 236, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--js-cream);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--js-brass);
  border-color: var(--js-brass);
  color: var(--js-emerald-deep);
}

.footer-word {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 9rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 246, 236, 0.22);
  user-select: none;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 236, 0.14);
  font-size: 0.82rem;
}

/* ---------- forms ---------- */

.form-control,
.form-select {
  border-radius: 0.7rem;
  border: 1px solid var(--js-line);
  background-color: var(--js-paper);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--js-brass);
  box-shadow: 0 0 0 0.2rem rgba(176, 138, 79, 0.22);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--js-emerald);
}

/* inline success notice — replaces alert() */
.js-notice {
  display: none;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.8rem;
  border: 1px solid var(--js-brass);
  background: var(--js-brass-soft);
  color: var(--js-emerald-deep);
  font-weight: 600;
}

.js-notice.is-visible { display: flex; }

.js-notice i { color: var(--js-emerald); }

/* ---------- cookie banner (home only) ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  max-width: 720px;
  margin: 0 auto;
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner .card-surface {
  border-radius: 1.2rem;
}

/* ---------- poker table visuals ---------- */

.felt-panel {
  background: var(--js-emerald);
  border-radius: 1.2rem;
  border: 1px solid rgba(250, 246, 236, 0.15);
  position: relative;
  overflow: hidden;
}

/* felt ring decoration — pure CSS, no SVG */
.felt-panel::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px dashed rgba(250, 246, 236, 0.25);
  border-radius: 0.9rem;
  pointer-events: none;
}

.schedule-table {
  font-size: 0.95rem;
}

.schedule-table th {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--js-clay);
  border-bottom: 1px solid var(--js-line) !important;
}

.schedule-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--js-line);
  vertical-align: middle;
}

/* ---------- disclaimer ---------- */

.disclaimer-panel {
  border: 1px dashed var(--js-brass);
  background: var(--js-cream);
  border-radius: 1rem;
}

.section-dark .disclaimer-panel {
  background: rgba(250, 246, 236, 0.06);
}

/* ---------- accordion tweaks ---------- */

.accordion-item {
  background: var(--js-paper);
  border: 1px solid var(--js-line) !important;
  border-radius: 0.8rem !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-button {
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  background: var(--js-paper);
  color: var(--js-ink);
}

.accordion-button:not(.collapsed) {
  background: var(--js-emerald-soft);
  color: var(--js-emerald-deep);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--js-brass);
  box-shadow: none;
}

/* ---------- quote blocks ---------- */

.quote-mark {
  font-family: "Fraunces", serif;
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--js-brass);
}

.review-card .stars { color: var(--js-brass); letter-spacing: 0.15em; }

/* ---------- event date block ---------- */

.date-block {
  width: 4.2rem;
  text-align: center;
  border-right: 1px solid var(--js-line);
  padding-right: 1rem;
  flex-shrink: 0;
}

.date-block .day {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--js-emerald);
}

.date-block .month {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--js-clay);
}

/* ---------- misc decor ---------- */

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--js-brass);
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--js-line);
}

.sticky-side {
  position: sticky;
  top: 6.5rem;
}

.map-frame {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--js-line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
  filter: sepia(0.25) saturate(0.8);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 2px solid var(--js-clay);
  color: var(--js-clay);
  font-weight: 800;
  font-size: 0.95rem;
}

/* responsive polish */
@media (max-width: 767.98px) {
  .frame-offset::after { transform: translate(8px, 8px); }
  .float-card { position: static; margin-top: 1rem; }
  .topbar { font-size: 0.72rem; }
}
