/* Revista Afeto. Identidade própria, sem framework de produção. */
:root {
    --verde: #26473D;
    --verde-claro: #DCE5DC;
    --terracota: #C96B54;
    --terracota-escuro: #9C4A3C;
    --papel: #FAF7F0;
    --branco: #FFFFFF;
    --tinta: #26312D;
    --cinza: #6E756F;
    --linha: #DDD8CD;
    --amarelo: #E8B85E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    background: var(--papel);
    color: var(--tinta);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--terracota-escuro); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    line-height: 1.22;
    font-weight: 600;
}
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    background: var(--branco);
    padding: 10px 16px;
    border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Cabeçalho */
.topbar { background: var(--verde); color: var(--branco); font-size: .75rem; letter-spacing: .04em; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.site-header { background: var(--papel); border-bottom: 1px solid var(--linha); position: sticky; top: 0; z-index: 50; }
.main-nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 42px; height: 42px; }
.brand-name { font-family: 'Lora', serif; font-size: 1.45rem; color: var(--verde); }
.brand-name strong { color: var(--terracota-escuro); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links > a { color: var(--tinta); font-size: .86rem; font-weight: 500; }
.nav-links > a:hover, .nav-links > a.active { color: var(--terracota-escuro); }
.nav-links > a.active { border-bottom: 2px solid var(--terracota); padding-bottom: 3px; }
.nav-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--verde); margin: 5px; }
.nav-cart { position: relative; display: inline-flex; }
.cart-count {
    display: none;
    position: absolute;
    right: -11px;
    top: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 20px;
    background: var(--terracota);
    color: var(--branco);
    font-size: .66rem;
    line-height: 18px;
    text-align: center;
}

/* Elementos comuns */
.btn {
    display: inline-block;
    border: 1px solid var(--verde);
    border-radius: 6px;
    background: var(--verde);
    color: var(--branco);
    padding: 12px 24px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--terracota-escuro); border-color: var(--terracota-escuro); color: var(--branco); }
.btn-outline { background: transparent; color: var(--verde); }
.btn-outline:hover { color: var(--branco); }
.text-link { color: var(--terracota-escuro); font-size: .85rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.kicker {
    color: var(--terracota-escuro);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section { padding: 68px 0; }
.section-alt { background: var(--branco); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--cinza); max-width: 600px; margin-top: 7px; }
.section-link { flex-shrink: 0; font-size: .88rem; font-weight: 700; }

/* Home */
.hero { padding: 44px 0 48px; }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: 22px; }
.hero-copy > p:not(.kicker) { color: var(--cinza); font-size: 1.05rem; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 490px; object-fit: cover; border-radius: 110px 8px 8px 8px; }
.hero-caption {
    position: absolute;
    left: -30px;
    bottom: 26px;
    max-width: 280px;
    background: var(--branco);
    border-left: 4px solid var(--terracota);
    padding: 16px 20px;
    box-shadow: 0 14px 36px rgba(38,49,45,.13);
    font-family: 'Lora', serif;
    font-size: .95rem;
}
.editorial-strip { background: var(--verde-claro); }
.editorial-strip .container { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.editorial-strip a { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--papel); }
.section-alt .post-card { background: var(--branco); }
.post-card .card-img { display: block; height: 230px; overflow: hidden; border-radius: 8px; }
.post-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .card-img img { transform: scale(1.025); }
.post-card .card-body { padding: 20px 2px 0; }
.post-meta { color: var(--terracota-escuro); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 9px; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--tinta); }
.post-card h3 a:hover { color: var(--terracota-escuro); }
.post-card .card-body > p:not(.post-meta) { color: var(--cinza); font-size: .9rem; margin-bottom: 15px; }

.news-band { background: var(--verde); color: var(--branco); }
.news-band .section-head h2, .news-band .section-head p, .news-band .section-link { color: var(--branco); }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.news-item { padding: 8px 28px 8px 0; }
.news-item + .news-item { border-left: 1px solid rgba(255,255,255,.2); padding-left: 28px; }
.news-item time { color: var(--amarelo); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
.news-item h3 { color: var(--branco); font-size: 1.15rem; margin-bottom: 10px; }
.news-item h3 a { color: var(--branco); }
.news-item p { color: rgba(255,255,255,.75); font-size: .86rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-grid.featured { grid-template-columns: repeat(4, 1fr); }
.product-card { background: var(--branco); border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; }
.product-card .card-img { display: block; background: #F0EADF; aspect-ratio: 1 / 1; overflow: hidden; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .card-img img { transform: scale(1.02); }
.product-card .card-body { padding: 20px; }
.card-cat { color: var(--terracota-escuro); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; }
.product-card h3 { font-size: 1.22rem; margin-bottom: 5px; }
.product-card h3 a { color: var(--tinta); }
.card-note { color: var(--cinza); font-size: .76rem; margin-bottom: 12px; }
.card-desc { color: var(--cinza); font-size: .86rem; min-height: 66px; margin-bottom: 18px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--linha); padding-top: 15px; }
.price { color: var(--verde); font-weight: 700; }

.newsletter { background: #EDE3D4; padding: 54px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter h2 { font-size: 1.9rem; margin-bottom: 8px; }
.newsletter p { color: var(--cinza); }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { flex: 1; min-width: 0; border: 1px solid var(--linha); border-radius: 6px; background: var(--branco); padding: 12px 15px; }
.form-message { border-radius: 6px; padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; }
.form-success { background: #E5F1E7; border: 1px solid #B5D0B8; color: #315F39; }
.form-error { background: #F8E8E3; border: 1px solid #E4B8AA; color: #873F32; }

/* Páginas editoriais */
.page-hero { background: var(--verde-claro); padding: 48px 0; }
.page-hero h1 { font-size: 2.6rem; max-width: 780px; margin-bottom: 12px; }
.page-hero p { color: #526159; max-width: 690px; }
.blog-section { padding: 48px 0; border-bottom: 1px solid var(--linha); }
.blog-section:last-child { border-bottom: 0; }
.blog-section > h2 { font-size: 1.8rem; margin-bottom: 26px; }
.article-hero { margin: 36px 0 28px; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; }
.article-wrap { max-width: 780px; margin: 0 auto; padding-bottom: 64px; }
.article-wrap h1 { font-size: 2.55rem; margin-bottom: 14px; }
.article-wrap > .post-meta { margin-bottom: 28px; }
.article-body { font-family: 'Lora', serif; font-size: 1.06rem; line-height: 1.85; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 1.55rem; margin: 36px 0 13px; }
.article-body ul, .article-body ol { margin: 0 0 22px 25px; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote { border-left: 4px solid var(--terracota); padding: 8px 0 8px 22px; margin: 30px 0; font-size: 1.25rem; font-style: italic; }
.article-note { background: var(--verde-claro); border-radius: 8px; padding: 22px 24px; margin-top: 34px; font-family: 'Inter', sans-serif; font-size: .88rem; }
.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #EDE3D4; border-radius: 8px; padding: 24px; margin-top: 34px; font-family: 'Inter', sans-serif; }
.article-cta h2 { font-size: 1.2rem; margin: 0 0 5px; }
.article-cta p { color: var(--cinza); font-size: .86rem; margin: 0; }

/* Notícias */
.newsroom-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; padding: 42px 0; }
.newsroom-hero img { width: 100%; height: 350px; object-fit: cover; border-radius: 8px; }
.newsroom-hero h1 { font-size: 2.7rem; margin-bottom: 14px; }
.newsroom-hero p { color: var(--cinza); }
.news-story { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 34px 0; border-top: 1px solid var(--linha); max-width: 940px; }
.news-story time { color: var(--terracota-escuro); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.news-story h2 { font-size: 1.65rem; margin-bottom: 12px; }
.news-story p { color: var(--cinza); margin-bottom: 12px; }
.news-story .story-tag { display: inline-block; color: var(--verde); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* Loja e produtos */
.category-section { padding: 50px 0; border-bottom: 1px solid var(--linha); }
.category-section:last-child { border-bottom: 0; }
.category-section > h2 { font-size: 2rem; margin-bottom: 7px; }
.cat-lead { color: var(--cinza); margin-bottom: 28px; }
.breadcrumb { color: var(--cinza); font-size: .78rem; padding: 24px 0 0; }
.breadcrumb a { color: var(--cinza); }
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; padding: 32px 0 64px; align-items: start; }
.product-photo { border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; background: #F0EADF; }
.product-photo img { width: 100%; }
.product-info { padding-top: 18px; }
.product-info h1 { font-size: 2.5rem; margin-bottom: 12px; }
.product-author { color: var(--cinza); margin-bottom: 18px; }
.product-price { color: var(--verde); font-size: 1.65rem; font-weight: 700; }
.product-installments { color: var(--cinza); font-size: .84rem; margin-bottom: 24px; }
.product-info .lead { margin-bottom: 22px; }
.benefits { list-style: none; margin-bottom: 28px; }
.benefits li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: .9rem; }
.benefits li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--terracota); }
.buy-row { margin-bottom: 22px; }
.shipping-note { background: var(--verde-claro); border-radius: 6px; padding: 15px 18px; font-size: .84rem; }
.product-details { background: var(--branco); border-top: 1px solid var(--linha); padding: 44px 0; }
.product-details h2 { font-size: 1.55rem; margin-bottom: 18px; }
.product-details ul { margin-left: 20px; }
.product-details li { margin-bottom: 7px; }

/* Institucional e formulários */
.prose { max-width: 800px; padding: 52px 0 68px; }
.prose h2 { font-size: 1.45rem; margin: 30px 0 10px; }
.prose p { margin-bottom: 15px; }
.prose ul { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 7px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 54px 0; }
.about-grid img { width: 100%; height: 470px; object-fit: cover; border-radius: 8px; }
.about-grid h2 { font-size: 2rem; margin-bottom: 16px; }
.about-grid p { margin-bottom: 15px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 64px; }
.value-card { border-top: 3px solid var(--terracota); background: var(--branco); padding: 26px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--cinza); font-size: .9rem; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; padding: 52px 0 68px; }
.contact-info h2 { font-size: 1.45rem; margin-bottom: 18px; }
.contact-info p { margin-bottom: 13px; }
.contact-map { margin-top: 24px; border: 1px solid var(--linha); border-radius: 8px; overflow: hidden; }
.contact-map iframe { display: block; width: 100%; height: 250px; border: 0; }
.contact-form { background: var(--branco); border: 1px solid var(--linha); border-radius: 8px; padding: 30px; }
.contact-form h2 { font-size: 1.45rem; margin-bottom: 20px; }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--linha); border-radius: 6px; background: var(--papel); padding: 11px 13px; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .newsletter input:focus { outline: 2px solid var(--terracota); outline-offset: 1px; }

/* Carrinho */
.cart-empty { max-width: 620px; margin: 0 auto; text-align: center; padding: 80px 0; }
.cart-empty h1 { font-size: 2.2rem; margin-bottom: 12px; }
.cart-empty p { color: var(--cinza); margin-bottom: 24px; }
.cart-full { max-width: 780px; padding: 48px 0 64px; }
.cart-full h1 { font-size: 2.2rem; margin-bottom: 26px; }
.cart-item { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--linha); padding: 18px 0; }
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; }
.cart-item-price { font-weight: 700; white-space: nowrap; }
.cart-remove { border: 0; background: transparent; color: var(--terracota-escuro); cursor: pointer; text-decoration: underline; font-size: .82rem; }
.cart-subtotal { text-align: right; font-size: 1.15rem; margin: 24px 0 12px; }
.cart-note { color: var(--cinza); font-size: .9rem; margin-bottom: 24px; }
.cart-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Rodapé */
.site-footer { background: #203A33; color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 42px; padding-top: 54px; padding-bottom: 42px; }
.footer-brand { display: inline-block; color: var(--branco); font-family: 'Lora', serif; font-size: 1.55rem; margin-bottom: 14px; }
.footer-intro p { font-size: .88rem; }
.site-footer h2 { color: var(--branco); font-family: 'Inter', sans-serif; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { font-size: .84rem; margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer a:hover { color: var(--amarelo); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; padding-bottom: 26px; font-size: .73rem; }
.footer-legal > div { display: flex; gap: 20px; margin-bottom: 9px; }
.footer-legal p { margin-bottom: 4px; }

@media (max-width: 1050px) {
    .nav-links { gap: 15px; }
    .nav-links > a { font-size: .79rem; }
    .product-grid.featured { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { gap: 34px; }
}

@media (max-width: 820px) {
    .topbar-inner span:last-child { display: none; }
    .topbar-inner { justify-content: center; }
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papel); border-bottom: 1px solid var(--linha); padding: 20px; flex-direction: column; align-items: flex-start; gap: 16px; box-shadow: 0 12px 24px rgba(38,49,45,.08); }
    .nav-links.open { display: flex; }
    .nav-links > a { font-size: .92rem; }
    .hero-grid, .newsroom-hero, .about-grid, .contact-grid, .newsletter-inner { grid-template-columns: 1fr; }
    .hero-copy { max-width: 650px; }
    .hero-photo img { height: 420px; border-radius: 70px 8px 8px 8px; }
    .hero-caption { left: 16px; }
    .post-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    .news-item, .news-item + .news-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding: 20px 0; }
    .news-item:first-child { border-top: 0; padding-top: 0; }
    .newsletter form { max-width: 560px; }
    .product-page { grid-template-columns: 1fr; gap: 26px; }
    .product-photo { max-width: 620px; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 30px, 1160px); }
    .main-nav { min-height: 70px; }
    .brand-logo { width: 36px; height: 36px; }
    .brand-name { font-size: 1.25rem; }
    .hero { padding-top: 32px; }
    .hero-grid { gap: 30px; }
    .hero-copy h1 { font-size: 2.45rem; }
    .hero-photo img { height: 330px; }
    .hero-caption { position: static; max-width: none; box-shadow: none; border: 1px solid var(--linha); border-left: 4px solid var(--terracota); margin-top: 12px; }
    .section { padding: 48px 0; }
    .section-head { display: block; }
    .section-head h2 { font-size: 1.7rem; }
    .section-link { display: inline-block; margin-top: 12px; }
    .post-grid, .product-grid, .product-grid.featured { grid-template-columns: 1fr; }
    .post-card .card-img { height: 250px; }
    .card-desc { min-height: 0; }
    .newsletter form { flex-direction: column; }
    .page-hero h1, .article-wrap h1, .newsroom-hero h1 { font-size: 2rem; }
    .newsroom-hero img { height: 300px; }
    .news-story { grid-template-columns: 1fr; gap: 8px; }
    .article-cta { display: block; }
    .article-cta .btn { margin-top: 16px; }
    .product-info h1 { font-size: 2rem; }
    .contact-form { padding: 22px; }
    .about-grid img { height: 360px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cart-item { flex-wrap: wrap; gap: 8px 14px; }
    .cart-item-info { flex-basis: 100%; }
}
