/*
Theme Name: Copper Miner Saloon
Theme URI: https://copperminersaloon.com
Author: Copper Miner Saloon
Description: Custom one-page theme for the Copper Miner Saloon in Magna, Utah. Dark western saloon design with a polaroid photo wall and a slide-out Menu & Events sidebar. Phone, hours, story, food menu, and weekly events are all editable under Appearance → Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: copper-miner-saloon
Tags: one-column, custom-logo, dark
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: #0d0907;
  color: #e8d9bb;
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #b87333; color: #0d0907; }
a { color: #d4a574; text-decoration: none; }
a:hover { color: #f5e6c8; }

/* ---- TOP BAR — logo + simple tagline strip ---- */
.topbar {
  position: relative;
  text-align: center;
  padding: 28px 20px 16px;
  z-index: 5;
}
.brand { display: inline-block; }
.brand a { display: block; }
.brand-logo {
  display: block;
  max-height: 110px;
  max-width: 280px;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.wordmark {
  font-family: 'Rye', 'Times New Roman', serif;
  color: #d4a574;
  line-height: 1;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}
.wordmark .top    { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.wordmark .bottom { font-size: clamp(2.4rem, 6vw, 3.6rem); display: block; margin-top: 4px; }
.tagline {
  margin-top: 12px;
  color: #b8a07b;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.tagline span { color: #d4a574; }

/* ---- HERO — full-bleed cover photo ---- */
.hero {
  position: relative;
  height: 78vh; min-height: 480px; max-height: 720px;
  background-size: cover;
  background-position: center 65%;
  background-color: #1a0e08;
  overflow: hidden;
  margin-top: 8px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(13,9,7,0.4) 0%,
    rgba(13,9,7,0.15) 35%,
    rgba(13,9,7,0.55) 80%,
    rgba(13,9,7,1) 100%);
}
.hero-line {
  position: absolute; left: 0; right: 0; bottom: 48px;
  z-index: 3; text-align: center; padding: 0 20px;
}
.hero-line .lead {
  font-family: 'Rye', serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #f5e6c8;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}
.hero-line .sub {
  margin-top: 18px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #d4a574;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- HOURS STRIP — phone front and center ---- */
.hours-strip {
  background: #1a0e08;
  border-top: 1px solid rgba(212,165,116,0.2);
  border-bottom: 1px solid rgba(212,165,116,0.2);
  padding: 28px 20px;
  text-align: center;
}
.hours-strip .label {
  color: #b8a07b; letter-spacing: 4px; text-transform: uppercase;
  font-size: 0.85rem; margin-bottom: 10px;
}
.hours-strip .value {
  font-family: 'Rye', serif; color: #f5e6c8;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
}
.hours-strip .phone {
  margin-top: 18px;
  display: inline-block;
  font-family: 'Rye', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #d4a574;
  border-bottom: 1px solid rgba(212,165,116,0.4);
  padding-bottom: 4px;
  transition: color .15s ease, border-color .15s ease;
}
.hours-strip .phone:hover { color: #f5e6c8; border-color: #f5e6c8; }

/* ---- STORY — single column, voice-led ---- */
.story {
  max-width: 720px; margin: 0 auto;
  padding: 80px 24px;
}
.story p {
  font-size: 1.25rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #d8c7a8;
}
.story p:first-of-type::first-letter {
  font-family: 'Rye', serif;
  font-size: 4.5rem;
  color: #d4a574;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
}
.story .signoff {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: #d4a574;
  text-align: right;
  margin-top: 28px;
}

/* ---- DIVIDER ornament ---- */
.ornament {
  text-align: center;
  color: #b87333;
  margin: 0;
  letter-spacing: 12px;
  font-size: 1.2rem;
  padding-bottom: 12px;
}

/* ---- THE WALL — polaroid section ---- */
.wall {
  background: #14100c;
  padding: 80px 24px;
  border-top: 1px solid rgba(212,165,116,0.1);
  border-bottom: 1px solid rgba(212,165,116,0.1);
}
.wall-heading { text-align: center; margin-bottom: 12px; }
.wall-heading .label {
  font-family: 'Rye', serif;
  color: #d4a574;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.wall-heading p {
  color: #8a7a5e; max-width: 560px;
  margin: 12px auto 0; font-size: 1.05rem;
}
.polaroid-wall {
  position: relative;
  max-width: 1000px;
  height: 920px;
  margin: 0 auto;
  padding: 24px 12px 0;
}
.polaroid {
  position: absolute;
  background: #f5ebd8;
  padding: 12px;
  width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform .35s ease, box-shadow .35s ease, z-index 0s linear .35s;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.08) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7), 0 6px 12px rgba(0,0,0,0.4);
  z-index: 30;
  transition: transform .35s ease, box-shadow .35s ease, z-index 0s linear;
}
.polaroid img {
  width: 100%; height: 200px; object-fit: cover; display: block;
  background: #2a1a10;
}
.polaroid::before {
  content: ""; position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 64px; height: 20px;
  background: rgba(245,230,200,0.55);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.polaroid:nth-child(1)  { top: 1%;  left: 8%;  transform: rotate(-8deg); z-index: 4; }
.polaroid:nth-child(2)  { top: 9%;  left: 30%; transform: rotate(3deg);  z-index: 6; }
.polaroid:nth-child(3)  { top: 4%;  left: 52%; transform: rotate(-3deg); z-index: 5; }
.polaroid:nth-child(4)  { top: 8%;  left: 73%; transform: rotate(6deg);  z-index: 7; }
.polaroid:nth-child(5)  { top: 33%; left: 1%;  transform: rotate(5deg);  z-index: 6; }
.polaroid:nth-child(6)  { top: 38%; left: 23%; transform: rotate(-4deg); z-index: 8; }
.polaroid:nth-child(7)  { top: 32%; left: 45%; transform: rotate(7deg);  z-index: 7; }
.polaroid:nth-child(8)  { top: 37%; left: 67%; transform: rotate(-2deg); z-index: 9; }
.polaroid:nth-child(9)  { top: 62%; left: 8%;  transform: rotate(-6deg); z-index: 7; }
.polaroid:nth-child(10) { top: 58%; left: 30%; transform: rotate(4deg);  z-index: 9; }
.polaroid:nth-child(11) { top: 65%; left: 52%; transform: rotate(-3deg); z-index: 8; }
.polaroid:nth-child(12) { top: 61%; left: 74%; transform: rotate(5deg);  z-index: 6; }

/* ---- MINER BREAK — centered character divider ---- */
.miner-break {
  text-align: center;
  padding: 72px 24px;
}
.miner-break img {
  max-height: 320px;
  width: auto;
  max-width: 80%;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.55));
}
@media (max-width: 640px) {
  .miner-break { padding: 48px 20px; }
  .miner-break img { max-height: 230px; }
}

/* ---- CORNER LOGO — top-left of the black header ---- */
.corner-logo {
  position: absolute;
  top: 16px; left: 22px;
  height: 128px; width: auto;
  z-index: 4;
}
@media (max-width: 800px) {
  .corner-logo { height: 88px; top: 14px; left: 14px; }
}
@media (max-width: 640px) {
  .corner-logo { display: none; }
}

/* ---- FIND US — phone-only contact ---- */
.find {
  background: #1a0e08;
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(212,165,116,0.2);
}
.find h2 {
  font-family: 'Rye', serif;
  color: #d4a574;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 28px;
}
.find .addr {
  font-size: 1.2rem;
  color: #f5e6c8;
  margin-bottom: 14px;
  line-height: 1.5;
}
.find .phone-big {
  display: inline-block;
  font-family: 'Rye', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #d4a574;
  margin: 16px 0 24px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(212,165,116,0.4);
}
.find .phone-big:hover {
  color: #f5e6c8; border-color: #f5e6c8;
}
.map-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #b87333;
  color: #d4a574;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background .15s ease, color .15s ease;
}
.map-btn:hover {
  background: #b87333;
  color: #0d0907;
}

/* ---- FOOTER — minimal ---- */
.site-footer {
  padding: 36px 20px 24px;
  text-align: center;
  color: #6a5a44;
  font-size: 0.85rem;
  border-top: 1px solid rgba(212,165,116,0.1);
}
.site-footer .neon-credit {
  font-family: 'Caveat', cursive;
  color: #d4a574;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 800px) {
  .polaroid-wall {
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 16px;
    padding: 24px 8px 0;
  }
  .polaroid {
    position: static !important;
    width: 200px;
  }
  .polaroid img { height: 180px; }
  .polaroid:nth-child(odd)  { transform: rotate(-3deg) !important; }
  .polaroid:nth-child(even) { transform: rotate(3deg) !important; }
}
@media (max-width: 640px) {
  .hero { height: 65vh; }
  .polaroid { width: 165px; }
  .polaroid img { height: 150px; }
  .story p:first-of-type::first-letter { font-size: 3.5rem; }
  .tagline { font-size: 0.75rem; letter-spacing: 2px; }
}

/* =====================================================================
   MENU & EVENTS — slide-out sidebar
   ===================================================================== */
.menu-btn {
  position: absolute;
  top: 24px; right: 22px;
  font-family: 'Rye', serif;
  background: transparent;
  color: #d4a574;
  border: 1px solid rgba(212,165,116,0.5);
  padding: 9px 18px;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  cursor: pointer;
  text-transform: uppercase;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.menu-btn:hover {
  background: #b87333;
  color: #0d0907;
  border-color: #b87333;
}

/* mobile-only floating "Menu" pill — appears after the user scrolls past the hero */
.menu-fab {
  display: none;
  position: fixed;
  bottom: 18px; right: 18px;
  font-family: 'Rye', serif;
  background: #14100c;
  color: #d4a574;
  border: 1px solid #b87333;
  padding: 14px 26px;
  border-radius: 999px;
  letter-spacing: 2.5px;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  z-index: 80;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.menu-fab:hover {
  background: #b87333;
  color: #0d0907;
  border-color: #b87333;
}
@media (max-width: 800px) {
  .menu-fab { display: inline-block; }
  .menu-fab.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.sb-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,9,7,0.78);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  z-index: 90;
}
.sb-backdrop.open { opacity: 1; pointer-events: auto; }
.sb {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 92%; max-width: 480px;
  background: #14100c;
  border-left: 1px solid rgba(212,165,116,0.3);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  z-index: 100;
  display: flex; flex-direction: column;
  box-shadow: -16px 0 40px rgba(0,0,0,0.5);
}
.sb.open { transform: translateX(0); }
.sb-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(212,165,116,0.18);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.sb-head-label {
  font-family: 'Rye', serif;
  color: #d4a574;
  letter-spacing: 3px;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.sb-close {
  background: transparent;
  border: 1px solid rgba(212,165,116,0.3);
  color: #d4a574;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 14px;
  line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.sb-close:hover { background: #b87333; color: #0d0907; border-color: #b87333; }
.sb-tabs {
  display: flex;
  border-bottom: 1px solid rgba(212,165,116,0.18);
  flex-shrink: 0;
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #8a7a5e;
  font-family: 'Rye', serif;
  font-size: 0.95rem;
  padding: 16px 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tab-btn:hover { color: #d4a574; }
.tab-btn.active {
  color: #d4a574;
  background: rgba(184,115,51,0.08);
  border-bottom-color: #b87333;
}
.tab-panel {
  display: none;
  overflow-y: auto;
  flex: 1;
  padding: 28px 26px 40px;
}
.tab-panel.active { display: block; }
.tab-panel h3 {
  font-family: 'Rye', serif;
  color: #d4a574;
  font-size: 1.3rem;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212,165,116,0.3);
  letter-spacing: 2px;
}
.tab-panel h3:first-child { margin-top: 0; }

/* kitchen hours card */
.kitchen-hours {
  background: rgba(184,115,51,0.08);
  padding: 18px 20px 14px;
  border: 1px solid rgba(212,165,116,0.22);
  margin-bottom: 32px;
}
.kh-label {
  font-family: 'Rye', serif;
  color: #d4a574;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.kh-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #d8c7a8;
  font-size: 0.98rem;
}
.kh-row .day { color: #b8a07b; }
.kh-note {
  margin-top: 12px;
  font-style: italic;
  color: #8a7a5e;
  font-size: 0.88rem;
  border-top: 1px dashed rgba(212,165,116,0.22);
  padding-top: 10px;
}

/* menu item list */
.menu-list { list-style: none; margin: 0 0 14px; padding: 0; }
.menu-list li { padding: 13px 0; border-bottom: 1px solid rgba(212,165,116,0.12); }
.menu-item-name {
  font-family: 'Rye', serif;
  color: #d4a574;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.menu-price {
  font-family: 'Crimson Pro', serif;
  color: #f5e6c8;
  font-weight: 600;
  white-space: nowrap;
  font-size: 1.02rem;
}
.menu-item-desc {
  margin-top: 5px;
  color: #b8a07b;
  font-size: 0.92rem;
  line-height: 1.5;
}
.menu-item-desc em { font-style: italic; color: #d4a574; }
.section-note {
  font-style: italic;
  color: #8a7a5e;
  font-size: 0.88rem;
  margin: -4px 0 12px;
}
.wing-flavors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(212,165,116,0.12);
}
.flavor-block .flavor-label {
  font-family: 'Rye', serif;
  color: #d4a574;
  letter-spacing: 2px;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.flavor-block p {
  color: #b8a07b;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* calendar */
.cal-sub {
  color: #8a7a5e;
  font-style: italic;
  margin-top: -8px;
  margin-bottom: 22px;
}
.cal-pin {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid rgba(184,115,51,0.45);
  border-bottom: 1px solid rgba(184,115,51,0.45);
  margin: 4px 0 28px;
  background: rgba(184,115,51,0.08);
}
.cal-pin-headline {
  font-family: 'Rye', serif;
  color: #f5e6c8;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 1px;
}
.cal-pin-sub {
  margin-top: 10px;
  color: #d4a574;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-size: 0.98rem;
}
.cal-week { margin-bottom: 24px; }
.day-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(212,165,116,0.15);
  align-items: baseline;
}
.day-name {
  font-family: 'Rye', serif;
  color: #d4a574;
  font-size: 1.05rem;
  letter-spacing: 1px;
}
.day-events { color: #d8c7a8; font-size: 0.98rem; line-height: 1.5; }
.event-line { padding: 2px 0; }
.event-line.muted {
  color: #8a7a5e;
  font-style: italic;
  font-size: 0.92rem;
}
.cal-foot {
  color: #8a7a5e;
  font-style: italic;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}
.menu-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(212,165,116,0.3);
  color: #8a7a5e;
  font-style: italic;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.55;
}
.cal-foot a {
  color: #d4a574;
  border-bottom: 1px solid rgba(212,165,116,0.4);
}
.cal-foot a:hover { color: #f5e6c8; border-color: #f5e6c8; }

@media (max-width: 640px) {
  .menu-btn { position: static; display: inline-block; margin: 14px 0 0; padding: 14px 22px; font-size: 0.82rem; }
  .sb { width: 100%; max-width: none; }
  .day-row { grid-template-columns: 100px 1fr; gap: 12px; }
  .wing-flavors { grid-template-columns: 1fr; }
  .tab-btn { font-size: 0.85rem; letter-spacing: 2px; padding: 14px 8px; }
}

/* =====================================================================
   GENERIC INNER PAGES (blog posts / extra pages, if ever used)
   ===================================================================== */
.inner-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.inner-content h1, .inner-content h2, .inner-content h3 {
  font-family: 'Rye', serif;
  color: #d4a574;
  margin: 30px 0 14px;
  line-height: 1.2;
}
.inner-content h1 { font-size: 2.2rem; margin-top: 0; }
.inner-content p { margin-bottom: 18px; color: #d8c7a8; }
.inner-content ul, .inner-content ol { margin: 0 0 18px 24px; color: #d8c7a8; }
.inner-content img { max-width: 100%; height: auto; }

/* keep the WordPress admin bar from overlapping the fixed sidebar */
body.admin-bar .sb { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .sb { top: 46px; }
}
