/* ============================================================
   FoodAndFunDeals.com — Stylesheet
   Mobile-first throughout. Palette complements the logo:
   greens, blues, golds, dark navy. Signature element: deal
   cards styled like clipped coupons with a gold "town tag".
   ============================================================ */

:root {
  --navy:       #12283F;  /* deep navy — county page base       */
  --navy-deep:  #0B1B2C;
  --teal:       #14484A;  /* gradient partner for county bg     */
  --green:      #2FA968;  /* action green — buttons             */
  --green-dark: #217A4B;
  --gold:       #F5B93E;  /* urgency, accents, town tags        */
  --gold-soft:  #FFE9B8;
  --blue:       #2E86D9;
  --cream:      #FBF7EE;  /* card + homepage surface            */
  --mint:       #EAF6EE;  /* homepage background tint           */
  --ink:        #16283A;
  --ink-soft:   #4A5A6A;
  --red:        #D64541;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mint);
}

body.no-scroll { overflow: hidden; }

.wrap{max-width:640px;margin:0 auto;padding:20px 18px 40px;}

img, video { max-width: 100%; height: auto; }

a { color: var(--blue); }

/* ---------- Logo ---------- */
.logo-row { text-align: center; padding-top: 6px; }
.site-logo { max-width: 240px; width: 70%; display: inline-block; }
.site-logo-small { max-width: 170px; }

/* ============================================================
   HOMEPAGE
   ============================================================ */
.page-home{color:var(--cream);position:relative;min-height:100svh;}

.intro-text,.intro-action{color:#fff;font-weight:900;text-align:center;text-shadow:0 0 8px #1565C0,0 0 4px #1565C0,0 2px 3px rgba(0,0,0,.55);line-height:1.25;}
.intro-action{font-size:1.25rem;margin:-26px 16px 46px;}

.intro-text {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin: 22px 4px 24px;
}

.video-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18, 40, 63, 0.22);
  background: var(--navy-deep);
  line-height: 0;
}
.promo-video { width: 100%; display: block; }

/* Urgency box — gold coupon-style, visually prominent */
.urgency-box {
  margin: 26px 0;
  padding: 16px 18px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 900;
  font-size: 1.12rem;
  text-align: center;
  border: 3px dashed var(--navy);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(18, 40, 63, 0.18);
  transform: rotate(-0.6deg);
}

/* County buttons — DB-driven; stack cleanly as more are added */
.county-section { text-align: center; margin-top: 0; transform: none; }
.county-btn {
  display: block;
  width: 75%;
max-width: 260px;
  padding: 6px 8px;
  margin: 0 auto 14px;
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 5px 0 var(--green-dark);
  transition: transform 0.08s ease;
}
.county-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-dark); }
.coming-soon {
  color: #000000;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
}

/* ============================================================
   COUNTY PAGE — vibrant, energetic, community-driven
   ============================================================ */
.page-county {
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal) 62%, #1B5E45 100%);
  color: var(--cream);
}
.page-county a { color: var(--gold); }

.lead-text {
  font-size: .98rem;
  font-weight: 700;
  text-align: center;
  color: var(--cream);
  margin: -4px 4px 18px;
}

.post-deal-btn {
  display: block;
  width: 56%;
  max-width: 255px;
  margin: 0 auto;
  padding: 20px 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  border: none;
  border-radius: 16px;
  box-shadow: 0 5px 0 #C98F1D;
  cursor: pointer;
  transition: transform 0.08s ease;
}
.post-deal-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #C98F1D; }

.daily-note {
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold-soft);
  margin: 18px 6px;
}

/* ---------- Contained scrollable deal box ---------- */
.deal-box {
  height: 62vh;              /* fixed height — the page never gets long */
  min-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;  /* smooth momentum scroll on iPhone */
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(245, 185, 62, 0.55);
  border-radius: 16px;
  padding: 12px;
}

.deal-box-empty {
  text-align: center;
  color: var(--gold-soft);
  font-weight: 700;
  padding: 40px 16px;
}

/* Deal cards — clean uniform coupon-style cards */
.deal-card {
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
  border-left: 6px solid var(--green);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.deal-card:last-child { margin-bottom: 2px; }

.deal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.deal-business {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--navy);
}
.deal-town {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
}
.deal-text {
  margin: 6px 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
}
.deal-poster {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* New card highlight — gentle attention pulse, respects reduced motion */
.deal-card-new { animation: cardIn 0.9s ease; }
@keyframes cardIn {
  0%   { background: var(--gold-soft); transform: translateY(-6px); opacity: 0; }
  100% { background: var(--cream); transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .deal-card-new { animation: none; }
  .urgency-box { transform: none; }
}

/* ---------- Post a Deal popup ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 44, 0.78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 14px 14px;
  z-index: 50;
  overflow-y: auto;
}
.popup {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  padding: 22px 20px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.popup-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
}

.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  padding: 13px 12px;
  font-family: inherit;
  font-size: 1rem;          /* >=16px prevents iPhone auto-zoom on focus */
  border: 2px solid #C9D4DC;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 169, 104, 0.25);
}

.char-counter {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 4px;
  text-align: right;
}
.char-counter.counter-low { color: var(--red); }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 4px 0 12px;
}
.form-confirm-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 10px 0;
}

.form-error {
  background: #FCE8E7;
  color: #8E2320;
  border: 2px solid var(--red);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 8px 0;
}

.post-now-btn {
  display: block;
  width: 100%;
  padding: 18px 16px;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--green-dark);
  cursor: pointer;
}
.post-now-btn:disabled { opacity: 0.65; }

/* Honeypot — invisible to humans */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Confirmation banner */
.confirm-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  width: calc(100% - 28px);
  max-width: 480px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 60;
}
.confirm-banner.confirm-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.page-legal { background: var(--cream); }
.legal-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin: 18px 0 6px;
}
.legal-updated { text-align: center; color: var(--ink-soft); font-weight: 700; margin-top: 0; }
.legal-heading { font-size: 1.08rem; font-weight: 900; color: var(--green-dark); margin: 22px 0 6px; }
.legal p { font-size: 0.98rem; }
.terms-list { padding-left: 22px; }
.terms-list li { margin-bottom: 14px; font-size: 0.98rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 26px 16px 34px;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}
.page-home .site-footer, .page-legal .site-footer { color: var(--gold-soft); }
.page-home .footer-links a, .page-legal .footer-links a { color: #000000; }
.footer-links a { font-weight: 700; }
.page-home .footer-links a, .page-legal .footer-links a { color: #000000; }
.footer-sep { margin: 0 8px; }
.footer-copy { margin: 10px 0 2px; }
.footer-contact { margin: 0; }
.footer-contact a { font-weight: 700; }

/* ============================================================
   LARGER SCREENS — scale up from mobile
   ============================================================ */
@media (min-width: 700px) {
  .wrap { padding-top: 34px; }
  .intro-text { font-size: 1.25rem; }
  .site-logo { max-width: 280px; }
  .deal-box { height: 58vh; }
  .county-btn { display: block; }
}
.overlay[hidden]{display:none !important;}
.page-home{color:var(--cream);min-height:100vh;min-height:100dvh;position:relative;}
.intro-text,.intro-action{color:#fff !important;font-weight:900;text-align:center;text-shadow:0 0 6px #0A2472,0 0 3px #0A2472,0 2px 4px rgba(0,0,0,.7);text-wrap:balance;}
/* Logo row + deals counter */
.logo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px 0;
}
.site-logo {
  max-width: 300px;
  width: 45%;
  height: auto;
}
.deals-counter {
  background: url('/assets/deals-counter.png') no-repeat center / contain;
  width: min(63%, 285px);
  aspect-ratio: 2 / 1;
  position: relative;
  margin: -30px auto 10px;
}
.intro-text { margin: 10px auto 10px; }
.video-frame { margin-top: 6px; }
.badges-row { margin-top: -10px; }
.counter-digits {
  position: absolute;
  left: 11%;
  top: 36%;
  width: 37%;
  height: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2%;
  color: #FFD84D;
  font-weight: 900;
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: 0.05em;
}
@media (max-width: 699px) {
  .logo-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .site-logo { width: 70%; }
.video-frame { width: 72%; margin-left: auto; margin-right: auto; }
}
/* Odometer spin */
.digit {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
}
.digit-strip {
  display: block;
  transform: translateY(0);
  transition: transform 1.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.digit-strip span {
  display: block;
  height: 1em;
  line-height: 1;
}
.pick-county {
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
}

/* Post Deal button + hero badge row */
.post-deal-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 10px 0 24px 0;
}
.post-deal-btn {
  width: 110px;
  height: 110px;
  max-width: none;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 8px;
  font-size: 1.05rem;
}
.post-deal-btn .tap-line {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 4px;
}
.deal-hero-badge {
  width: 220px;
  max-width: 55%;
  height: auto;
}
.county-savings-line {
  color: var(--gold-soft);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 6px 0 10px 0;
}
/* Deal hero badge wiggle */
@keyframes badgeWiggle {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-8deg); }
  20% { transform: rotate(8deg); }
  30% { transform: rotate(-6deg); }
  40% { transform: rotate(6deg); }
  50% { transform: rotate(0deg); }
}
.deal-hero-badge {
  animation: badgeWiggle 5s ease-in-out infinite;
}
/* Dark footer text on light legal pages */
.page-legal .site-footer,
.page-legal .site-footer .footer-links a,
.page-legal .site-footer .footer-sep,
.page-legal .site-footer .footer-copy {
  color: #1a1a1a;
}
/* Homepage badges glow pulse */
/* Homepage badges glow pulse */
@keyframes badgeGlow{0%,100%{filter:drop-shadow(0 0 4px rgba(255,255,255,0.5));}50%{filter:drop-shadow(0 0 14px rgba(255,255,255,0.95));}}
.badges-row img{animation:badgeGlow 2.5s ease-in-out infinite;}
.featured-empty {
  color: rgb(240, 240, 240);
  text-align: center;
  font-size: 1.1rem;
  margin: 40px 0;
}
.featured-card {
  background: rgb(250, 246, 238);
  border-radius: 14px;
  margin: 0 auto 28px auto;
  max-width: 560px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.featured-banner {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px 12px 0 12px;
  box-sizing: border-box;
}
.featured-body {
  padding: 14px 18px 18px 18px;
  color: rgb(25, 40, 55);
}
.featured-name {
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 6px;
}
.featured-address {
  color: rgb(90, 105, 120);
  font-size: 0.95rem;
  margin-top: 2px;
}
.featured-deal {
  color: rgb(20, 110, 60);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 12px;
  line-height: 1.4;
}
.featured-link {
  margin-top: 10px;
  font-size: 1rem;
}
.featured-link a {
  color: rgb(20, 90, 200);
  font-weight: 700;
}
.featured-terms {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgb(220, 212, 195);
  font-size: 0.78rem;
  color: rgb(0, 0, 0);
  line-height: 1.45;
}
.featured-card {
  border: 8px solid #8CC63F;
}
/* Force homepage badges visible */
.badges-row { display:block !important; text-align:center; margin:0 auto !important; }
.badges-row img, .badges-img { display:block !important; width:auto !important; height:auto !important; max-width:141px; margin:0 auto; }
.county-section { margin-top: 10px !important; position: relative; z-index: 2; }
.tap-cue-img{display:block;margin:0 auto;width:23vw;max-width:61px;height:auto;position:relative;z-index:2;}
/* Mobile: lift hero badges off the rooftops */
 @media (max-width: 699px) {
.badges-row{position:static;margin:12px auto 0;text-align:center;transform:translateY(-15px);}
.badges-row img,.badges-img{max-width:141px !important;width:60vw;height:auto;}
.tap-cue-img{transform:translateY(55px);}
} 
.intro-text,.intro-action{text-shadow:-2px -2px 0 rgba(0,0,0,0.85),2px -2px 0 rgba(0,0,0,0.85),-2px 2px 0 rgba(0,0,0,0.85),2px 2px 0 rgba(0,0,0,0.85),0 3px 8px rgba(0,0,0,0.6) !important;}
.page-home .footer-copy{color:#333 !important;}
.page-county .footer-copy{color:#fff !important;}
.local-deals-wrap{text-align:center;margin:9px auto;}
.local-deals-img{max-width:358px;width:59vw;height:auto;border-radius:14px;}
@media (min-width:700px){.home-hero{background-position:center 65% !important;}}
.deal-share-btn{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin:10px 0 0;
  padding:11px 12px;
  border:0;
  border-radius:8px;
  background:#1565C0;
  color:#FFFFFF;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.deal-share-btn:active{
  background:#0D47A1;
}
.scroll-cue{
  margin:6px 0 8px;
  text-align:center;
  font-size:15px;
  font-weight:600;
  color:#FFFFFF;
  line-height:1.2;
}
.home-hero{background-image:url('/assets/homepage-bg-v5.jpg?v=1');background-size:cover;background-position:center bottom;background-repeat:no-repeat;height:88svh;min-height:600px;position:relative;overflow:hidden;}
.home-hero .wrap{padding-bottom:0;}
.county-zone{background:var(--mint);padding:28px 18px 10px;text-align:center;}
.county-zone .county-section{transform:none !important;margin-top:0 !important;}
.county-zone .coming-soon{margin-top:10px;}
.page-home .site-footer{transform:none !important;}