/* ===================================================
   Idaho Custom Meats — style.css
   Mobile-first. Base for 375px, scale up at 768px.
   All colors via CSS custom properties only.
   =================================================== */

/* ---- THEME VARIABLES ---- */
:root {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-nav: #FFFFFF;
  --bg-footer: #1E1E1E;
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-footer: #F0F0F0;
  --text-disclaimer: #777777;
  --primary: #8B1A1A;
  --primary-dark: #6B1414;
  --primary-text: #FFFFFF;
  --accent: #D4A017;
  --border: #E0E0E0;
  --notice-bg: #FFF8E7;
  --notice-border: #D4A017;
  --warning-bg: #FFF0F0;
  --warning-border: #8B1A1A;
  --input-bg: #FFFFFF;
  --input-border: #CCCCCC;
  --input-text: #1A1A1A;
  --shadow: rgba(0,0,0,0.08);
  --admin-uncontacted: #FFFBEA;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-card: #1E1E1E;
    --bg-nav: #1A1A1A;
    --bg-footer: #0D0D0D;
    --text: #EEEEEE;
    --text-muted: #AAAAAA;
    --text-footer: #CCCCCC;
    --text-disclaimer: #888888;
    --primary: #C94040;
    --primary-dark: #A83333;
    --primary-text: #FFFFFF;
    --accent: #E8B422;
    --border: #333333;
    --notice-bg: #2A2410;
    --notice-border: #D4A017;
    --warning-bg: #2A1010;
    --warning-border: #C94040;
    --input-bg: #2A2A2A;
    --input-border: #444444;
    --input-text: #EEEEEE;
    --shadow: rgba(0,0,0,0.4);
    --admin-uncontacted: #2A2200;
  }
}

html.dark {
  --bg: #121212;
  --bg-card: #1E1E1E;
  --bg-nav: #1A1A1A;
  --bg-footer: #0D0D0D;
  --text: #EEEEEE;
  --text-muted: #AAAAAA;
  --text-footer: #CCCCCC;
  --text-disclaimer: #888888;
  --primary: #C94040;
  --primary-dark: #A83333;
  --primary-text: #FFFFFF;
  --accent: #E8B422;
  --border: #333333;
  --notice-bg: #2A2410;
  --notice-border: #D4A017;
  --warning-bg: #2A1010;
  --warning-border: #C94040;
  --input-bg: #2A2A2A;
  --input-border: #444444;
  --input-text: #EEEEEE;
  --shadow: rgba(0,0,0,0.4);
  --admin-uncontacted: #2A2200;
}

html.light {
  --bg: #FAFAF8;
  --bg-card: #FFFFFF;
  --bg-nav: #FFFFFF;
  --bg-footer: #1E1E1E;
  --text: #1A1A1A;
  --text-muted: #555555;
  --text-footer: #F0F0F0;
  --text-disclaimer: #777777;
  --primary: #8B1A1A;
  --primary-dark: #6B1414;
  --primary-text: #FFFFFF;
  --accent: #D4A017;
  --border: #E0E0E0;
  --notice-bg: #FFF8E7;
  --notice-border: #D4A017;
  --warning-bg: #FFF0F0;
  --warning-border: #8B1A1A;
  --input-bg: #FFFFFF;
  --input-border: #CCCCCC;
  --input-text: #1A1A1A;
  --shadow: rgba(0,0,0,0.08);
  --admin-uncontacted: #FFFBEA;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 64px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-width: 320px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.75em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow {
  max-width: 760px;
}

.section {
  padding: 40px 0;
}

.section-sm {
  padding: 20px 0;
}

.section-alt {
  background: var(--bg-card);
}

.text-center { text-align: center; }

@media (min-width: 768px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 32px 0; }
  .container { padding: 0 24px; }
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links, .nav-actions { display: none; }

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .nav-mobile-controls { display: none; }
}

/* Desktop nav dropdowns */
.nav-dropdown { position: relative; list-style: none; }
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-dropdown-btn:hover { background: var(--border); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-nav);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 220px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: var(--border); }

.nav-links > li > a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
}
.nav-links > li > a:hover { background: var(--border); }

/* Mobile controls */
.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--primary);
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 1rem;
}
.mobile-menu.open { display: flex; }

.mobile-menu-cta {
  display: block;
  margin: 0.75rem 1rem 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--primary);
  color: var(--primary-text) !important;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  min-height: 52px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 52px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-link:last-of-type { border-bottom: none; }
.mobile-menu-link:hover { background: var(--border); }

/* Theme select */
.theme-select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 36px;
}
.theme-select-mobile { font-size: 0.8rem; min-height: 36px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  min-height: 44px;
  width: 100%;
}

@media (min-width: 768px) {
  .btn { width: auto; }
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--primary-text);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-text);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  min-height: 52px;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  min-height: 36px;
}

/* ---- HERO ---- */
.hero {
  padding: 40px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero h1 { margin-bottom: 0.5em; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 640px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero { padding: 80px 0; }
  .hero-btns { flex-direction: row; }
}

.trust-line {
  font-size: 0.85rem;
  color: var(--text-disclaimer);
  font-style: italic;
  margin: 0;
}

/* ---- CTA CARD ---- */
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.cta-card h2 { margin-bottom: 0.4em; }
.cta-card-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .cta-card-btns { flex-direction: row; }
}

/* ---- SERVICE GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
  display: block;
}
.service-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  border-color: var(--primary);
  color: var(--text);
}
.service-card h3 { font-size: 0.95rem; margin-bottom: 0.35em; color: var(--primary); }
.service-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.service-card-plain { cursor: default; }
.service-card-plain:hover { box-shadow: none; border-color: var(--border); }

/* ---- HOW IT WORKS ---- */
.how-steps {
  padding-left: 1.5em;
}
.how-steps li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* ---- GUIDE GRID ---- */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .guides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.guide-card:hover {
  box-shadow: 0 4px 16px var(--shadow);
  border-color: var(--primary);
  color: var(--text);
}
.guide-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.35em; }
.guide-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---- CITY LINKS ---- */
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.city-links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.city-links a:hover { background: var(--primary); color: var(--primary-text); }

/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--border); margin-top: 1rem; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  min-height: 52px;
  display: flex;
  align-items: center;
  position: relative;
}
.faq-question::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-muted);
}
.faq-answer p { padding-bottom: 1rem; margin: 0; }

/* ---- NOTICE / WARNING BOXES ---- */
.notice-box {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-border);
  padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text);
  margin: 1.5rem 0;
}

.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
  padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text);
  margin: 1.5rem 0;
}

/* ---- SECTION FINAL CTA ---- */
.section-cta {
  background: var(--primary);
  color: var(--primary-text);
}
.section-cta h2, .section-cta p { color: var(--primary-text); }
.section-cta .btn-primary {
  background: var(--primary-text);
  color: var(--primary);
  border-color: var(--primary-text);
}
.section-cta .btn-primary:hover {
  background: var(--primary-dark);
  color: var(--primary-text);
  border-color: var(--primary-dark);
}

.section-cta-inline {
  margin: 2rem 0;
}

/* ---- PAGE MAIN ---- */
.page-main {
  padding: 40px 0 60px;
}

.page-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.disclaimer-text {
  font-size: 13px;
  font-style: italic;
  color: var(--text-disclaimer);
}

/* ---- RELATED LINKS ---- */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.related-links a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--primary);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.related-links a:hover { background: var(--primary); color: var(--primary-text); }

/* ---- FORM ---- */
.lead-form {
  margin-top: 1.5rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
legend {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  padding: 0 0.5rem;
}

.form-row { margin-bottom: 0; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-field:last-child { margin-bottom: 0; }

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 0 0.75rem;
  font-size: 16px;
  height: 48px;
  width: 100%;
  appearance: auto;
  -webkit-appearance: auto;
}

textarea {
  height: auto;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  min-height: 80px;
}

select { cursor: pointer; }

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.required { color: var(--primary); }

.consent-field {
  margin-bottom: 1.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 0.15rem;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  min-height: 54px;
  font-size: 1.05rem;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--text-disclaimer);
  font-style: italic;
  margin-top: 0.75rem;
  text-align: center;
}

.form-errors {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.form-errors ul { margin: 0.5rem 0 0; padding-left: 1.25em; }

/* ---- THANK YOU ---- */
.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  margin: 2rem auto;
  max-width: 560px;
}
.checklist { padding-left: 1.4em; }
.checklist li { margin-bottom: 0.4rem; }

/* ---- CALCULATOR ---- */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.calculator-card h2 { margin-bottom: 1rem; }
.calc-select {
  width: 100%;
}
.calc-output {
  background: var(--notice-bg);
  border-left: 4px solid var(--notice-border);
  padding: 1rem;
  border-radius: 0 6px 6px 0;
  margin-top: 1rem;
}
.calc-output p { margin: 0 0 0.5rem; }
.calc-output p:last-child { margin: 0; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 40px 0 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-brand {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-phone {
  color: var(--text-footer);
  font-size: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  color: var(--text-footer);
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { text-decoration: underline; }

.footer-disclaimer {
  font-size: 13px;
  font-style: italic;
  color: var(--text-disclaimer);
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-disclaimer);
  margin: 0;
}

/* ---- CTA BAR (fixed mobile) ---- */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 56px;
  background: var(--primary);
  display: flex;
  align-items: stretch;
}

@media (min-width: 768px) {
  .cta-bar { display: none; }
}

.cta-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.cta-bar-btn:last-child { border-right: none; }
.cta-bar-btn:hover { background: rgba(0,0,0,0.15); color: #fff; }
.cta-bar-btn-full { flex: 1; border-right: none; }

/* ---- ADMIN ---- */
.admin-body {
  background: var(--bg);
  padding-bottom: 0;
}

.admin-nav {
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-nav-brand { font-weight: 700; font-size: 1rem; }
.admin-nav-actions { display: flex; gap: 0.5rem; }
.admin-nav .btn { color: #fff; border-color: rgba(255,255,255,0.5); }
.admin-nav .btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

.admin-main { padding: 1.5rem 0 3rem; }
.admin-container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(7, 1fr); }
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-small { font-size: 1rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Leads table */
.leads-table-wrap {
  display: none;
  overflow-x: auto;
}
@media (min-width: 768px) {
  .leads-table-wrap { display: block; }
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.leads-table th {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.leads-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leads-table td.td-notes,
.leads-table td.td-landing {
  max-width: 140px;
  white-space: normal;
  word-break: break-all;
  font-size: 0.8rem;
}
.leads-table td.td-date { white-space: nowrap; font-size: 0.8rem; }

.lead-new { background: var(--admin-uncontacted); }

.status-select {
  font-size: 0.85rem;
  height: auto;
  min-height: 36px;
  padding: 0.3rem 0.5rem;
}

.notes-field {
  font-size: 0.85rem;
  height: auto;
  min-height: 48px;
  padding: 0.4rem 0.5rem;
  width: 100%;
  margin-bottom: 0.25rem;
  resize: vertical;
}

/* Lead cards (mobile) */
.leads-cards { display: block; }
@media (min-width: 768px) {
  .leads-cards { display: none; }
}

.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.lead-card.lead-new { background: var(--admin-uncontacted); }
.lead-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.lead-date { font-size: 0.8rem; color: var(--text-muted); }
.lead-card-row { font-size: 0.9rem; margin-bottom: 0.4rem; }
.lead-notes { font-style: italic; color: var(--text-muted); font-size: 0.85rem; }

.empty-table {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-style: italic;
}

/* Admin login */
.admin-login-page {
  min-height: calc(100vh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}
.admin-login-card h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.admin-login-form .btn { margin-top: 0.5rem; }

/* ---- THEME BUTTONS ---- */
.theme-btns {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--border);
  border-radius: 6px;
  padding: 3px;
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  min-height: 30px;
}

.theme-btn:hover {
  background: var(--bg-card);
  color: var(--text);
}

.theme-btn--active {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
}

.mobile-menu-theme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mobile-menu-theme .theme-btns {
  flex: 1;
}

/* ---- SHORT FORM SECTION ---- */
.short-form-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.short-form-card {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 24px var(--shadow);
}

.short-form-card h2 {
  margin-bottom: 0.25em;
}

.short-form-sub {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.short-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 520px) {
  .short-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.short-form-consent {
  font-size: 0.82rem;
  color: var(--text-disclaimer);
  margin: 0.75rem 0 0.75rem;
}

.short-form-fine {
  font-size: 0.8rem;
  color: var(--text-disclaimer);
  margin-top: 0.6rem;
  text-align: center;
}

@media (min-width: 768px) {
  .short-form-card {
    padding: 2rem;
  }
}
