/* ============================================================
   CapeCodTheaters.com — Standardized Style Sheet
   Folder: assets/css/style.css
   Theme: Theater Red, Burgundy & Gold
   ============================================================ */

:root {
  --bg: #120207;
  --panel: #1d0b0b;
  --panel-2: #2a0207;
  --curtain: #4e000f;
  --curtain-bright: #7b0015;
  --gold: #ffd86b;
  --gold-soft: #ffea9a;
  --cream: #f8f3eb;
  --muted: #f3e1c2;
  --red: #c2212a;
  --red-dark: #9c141e;
  --border: rgba(255, 216, 107, 0.25);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #310610 0%, var(--bg) 42%, #080102 100%);
  color: var(--cream);
  line-height: 1.5;
}

a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

a:hover,
a:focus {
  color: var(--gold-soft);
  text-decoration: underline;
}

img { max-width: 100%; }

header {
  background: linear-gradient(to bottom, var(--curtain-bright) 0%, var(--curtain) 60%, #240008 100%);
  color: var(--gold-soft);
  text-align: center;
  padding: 20px 12px 18px;
  border-bottom: 3px solid #140005;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.site-tagline,
header p {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: #ffecc2;
}

.site-url { margin-top: 0.4rem; }

nav {
  background: rgba(78, 0, 15, 0.96);
  border-bottom: 2px solid #140005;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.96rem;
  line-height: 1;
  border: 1px solid transparent;
}

nav a:hover,
nav a:focus,
nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.22);
  border-color: var(--border);
  text-decoration: none;
}

nav a.nav-featured {
  background: linear-gradient(135deg, #ffeaa5, var(--gold));
  color: #3a0209;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(255, 216, 107, 0.18);
}

.container,
.page-content,
main {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

.container { padding: 1rem 0 2rem; }

.share-container { text-align: center; padding: 12px 0 4px; }

#share-btn,
.button,
.btn,
.buy-button,
.promo-button,
.ad-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-weight: 800;
  padding: 0.6rem 1rem;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
}

#share-btn:hover,
.button:hover,
.btn:hover,
.buy-button:hover,
.promo-button:hover,
.ad-button:hover {
  background: var(--red-dark);
  text-decoration: none;
}

.filter-bar {
  background: rgba(42, 2, 7, 0.92);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

#town-search-container,
#specialty-search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#town-search-container label,
#specialty-search-container label {
  color: var(--gold);
  font-weight: 800;
}

#town-select,
#specialty-select,
select,
input,
textarea {
  background: #1d0b0b;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold-soft);
  font: inherit;
  padding: 0.45rem 0.55rem;
}

textarea { min-height: 120px; }

.letters-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0;
}

.letters-index a {
  background: #3b0910;
  border: 1px solid rgba(255, 216, 107, 0.18);
  border-radius: 8px;
  color: var(--gold-soft);
  min-width: 36px;
  padding: 0.45rem 0.6rem;
  text-align: center;
}

.letters-index a:hover { background: #5b0f19; text-decoration: none; }

.letter-section { margin-top: 2rem; scroll-margin-top: 16px; }

.letter-section h2 {
  border-bottom: 2px solid var(--gold);
  color: var(--gold);
  margin: 0 0 0.65rem;
  padding-bottom: 0.25rem;
}

ul.theaters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.theaters-list li {
  background: rgba(29, 11, 11, 0.96);
  border: 1px solid rgba(255, 216, 107, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  margin: 0.6rem 0;
  padding: 0.85rem;
}

.name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

ul.theaters-list li a.name {
  color: var(--gold-soft);
  font-size: 1.08rem;
  font-weight: 900;
}

ul.theaters-list li a.address,
ul.theaters-list li a.phone,
ul.theaters-list li .address,
ul.theaters-list li .phone {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.22rem;
}

.featured-badge,
ul.theaters-list li a.featured-badge {
  align-items: center;
  background: rgba(255, 216, 107, 0.12);
  border: 1px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: var(--gold) !important;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 6px;
  line-height: 1.1;
  padding: 4px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.featured-badge:hover { background: rgba(255, 216, 107, 0.22); text-decoration: none; }

.category-heading {
  color: var(--gold);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* Promo / ad cards */
.letter-promo-slot { margin: 14px 0 22px; }

.promo-card,
.ad-card {
  align-items: center;
  background: #1a0508;
  border: 1px solid #5e101a;
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  max-width: 440px;
  padding: 10px;
}

.promo-image,
.ad-image {
  border-radius: 10px;
  flex: 0 0 auto;
  height: 82px;
  object-fit: cover;
  width: 82px;
}

.promo-title,
.ad-title { color: var(--gold-soft); font-size: 1rem; margin: 0 0 3px; }
.promo-text,
.ad-text { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.promo-button,
.ad-button { font-size: 0.82rem; padding: 0.4rem 0.72rem; }

.promo-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(244, 208, 111, 0.8);
  border-radius: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
}

.promo-heading {
  color: #f4d06f;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.promo-list { list-style: none; margin: 0; padding: 0; }
.promo-list li + li { margin-top: 0.4rem; }
.promo-description { font-size: 0.82rem; opacity: 0.9; }

/* Shop page */
.shop-container,
#shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  background: var(--panel);
  border: 1px solid rgba(255, 216, 107, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.85rem;
  text-align: center;
}

.product-card img {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
}

.product-card h3 { color: var(--gold-soft); font-size: 1rem; margin: 0.6rem 0 0.4rem; }
.product-card .price { color: var(--muted); font-size: 0.9rem; }
.product-card .buy-button { margin-top: auto; }

/* General pages / forms */
.page-card,
.content-card,
.form-card,
.intro-box {
  background: rgba(29, 11, 11, 0.94);
  border: 1px solid rgba(255, 216, 107, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1rem auto;
  padding: 1rem;
}

form { display: grid; gap: 0.85rem; }
label { color: var(--gold-soft); font-weight: 800; }
.form-row { display: grid; gap: 0.4rem; }

.site-footer {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.88rem;
  margin-top: 28px;
  padding: 16px 10px 18px;
  text-align: center;
}

.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--gold); }

.data-status {
  background: rgba(255, 216, 107, 0.07);
  border: 1px solid rgba(255, 216, 107, 0.2);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.75rem auto;
  padding: 0.5rem 0.8rem;
}

.data-error {
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 14px;
  color: #ffe6e6;
  margin: 0.9rem auto;
  padding: 0.85rem 1rem;
}

.data-error code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Featured page styles, scoped to <html class="featured-page"> */
html.featured-page body {
  background: #fbf6ed;
  color: #20110b;
}

html.featured-page .featured-header {
  background: linear-gradient(135deg, var(--curtain), var(--curtain-bright) 55%, #b8860b 100%);
  color: #fff;
  text-align: center;
  padding: 1.6rem 1rem 1.1rem;
}

html.featured-page .featured-header h1 { margin: 0 0 0.25rem; }
html.featured-page .featured-header p { color: #fff7df; max-width: 900px; margin: 0.25rem auto 0; }
html.featured-page .featured-header nav { background: rgba(0, 0, 0, 0.18); border-radius: 16px; border: 1px solid rgba(255,216,107,0.22); margin: 0.9rem auto 0; max-width: 980px; }

html.featured-page .featured-main {
  margin: 1.3rem auto 2.5rem;
  max-width: 1100px;
  padding: 0 1rem 2rem;
}

html.featured-page .intro-box,
html.featured-page .tier-section {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  color: #20110b;
  padding: 1rem;
}

html.featured-page .tier-section { margin-top: 1.25rem; scroll-margin-top: 16px; }
html.featured-page .tier-title { color: var(--curtain); margin: 0 0 0.35rem; }
html.featured-page .tier-subtitle { color: #6d5141; margin: 0 0 1rem; }

html.featured-page .featured-grid { display: grid; gap: 1rem; }
html.featured-page .featured-card {
  background: #fffaf1;
  border: 1px solid rgba(78,0,15,0.13);
  border-radius: 16px;
  display: flex;
  gap: 1rem;
  overflow: hidden;
}

html.featured-page .featured-image {
  background-color: #2a0207;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  flex: 0 0 240px;
  min-height: 180px;
  width: 240px;
}

html.featured-page .featured-body { padding: 1rem; }
html.featured-page .featured-name { color: var(--curtain); margin: 0 0 0.35rem; }
html.featured-page .featured-description { color: #3e2a20; }
html.featured-page .featured-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.6rem 0; }
html.featured-page .featured-tags span { background: rgba(78,0,15,0.10); border-radius: 999px; color: var(--curtain); font-weight: 800; padding: 0.28rem 0.6rem; }
html.featured-page .featured-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.65rem; }
html.featured-page .featured-links a { border: 1px solid rgba(78,0,15,0.16); border-radius: 999px; color: var(--curtain); font-weight: 900; padding: 0.45rem 0.9rem; }
html.featured-page .featured-links a:hover { background: rgba(255,216,107,0.22); text-decoration: none; }
html.featured-page .back-to-listings { margin-top: 1.3rem; text-align: center; }
html.featured-page .back-to-listings a { color: var(--curtain); font-weight: 900; }

@media (max-width: 720px) {
  nav { gap: 6px; }
  nav a { width: calc(50% - 8px); padding-inline: 0.45rem; }
  nav a.nav-featured { width: 100%; }
  .filter-bar { align-items: stretch; }
  #town-search-container,
  #specialty-search-container { width: 100%; }
  #town-select,
  #specialty-select { flex: 1; min-width: 0; }
  .promo-card,
  .ad-card { max-width: none; }
  html.featured-page .featured-card { flex-direction: column; }
  html.featured-page .featured-image { width: 100%; min-height: 190px; }
}


/* ===== Standard form/page helpers added during theater standardization ===== */
.page-card, .intro-box, .cta-box { box-sizing: border-box; }
.standard-form { max-width: 760px; margin: 1rem auto; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.standard-form label { display:block; font-weight: 800; margin: 0 0 0.25rem; color: #ffd86b; }
.standard-form input, .standard-form textarea, .standard-form select { width: 100%; padding: 0.72rem 0.78rem; border-radius: 12px; border: 1px solid rgba(255,216,107,.45); background: rgba(255,255,255,.94); color: #251010; font-size: 1rem; box-sizing: border-box; }
.standard-form textarea { min-height: 120px; resize: vertical; }
.required::after { content: " *"; color: #ffb1b1; font-weight: 900; }
.help, .tiny-note { font-size: .92rem; opacity: .9; }
.hidden { display: none !important; }
.form-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cta-button, .submit-button { display:inline-block; border: 0; border-radius: 999px; padding: .72rem 1.05rem; background:#c2212a; color:#fff !important; text-decoration:none; font-weight:900; cursor:pointer; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.cta-button:hover, .submit-button:hover { background:#9c141e; text-decoration:none; }
.featured-nav-link { background: rgba(255,216,107,.18); border: 1px solid rgba(255,216,107,.55); border-radius: 999px; padding: .35rem .75rem; }
.notice-box { background: rgba(0,0,0,.24); border: 1px solid rgba(255,216,107,.35); border-radius: 16px; padding: 1rem; margin: 1rem 0; }
.price-highlight { font-size: 1.35rem; color: #ffd86b; font-weight: 900; }
