/* Cupom Brasil — identidade: verde/azul (gradiente) + amarelo */
:root {
  --verde: #16794c;
  --verde-escuro: #0d5c38;
  --azul: #2563b8;
  --amarelo: #f6c453;
  --ink: #12211a;
  --cinza: #5b6b63;
  --borda: #e4eae7;
  --fundo: #f6f9f7;
  --branco: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(18, 33, 26, 0.07);
  --shadow-hover: 0 8px 24px rgba(18, 33, 26, 0.13);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--fundo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--verde); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--branco);
  border-bottom: 1px solid var(--borda);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.logo img { height: 40px; width: auto; display: block; }
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search input {
  width: 100%; padding: 10px 16px 10px 40px;
  border: 1px solid var(--borda); border-radius: 999px;
  font-size: 15px; background: var(--fundo); outline: none;
}
.header-search input:focus { border-color: var(--verde); background: var(--branco); }
.header-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cinza); }
.main-nav { margin-left: auto; display: flex; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--verde); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(120deg, #1d6b47 0%, #23795a 35%, #2563b8 100%);
  color: var(--branco); text-align: center; padding: 72px 20px 64px;
}
.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.15; font-weight: 800; max-width: 800px; margin: 0 auto 18px; }
.hero h1 .destaque { color: var(--amarelo); }
.hero p.sub { font-size: clamp(16px, 2.2vw, 20px); opacity: .92; max-width: 620px; margin: 0 auto 32px; }
.hero-search { max-width: 640px; margin: 0 auto 40px; display: flex; background: var(--branco); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); position: relative; }
.hero-search input { flex: 1; border: 0; outline: none; font-size: 16px; padding: 10px 16px 10px 20px; border-radius: 999px; color: var(--ink); }
.hero-search button { background: var(--verde); color: #fff; border: 0; padding: 12px 30px; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer; }
.hero-search button:hover { background: var(--verde-escuro); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--branco); border-radius: var(--radius); box-shadow: var(--shadow-hover);
  text-align: left; max-height: 320px; overflow-y: auto; display: none; z-index: 60;
}
.search-results.open { display: block; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); border-bottom: 1px solid var(--borda); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--fundo); text-decoration: none; }
.search-results img { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; background: #fff; }
.search-results .sr-meta { font-size: 12px; color: var(--cinza); }
.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 64px); flex-wrap: wrap; }
.hero-stats .stat { display: flex; align-items: center; gap: 12px; text-align: left; }
.hero-stats .stat .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 20px; }
.hero-stats .num { font-size: 24px; font-weight: 800; line-height: 1.1; }
.hero-stats .lbl { font-size: 14px; opacity: .85; }

/* Sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.section-head .ver-todas { font-weight: 700; white-space: nowrap; }

/* Store grid */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.store-card {
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; box-shadow: var(--shadow); transition: .18s;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink);
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; border-color: var(--verde); }
.store-card img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; }
.store-card .nome { font-weight: 700; font-size: 15px; line-height: 1.3; }
.store-card .qtd { font-size: 13px; color: var(--verde); font-weight: 600; }

/* Coupon cards */
.coupons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.coupon-card {
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: .18s;
}
.coupon-card:hover { box-shadow: var(--shadow-hover); }
.coupon-card.expirado { opacity: .75; }
.coupon-brand { display: flex; align-items: center; gap: 10px; }
.coupon-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; border: 1px solid var(--borda); }
.coupon-brand .nome { font-size: 14px; font-weight: 600; color: var(--cinza); }
.coupon-card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.coupon-card h3 a { color: inherit; }
.coupon-card .desc { font-size: 14px; color: var(--cinza); flex: 1; }
.coupon-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--cinza); }
.tag-expirado { display: inline-block; background: #fdeaea; color: #b3401f; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-verificado { display: inline-block; background: #e7f5ee; color: var(--verde); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 24px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: .15s; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-oferta { background: var(--verde); color: #fff !important; width: 100%; }
.btn-oferta:hover { background: var(--verde-escuro); }
.btn-cupom {
  width: 100%; background: #fff; color: var(--verde) !important;
  border: 2px dashed var(--verde); position: relative; overflow: hidden;
}
.btn-cupom .peek {
  position: absolute; right: 0; top: 0; bottom: 0; width: 84px;
  background: var(--amarelo); color: var(--ink); display: grid; place-items: center;
  font-weight: 800; letter-spacing: 1px; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  font-size: 13px;
}
.btn-cupom:hover { background: #f2faf6; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 24, 17, .6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; max-width: 440px; width: 100%;
  padding: 32px 28px; text-align: center; position: relative;
}
.modal .fechar { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--cinza); }
.modal img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 12px; border-radius: 10px; }
.modal h3 { font-size: 20px; margin-bottom: 6px; }
.modal p { color: var(--cinza); font-size: 14px; margin-bottom: 18px; }
.codigo-box {
  display: flex; border: 2px dashed var(--verde); border-radius: 12px; overflow: hidden; margin-bottom: 16px;
}
.codigo-box .codigo { flex: 1; padding: 14px; font-size: 20px; font-weight: 800; letter-spacing: 2px; font-family: ui-monospace, Menlo, monospace; }
.codigo-box button { background: var(--verde); color: #fff; border: 0; padding: 0 22px; font-weight: 700; cursor: pointer; font-size: 14px; }
.codigo-box button.copiado { background: var(--verde-escuro); }
.modal .btn-oferta { margin-top: 4px; }
.modal .aviso { font-size: 12px; color: var(--cinza); margin-top: 12px; margin-bottom: 0; }

/* Store page */
.page-hero { background: linear-gradient(120deg, #1d6b47, #2563b8); color: #fff; padding: 40px 0; }
.breadcrumbs { font-size: 13px; margin-bottom: 18px; opacity: .85; }
.breadcrumbs a { color: #fff; }
.store-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.store-head img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px; }
.store-head h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; line-height: 1.2; }
.store-head .sub { opacity: .9; font-size: 15px; margin-top: 6px; max-width: 640px; }
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .layout-2col { grid-template-columns: 1fr; } }
.coupon-row {
  background: #fff; border: 1px solid var(--borda); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: grid;
  grid-template-columns: 110px 1fr 180px; gap: 20px; align-items: center; margin-bottom: 16px;
}
@media (max-width: 700px) { .coupon-row { grid-template-columns: 1fr; text-align: center; } }
.coupon-row .destaque-desc { font-size: 22px; font-weight: 800; color: var(--verde); text-align: center; line-height: 1.2; }
.coupon-row.expirado .destaque-desc { color: var(--cinza); }
.coupon-row h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.coupon-row .desc { font-size: 14px; color: var(--cinza); }
.coupon-row .uso { font-size: 12px; color: var(--cinza); margin-top: 6px; }
.sidebar-card { background: #fff; border: 1px solid var(--borda); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-card h3 { font-size: 16px; margin-bottom: 12px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 7px 0; border-bottom: 1px solid var(--borda); font-size: 14px; }
.sidebar-card li:last-child { border-bottom: 0; }
.sidebar-card .kv { display: flex; justify-content: space-between; }
.sidebar-card .kv b { color: var(--verde); }

/* Content / article */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 32px 0 14px; }
.prose h3 { font-size: 19px; margin: 24px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose img { border-radius: var(--radius); margin: 18px 0; }
.prose blockquote { border-left: 4px solid var(--amarelo); padding-left: 16px; color: var(--cinza); margin: 18px 0; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.article-meta { display: flex; gap: 14px; font-size: 13px; color: var(--cinza); margin-bottom: 20px; flex-wrap: wrap; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { background: #fff; border: 1px solid var(--borda); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; color: var(--ink); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.blog-card img { width: 100%; height: 170px; object-fit: cover; }
.blog-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .data { font-size: 12px; color: var(--cinza); }
.blog-card h3 { font-size: 17px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--cinza); flex: 1; }
.blog-card .ler { color: var(--verde); font-weight: 700; font-size: 14px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--borda); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { padding: 15px 0; font-weight: 700; cursor: pointer; font-size: 15px; }
.faq details p { padding-bottom: 15px; color: var(--cinza); font-size: 14px; }

/* SEO text block */
.seo-block { background: #fff; border-top: 1px solid var(--borda); padding: 48px 0; }
.seo-block h2 { font-size: 20px; margin-bottom: 10px; }
.seo-block p { color: var(--cinza); font-size: 14px; margin-bottom: 12px; max-width: 860px; }

/* Footer */
.site-footer { background: #0d2018; color: #cfe0d7; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: #cfe0d7; display: block; padding: 4px 0; font-size: 14px; }
.site-footer .logo-footer img { height: 40px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.site-footer .disclaimer { font-size: 12px; color: #8aa396; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; line-height: 1.6; }

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.grid-cats a { background: #fff; border: 1px solid var(--borda); padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.grid-cats a:hover, .grid-cats a.ativa { background: var(--verde); color: #fff; border-color: var(--verde); text-decoration: none; }
@media (max-width: 640px) {
  .main-nav { display: none; }
  .header-search { max-width: none; }
}
