:root {
  --navy: #24332B;
  --navy-light: #3C5446;
  --navy-dark: #141C17;
  --gold: #E8702A;
  --gold-light: #F29A5E;
  --gold-text: #B04A14;
  --cream: #FBF7F2;
  --surface: #F7F3EA;
  --border: #E5DCC8;
  --text: #24211B;
  --text-muted: #6B6255;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--cream); color: var(--text); line-height: 1.6; }
#app { max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--white); position: relative; box-shadow: 0 0 40px rgba(0,0,0,0.08); }

/* === COVER === */
.cover { position: relative; height: 100vh; max-height: 720px; overflow: hidden; }
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.cover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,23,0.45) 0%, rgba(20,28,23,0.2) 40%, rgba(20,28,23,0.7) 100%); }
.cover-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.cover-badge { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.cover-title { font-family: var(--serif); font-size: 64px; font-weight: 900; color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.3); letter-spacing: 2px; line-height: 1; margin-bottom: 12px; }
.cover-sub { font-size: 14px; color: rgba(255,255,255,0.9); max-width: 320px; line-height: 1.5; }
.cover-qr { margin-top: 24px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.15); padding: 8px 14px; border-radius: 10px; backdrop-filter: blur(4px); }
.cover-qr .qr-box { width: 36px; height: 36px; background: var(--white); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.cover-qr span { font-size: 11px; color: rgba(255,255,255,0.85); text-align: left; line-height: 1.3; }

/* === NAVBAR === */
.navbar { position: sticky; top: 0; background: var(--navy); z-index: 50; padding: 12px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-brand { background: none; border: none; color: var(--white); font-family: var(--serif); font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.12); }

/* === HOME === */
.home-container { padding: 0 0 120px; }
.home-intro { text-align: center; padding: 40px 24px 24px; }
.home-intro h2 { font-family: var(--serif); font-size: 28px; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.home-intro p { font-size: 14px; color: var(--text-muted); max-width: 360px; margin: 0 auto; }

.category-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.category-card { position: relative; height: 200px; overflow: hidden; cursor: pointer; }
.category-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.category-card:hover .category-img { transform: scale(1.05); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,28,23,0.75) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.category-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--white); }
.category-count { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 2px; }
.category-arrow { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--navy-dark); font-weight: 700; }

.cta-box { margin: 32px 24px 0; background: var(--navy); border-radius: 16px; padding: 28px; text-align: center; }
.cta-box h3 { font-family: var(--serif); font-size: 20px; color: var(--white); margin-bottom: 8px; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.cta-btn { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 8px; text-decoration: none; }

/* === CATEGORY LIST === */
.screen-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 49px; background: var(--white); z-index: 40; }
.screen-header .icon-btn { background: var(--surface); border: 1px solid var(--border); color: var(--navy); font-size: 14px; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.screen-header .screen-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); }
.screen-header .screen-sub { font-size: 12px; color: var(--text-muted); }

.list-container { padding: 16px 16px 40px; }
.business-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 16px; cursor: pointer; transition: all 0.2s; }
.business-card:hover, .business-card:active { border-color: var(--navy-light); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.business-card .card-banner { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.business-card .card-banner.photo { height: 170px; padding: 0; overflow: hidden; background: #e9e4da; }
.business-card .card-banner.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list-container.compact .card-banner.photo { height: 140px; }
.business-card .card-body { padding: 16px; }
.business-card .biz-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.business-card .biz-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.business-card .biz-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.business-card .biz-hours { font-size: 11px; color: var(--navy); background: #FBE7D9; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.business-card .member-tag { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.business-card .tap-hint { font-size: 12px; color: var(--navy); font-weight: 600; margin-top: 8px; }

/* === DETAIL === */
.detail-container { padding: 0 0 40px; }
.detail-hero { background: var(--navy); color: var(--white); padding: 32px 24px; text-align: center; }
.detail-hero .biz-icon-lg { font-size: 48px; margin-bottom: 12px; }
.detail-hero h2 { font-family: var(--serif); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.detail-hero .member-tag { display: inline-block; background: var(--gold); color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.detail-body { padding: 20px 24px; }
.detail-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.detail-section h3 { font-size: 12px; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-section p { font-size: 14px; color: var(--text); }
.detail-info-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-info-row:last-child { border-bottom: none; }
.detail-info-row .info-icon { font-size: 16px; width: 22px; flex-shrink: 0; text-align: center; }
.detail-info-row .info-text { font-size: 14px; color: var(--text); }
.detail-info-row a { color: var(--navy); font-weight: 600; text-decoration: none; }
.detail-actions { display: flex; gap: 10px; margin-top: 6px; }
.detail-actions a, .detail-actions button { flex: 1; text-align: center; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; }
.detail-actions .call-btn { background: var(--navy); color: var(--white); }
.detail-actions .web-btn { background: var(--surface); color: var(--navy); border: 1px solid var(--border); }
.back-link { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 4px 0; margin-bottom: 6px; }
.back-link:hover { color: var(--navy); }

/* === FLOATING CHAT === */
.chat-fab { position: fixed; bottom: 22px; right: calc(50% - 360px + 20px); background: var(--navy); color: var(--white); border: none; border-radius: 30px; padding: 12px 18px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(27,45,74,0.35); cursor: pointer; display: flex; align-items: center; gap: 8px; z-index: 50; transition: transform 0.2s; }
.chat-fab:hover { transform: translateY(-2px); }
@media (max-width: 740px) { .chat-fab { right: 16px; } }

/* === CHAT OVERLAY === */
.chat-overlay { position: fixed; inset: 0; background: rgba(20,28,23,0.55); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.chat-panel { background: var(--white); width: 100%; max-width: 720px; border-radius: 20px 20px 0 0; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { background: var(--navy); color: var(--white); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.chat-header p { font-size: 12px; opacity: 0.8; }
.chat-close { background: rgba(255,255,255,0.15); border: none; color: var(--white); width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; flex-shrink: 0; }
.chat-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.chat-suggestions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.chat-suggestion-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.chat-chip { background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13px; text-align: left; padding: 11px 14px; border-radius: 10px; cursor: pointer; }
.chat-chip:hover { border-color: var(--navy-light); background: #FDF0E6; }
.chat-msg { margin-bottom: 14px; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.chat-msg.user .bubble { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg.bot .bubble { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.bot .bubble h4 { font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.chat-msg.bot .bubble ul { padding-left: 18px; margin-top: 6px; }
.chat-msg.bot .bubble li { margin-bottom: 4px; }
.chat-msg.bot .bubble .bot-label { font-size: 11px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.chat-input-row { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--white); }
.chat-input-row input { flex: 1; border: 1px solid var(--border); border-radius: 24px; padding: 12px 16px; font-size: 14px; outline: none; }
.chat-input-row input:focus { border-color: var(--navy-light); }
.chat-input-row button { background: var(--gold); color: var(--navy-dark); border: none; border-radius: 24px; padding: 0 20px; font-size: 14px; font-weight: 700; cursor: pointer; }
.typing-indicator { font-size: 12px; color: var(--text-muted); font-style: italic; padding-left: 4px; }

/* === FOOTER === */
.footer { background: var(--navy-dark); color: var(--cream); padding: 24px 24px 100px; text-align: center; }
.footer p { font-size: 13px; opacity: 0.85; }
.footer .footer-powered { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.footer a { color: var(--gold-light); }
.hidden { display: none; }

@media (max-width: 480px) {
  .cover-title { font-size: 48px; }
  .home-intro h2 { font-size: 24px; }
  .category-card { height: 180px; }
}
/* ===== MOBILE / iOS DARK MODE FIX =====
   iOS Safari forces dark backgrounds on form controls unless we
   explicitly declare a light color-scheme and pin input colors. */
:root { color-scheme: light only; }
html, body { color-scheme: light only; background-color: #ffffff; }

input, textarea, select, button {
  color-scheme: light only;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea,
select {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a !important;
  border: 1.5px solid #c9c6bf !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;   /* 16px prevents iOS zoom-on-focus */
  line-height: 1.4 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #8a8a8a !important;
  -webkit-text-fill-color: #8a8a8a !important;
  opacity: 1 !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: #1f6f78 !important;
  box-shadow: 0 0 0 3px rgba(31,111,120,0.15) !important;
}

/* Autofill on iOS/Safari turns fields yellow-on-dark — force it back */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a1a !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Field labels must stay dark on light */
label, .lead-form label, .handoff label {
  color: #2b2b2b !important;
}

/* Checkbox: keep it visible and tappable */
input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  accent-color: #1f6f78;
  background-color: #ffffff !important;
  border: 1.5px solid #c9c6bf !important;
  flex-shrink: 0;
  padding: 0 !important;
}

.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  color: #2b2b2b !important;
  font-size: 14px;
  line-height: 1.45;
}

/* Buttons stay legible */
button, .btn-primary, input[type="submit"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-size: 16px !important;
  cursor: pointer;
}

/* Block any OS-level dark override on the whole card */
@media (prefers-color-scheme: dark) {
  html, body { background-color: #ffffff !important; }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="date"], input[type="number"], input[type="search"],
  textarea, select {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    border-color: #c9c6bf !important;
  }
  input::placeholder, textarea::placeholder {
    color: #8a8a8a !important;
    -webkit-text-fill-color: #8a8a8a !important;
  }
  label, .consent-check { color: #2b2b2b !important; }
}

/* Tighter mobile spacing for the lead form */
@media (max-width: 520px) {
  .lead-form-row { display: block !important; }
  .lead-form-row > div { margin-bottom: 12px; }
}

/* === MWV additions === */
.cover-logo { width: 150px; height: auto; background: rgba(255,255,255,0.92); border-radius: 12px; padding: 8px 12px; margin-bottom: 18px; }
.cover-title { font-size: 52px; letter-spacing: 0.5px; }
@media (max-width: 600px) { .cover-title { font-size: 38px; } }
.cover-scroll { margin-top: 22px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,0.6); padding: 8px 18px; border-radius: 20px; }
.search-box { display: flex; gap: 8px; margin: 24px 24px 0; }
.search-box input { flex: 1; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); }
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-btn { background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 0 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.plan-cta { margin: 16px 24px 0; background: #FDF0E6; border: 1.5px solid var(--gold); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.plan-cta-title { font-weight: 700; color: var(--navy); font-size: 16px; }
.plan-cta-sub { font-size: 13px; color: var(--text-muted); }
.welcome-card { margin: 24px 24px 0; padding: 22px; background: var(--surface); border-radius: 14px; border-left: 4px solid var(--gold); }
.welcome-card h2 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.welcome-card p { font-size: 14px; color: var(--text); margin-bottom: 8px; }
.welcome-card .welcome-sign { font-size: 13px; color: var(--text-muted); font-style: italic; margin-bottom: 0; }
.list-container.compact { padding-top: 0; }
.business-card .public-tag { display: inline-block; background: #E3EDE6; color: #24332B; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.business-card .featured-tag { display: inline-block; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.empty-msg { padding: 24px; color: var(--text-muted); font-size: 14px; }
.note-muted { font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.chat-fab { box-shadow: 0 4px 16px rgba(20,28,23,0.35); }

.detail-hero.photo { background-size: cover; background-position: center; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 24px; }
.detail-hero.photo h2 { text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.detail-info-row a { color: inherit; font-weight: 600; }
.video-card { background: var(--surface, #fff); border: 1px solid var(--border, #ddd); border-radius: 14px; padding: 18px; margin: 0 0 20px; }
.video-card h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.video-embed { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-cap { font-size: 13px; color: var(--text-muted, #666); margin-top: 8px; }
.home-video { margin: 32px 24px 0; }
.vision-section { margin: 32px 24px 0; }
.vision-trigger { background: linear-gradient(135deg, #24332B 0%, #3A4F42 100%); border-bottom: 4px solid #E8702A; border-radius: 14px; padding: 24px; color: #fff; text-align: center; margin-bottom: 16px; cursor: pointer; }
.vision-trigger h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.vision-trigger p { font-size: 14px; opacity: .92; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vision-sample { background: #fff; border: 2px solid var(--border, #ddd); border-radius: 12px; overflow: hidden; cursor: pointer; }
.vision-sample:hover { border-color: #E8702A; }
.vision-sample img { width: 100%; height: 120px; object-fit: cover; display: block; }
.vision-sample .vs-label { padding: 8px 4px; font-size: 13px; text-align: center; font-weight: 600; }
.vision-result { background: #FFF6EE; border: 1px solid #F2C9A6; border-radius: 12px; padding: 18px; }
.vision-result h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.vision-result p { font-size: 14px; line-height: 1.55; }
.vr-fact { margin-top: 8px; font-weight: 500; }
.hidden { display: none; }

.video-facade { position: relative; cursor: pointer; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade .play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 12px; background: #E8702A; color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.video-facade .video-note { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; text-align: center; }
