/* ==========================================================================
   Apéro — shared stylesheet
   Palette is orange + light blue (set in the 2026-09-10, third feedback
   round — replaces the orange + yellow system from the same day's earlier
   rounds, which itself replaced the interim forest-green system from the
   original Melt Venture Pitch Deck_1.pdf build). See WEBSITE-BRAINSTORM.md,
   Topic 5, and the 2026-09-10 feedback log entries.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&display=swap');

:root {
  --forest: #e2531d;      /* Aperol orange — header/hero/footer background */
  --forest-dark: #a83a12; /* deep burnt orange — footer, hover states */
  --blue: #4fa8c9;        /* light-blue accent — links, filter/search accents */
  --blue-light: #dbf1fa;  /* pale-blue tinted section backgrounds, and the CTA button (matches "Ask Apéro") */
  --text: #3a2412;
  --text-muted: #8a6a4a;
  --white: #ffffff;
  --border: #ffe3b3;
  --sample-badge: #b45309;
  --sample-badge-bg: #fef3c7;
  --radius: 14px;
  --max-width: 1080px;
  --font-body: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

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

img { max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

header.site-header {
  background: var(--forest);
  color: var(--white);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.logo:hover { text-decoration: none; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--white);
  opacity: 0.88;
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  opacity: 1;
  text-decoration: underline;
}

/* mobile nav */
@media (max-width: 640px) {
  header.site-header .wrap { flex-direction: column; gap: 12px; align-items: flex-start; }
  nav.main-nav ul { flex-wrap: wrap; gap: 16px; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--forest);
  color: var(--white);
  padding: 56px 0 64px;
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-copy { flex: 1 1 420px; }

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 18px;
  max-width: 620px;
}

.hero .ask-apero {
  display: block;
  font-size: 2.9rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--blue-light);
  margin-top: 4px;
}

.hero p.promise {
  max-width: 560px;
  opacity: 0.9;
  margin: 0 0 28px;
}

.hero-graphic {
  flex: 0 0 auto;
  width: 260px;
  max-width: 46vw;
}

.hero-graphic svg { display: block; width: 100%; height: auto; }

@media (max-width: 640px) {
  .hero-flex { flex-direction: column-reverse; }
  .hero-graphic { width: 150px; max-width: 55vw; margin: 0 auto; }
}

.btn {
  display: inline-block;
  background: var(--blue-light);
  color: var(--text);
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover { background: #c3e9f8; text-decoration: none; }

.btn.secondary {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn.secondary:hover { background: rgba(255,255,255,0.1); }

/* ---------- Deal cards ---------- */

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--white);
  position: relative;
}

.deal-card[data-href] {
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.deal-card[data-href]:hover {
  box-shadow: 0 6px 18px rgba(226, 83, 29, 0.14);
  border-color: var(--forest);
}

.deal-card .venue-name a {
  position: relative;
  z-index: 1;
}

.deal-card .venue-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.deal-card .venue-name a { color: var(--text); }

.deal-card .meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.deal-card .offer {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--forest);
  margin: 0 0 4px;
}

.deal-card .ends {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.deal-card .venue-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--blue-light);
}

.deal-card .venue-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.deal-card .photo-note {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sample-badge {
  display: inline-block;
  background: var(--sample-badge-bg);
  color: var(--sample-badge);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Generic page sections ---------- */

main { padding: 48px 0 64px; }

section + section { margin-top: 44px; }

h2 { font-size: 1.6rem; margin: 0 0 6px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; }

.section-lede {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 20px;
}

.tagline-short {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
  margin: 4px 0 10px;
}

/* "Ask Apéro" called out inline in body copy (e.g. How It Works lede) — a
   readable mid-blue for white backgrounds, unlike the hero's pale variant
   which only works against the orange hero background. Same size as the
   text around it — color and weight do the differentiating. */
.ask-apero-inline {
  color: var(--blue);
  font-weight: 800;
  font-size: 1em;
}

/* Pairs with .ask-apero-inline on How It Works — the rest of that lede
   line is normally .section-lede's muted brown; this overrides it to the
   site's main dark (near-black) text color for just that phrase. */
.lede-black { color: var(--text); }

.band-blue {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.todo {
  display: block;
  background: #fef3c7;
  color: #92400e;
  border: 1px dashed #d97706;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 10px 0;
}

/* A real, designed disclosure/footnote for readers — distinct from .todo
   (an internal dev flag). Used for things visitors should genuinely know:
   sourcing notes, a caveat about a specific listing, etc. */
.note {
  display: block;
  background: var(--blue-light);
  color: var(--text-muted);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 10px 0;
}

/* Small "required" indicator for form fields — plain text, not a boxed
   dev-note style. */
.required-badge {
  display: inline;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 6px;
}

/* ---------- Search bar (Deals) ---------- */

.search-bar {
  margin: 20px 0 0;
  max-width: 420px;
}

.search-bar input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--text);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 168, 201, 0.25);
}

/* ---------- Filter bar (Browse Deals) ---------- */

.filter-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 18px 0 6px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}

.filter-bar button {
  background: var(--blue-light);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-bar button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* ---------- Range filters (Price / Distance, Deals) ---------- */

.range-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 0 8px;
}

.range-filter { flex: 1 1 220px; min-width: 200px; }

.range-filter .range-value {
  display: block;
  font-weight: 700;
  color: var(--forest);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.range-row { display: flex; align-items: center; gap: 10px; }

.range-row .range-endpoint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--forest);
}

/* ---------- Venue submission form (For Venues) ---------- */

.venue-form { max-width: 560px; }

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: var(--white);
}

.form-field textarea { min-height: 110px; resize: vertical; }

.form-field input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.form-success {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.form-success h2 { margin-top: 0; }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* ---------- Venue profile ---------- */

.venue-header {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}

.venue-header h1 { margin: 6px 0 10px; }

.venue-facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 14px;
  text-align: center;
  justify-items: center;
}

@media (max-width: 640px) {
  .venue-facts { grid-template-columns: 1fr; }
}

.venue-facts li { font-size: 0.92rem; }
.venue-facts .k { display: block; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }

/* Current happy hour and Hours run full-width (both can be multi-line
   lists); Address and Distance stay paired side by side beneath Current
   happy hour. */
.venue-facts .fact-full { grid-column: 1 / -1; }

.venue-facts .fact-list {
  list-style: disc;
  text-align: left;
  width: fit-content;
  max-width: 100%;
  margin: 6px auto 0;
  padding-left: 20px;
}

.venue-facts .fact-list li { margin-bottom: 4px; }
.venue-facts .fact-list li:last-child { margin-bottom: 0; }

/* Highlights whichever Current-happy-hour line applies today — set via a
   small script on each venue page matching each li's data-days against
   today's date, not hardcoded per page. */
.venue-facts .fact-list li.today-highlight { color: var(--forest); font-weight: 700; }

.venue-photo-block { margin: 0 0 28px; }

.venue-photo-block .venue-photo-img {
  display: block;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto;
}

.venue-photo-block .photo-note { text-align: center; }

.photo-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.85);
  padding: 44px 0 30px;
  margin-top: 60px;
}

footer.site-footer h2 {
  color: var(--white);
  font-size: 1.2rem;
}

footer.site-footer p { color: rgba(255,255,255,0.75); max-width: 560px; }

footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

footer .footer-links { list-style: none; margin: 0; padding: 0; }
footer .footer-links li { margin-bottom: 8px; }
footer .footer-links a { color: rgba(255,255,255,0.85); }

footer .fine-print {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
