/* ===== YOUR TOWN COMMUNITY MAILER - Site Styles ===== */
:root {
  --primary: #1a4a2e;
  --primary-dark: #0a2e1a;
  --secondary: #e88d2a;
  --secondary-dark: #d47d1e;
  --accent: #f59e0b;
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --text: #1a2e1a;
  --text-muted: #888;
  --border: #e8e4dd;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TOPBAR / NAV ===== */
.topbar {
  background: var(--primary-dark);
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-logo { display: flex; align-items: center; gap: 10px; }
.topbar-logo img { height: 36px; }
.topbar-logo span { font-weight: 700; font-size: 16px; color: white; }
.topbar-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.topbar-nav a:hover { background: rgba(255,255,255,0.1); color: white; text-decoration: none; }
.topbar-nav .btn-nav {
  background: var(--secondary);
  color: white;
  font-weight: 600;
}
.topbar-nav .btn-nav:hover { background: var(--secondary-dark); }
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 4px; }

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .topbar-nav { display: none; width: 100%; flex-direction: column; padding: 12px 0; }
  .topbar-nav.show { display: flex; }
  .topbar-inner { flex-wrap: wrap; }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img { width: 100%; border-radius: var(--radius); }
.hero-stats {
  display: flex; gap: 24px; margin-top: 24px;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.5rem; font-weight: 800; }
.hero-stat-label { font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { background: var(--secondary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: white; }
.btn-light { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-light:hover { background: rgba(255,255,255,0.25); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-white { background: var(--bg-card); }
.section-dark { background: var(--primary-dark); color: white; }
.section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.section-dark h2 { color: white; }
.section .subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 48px; max-width: 600px; }
.section-dark .subtitle { color: rgba(255,255,255,0.7); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== PROCESS STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== FEATURES / OFFERS GRID ===== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== CARDS ===== */
.card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }

/* ===== PRICING CARDS ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border: 2px solid var(--secondary); position: relative; }
.pricing-popular {
  background: var(--secondary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 8px; }
.pricing-price .amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.pricing-price .period { font-size: 1rem; color: var(--text-muted); }
.pricing-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 24px; flex: 1; }
.pricing-features li { padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== WHY IT WORKS (Fridge Effect) ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border); }
.why-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(232, 141, 42, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ===== LOCATIONS / COMMUNITIES ===== */
.locations-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.region-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.region h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary); }
.region ul { list-style: none; }
.region li { padding: 4px 0; font-size: 0.9rem; }
.region li:before { content: "• "; color: var(--secondary); font-weight: 700; }
.map-placeholder {
  background: #e8f0e8;
  border-radius: var(--radius);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  overflow: hidden;
}
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .locations-layout { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: white;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; color: white; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section .btn-wrap { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-section .fine-print { font-size: 0.85rem; opacity: 0.6; margin-top: 24px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand img { height: 36px; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; opacity: 0.7; }
.footer-brand a { color: var(--secondary); }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; color: white; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; opacity: 0.5; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== NEWSLETTER FORM (FOOTER) ===== */
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form button {
  padding: 10px 18px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
.newsletter-form button:hover { background: var(--secondary-dark); }

/* ===== DIRECTORY LISTINGS ===== */
/* ===== RIBBON ===== */
.ribbon-wrap {
  position: relative;
  overflow: hidden;
}
.ribbon-wrap .ribbon {
  position: absolute;
  top: 0;
  right: 0;
  transform: rotate(45deg) translateX(20px) translateY(-10px);
  transform-origin: top right;
  background: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 36px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.ribbon-wrap .ribbon:before,
.ribbon-wrap .ribbon:after {
  content: '';
  position: absolute;
  top: 100%;
  border-style: solid;
}
.ribbon-wrap .ribbon:before {
  left: 0;
  border-width: 0 6px 6px 0;
  border-color: transparent var(--secondary-dark) transparent transparent;
}
.ribbon-wrap .ribbon:after {
  right: 0;
  border-width: 6px 6px 0 0;
  border-color: transparent transparent transparent var(--secondary-dark);
}
.ribbon-wrap .ribbon.gold {
  background: var(--accent);
  color: var(--primary-dark);
}
.ribbon-wrap .ribbon.gold:before {
  border-color: transparent #c47f08 transparent transparent;
}
.ribbon-wrap .ribbon.gold:after {
  border-color: transparent transparent transparent #c47f08;
}
.ribbon-wrap .ribbon.blue {
  background: #2563eb;
}
.ribbon-wrap .ribbon.blue:before {
  border-color: transparent #1d4ed8 transparent transparent;
}
.ribbon-wrap .ribbon.blue:after {
  border-color: transparent transparent transparent #1d4ed8;
}
.ribbon-wrap .ribbon.purple {
  background: #7c3aed;
}
.ribbon-wrap .ribbon.purple:before {
  border-color: transparent #6d28d9 transparent transparent;
}
.ribbon-wrap .ribbon.purple:after {
  border-color: transparent transparent transparent #6d28d9;
}

/* ===== BUSINESS CARD GRID ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .business-grid { grid-template-columns: 1fr; }
}

.business-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.business-card:hover {
  box-shadow: var(--shadow-lg);
}
.business-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.business-name { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.business-category { font-size: 0.8rem; color: var(--secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.business-rating { font-size: 0.9rem; color: var(--text-muted); margin: 4px 0; }
.business-phone { font-size: 0.85rem; color: var(--text-muted); }
.business-meta { font-size: 0.85rem; color: var(--text-muted); }
.business-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.offer-tag {
  background: #f0f9f0;
  border: 1px solid #d1e8d1;
  border-radius: 10px;
  padding: 14px 18px;
}
.offer-tag.qr { background: #fef7e8; border-color: #f5d79e; }
.offer-tag .tag-label { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; color: #888; letter-spacing: 0.05em; margin-bottom: 4px; }
.offer-tag .tag-value { font-size: 1.2rem; font-weight: 800; color: var(--primary); line-height: 1.3; }
.offer-tag .tag-detail { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.offer-tag.qr .tag-value { color: var(--secondary-dark); }
.business-actions { display: flex; gap: 8px; margin-top: 16px; }
.business-actions .btn, .business-actions .btn-primary, .business-actions .btn-sm {
  flex: 1;
  text-align: center;
}

/* ===== DIRECTORY GATE ===== */
.gate-wrap { max-width: 500px; margin: 60px auto; padding: 0 20px; }
.gate-box { background: var(--bg-card); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow-lg); text-align: center; }
.gate-box h2 { font-size: 1.5rem; margin-bottom: 8px; }
.gate-box p { color: var(--text-muted); margin-bottom: 24px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form input {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}
.gate-form input:focus { outline: none; border-color: var(--secondary); }
.gate-form button {
  padding: 14px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.gate-form button:hover { background: var(--secondary-dark); }
.gate-privacy { font-size: 0.8rem; color: #aaa; margin-top: 12px; }
.gate-error { background: #fef2f2; color: #dc2626; padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

/* ===== DIRECTORY BANNER ===== */
.dir-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: white;
  padding: 32px 24px;
  text-align: center;
}
.dir-banner h1 { font-size: 1.8rem; }
.dir-banner .dir-meta { font-size: 0.9rem; opacity: 0.8; margin-top: 4px; }
.dir-banner .dir-badge {
  display: inline-block;
  background: var(--secondary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ===== FEATURED BUSINESS (DIRECTORY) ===== */
.featured-business {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.featured-business .info { margin-bottom: 16px; }
.featured-business h3 { font-size: 1.4rem; margin-bottom: 4px; }
.featured-business .stars { color: var(--accent); font-size: 0.9rem; }
.featured-business .offers-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.featured-business .offer-mini {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 20px;
}
.featured-business .offer-mini .lbl { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
.featured-business .offer-mini .val { font-size: 1.2rem; font-weight: 800; color: var(--accent); line-height: 1.3; }
.featured-business .offer-mini .detail { font-size: 0.8rem; opacity: 0.9; margin-top: 4px; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--secondary);
}

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: #dc2626; }
.alert-success { background: #dcfce7; color: #166534; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 48px 24px;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-header p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }

/* ===== CONTENT PAGE ===== */
.content-page { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.content-page h2 { font-size: 1.5rem; margin: 32px 0 12px; color: var(--primary); }
.content-page p { margin-bottom: 16px; line-height: 1.7; color: #444; }
.content-page ul { margin-bottom: 16px; padding-left: 24px; }
.content-page li { margin-bottom: 8px; color: #444; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) {
  .contact-form .row { grid-template-columns: 1fr; }
}

/* ===== BLOG POST ===== */
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.blog-card h3 { margin-bottom: 8px; }
.blog-card .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }

/* ===== IMAGE GRID ===== */
.img-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-grid-2 img { border-radius: var(--radius); width: 100%; object-fit: cover; height: 200px; }
@media (max-width: 480px) { .img-grid-2 { grid-template-columns: 1fr; } }

/* ===== SUBSCRIBER STATS ===== */
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.stat-item { background: var(--bg-card); border-radius: var(--radius); padding: 24px 32px; box-shadow: var(--shadow); text-align: center; flex: 1; min-width: 120px; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
