/*
Theme Name: PetPharm News (NewsNow style)
Theme URI: https://blog-petpharm.tancredi.uno
Author: Felipe Tancredi
Description: Tema NewsNow-style para o blog PetPharm — layout denso, magazine moderno, com hero 70/30 e grid 4-col.
Version: 0.2.0
License: GPL v2 or later
Text Domain: cannalize-petpharm
*/

:root {
  --primary: #ff6900;
  --link: #fa6550;
  --red: #cf2e2e;
  --dark: #1a1a1a;
  --gray: #818181;
  --muted: #aaa;
  --border: #e5e6e4;
  --bg: #fff;
  --bg-alt: #f6f6f6;
  --yellow: #ffd700;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #1a1a1a;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ============ BRAND ROW ============ */
.brand-row { padding: 16px 0; background: var(--bg); }
.brand-row .container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: center; }
.logo-block { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-block:hover { text-decoration: none; }
.logo-mark { width: 44px; height: 44px; background: var(--red); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; line-height: 1; }
.logo-text small { display: block; font-size: 10px; color: var(--gray); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }

.promo-yellow { background: var(--yellow); padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-radius: 4px; }
.promo-yellow .we { background: var(--dark); color: white; padding: 6px 10px; font-size: 11px; font-weight: 800; letter-spacing: 1px; border-radius: 2px; flex-shrink: 0; }
.promo-yellow .text { font-size: 12px; font-weight: 700; color: var(--dark); }
.promo-yellow:hover { text-decoration: none; }

.brand-cta { background: var(--bg-alt); border: 1px solid var(--border); padding: 12px 16px; border-radius: 4px; text-align: center; }
.brand-cta strong { display: block; font-size: 12px; color: var(--dark); margin-bottom: 4px; }
.brand-cta .small-input { display: flex; gap: 4px; }
.brand-cta input { flex: 1; padding: 6px 10px; border: 1px solid var(--border); font-size: 12px; min-width: 0; }
.brand-cta button { padding: 6px 12px; background: var(--primary); color: white; border: 0; font-weight: 700; cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ============ TOP NAV ============ */
.top-nav { background: var(--bg); border-top: 3px solid var(--red); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.top-nav .container { display: flex; align-items: stretch; overflow-x: auto; }
.top-nav a { padding: 14px 20px; font-size: 13px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; border-right: 1px solid var(--border); white-space: nowrap; }
.top-nav a:hover, .top-nav a.active { background: var(--primary); color: white; text-decoration: none; }
.top-nav a:first-child { border-left: 1px solid var(--border); }

/* ============ SUB-ROW (3 destaques horizontais) ============ */
.highlights-row { padding: 16px 0; background: var(--bg-alt); }
.highlights-row .container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.mini-card { background: white; padding: 12px; display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; border-radius: 4px; border-left: 3px solid var(--red); }
.mini-card .thumb { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--bg-alt); border-radius: 2px; }
.mini-card .info .cat { font-size: 9px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.mini-card .info h3 { font-size: 13px; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.mini-card .info h3 a { color: var(--dark); }
.mini-card .info h3 a:hover { color: var(--primary); text-decoration: none; }

/* ============ HERO 70/30 ============ */
.hero-section { padding: 24px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.hero-feature { position: relative; aspect-ratio: 16/9; background-size: cover; background-position: center; overflow: hidden; background-color: var(--bg-alt); }
.hero-feature .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, transparent 100%); }
.hero-feature .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 28px; color: white; }
.hero-feature .cat { display: inline-block; background: var(--red); color: white; font-size: 11px; font-weight: 800; padding: 4px 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.hero-feature h1 { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.hero-feature h1 a { color: white; }
.hero-feature h1 a:hover { color: var(--primary); text-decoration: none; }
.hero-feature .meta { font-size: 12px; color: rgba(255,255,255,.85); }
.hero-feature .meta strong { color: white; }

.hero-list { background: white; border: 1px solid var(--border); }
.hero-list-title { background: var(--red); color: white; padding: 12px 16px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.hero-list ul { list-style: none; }
.hero-list li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.hero-list li:last-child { border-bottom: 0; }
.hero-list .thumb { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--bg-alt); }
.hero-list .info .cat { font-size: 9px; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.hero-list .info h4 { font-size: 12px; font-weight: 700; line-height: 1.3; margin-top: 2px; }
.hero-list .info h4 a { color: var(--dark); }
.hero-list .info h4 a:hover { color: var(--primary); text-decoration: none; }

/* ============ NEWSLETTER BANNER ============ */
.newsletter-banner { padding: 12px 0 24px; }
.newsletter-banner-inner { background: var(--primary); color: white; padding: 32px 24px; text-align: center; border-radius: 4px; }
.newsletter-banner-inner h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.newsletter-banner-inner p { font-size: 14px; opacity: .9; margin-bottom: 16px; }
.newsletter-banner-inner form { display: inline-flex; gap: 0; max-width: 100%; }
.newsletter-banner-inner input { padding: 10px 14px; border: 0; font-size: 14px; min-width: 280px; max-width: 60vw; border-radius: 4px 0 0 4px; }
.newsletter-banner-inner button { padding: 10px 20px; background: var(--dark); color: white; border: 0; font-weight: 800; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; border-radius: 0 4px 4px 0; }
.newsletter-banner-inner button:hover { background: #000; }

/* ============ DENSE GRID 4-COL ============ */
.dense-section { padding: 8px 0 48px; }
.dense-section h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--red); }
.dense-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.post-card { background: white; }
.post-card .thumb { aspect-ratio: 4/3; background-size: cover; background-position: center; margin-bottom: 8px; background-color: var(--bg-alt); }
.post-card .cat-tag { display: inline-block; font-size: 9px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.post-card h3 { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.post-card h3 a { color: var(--dark); }
.post-card h3 a:hover { color: var(--primary); text-decoration: none; }
.post-card .meta { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.post-card .meta strong { color: var(--primary); }

/* ============ ARCHIVE / SEARCH ============ */
.archive-header { padding: 24px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.archive-header h1 { font-size: 26px; font-weight: 800; padding-left: 12px; border-left: 4px solid var(--red); }
.archive-header .desc { font-size: 13px; color: var(--gray); margin-top: 8px; }

.breadcrumb { padding: 16px 0 8px; font-size: 12px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }

.pagination-wrap { padding: 32px 0; display: flex; justify-content: center; }
.pagination-wrap .nav-links { display: flex; gap: 8px; }
.pagination-wrap .page-numbers { padding: 8px 14px; border: 1px solid var(--border); color: var(--dark); font-weight: 600; font-size: 13px; }
.pagination-wrap .page-numbers.current { background: var(--red); color: white; border-color: var(--red); }
.pagination-wrap .page-numbers:hover { background: var(--primary); color: white; border-color: var(--primary); text-decoration: none; }

/* ============ SINGLE POST ============ */
.post-single { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.post-single .breadcrumb { padding: 0 0 16px; }
.post-single .cat-line { font-size: 11px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.post-title { font-size: 36px; font-weight: 800; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.3px; }
.post-meta { font-size: 13px; color: var(--gray); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.post-meta a { color: var(--dark); font-weight: 600; }
.post-meta a:hover { color: var(--primary); text-decoration: none; }
.post-featured-image { margin: 0 0 24px; }
.post-featured-image img { width: 100%; height: auto; display: block; }
.post-featured-image figcaption { font-size: 12px; color: var(--gray); margin-top: 6px; font-style: italic; text-align: center; }

.post-content { font-size: 17px; line-height: 1.7; }
.post-content h2 { font-size: 26px; font-weight: 800; margin: 36px 0 14px; }
.post-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.post-content p { margin: 0 0 18px; }
.post-content blockquote { border-left: 4px solid var(--red); margin: 28px 0; padding: 14px 22px; font-style: italic; color: var(--gray); background: var(--bg-alt); }
.post-content ul, .post-content ol { margin: 0 0 18px 28px; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--link); }
.post-content a:hover { color: var(--primary); }

.author-bio { display: flex; gap: 16px; padding: 20px; background: var(--bg-alt); margin-top: 32px; border-left: 3px solid var(--red); }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; flex-shrink: 0; }
.author-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.author-desc { font-size: 13px; color: var(--gray); }

.related-posts { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-posts h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--red); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--dark); color: white; padding: 48px 0 20px; margin-top: 32px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 24px; }
.footer-col h4 { font-size: 11px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 12px; }
.footer-col p { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.6; margin: 0; }
.footer-col ul { list-style: none; }
.footer-col li a { color: rgba(255,255,255,.7); font-size: 12px; padding: 3px 0; display: block; }
.footer-col li a:hover { color: var(--primary); text-decoration: none; }
.social-row { display: flex; gap: 8px; margin-top: 12px; }
.social-row a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 13px; }
.social-row a:hover { background: var(--primary); border-color: var(--primary); text-decoration: none; }
.footer-bottom { padding-top: 16px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 11px; color: rgba(255,255,255,.4); }

/* ============ WHATSAPP FLOAT ============ */
.wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 1000; transition: transform .15s; }
.wa-float:hover { transform: scale(1.05); color: white; text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .dense-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .brand-row .container { grid-template-columns: 1fr; gap: 12px; }
  .promo-yellow, .brand-cta { width: 100%; }
  .highlights-row .container { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { aspect-ratio: 16/10; }
  .hero-feature h1 { font-size: 22px; }
  .dense-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .post-title { font-size: 26px; }
  .post-content { font-size: 16px; }
}
@media (max-width: 480px) {
  .dense-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .top-nav a { padding: 12px 14px; font-size: 12px; }
}
