/* UI-4: Coupon Magazine (RetailMeNot-inspired)
   Palette: white bg, primary red #e92429, orange #ff6900, light grey #f7f7f7, text #1a1a1a
   Type: Montserrat headings, Open Sans body
   Layout: red top bar nav + 3-col hero card grid */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f7f7;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e5e5e5;
  --red: #e92429;
  --red-dark: #c41e22;
  --orange: #ff6900;
  --orange-soft: #fff3e6;
  --font-head: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--text); }

/* Navigation: red top bar */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--red);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand-text { line-height: 1; }
.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
}
.nav-links a:hover { opacity: 1; text-decoration: none; border-bottom: 2px solid #fff; }
.nav-links a.active { border-bottom: 2px solid #fff; opacity: 1; }

/* Container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 40px; margin: 0 0 12px; letter-spacing: -0.02em; text-transform: uppercase; }
.hero .lead { font-size: 18px; color: #fff; opacity: 0.95; margin: 0 auto; max-width: 700px; }

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}
.section-head h2 { font-size: 24px; margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }
.section-head a { font-size: 13px; font-weight: 700; text-transform: uppercase; }

/* Deal card grid (3 columns) */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.deal-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.deal-banner {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  padding: 14px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.deal-banner .deal-pct { font-size: 26px; display: block; line-height: 1; }
.deal-banner .deal-label { font-size: 12px; display: block; margin-top: 2px; letter-spacing: 0.1em; }
.deal-card .deal-img-wrap {
  background: var(--surface-muted);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.deal-card .deal-img-wrap img { max-height: 160px; object-fit: contain; }
.deal-card .deal-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.deal-card h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.35; }
.deal-card h3 a { color: var(--text); }
.deal-card h3 a:hover { color: var(--red); }
.deal-card .deal-meta { font-size: 12px; color: var(--text-muted); margin: 0 0 10px; text-transform: capitalize; }
.deal-card .deal-blurb { font-size: 13px; color: var(--text); margin: 0 0 14px; flex: 1; }
.deal-card .deal-actions { display: flex; gap: 8px; }

/* Badges */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.badge.sale { background: var(--orange); }
.badge.exclusive { background: var(--red-dark); }
.badge.review { background: var(--text-muted); }

/* CTA buttons */
.cta-button {
  display: inline-block;
  padding: 11px 18px;
  background: var(--red);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
  border: 2px solid var(--red);
}
.cta-button:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; }
.cta-button.secondary {
  background: #fff;
  color: var(--orange) !important;
  border: 2px solid var(--orange);
}
.cta-button.secondary:hover { background: var(--orange-soft); text-decoration: none; }

/* Quick list (compact horizontal deals) */
.quick-list {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.quick-item:last-child { border-bottom: none; }
.quick-item img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.quick-item .quick-info { flex: 1; min-width: 0; }
.quick-item .quick-title { font-size: 13px; font-weight: 600; color: var(--text); }
.quick-item .quick-cat { font-size: 11px; color: var(--text-muted); text-transform: capitalize; }
.quick-item .quick-cta {
  background: var(--red);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.quick-item .quick-cta:hover { background: var(--red-dark); text-decoration: none; }

/* Article page */
.article-page { padding: 40px 0 56px; }
.article-header { margin-bottom: 24px; }
.article-header .category-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.article-header h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.01em; }
.article-header .article-meta { font-size: 13px; color: var(--text-muted); }
.article-hero-img { width: 100%; margin: 24px 0; border-radius: var(--radius); }
.article-disclosure {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 14px 18px;
  font-size: 14px;
  margin: 24px 0;
  color: var(--text);
  border-radius: 4px;
}
.article-content { font-size: 16px; line-height: 1.7; }
.article-content h2 { font-size: 24px; margin: 32px 0 12px; color: var(--red); }
.article-content h3 { font-size: 19px; margin: 24px 0 10px; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 22px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 4px solid var(--red);
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  font-style: italic;
  color: var(--text-muted);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-content th, .article-content td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
.article-content th { font-family: var(--font-head); font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.pros-cons h3 { font-size: 15px; }

/* Category page */
.category-page { padding: 40px 0 56px; }
.category-page h1 { font-size: 30px; margin: 0 0 8px; text-transform: uppercase; }
.category-page .lead { color: var(--text-muted); margin: 0 0 24px; }

/* Legal pages */
.legal-page { padding: 40px 0 56px; }
.legal-page h1 { font-size: 30px; margin: 0 0 14px; color: var(--red); }
.legal-page h2 { font-size: 21px; margin: 30px 0 10px; color: var(--text); }
.legal-page h3 { font-size: 17px; margin: 22px 0 8px; }
.legal-page p, .legal-page ul, .legal-page ol { margin: 0 0 14px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .lead { font-size: 17px; color: var(--text-muted); }
.legal-page .contact-email { font-size: 18px; font-family: var(--font-head); color: var(--red); }
.legal-page .disclosure-callout {
  background: var(--orange-soft);
  padding: 16px 20px;
  border-radius: 6px;
  border-left: 4px solid var(--orange);
  font-family: var(--font-head);
  font-size: 16px;
  margin: 20px 0;
}
.legal-revision { color: var(--text-muted); font-size: 12px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--text); color: #fff; margin-top: 48px; padding: 40px 24px 24px; }
.site-footer a { color: #fff; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--maxw); margin: 0 auto 24px; }
.site-footer h4 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-grid a { font-size: 14px; opacity: 0.9; }
.site-footer .affiliate-disclosure { font-size: 12px; color: #ccc; line-height: 1.5; margin: 0; }
.site-footer .footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 20px; border-top: 1px solid #444; font-size: 13px; color: #ccc; text-align: center; }

.affiliate-disclosure { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Responsive */
@media (max-width: 900px) {
  .deal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .deal-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .article-header h1 { font-size: 26px; }
  .pros-cons { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
}
