/* ============================================================
   Blisslume — global styles
   Light premium theme: warm ivory, casino-felt emerald, brass.
   Bootstrap does the layout work; this file handles mood only.
   ============================================================ */

:root {
  --bl-ivory: #faf6ee;
  --bl-cream: #f2ebdb;
  --bl-paper: #fffdf7;
  --bl-emerald: #0e3b2e;
  --bl-emerald-2: #155843;
  --bl-emerald-soft: #e4efe8;
  --bl-brass: #c3a24d;
  --bl-brass-soft: #f3ead2;
  --bl-clay: #b4552d;
  --bl-ink: #1d2521;
  --bl-muted: #5c6a62;
  --bl-line: #ddd3bd;
  --bl-serif: "Fraunces", Georgia, serif;
  --bl-sans: "Manrope", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body,html {
  background: var(--bl-ivory);
  color: var(--bl-ink);
  font-family: var(--bl-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--bl-brass);
  color: var(--bl-emerald);
}

/* ---------- Typography ---------- */

h1, h2, h3, .display-font {
  font-family: var(--bl-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bl-emerald);
}

h4, h5, h6 {
  font-family: var(--bl-sans);
  font-weight: 700;
  color: var(--bl-emerald);
}

.display-hero {
  font-family: var(--bl-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-4 {
  font-family: var(--bl-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
}

.lead-bl {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--bl-muted);
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bl-clay);
}

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

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

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

/* ---------- Surfaces ---------- */

.bg-ivory   { background: var(--bl-ivory) !important; }
.bg-cream   { background: var(--bl-cream) !important; }
.bg-paper   { background: var(--bl-paper) !important; }
.bg-emerald { background: var(--bl-emerald) !important; }
.bg-emerald-2 { background: var(--bl-emerald-2) !important; }
.bg-brass   { background: var(--bl-brass) !important; }
.bg-brass-soft { background: var(--bl-brass-soft) !important; }

.section-dark {
  background: var(--bl-emerald);
  color: #eef3ec;
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
  color: #fbf7ec;
}
.section-dark .lead-bl, .section-dark p { color: #cfdccf; }

/* Decorative blueprint grid on dark sections (pure CSS, no svg) */
.blueprint {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Photo sections — filled by photo.js at build time */
.bg-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.on-photo h1, .on-photo h2, .on-photo h3,
.on-photo h4, .on-photo h5, .on-photo h6 { color: #fffdf5; }
.on-photo p, .on-photo li { color: #e7eee8; }

/* But a plain card sitting on a photo keeps its normal ink colours —
   (.on-photo .card-bl only matches nested cards, not cards that are
   photo panels themselves like the bento dish tile) */
.on-photo .card-bl h1, .on-photo .card-bl h2, .on-photo .card-bl h3,
.on-photo .card-bl h4, .on-photo .card-bl h5, .on-photo .card-bl h6 { color: var(--bl-emerald); }
.on-photo .card-bl p, .on-photo .card-bl li { color: var(--bl-ink); }

/* ---------- Buttons ---------- */

.btn {
  font-weight: 700;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-brass {
  background: var(--bl-brass);
  border-color: var(--bl-brass);
  color: var(--bl-emerald);
}
.btn-brass:hover, .btn-brass:focus {
  background: #d4b45f;
  border-color: #d4b45f;
  color: var(--bl-emerald);
  box-shadow: 0 10px 24px rgba(195, 162, 77, .35);
}

.btn-emerald {
  background: var(--bl-emerald);
  border-color: var(--bl-emerald);
  color: #fbf7ec;
}
.btn-emerald:hover, .btn-emerald:focus {
  background: var(--bl-emerald-2);
  border-color: var(--bl-emerald-2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 59, 46, .3);
}

.btn-outline-emerald {
  border: 2px solid var(--bl-emerald);
  color: var(--bl-emerald);
  background: transparent;
}
.btn-outline-emerald:hover {
  background: var(--bl-emerald);
  color: #fbf7ec;
}

.btn-outline-light-2 {
  border: 2px solid rgba(255,255,255,.65);
  color: #fff;
  background: transparent;
}
.btn-outline-light-2:hover {
  background: #fff;
  color: var(--bl-emerald);
}

/* ---------- Chips, badges, ornaments ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .9rem;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  background: var(--bl-paper);
  font-size: .82rem;
  font-weight: 700;
  color: var(--bl-emerald);
  white-space: nowrap;
}
.chip i { color: var(--bl-brass); }

.chip--dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
  color: #f4f0e2;
}

.rule-ornament {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--bl-brass);
}
.rule-ornament::before, .rule-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bl-line);
}

/* ---------- Cards ---------- */

.card-bl {
  background: var(--bl-paper);
  border: 1px solid var(--bl-line);
  border-radius: 1.25rem;
  box-shadow: 0 6px 22px rgba(29, 37, 33, .06);
}
.card-lift {
  transition: transform .22s ease, box-shadow .22s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 59, 46, .16);
}

.icon-badge {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--bl-brass-soft);
  color: var(--bl-emerald);
  border: 1px solid var(--bl-line);
}
.icon-badge--solid {
  background: var(--bl-brass);
  border-color: var(--bl-brass);
}

/* ---------- Bento grid ---------- */

.bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
}
.bento__item { grid-column: span 4; }
.bento__item--wide { grid-column: span 8; }
.bento__item--half { grid-column: span 6; }
.bento__item--tall { grid-row: span 2; }

@media (max-width: 991.98px) {
  .bento__item, .bento__item--wide, .bento__item--half { grid-column: span 12; }
  .bento__item--tall { grid-row: auto; }
}

/* ---------- Timeline ---------- */

.tl {
  position: relative;
  padding-left: 2.2rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: .55rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: repeating-linear-gradient(var(--bl-brass) 0 8px, transparent 8px 16px);
}
.tl__item { position: relative; padding-bottom: 1.75rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute;
  left: -2.2rem;
  top: .15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--bl-ivory);
  border: 3px solid var(--bl-brass);
}
.tl__time {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--bl-clay);
  text-transform: uppercase;
}

/* ---------- Ticker / marquee ---------- */

.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--bl-line);
  border-bottom: 1px solid var(--bl-line);
  background: var(--bl-paper);
}
.ticker__track {
  display: inline-flex;
  gap: 3rem;
  padding: .9rem 0;
  animation: ticker-scroll 38s linear infinite;
}
.ticker__track span {
  font-family: var(--bl-serif);
  font-size: 1.05rem;
  color: var(--bl-emerald);
}
.ticker__track i { color: var(--bl-brass); margin-right: 3rem; }
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Stats ---------- */

.stat__num {
  font-family: var(--bl-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--bl-emerald);
}
.section-dark .stat__num, .on-photo .stat__num { color: var(--bl-brass); }
.stat__label {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bl-muted);
}
.section-dark .stat__label, .on-photo .stat__label { color: #cfdccf; }

/* ---------- Quotes ---------- */

.quote-card {
  position: relative;
  padding: 2rem;
  background: var(--bl-paper);
  border: 1px solid var(--bl-line);
  border-radius: 1.25rem;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -.5rem;
  left: 1.2rem;
  font-family: var(--bl-serif);
  font-size: 4.5rem;
  color: var(--bl-brass);
  line-height: 1;
}

/* ---------- Frames & media ---------- */

.img-frame {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--bl-line);
  box-shadow: 0 14px 36px rgba(29, 37, 33, .12);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offset-frame {
  position: relative;
}
.offset-frame::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 2px solid var(--bl-brass);
  border-radius: 1.25rem;
  z-index: -1;
}

/* ---------- Header ---------- */

.topbar {
  background: var(--bl-emerald);
  color: #e8efe8;
  font-size: .82rem;
}
.topbar a { color: #e8efe8; text-decoration: none; }
.topbar a:hover { color: var(--bl-brass); }
.topbar i { color: var(--bl-brass); }

.navbar-bl {
  background: rgba(250, 246, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bl-line);
  transition: box-shadow .2s ease;
}
.navbar-bl.is-scrolled {
  box-shadow: 0 8px 30px rgba(14, 59, 46, .12);
}
.navbar-bl .nav-link {
  font-weight: 700;
  font-size: .92rem;
  color: var(--bl-ink);
  padding: .5rem .85rem;
}
.navbar-bl .nav-link:hover,
.navbar-bl .nav-link.active { color: var(--bl-clay); }
.navbar-toggler { border: 1px solid var(--bl-line); color: var(--bl-emerald); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(195, 162, 77, .35); }

.brand-word {
  font-family: var(--bl-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--bl-emerald);
  letter-spacing: .02em;
}

/* ---------- Footer ---------- */

.footer-bl {
  background: var(--bl-emerald);
  color: #d9e3d9;
}
.footer-bl h5, .footer-bl h6 { color: #fbf7ec; }
.footer-bl a { color: #d9e3d9; text-decoration: none; }
.footer-bl a:hover { color: var(--bl-brass); }
.footer-bl .footer-link {
  display: block;
  padding: .28rem 0;
  font-size: .92rem;
}
.footer-bl .footer-link i {
  color: var(--bl-brass);
  font-size: .7rem;
  margin-right: .5rem;
}
.footer-meta {
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem;
  color: #a9bcab;
}

/* ---------- Forms ---------- */

.form-control, .form-select {
  border: 1px solid var(--bl-line);
  border-radius: .8rem;
  padding: .7rem 1rem;
  background: var(--bl-paper);
}
.form-control:focus, .form-select:focus {
  border-color: var(--bl-brass);
  box-shadow: 0 0 0 .2rem rgba(195, 162, 77, .28);
}
.form-label { font-weight: 700; font-size: .9rem; color: var(--bl-emerald); }

/* Simple inline notification — used instead of alert() */
.form-note {
  display: none;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: .85rem 1.1rem;
  border-radius: .8rem;
  background: var(--bl-emerald-soft);
  border: 1px solid #bcd8c6;
  color: var(--bl-emerald);
  font-weight: 700;
}
.form-note.is-visible { display: flex; animation: note-in .35s ease; }
@keyframes note-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Cookie bar (index only) ---------- */

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  max-width: 46rem;
  margin: 0 auto;
  background: var(--bl-emerald);
  color: #eef3ec;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.3);
}
.cookie-bar a { color: var(--bl-brass); }

/* ---------- Legal pages ---------- */

.legal-block {
  background: var(--bl-paper);
  border: 1px solid var(--bl-line);
  border-radius: 1.25rem;
}
.legal-block h2 { font-size: 1.5rem; }
.legal-num {
  font-family: var(--bl-serif);
  font-size: 2.2rem;
  color: var(--bl-brass);
  line-height: 1;
}

/* ---------- Accordion ---------- */

.accordion-bl .accordion-item {
  border: 1px solid var(--bl-line);
  border-radius: 1rem !important;
  overflow: hidden;
  margin-bottom: .8rem;
  background: var(--bl-paper);
}
.accordion-bl .accordion-button {
  font-weight: 700;
  color: var(--bl-emerald);
  background: var(--bl-paper);
}
.accordion-bl .accordion-button:not(.collapsed) {
  background: var(--bl-brass-soft);
  color: var(--bl-emerald);
  box-shadow: none;
}
.accordion-bl .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(195, 162, 77, .3);
}

/* ---------- Misc helpers ---------- */

.rotate-slight { transform: rotate(-1.5deg); }
.rotate-slight-r { transform: rotate(1.5deg); }
.rounded-bl { border-radius: 1.25rem !important; }
.border-bl { border: 1px solid var(--bl-line) !important; }
.z-1 { position: relative; z-index: 1; }

.divider-wave {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bl-brass), transparent);
}

.hero-clip {
  border-radius: 0 0 2.5rem 2.5rem;
  overflow: hidden;
}

/* Diagonal stripes accent (pure CSS) */
.stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(195, 162, 77, .14) 0 10px,
    transparent 10px 22px
  );
}

@media (max-width: 575.98px) {
  .btn { padding: .65rem 1.25rem; }
}
