@charset "UTF-8";
/* CSS Document */
/* =========================================================
   SmorgyMusic - mobile.css (mobile-first, progressive)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root{
  --max: 1100px;
  --pad: clamp(12px, 3.5vw, 24px);

  --bg: #0f172a;            /* header/footer background */
  --bg-2: #0b1224;          /* drawer nav background */
  --fg: #ffffff;            /* on dark */
  --text: #0b1224;          /* body text */
  --muted: #6b7280;

  --link: #2563eb;
  --link-hover: #1d4ed8;

  --card: #ffffff;
  --border: #e5e7eb;

  --h1: clamp(26px, 6vw, 40px);
  --h2: clamp(22px, 4.5vw, 28px);
  --h3: clamp(20px, 3.6vw, 24px);
  --base: clamp(16px, 2.6vw, 18px);
  --radius: 14px;
}

/* ---------- Base / reset ---------- */
*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: var(--base);
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

img, picture, video, canvas, svg{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ color: var(--link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 3px solid rgba(37,99,235,.45);
  outline-offset: 2px;
}

/* ---------- Headings (unified) ---------- */
h1, h2, h3{
  line-height: 1.25;
  margin: 0 0 .5em;
}
h1{ font-size: var(--h1); }
h2{ font-size: var(--h2); }
h3{ font-size: var(--h3); }

/* Consistent page title look across the site (let the H tag control size) */
h1.page-title, h2.page-title, h3.page-title{
  font-weight: 700;
  text-align: center;
  color: #0f172a;
  margin: 0 0 24px;
}
/* No forced font-size, no !important */

/* ---------- Common layout helpers ---------- */
.wrapper,
.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}
.section{ padding: clamp(16px, 4vw, 32px) 0; }
.section p, .section li{ max-width: 70ch; }

/* =========================================================
   Banner (unified)
   ========================================================= */
.site-banner{
  background: var(--bg);
  color: var(--fg);
  padding-block: 16px;         /* tighter + consistent across pages */
  text-align: center;
  border-bottom: 4px solid #111827;
  overflow: hidden;            /* guard vs. margin-collapsing */
}
/* Remove the extra vertical padding contributed by .wrap inside banner */
.site-banner > .wrap{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.site-banner .tagline{
  margin-top: 8px;
  font-size: 15px;
  color: #cfd7ef;
}

/* Critical: let the tag (h1/h2/h3) decide the font-size and kill stray margins */
.site-banner h1,
.site-banner h2,
.site-banner h3{
  margin: 0 !important;        /* belt-and-suspenders */
  font-weight: 600;
  font-size: inherit !important; /* beat any page-level size rules */
}

/* =========================================================
   Navigation + Locations dropdown (shared)
   ========================================================= */
.main-nav{ background:#111827; border-bottom:1px solid #e6e6e6; }
.smg-nav{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; padding:10px 16px; }
.smg-link{
  display:inline-block; padding:8px 10px; border-radius:6px;
  color:#e5e7eb; text-decoration:none; background:transparent;
  transition: background .2s ease, color .2s ease;
}
.smg-link:hover,
.smg-link[aria-current="page"]{ background:#2a3348; color:#ffffff; }

.smg-item{ position:relative; display:inline-block; }
.smg-menu{
  position:absolute; top:100%; left:0;
  margin-top:0;
  min-width:220px;
  background:#0f172a; border:1px solid #2a3348; border-radius:8px;
  box-shadow:0 10px 20px rgba(0,0,0,.25); padding:6px;
  display:none; visibility:hidden; opacity:0; pointer-events:none;
  transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  z-index:1000;
}
.smg-menu a{
  display:block; padding:8px 10px; border-radius:6px; color:#e5e7eb; text-decoration:none;
}
.smg-menu a:hover{ background:#2a3348; color:#fff; }

/* Show on hover OR when JS toggles .smg-open */
.smg-item:hover > .smg-menu,
.smg-item:focus-within > .smg-menu,
.smg-item.smg-open > .smg-menu{
  display:block; visibility:visible; opacity:1; pointer-events:auto;
  transform:translateY(0); transition-delay:0s;
}
@media (max-width: 640px){
  .smg-menu{ position:absolute; width:max(220px, 60vw); }
}
/* ===== Bottom nav visual (reuses main-nav look) ===== */
.bottom-nav { border-top: 1px solid #e6e6e6; }

/* ===== Drop-up behavior (menu opens upward) ===== */
.smg-item.dropup .smg-menu{
  top: auto;              /* disable top placement */
  bottom: 100%;           /* anchor above the toggle */
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(-6px); /* initial offset upward */
}

/* keep same show/hide transitions */
.smg-item.dropup:hover > .smg-menu,
.smg-item.dropup:focus-within > .smg-menu,
.smg-item.dropup.smg-open > .smg-menu{
  display:block; visibility:visible; opacity:1; pointer-events:auto;
  transform:translateY(0);
}

/* On very narrow screens, keep width sensible for the drop-up too */
@media (max-width: 640px){
  .smg-item.dropup .smg-menu{ width:max(220px, 60vw); }
}

/* =========================================================
   Cards / common content blocks
   ========================================================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Some pages use .page-content / .content-card */
.page-content,
.content-card{
  background:#f7f9fc;
  border:1px solid #dfe6f3;
  border-radius:8px;
  padding:16px;
  color:#222;
  font-size:16px;
}
.page-content a{ color:#0b5bd3; text-decoration:none; }
.page-content a:hover{ text-decoration:underline; }

/* =========================================================
   Buttons / CTAs
   ========================================================= */
.button, button, [type="submit"]{
  display: inline-block;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.button--light{
  background: #fff; color:#111827; border:1px solid var(--border);
}

/* =========================================================
   Lists and grids
   ========================================================= */
.list-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 700px){
  .list-grid{ grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Tables (mobile scroll)
   ========================================================= */
.table-wrap{ overflow-x: auto; }
table{ width: 100%; border-collapse: collapse; }
td, th{ padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }

/* =========================================================
   Hero / Rotating Gallery (generic)
   ========================================================= */
.gallery{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0;
}
.gallery img, .gallery picture, .gallery video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery > *{ position: absolute; inset: 0; }
@media (max-width: 420px){
  .gallery{ aspect-ratio: 4/5; }
}

/* =========================================================
   Content helpers
   ========================================================= */
.lede{ font-size: clamp(18px, 3.8vw, 22px); color: #111827; }
.muted{ color: var(--muted); }

.hidden-mobile{ display: none; }
.only-mobile{ display: block; }
@media (min-width: 700px){
  .hidden-mobile{ display: initial; }
  .only-mobile{ display: none; }
}

/* =========================================================
   Forms
   ========================================================= */
input, select, textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111827;
}
label{ display: block; font-weight: 600; margin: 12px 0 6px; }

/* =========================================================
   Footer + Social
   ========================================================= */
.site-footer{
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner{
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 700px){
  .footer-inner{ grid-template-columns: 1fr auto; }
}

.social{ display: flex; gap: 10px; flex-wrap: wrap; }
.social a{
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fg); text-decoration: none; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
}
.social a:hover{ background: rgba(255,255,255,.06); text-decoration: none; }
.social img{
  width: 22px; height: 22px; object-fit: contain; display: inline-block;
}

/* =========================================================
   Nice-to-haves: spacing & media tweaks
   ========================================================= */
figure{ margin: 0; }
hr{ border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ===== Footer (centered row, no wrapping) ===== */
.site-footer {
  background-color: #0f172a;
  border-top: 3px solid #111827;
  padding: 24px 0;
}
.footer-inner {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  text-align: center;
  width: 100%;
}
.footer-inner a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.footer-inner img {
  width: 36px;
  height: 36px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-inner a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}
@media (max-width: 480px) {
  .footer-inner { gap: 16px; }
  .footer-inner img { width: 32px; height: 32px; }
}

/* =========================================================
   Banner Title – optional id-based helpers
   ========================================================= */
#bannerTitle{
  margin: 0;                 /* no surprise top margin */
  line-height: 1.25;
  font-weight: 700;
}
#bannerTitle:is(h1){ font-size: var(--h1) !important; }
#bannerTitle:is(h2){ font-size: var(--h2) !important; }
#bannerTitle:is(h3){ font-size: var(--h3) !important; }

/* =========================================================
   Index page adjustments: center and resize musician heading
   ========================================================= */
.card.content-section h3 {
  text-align: center;
  font-size: clamp(16px, 3.2vw, 20px);
  margin-bottom: 8px;
}
.card.content-section p {
  text-align: center;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Smorgy section styling (shared across pages)
   ========================================================= */
.smorgy-section h3,
.smorgy-section h2 {
  text-align: center;
  font-size: clamp(16px, 3.2vw, 20px);
  font-weight: 700;
  margin: 0 0 8px;
}
.smorgy-section p {
  text-align: center;
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Smorgy Section (used across location pages)
   ========================================================= */
.smorgy-section {
  background: #f7f9fc;
  border: 1px solid #dfe6f3;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-top: 32px;
}
.smorgy-section h3 {
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
  margin-bottom: 8px;
}
.smorgy-section p {
  max-width: 75ch;
  margin: 0 auto;
}

/* ===== Consistency Sweep — spacing, cards, reviews, nav ===== */

/* 1) Uniform section rhythm (top/bottom spacing between blocks) */
.section,
.wrap > section { 
  padding-block: clamp(16px, 3.5vw, 28px);
}

/* 2) Card system */
.card {
  background: #f7f9fc;
  border: 1px solid #dfe6f3;
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 14px; }

/* Optional tighter card when needed */
.card--tight { padding: 12px; }

/* 3) Page content “blurb” consistency */
.page-content.card { text-align: center; }
.page-content.card p {
  max-width: 75ch;
  margin-left: auto; margin-right: auto;
}

/* 4) Reviews list */
.reviews { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}
.review {
  background: #f7f9fc;
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.review .stars { 
  color: #f59e0b; 
  font-size: 16px; 
  margin-bottom: 6px; 
}
.review .quote { 
  margin: 0 0 8px; 
  line-height: 1.55;
}
.review .byline { 
  color: #666; 
  font-size: 14px; 
}

/* 5) Sidebar photo/caption */
.sidebar-photo img { 
  max-width: 100%; 
  height: auto; 
  border-radius: 8px; 
  border: 1px solid #e2e8f0; 
}
.sidebar-photo .caption { 
  color: #666; 
  font-size: 14px; 
  margin-top: 8px; 
  text-align: center; 
}

/* 6) Bottom navigation breathing room */
.bottom-nav { 
  margin-top: 16px; 
}

/* 7) Banner tagline readability */
.site-banner .tagline{
  margin-top: 8px;
  font-size: 15px;
  color: #cfd7ef;
}

/* 8) Utilities */
.stack-24 { margin-top: 24px; }
.stack-16 { margin-top: 16px; }

/* 9) Shows page: ensure space under calendar before next card */
.calendar-wrap { 
  margin-bottom: 16px; 
}

/* Reviews Page: space between intro blurb and review list */
.card.content-section { margin-bottom: 0; }
.card.content-section + .columns,
.card.content-section + .reviews,
.card.content-section + ul.reviews {
  margin-top: 24px !important;
}
/* =========================================================
   Smorgy Info Block (shared across pages: Contact, Shows, Music, etc.)
   ========================================================= */
.smg-info-block {
  /* the .card + .content-section styles handle visuals;
     this keeps spacing consistent and easy to reuse */
  background: #f7f9fc;
  border: 1px solid #dfe6f3;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-top: 24px;
}

.smg-info-title {
  text-align: center;
  margin: 12px 0 16px;
  color: #0f172a;
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
}

.smg-info-text {
  text-align: center;
  max-width: 75ch;
  margin: 0 auto;
  font-size: clamp(14px, 2.4vw, 16px);
  font-weight: 400;
  color: #333;
  line-height: 1.55;
}
