/* ==========================================================================
   JRB Holiday — Site chrome: shared header + footer + theme layer
   Loaded by includes/header.php AFTER style.css / design-system.css /
   foundation.css on every public page.

   Single canonical theme driver: <html data-theme="dark"|"light">
   (set pre-paint by the inline script in header.php, toggled by
   [data-theme-toggle] buttons, persisted in localStorage "jrb-theme").

   Palette (dark):  #0D0D14 / #171720 / #20202B / #CFA50F / #F5F3EE / #B8B6C1
   Palette (light): #F7F7F5 / #FFFFFF / #F0F0EC / #CFA50F / #20202A / #626270

   Notes:
   - Many legacy rules in style.css use !important; every override here uses
     a higher-specificity selector AND !important so order-of-load never
     becomes the deciding factor.
   - --jrb-* tokens (used by footer inline styles and the homepage sections)
     are declared here at html level so they exist on every page and follow
     the theme; see "shared tokens" below.
   ========================================================================== */

/* ---------- 1. THEME TOKENS (canonical) ---------- */

html[data-theme="dark"] {
  /* chrome tokens */
  --jc-bg: #0D0D14;            /* top bar, footer, page chrome            */
  --jc-surface: #171720;       /* navbar, newsletter band                 */
  --jc-surface-2: #20202B;     /* dropdowns, inputs, toggle track         */
  --jc-text: #F5F3EE;
  --jc-muted: #B8B6C1;
  --jc-border: rgba(245, 243, 238, 0.10);
  --jc-gold: #CFA50F;          /* gold as a fill                          */
  --jc-gold-ink: #0D0D14;      /* text on gold fills                      */
  --jc-gold-text: #CFA50F;     /* gold as text/border/icon (AA on dark)   */
  --jc-hover: rgba(207, 165, 15, 0.12);
  --jc-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  /* shared jrb tokens (footer inline styles + homepage sections) */
  --jrb-ink: #0D0D14;
  --jrb-surface: #171720;
  --jrb-text: #F5F3EE;
  --jrb-muted: #B8B6C1;
  --jrb-hairline: rgba(245, 243, 238, 0.10);
  --jrb-seam: rgba(245, 243, 238, 0.07);
  --jrb-gold: #CFA50F;
  --jrb-gold-bright: #E0B82E;
  --jrb-gold-line: rgba(207, 165, 15, 0.55);
  --jrb-gold-faint: rgba(207, 165, 15, 0.22);
}

html[data-theme="light"] {
  --jc-bg: #F7F7F5;
  --jc-surface: #FFFFFF;
  --jc-surface-2: #F0F0EC;
  --jc-text: #20202A;
  --jc-muted: #626270;
  --jc-border: #E2E2DC;
  --jc-gold: #CFA50F;
  --jc-gold-ink: #0D0D14;
  --jc-gold-text: #7D6404;     /* deeper gold: AA contrast on light bg    */
  --jc-hover: rgba(207, 165, 15, 0.14);
  --jc-shadow: 0 18px 50px rgba(32, 32, 42, 0.12);

  --jrb-ink: #F7F7F5;
  --jrb-surface: #FFFFFF;
  --jrb-text: #20202A;
  --jrb-muted: #626270;
  --jrb-hairline: #E2E2DC;
  --jrb-seam: #E2E2DC;
  --jrb-gold: #CFA50F;
  --jrb-gold-bright: #D4A80F;
  --jrb-gold-line: rgba(207, 165, 15, 0.55);
  --jrb-gold-faint: rgba(207, 165, 15, 0.22);

  /* Legacy style.css tokens: remap so every page (not just the homepage)
     stays legible in light mode. scope: html beats :root. */
  --bg-dark: #F7F7F5;
  --bg-darker: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(32, 32, 42, 0.04);
  --bg-glass-hover: rgba(32, 32, 42, 0.08);
  --border-glass: #E2E2DC;
  --border-glow: rgba(207, 165, 15, 0.35);
  --text-primary: #20202A;
  --text-secondary: #626270;
  --text-muted: #6E6E7A;
  --accent-cyan: #7D6404;      /* used as hover/text accent: needs AA      */
  --accent-gradient: linear-gradient(135deg, #CFA50F 0%, #A9830C 100%);
  --accent-gradient-vivid: linear-gradient(135deg, #CFA50F 0%, #A9830C 100%);
  --card-shadow: 0 4px 24px rgba(32, 32, 42, 0.08), 0 0 0 1px #E2E2DC;
  --card-shadow-hover: 0 8px 40px rgba(32, 32, 42, 0.12), 0 0 0 1px #E2E2DC;
}

html[data-theme="dark"] body {
  background-color: #0D0D14;   /* palette primary background (spec)        */
}
html[data-theme="light"] body {
  background-color: #F7F7F5;
  color: #20202A;
}

/* Ambient wash / grid overlay from style.css: keep the dark treatment,
   replace cyan with a faint gold tint and flip the grid for light mode. */
html[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 900px 700px at 15% 15%, rgba(207, 165, 15, 0.10) 0%, transparent 70%);
}
html[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(32, 32, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 42, 0.03) 1px, transparent 1px);
}

/* Sticky navbar sits in normal flow: the legacy 70px reservation for a
   fixed header produced a blank band between header and hero/first block. */
main {
  padding-top: 0;
}

/* Anchor offset so the sticky navbar never covers an in-page target */
#jrb-find-title {
  scroll-margin-top: 110px;
}

/* ---------- 2. FOCUS + REDUCED MOTION ---------- */

.top-bar a:focus-visible,
.navbar a:focus-visible,
.navbar button:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible,
.footer input:focus-visible {
  outline: 2px solid var(--jc-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .jrb-socials a,
  .nav-register-btn,
  .nav-login,
  .jrb-theme-toggle .seg,
  .jrb-foot-top,
  .jrb-foot-links a {
    transition: none !important;
  }
  .nav-register-btn:hover {
    transform: none !important;
  }
  .jrb-socials a:hover {
    transform: none !important;
  }
}

/* ---------- 3. TOP BAR ---------- */

.top-bar {
  background: var(--jc-bg);
  border-bottom: 1px solid var(--jc-border);
  padding: 0.55rem 0;
  font-size: 0.84rem;
}
.top-bar a {
  color: var(--jc-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-bar a:hover,
.top-bar a:focus-visible {
  color: var(--jc-gold-text);
}
.top-bar span {
  color: rgba(184, 182, 193, 0.45);
}
.top-bar .jrb-div {
  width: 1px;
  height: 18px;
  background: var(--jc-border);
  display: inline-block;
}
.top-bar .jrb-social-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.top-bar .jrb-social-row a {
  font-size: 0.98rem;
  line-height: 1;
  display: inline-flex;
}

/* ---------- 4. NAVBAR ---------- */

html[data-theme="dark"] .navbar,
html[data-theme="light"] .navbar {
  background: rgba(23, 23, 32, 0.96) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--jc-border);
  padding: 0.5rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.96) !important;
}
html[data-theme] .navbar.scrolled,
html[data-theme] .navbar.navbar-scrolled {
  background: rgba(13, 13, 20, 0.98) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(207, 165, 15, 0.28);
}
html[data-theme="light"] .navbar.scrolled,
html[data-theme="light"] .navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 12px 34px rgba(32, 32, 42, 0.10);
  border-bottom-color: rgba(207, 165, 15, 0.35);
}

/* Brand (legacy applies a cyan/purple gradient text clip) */
html[data-theme] .navbar-brand {
  background: none !important;
  -webkit-text-fill-color: var(--jc-text);
  color: var(--jc-text);
  letter-spacing: 0.5px;
}
.brand-jrb {
  background: none !important;
  -webkit-text-fill-color: var(--jc-gold-text);
  color: var(--jc-gold-text);
}
.brand-holiday {
  background: none !important;
  -webkit-text-fill-color: var(--jc-text);
  color: var(--jc-text);
}

/* Nav links */
html[data-theme] .nav-link {
  color: var(--jc-text) !important;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
}
html[data-theme] .nav-link:hover {
  color: var(--jc-gold-text) !important;
  background: transparent !important;
}
html[data-theme] .navbar .nav-link.active {
  color: var(--jc-gold-text) !important;
  background: transparent !important;
  position: relative;
}
html[data-theme] .navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.12rem;
  height: 2px;
  background: var(--jc-gold);
  border-radius: 2px;
}
html[data-theme] .navbar .nav-link.dropdown-toggle.active::after {
  margin-left: 0.55em;
}

/* HOT badge (Promotions) */
.nav-hot {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.14em 0.55em;
  background: var(--jc-gold);
  color: var(--jc-gold-ink);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  vertical-align: 0.1em;
}

/* Vertical hairline dividers (search | login, phone | toggle …) */
.jrb-nav-div {
  width: 1px;
  height: 24px;
  background: var(--jc-border);
  display: inline-block;
  margin: 0 0.5rem;
  flex: 0 0 auto;
}

/* Search affordance -> site search/plan entry (portal/outbound.php) */
.jrb-nav-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--jc-text);
  font-size: 1.05rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.jrb-nav-search:hover {
  color: var(--jc-gold-text);
  background: var(--jc-hover);
}

/* Login (gold outline pill) + Register (gold fill pill) */
html[data-theme] a.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(207, 165, 15, 0.65) !important;
  border-radius: 999px !important;
  padding: 0.44rem 1.2rem !important;
  color: var(--jc-text) !important;
  background: transparent !important;
  font-weight: 600 !important;
  font-size: 0.93rem !important;
}
html[data-theme] a.nav-login:hover {
  background: var(--jc-hover) !important;
  color: var(--jc-gold-text) !important;
}
html[data-theme] .nav-register-btn {
  background: var(--jc-gold) !important;
  color: var(--jc-gold-ink) !important;
  border-radius: 999px !important;
  padding: 0.5rem 1.35rem !important;
  font-weight: 700 !important;
  font-size: 0.93rem !important;
  border: none;
}
html[data-theme] .nav-register-btn:hover {
  background: var(--jc-gold-bright) !important;
  color: var(--jc-gold-ink) !important;
  box-shadow: 0 6px 18px rgba(207, 165, 15, 0.35);
  transform: translateY(-1px);
}

/* Mobile-only utility cluster (search | phone | theme | account) */
.jrb-nav-utils {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  margin-right: 0.5rem;
}
@media (min-width: 992px) {
  .jrb-nav-utils {
    display: none !important;
  }
}
.jrb-nav-utils a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--jc-text);
  font-size: 1.02rem;
}
.jrb-nav-utils a:hover {
  color: var(--jc-gold-text);
  background: var(--jc-hover);
}

/* ---------- 5. THEME TOGGLE (segmented pill) ---------- */

.jrb-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--jc-surface-2);
  border: 1px solid var(--jc-border);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.jrb-theme-toggle:hover {
  border-color: rgba(207, 165, 15, 0.5);
}
.jrb-theme-toggle .seg {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--jc-muted);
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.jrb-theme-toggle .seg:not(.is-active):hover {
  color: var(--jc-text);
}
.jrb-theme-toggle .seg.is-active {
  background: var(--jc-gold);
  color: var(--jc-gold-ink);
}

/* ---------- 6. DROPDOWNS (mega + account) ---------- */

html[data-theme] .dropdown-menu {
  background: var(--jc-surface) !important;
  border: 1px solid var(--jc-border) !important;
  box-shadow: var(--jc-shadow) !important;
}
html[data-theme] .dropdown-item {
  color: var(--jc-muted) !important;
}
html[data-theme] .dropdown-item:hover,
html[data-theme] .dropdown-item:focus {
  background: var(--jc-hover) !important;
  color: var(--jc-text) !important;
}
html[data-theme] .dropdown-divider {
  border-color: var(--jc-border) !important;
}

html[data-theme] .navbar .dropdown-menu.mega-dropdown {
  background: var(--jc-surface) !important;
  border: 1px solid var(--jc-border) !important;
  box-shadow: var(--jc-shadow) !important;
  border-radius: 16px !important;
}
html[data-theme] .mega-col:first-child {
  border-right: 1px solid var(--jc-border) !important;
}
html[data-theme] .mega-header {
  color: var(--jc-gold-text) !important;
  border-bottom-color: var(--jc-border) !important;
}
html[data-theme] .mega-item {
  color: var(--jc-muted) !important;
}
html[data-theme] .mega-item:hover {
  background: var(--jc-hover) !important;
  color: var(--jc-text) !important;
}
html[data-theme] .mega-item i {
  color: var(--jc-gold-text) !important;
  opacity: 0.9;
}
html[data-theme] .navbar .dropdown-menu.mega-dropdown a {
  color: var(--jc-muted) !important;
}
html[data-theme] .navbar .dropdown-menu.mega-dropdown a:hover {
  color: var(--jc-text) !important;
}
html[data-theme] .navbar .dropdown-menu.mega-dropdown .dropdown-item:hover {
  background: var(--jc-hover) !important;
}
html[data-theme] .mega-all {
  color: var(--jc-gold-text) !important;
}
html[data-theme] .navbar .dropdown-menu-end {
  background: var(--jc-surface) !important;
  border: 1px solid var(--jc-border) !important;
  border-radius: 14px !important;
}
html[data-theme] .navbar .dropdown-menu-end .dropdown-item:hover {
  background: var(--jc-hover) !important;
  color: var(--jc-text) !important;
}

/* ---------- 7. FOOTER ---------- */

.jrb-footer {
  background: var(--jc-bg);
  border-top: 1px solid var(--jc-border);
  margin-top: auto;
  padding: 0;
  position: relative;
}
/* Replace the legacy cyan/purple hairline with a restrained gold one */
.jrb-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 165, 15, 0.45), transparent);
  z-index: 1;
}
.jrb-footer .footer {
  background: transparent;
}

/* --- Newsletter band (top of footer) --- */
.jrb-foot-news {
  position: relative;
  background: var(--jc-surface);
  border-bottom: 1px solid var(--jc-border);
  overflow: hidden;
}
.jrb-foot-news__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(46%, 620px);
  background-image:
    linear-gradient(90deg, var(--jc-surface) 0%, rgba(23, 23, 32, 0.55) 34%, rgba(23, 23, 32, 0.25) 100%),
    url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=1200&h=600&fit=crop&q=70");
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  pointer-events: none;
}
html[data-theme="light"] .jrb-foot-news__bg {
  background-image:
    linear-gradient(90deg, var(--jc-surface) 0%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 255, 255, 0.4) 100%),
    url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=1200&h=600&fit=crop&q=70");
  opacity: 0.5;
}
.jrb-foot-news__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.jrb-foot-news__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--jc-gold-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.jrb-foot-news__eyebrow i {
  font-size: 1.05rem;
}
.jrb-foot-news__title {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.45rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--jc-text);
  margin: 0 0 0.65rem;
}
.jrb-foot-news__deck {
  color: var(--jc-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 54ch;
  margin: 0;
}
.jrb-foot-news__form {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.jrb-foot-news__field {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--jc-surface-2);
  border: 1px solid rgba(207, 165, 15, 0.55);
  border-radius: 999px;
  padding: 0.2rem 1.1rem;
  min-height: 54px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jrb-foot-news__field:focus-within {
  border-color: var(--jc-gold);
  box-shadow: 0 0 0 3px rgba(207, 165, 15, 0.18);
}
.jrb-foot-news__field i {
  color: var(--jc-gold-text);
  font-size: 1rem;
}
.jrb-foot-news__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--jc-text);
  font-size: 0.95rem;
}
.jrb-foot-news__input::placeholder {
  color: var(--jc-muted);
}
.jrb-foot-news__btn {
  flex: 0 0 auto;
  padding: 0.7rem 1.7rem;
  border: none;
  border-radius: 999px;
  background: var(--jc-gold);
  color: var(--jc-gold-ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.jrb-foot-news__btn:hover {
  background: var(--jc-gold-bright);
  box-shadow: 0 6px 18px rgba(207, 165, 15, 0.35);
  transform: translateY(-1px);
}

/* --- Main footer columns --- */
.jrb-foot-main {
  position: relative;
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  /* Faint skyline silhouette treatment at the base of the columns */
  background:
    linear-gradient(180deg, transparent 60%, rgba(207, 165, 15, 0.04) 100%);
}
.jrb-foot-brand-logo {
  height: 74px;
  width: auto;
  display: block;
  margin-bottom: 1.1rem;
}
.jrb-foot-tagline {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--jc-text);
  margin: 0 0 0.7rem;
  line-height: 1.35;
}
.jrb-foot-about {
  color: var(--jc-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0;
}
.footer h6.jrb-foot-h,
.jrb-foot-h {
  color: var(--jc-gold-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  padding-bottom: 0.7rem;
  position: relative;
}
.footer h6.jrb-foot-h::after,
.jrb-foot-h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--jc-gold);
  border-radius: 2px;
}

.jrb-foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.jrb-foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--jc-muted);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.jrb-foot-links a::before {
  content: "\203A";
  color: var(--jc-gold-text);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
}
.jrb-foot-links a:hover {
  color: var(--jc-gold-text) !important;
}

/* Contact column */
.jrb-foot-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.85rem;
}
.jrb-foot-contact li {
  display: flex;
  gap: 0.75rem;
  color: var(--jc-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.jrb-foot-contact li i {
  color: var(--jc-gold-text);
  font-size: 1rem;
  margin-top: 0.2rem;
}
.jrb-foot-contact a {
  color: var(--jc-muted);
  text-decoration: none;
}
.jrb-foot-contact a:hover {
  color: var(--jc-gold-text) !important;
}
.jrb-foot-hours {
  border-top: 1px solid var(--jc-border);
  padding-top: 1.1rem;
  margin-top: 0.4rem;
}
.jrb-foot-hours__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--jc-gold-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.jrb-foot-hours p {
  color: var(--jc-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}
.jrb-foot-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.jrb-foot-whatsapp:hover {
  background: rgba(37, 211, 102, 0.24);
  color: #25d366 !important;
}

/* Social circles (footer) */
.jrb-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}
.jrb-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(207, 165, 15, 0.55);
  color: var(--jc-gold-text);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.jrb-socials a:hover {
  background: var(--jc-gold);
  border-color: var(--jc-gold);
  color: var(--jc-gold-ink) !important;
  transform: translateY(-2px);
}

/* --- Bottom bar --- */
.jrb-foot-bottom {
  border-top: 1px solid var(--jc-border);
  padding: 1.35rem 0;
}
.jrb-foot-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.jrb-foot-bottom__copy {
  color: var(--jc-muted);
  font-size: 0.85rem;
  margin: 0;
}
.jrb-foot-bottom__links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.jrb-foot-bottom__links a {
  color: var(--jc-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.jrb-foot-bottom__links a:hover {
  color: var(--jc-gold-text) !important;
}
.jrb-foot-bottom__links span {
  color: rgba(184, 182, 193, 0.4);
}
.jrb-foot-top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(207, 165, 15, 0.6);
  background: transparent;
  color: var(--jc-gold-text);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.jrb-foot-top:hover {
  background: var(--jc-gold);
  color: var(--jc-gold-ink) !important;
  transform: translateY(-2px);
}

/* ---------- 8. RESPONSIVE ---------- */

@media (max-width: 991.98px) {
  .jrb-foot-news__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .jrb-foot-news__bg {
    width: 100%;
    opacity: 0.35;
    background-image:
      linear-gradient(180deg, var(--jc-surface) 0%, rgba(23, 23, 32, 0.6) 100%),
      url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=1200&h=600&fit=crop&q=70");
  }
  html[data-theme="light"] .jrb-foot-news__bg {
    background-image:
      linear-gradient(180deg, var(--jc-surface) 0%, rgba(255, 255, 255, 0.7) 100%),
      url("https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=1200&h=600&fit=crop&q=70");
    opacity: 0.4;
  }
  /* Mobile navbar: keep links comfortable when the collapse opens */
  .navbar .nav-link {
    padding: 0.65rem 0.5rem !important;
  }
  .jrb-foot-bottom__inner {
    justify-content: center;
    text-align: center;
  }
}

/* 576–767px: keep the single row, but guarantee the button keeps the
   input's height if the row ever wraps. */
@media (min-width: 576px) and (max-width: 767.98px) {
  .jrb-foot-news__btn {
    min-height: 54px;
  }
}

/* <=575px: stacked, with EQUAL control heights.
   (The old flex-basis:260px turned into a 260px HEIGHT once the form became a
   column — that was the "oversized and uneven" mobile newsletter.) */
@media (max-width: 575.98px) {
  .jrb-foot-news__form {
    flex-direction: column;
    gap: 0.6rem;
  }
  .jrb-foot-news__field {
    flex: 0 0 auto;      /* cancel the 260px block-axis basis */
    width: 100%;
    min-height: 54px;
  }
  .jrb-foot-news__btn {
    width: 100%;
    min-height: 54px;    /* same height as the input */
  }
  .top-bar {
    font-size: 0.8rem;
  }
}

/* ---------- 13. PHOTO HERO STAYS DARK IN LIGHT THEME ----------
   foundation.css paints h1/p/a with light-surface colours under
   html[data-theme="light"] (specificity beats the hero's own class rules).
   The hero is a dark photo overlay in both themes, so re-point the
   foundation tokens locally: every foundation rule inside the hero then
   resolves against these inherited values and the typography stays light. */
html[data-theme="light"] .jrb-hero {
  --jrb-ui-text: #f5f3ee;
  --jrb-ui-text-muted: rgba(224, 224, 229, 0.85);
}

/* ---------- 14. LIGHT-THEME NAV TOGGLER ----------
   The legacy toggler keeps its white border and Bootstrap's white-stroke
   icon (built for the original dark navbar) — both vanish on the light
   bar. Re-state the border and serve a dark icon only under light. */
html[data-theme="light"] .navbar-toggler {
  border-color: rgba(32, 32, 42, 0.32);
}
html[data-theme="light"] .navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2320202A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
