/* =============================================
   PANOCHE INN — CUSTOM STYLES (2026 WESTERN REFRESH)
   Fonts: Rye (headings) + Lato (body)
   Palette: Burnt orange, deep brown, warm tan, saddle red
   ============================================= */

/* --- Root Variables --- */
:root {
  --pine-black:     #0C0906;
  --saddle-dark:    #181008;
  --surface:        #1E140C;
  --surface-2:      #271A10;
  --surface-3:      #312011;
  --burnt-orange:   #C8621A;
  --rust:           #A04515;
  --saddle-brown:   #8B4513;
  --amber-gold:     #C9A84C;
  --warm-tan:       #D4B896;
  --cream:          #F0E0C8;
  --deep-red:       #7A1C0C;
  --border-subtle:  rgba(200, 98, 26, 0.22);
  --border-mid:     rgba(200, 98, 26, 0.4);
  --text-body:      #DDD0BC;
  --text-muted-warm:#9E8060;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--pine-black);
  background-image:
    radial-gradient(ellipse at top left, rgba(139,69,19,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(120,28,12,0.07) 0%, transparent 55%);
  color: var(--text-body);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rye', Georgia, serif;
  font-weight: 400;          /* Rye only has regular weight */
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.25;
}

.lead { font-size: 1.12rem; font-weight: 400; color: var(--text-body); }

/* --- Section Titles & Dividers --- */
.section-title {
  font-family: 'Rye', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.section-title::after { display: none; } /* suppress legacy ::after */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 3rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--burnt-orange));
}

.section-divider::after {
  background: linear-gradient(90deg, var(--burnt-orange), transparent);
}

.section-divider i {
  color: var(--amber-gold);
  font-size: 1rem;
}

/* Legacy fallback for plain h2 inside sections */
section > .container > h2,
.container > h2 {
  font-family: 'Rye', Georgia, serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

section > .container > h2::after,
.container > h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  background: var(--burnt-orange);
  margin: 12px auto 2rem;
  border-radius: 2px;
}

/* --- Site Alert Bar --- */
.site-alert-bar {
  background: linear-gradient(90deg, #150C04, #2A1500, #150C04);
  border-bottom: 1px solid rgba(201, 168, 76, 0.30);
  font-family: 'Lato', sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-gold);
  padding: 0.5rem 0;
}

.site-alert-bar i { color: var(--amber-gold); }

/* --- Navbar --- */
.navbar {
  background: rgba(10, 6, 2, 0.97) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
}

.navbar-brand img { height: 42px; }

.navbar-dark .navbar-nav .nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #BBA898 !important;
  padding: 0.75rem 1.1rem;
  transition: color 0.25s ease;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
  background: var(--burnt-orange);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover { color: var(--warm-tan) !important; }
.navbar-dark .navbar-nav .nav-link:hover::after { transform: scaleX(1); }

/* --- Hero --- */
.hero-section {
  position: relative;
  min-height: 88vh;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.50) 0%,
    rgba(10,5,0,0.28) 40%,
    rgba(10,5,0,0.72) 100%
  );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}

.hero-section h1 {
  font-family: 'Rye', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
  margin-bottom: 1rem;
}

.hero-section .hero-tagline {
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-gold);
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
  margin-bottom: 2.5rem;
}

/* --- Sections --- */
section { padding: 76px 0; }
.section-dark   { background-color: var(--surface); }
.section-darker { background-color: var(--pine-black); }

@media (max-width: 768px) {
  section { padding: 52px 0; }
  .hero-section { min-height: 65vh; background-attachment: scroll; }
  .hero-section h1 { font-size: 2.1rem; }
}

/* --- Cards --- */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  border-color: var(--border-mid);
}

.card-body { padding: 1.35rem 1.5rem; }

.card-title {
  font-family: 'Rye', Georgia, serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.card.border-warning { border-color: rgba(201, 168, 76, 0.40) !important; }
.card.border-info    { border-color: rgba(200, 98, 26, 0.35) !important; }
.card.border-primary { border-color: rgba(200, 98, 26, 0.28) !important; }
.card.border-secondary { border-color: var(--border-subtle) !important; }

/* --- Buttons --- */
.btn {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  border-radius: 5px;
  transition: all 0.25s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-outline-light {
  border: 1.5px solid rgba(240,224,200,0.7);
  color: var(--cream);
}

.btn-outline-light:hover {
  background: var(--burnt-orange);
  border-color: var(--burnt-orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200, 98, 26, 0.4);
}

.btn-info, .btn-outline-info:hover { box-shadow: 0 4px 12px rgba(200,98,26,0.25); }

/* --- Badges --- */
.badge {
  font-family: 'Lato', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38em 0.75em;
  border-radius: 4px;
}

.badge.bg-secondary {
  background-color: var(--surface-3) !important;
  color: var(--warm-tan);
  border: 1px solid var(--border-subtle);
}

/* --- Menu Styles --- */
.menu-category-title {
  font-family: 'Rye', Georgia, serif;
  font-size: 1.6rem;
  color: var(--cream);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.menu-item-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  height: 100%;
}

.menu-item-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-mid);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.menu-item-card img {
  height: 148px;
  object-fit: contain;
  padding: 0.75rem;
  background: var(--surface-3);
}

.menu-item-card .item-body { padding: 1rem 1.1rem 1.2rem; }

.menu-item-card .item-name {
  font-family: 'Rye', Georgia, serif;
  font-size: 0.95rem;
  color: var(--cream);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.menu-item-card .item-desc {
  font-size: 0.82rem;
  color: var(--text-muted-warm);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.menu-item-card .item-price {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--amber-gold);
  letter-spacing: 0.02em;
}

.menu-item-card .item-price-note {
  font-size: 0.72rem;
  color: var(--text-muted-warm);
}

.menu-item-card.featured { border-color: rgba(201,168,76,0.45); }

.sandwich-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
}

.sandwich-card h4 {
  font-family: 'Rye', Georgia, serif;
  font-size: 1.3rem;
  color: var(--cream);
}

.sandwich-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.sandwich-option-group p.label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 0.3rem;
}

.sandwich-option-group p.values {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* Currency converter bar */
.currency-bar {
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.currency-bar label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-tan);
  margin: 0;
  white-space: nowrap;
}

.currency-bar .currency-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.currency-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.38rem 0.9rem;
  border-radius: 5px;
  border: 1.5px solid var(--border-mid);
  background: transparent;
  color: var(--warm-tan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn:hover { border-color: var(--burnt-orange); color: var(--cream); }
.currency-btn.active {
  background: var(--burnt-orange);
  border-color: var(--burnt-orange);
  color: #fff;
}

.currency-rate-note {
  font-size: 0.75rem;
  color: var(--text-muted-warm);
  margin-left: auto;
}

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, var(--surface) 0%, var(--pine-black) 100%) !important;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
}

footer h2.h5 {
  font-family: 'Rye', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--warm-tan);
  margin-bottom: 1rem;
}

footer a { color: #9E8060; transition: color 0.2s; }
footer a:hover { color: var(--warm-tan); }

.social-links a {
  font-size: 1.4rem;
  margin-right: 0.8rem;
  color: var(--text-muted-warm);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.social-links a:hover { color: var(--warm-tan); transform: scale(1.15); }

/* --- Weather --- */
.weather-widget-container {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease;
}

.weather-widget-wrapper {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

/* --- Attribution Badge --- */
.attribution-badge {
  background: rgba(14, 9, 4, 0.90) !important;
  border: 1px solid var(--border-subtle) !important;
  backdrop-filter: blur(8px);
  font-size: 0.80rem;
  transition: all 0.3s ease;
}

.attribution-badge a { color: var(--text-muted-warm); text-decoration: none; }
.attribution-badge a:hover { color: var(--warm-tan); }
.attribution-badge:hover { animation: firework 1.5s ease-in-out infinite; }

/* --- Accessibility Widget --- */
.accessibility-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
}

.accessibility-widget-button {
  background: rgba(20, 12, 6, 0.92);
  border: 1.5px solid var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.accessibility-widget-button:hover {
  transform: scale(1.1);
  border-color: var(--burnt-orange);
  box-shadow: 0 6px 20px rgba(200,98,26,0.35);
}

.accessibility-widget-button img { width: 40px; height: 40px; }

.accessibility-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 16px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.accessibility-menu.show { display: block; }

.accessibility-menu h3 {
  font-family: 'Rye', Georgia, serif;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--warm-tan);
}

.accessibility-option {
  padding: 9px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-family: 'Lato', sans-serif;
}
.accessibility-option:hover { background: rgba(200,98,26,0.18); color: var(--warm-tan); }
.accessibility-option i { width: 20px; text-align: center; color: var(--burnt-orange); }

/* --- Safety Modal --- */
.safety-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.safety-modal {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  max-width: 500px;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 52px rgba(0,0,0,0.7);
  animation: modalFadeIn 0.4s ease;
}

/* --- Review Carousel --- */
#reviewsCarousel .card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.carousel-control-prev-icon,
.carousel-control-next-icon { filter: invert(70%) sepia(40%) saturate(400%) hue-rotate(10deg); }

/* --- Animations --- */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes firework {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(201,168,76,.7), 0 0 0 0 rgba(200,98,26,.7); }
  25%  { transform: scale(1.08); box-shadow: 0 0 22px 8px rgba(201,168,76,.5), 0 0 38px 14px rgba(200,98,26,.3); }
  50%  { transform: scale(1.14); box-shadow: 0 0 38px 14px rgba(200,98,26,.4), 0 0 56px 22px rgba(201,168,76,.2); }
  75%  { transform: scale(1.08); box-shadow: 0 0 22px 8px rgba(200,98,26,.5), 0 0 38px 14px rgba(201,168,76,.3); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(201,168,76,0), 0 0 0 0 rgba(200,98,26,0); }
}

/* --- Accessibility Modes --- */
.high-contrast body  { background: #000; color: #fff; }
.high-contrast .card { background: #000 !important; border: 2px solid #fff; }
.high-contrast .navbar { background: #000 !important; border-bottom: 2px solid #fff; }
.high-contrast .hero-section::before { background: rgba(0,0,0,0.92); }
.high-contrast .text-warning { color: #FFEB3B !important; }
.high-contrast .social-links a { color: #fff !important; }
.high-contrast .btn-outline-light { border-color: #fff; color: #fff; }
.high-contrast .accessibility-menu { background: #000; border: 2px solid #fff; }
.high-contrast .accessibility-option:hover { background: #fff; color: #000; }
.high-contrast .site-alert-bar { background: #000; border-bottom: 2px solid #fff; color: #fff; }

.large-text body  { font-size: 1.15rem; }
.large-text h1    { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.large-text h2    { font-size: 2.3rem; }
.large-text h3    { font-size: 1.9rem; }
.large-text .card-title { font-size: 1.3rem; }

.dyslexia-font,
.dyslexia-font h1,
.dyslexia-font h2,
.dyslexia-font h3,
.dyslexia-font h4 { font-family: 'Comic Sans MS', 'OpenDyslexic', sans-serif !important; }

.reduced-motion * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* --- Utility --- */
.text-rustic   { color: var(--burnt-orange) !important; }
.border-rustic { border-color: var(--burnt-orange) !important; }
.text-muted    { color: var(--text-muted-warm) !important; }

@media (max-width: 768px) {
  .currency-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .currency-rate-note { margin-left: 0; }
  .sandwich-options-grid { grid-template-columns: 1fr 1fr; }
  footer { padding: 2.5rem 0 1.5rem; }
}

/* ═══ PHOTO GALLERY GRID ═══ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 0;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10,5,0,0.88));
  color: var(--warm-tan);
  font-size: 0.78rem;
  padding: 1.5rem 0.8rem 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  line-height: 1.4;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-item.gallery-wide  { grid-column: span 2; }
.gallery-item.gallery-tall  { grid-row: span 2; }

/* ═══ MOBILE POLISH ═══ */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 8px;
  }
  .gallery-item.gallery-tall { grid-row: span 1; }
  .gallery-caption { opacity: 1; }
}

@media (max-width: 576px) {
  /* Navbar: shrink gaps */
  .navbar .gap-2 { gap: 0.35rem !important; }
  #langToggle, #highContrastToggle { padding: 0.3rem 0.5rem; font-size: 0.75rem; }

  /* Hero */
  .hero-section h1 { font-size: 1.8rem; }
  .hero-section .hero-tagline { font-size: 0.82rem; letter-spacing: 0.12em; }
  .hero-section .btn { font-size: 0.85rem; padding: 0.55rem 1.2rem; }

  /* Gallery collapses to 2 col */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 6px;
  }
  .gallery-item.gallery-wide { grid-column: span 2; }

  /* Hours table */
  table td { font-size: 0.84rem; }

  /* Currency bar stack */
  .currency-bar { flex-direction: column; gap: 0.6rem; }
  .currency-btns { width: 100%; justify-content: space-between; }
  .currency-btn { flex: 1; text-align: center; padding: 0.45rem 0.4rem; font-size: 0.78rem; }

  /* Card padding */
  .card-body { padding: 1rem; }

  /* Section titles */
  .section-title { font-size: 1.6rem; }
  section { padding: 44px 0; }

  /* Sandwich grid */
  .sandwich-options-grid { grid-template-columns: 1fr; }

  /* Maps iframe */
  iframe { height: 260px !important; }
}
