/* ═══════════════════════════════════════════════════
   Booky Joint – Shared Stylesheet
   All pages link to this file.
   ═══════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --bg:           #c9c28a;
  --card-bg:      #f5f2e8;
  --card-border:  #4a4a3a;
  --navy:         #1e2a3a;
  --text:         #2a2a1e;
  --text-light:   #555540;
  --link:         #1a4a7a;
  --link-hover:   #c0392b;
  --nav-bg:       #3a3a2a;
  --nav-hover:    #5a5a3a;
  --font-display: 'Fredericka the Great', serif;
  --font-brand:   'Chelsea Market', cursive;
  --font-body:    'Open Sans', sans-serif;
}

/* ── Image Carousel ───────────────────────────────────── */
.carousel-heading {
  max-width: 760px;
  margin: 24px auto 12px;
  text-align: center;
  color: var(--text);
}

.carousel-heading h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.carousel-heading p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.carousel-container {
  width: 100%;
  max-width: 760px;
  height: 360px;
  margin: 24px auto;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
}

.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  cursor: pointer;
  image-orientation: from-image;
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  overflow: auto;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  position: relative;
}

.modal-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  image-orientation: from-image;
  display: block;
  border: 4px solid rgba(255,255,255,0.85);
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255,255,255,0.25);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 210;
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(255,255,255,0.25);
}

.modal-prev {
  left: 24px;
}

.modal-next {
  right: 24px;
}

/* Navigation buttons only for the carousel */
.carousel-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  border-radius: 50%;
}

#prevBtn { left: 12px; }
#nextBtn { right: 12px; }

.carousel-container button:hover {
  background: rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  .carousel-container button {
    padding: 10px 12px;
    font-size: 18px;
  }
}


/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }

/* ── Site wrapper ───────────────────────────────────── */
.site-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 12px 0;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 0;
}

/* ── Single full-width banner (current) ─────────────────
   Using a single banner image file for the full header.
──────────────────────────────────────────────────────── */
.header-full {
  width: 100%;
  height: clamp(180px, 24vh, 240px);
  background-image: url('images/Banner/Logo_BlueWhite_Website_With_Mountains.webp');
  background-color: var(--navy);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ── Navigation ─────────────────────────────────────── */
nav.main-nav {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--nav-bg);
  border: none;
  border-bottom: 3px solid var(--card-border);
  margin-bottom: 16px;
  box-sizing: border-box;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 12px;
}

nav.main-nav ul li a {
  display: block;
  padding: 12px 18px;
  color: #e8e0cc;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

nav.main-nav ul li:last-child a { border-right: none; }

nav.main-nav ul li a:hover,
nav.main-nav ul li a.active {
  background: var(--nav-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 10px;
}

.card h3 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

/* ── Welcome card — two columns ────────────────────── */
.welcome-card {
  padding: 16px 18px;
}

.welcome-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.welcome-hours {
  flex: 0 0 200px;
  padding-right: 12px;
  border-right: 1px solid var(--card-border);
}

.welcome-hours h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
}

.welcome-hours table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.welcome-hours table td:first-child {
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
  color: var(--text);
}

.welcome-hours table td:last-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.welcome-hours .hours-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-light);
  text-align: center;
}

.welcome-text {
  flex: 1;
}

.welcome-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.welcome-text p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  margin: 8px 0;
}

.welcome-text blockquote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-light);
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--card-border);
}

.welcome-text cite {
  display: block;
  font-style: normal;
  margin-top: 6px;
  font-size: 0.8rem;
}

/* ── Single column layout ───────────────────────────────
   To restore two columns later, change to:
     .content-area { display: flex; gap: 14px; align-items: flex-start; }
     .col-left     { flex: 1 1 0; min-width: 0; }
     .col-right    { flex: 0 0 240px; }
──────────────────────────────────────────────────────── */
.content-area { display: block; }
.col-left, .col-right { width: 100%; }

/* ── We Carry + Hours two-up row ────────────────────────
   These two cards sit side by side, stacking on mobile.
──────────────────────────────────────────────────────── */
.info-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 0;
}

.info-col {
  flex: 1 1 0;
  min-width: 0;
}

/* ── We Carry list ──────────────────────────────────────── */
.carry-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.carry-list li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  text-align: center;
}

.carry-list li + li::before {
  content: '';
}

/* ── Hours table — centered ─────────────────────────────── */
.hours-card h2 {
  text-align: center;
}

.hours-card table {
  margin: 10px auto 0;
}

.hours-note {
  text-align: center;
}

@media (max-width: 520px) {
  .info-row { flex-direction: column; }
}

/* ── Page intro (full-width heading card) ───────────── */
.page-intro {
  margin-bottom: 14px;
}

.page-intro h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.page-intro p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light);
}

/* ── Photo grid ─────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--card-border);
  display: block;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #b8b07a;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #6a6040;
  font-style: italic;
  text-align: center;
  padding: 8px;
}

/* ── Pick / feature items ───────────────────────────── */
.pick-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #b0a878;
}

.pick-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pick-item img {
  width: 70px;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
}

.pick-item .pick-info h4 {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.pick-item .pick-info p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

.pick-item .pick-info .staff-note {
  margin-top: 5px;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text);
}

/* ── "Remember" box ─────────────────────────────────── */
.remember-card {
  background: var(--card-bg);
  border: 2px dashed var(--navy);
  padding: 14px 18px;
  text-align: center;
  margin-bottom: 14px;
}

.remember-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.remember-card p {
  font-size: 0.83rem;
  line-height: 1.6;
}

/* ── Sidebar: hours ─────────────────────────────────── */
.hours-card table {
  width: 100%;
  font-size: 0.84rem;
  border-collapse: collapse;
  margin-top: 8px;
}

.hours-card table td:first-child {
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
  width: 140px;
}

.hours-card table td:last-child {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  width: 140px;
}

.hours-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Sidebar: contact/location ──────────────────────── */
.contact-card address {
  text-align: center;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.8;
}

.contact-card h3 {
  text-align: center;
}

/* ── Divider ────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px dashed #b0a878;
  margin: 12px 0;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: #c8c8b8;
  margin-top: 20px;
  padding: 24px 20px;
  border-top: 3px solid var(--card-border);
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

footer h4 {
  font-family: var(--font-brand);
  font-size: 0.9rem;
  color: #e8e0c8;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 4px;
}

footer p, footer address {
  font-size: 0.8rem;
  line-height: 1.7;
  font-style: normal;
  color: #a8a898;
}

.hours-seasonal {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 4px;
  color: #888878;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 760px) {
  .content-area    { flex-direction: column; }
  .col-right       { flex: 1 1 auto; width: 100%; }
  .footer-inner    { grid-template-columns: 1fr; gap: 16px; }
  /* .header-logo width rule goes here if split header is re-enabled */
  nav.main-nav ul li a { padding: 10px 12px; font-size: 0.82rem; }
  .photo-grid      { grid-template-columns: 1fr; }
  .header-full     { background-image: url('images/Banner/Logo_BlueWhite_Website.webp'); }
  
  .welcome-row {
    flex-direction: column;
    gap: 12px;
  }

  .welcome-hours {
    flex: 1 1 auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .welcome-text {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 16px 0;
  }

  .header-full {
    min-height: 220px;
    background-size: 60% auto;
  }

  nav.main-nav {
    border: none;
  }

  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  nav.main-nav ul li a {
    text-align: center;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  nav.main-nav ul li:last-child a {
    border-bottom: none;
  }

  .welcome-row {
    flex-direction: column;
  }

  .welcome-hours {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
  }
}
