/*
Theme Name: Blog Ferragens Camboatá
Theme URI: https://blog.ferragenscamboata.com.br
Author: Ferragens Camboatá
Author URI: https://ferragenscamboata.com.br
Description: Tema personalizado, limpo e moderno para o blog de dicas da Ferragens Camboatá (Obras, Elétrica, Hidráulica, Ferramentas e Casa & Lar).
Version: 1.0.0
Text Domain: blog-ferragens-camboata
*/

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

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #e8f5e9;
    --primary-accent: #388e3c;
    --accent-orange: #ff5500;
    --accent-orange-hover: #d94800;
    --bg-page: #f4f7f5;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 30px rgba(46, 125, 50, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-contact a {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-contact a:hover {
    color: #ffffff;
}
.top-store-link {
    background-color: var(--accent-orange);
    color: #ffffff !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.3);
}
.top-store-link:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
}

/* Header */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}
.logo-text h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
}
.logo-text h1 span {
    color: var(--accent-orange);
}
.logo-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 10px 45px 10px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--border-color);
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.header-search input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}
.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.header-search button:hover {
    background-color: var(--primary-dark);
}

/* Nav Menu */
.header-nav {
    background-color: var(--primary);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}
.nav-menu a {
    color: #ffffff;
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: var(--accent-orange);
}
.nav-menu i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.92), rgba(46, 125, 50, 0.88)), url('https://ferragenscamboata.com.br/wp-content/uploads/2025/10/Ferragens-camboata_usar_essa-Banner-para-blog_imagem_atual.png') center/cover no-repeat;
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--accent-orange);
}
.hero-content {
    max-width: 820px;
    margin: 0 auto;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 85, 0, 0.25);
    border: 1px solid rgba(255, 85, 0, 0.5);
    color: #ff9d66;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 28px;
    font-weight: 400;
}
.hero-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-pill {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-pill:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Category Grid / Visual Badges */
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.section-title i {
    color: var(--accent-orange);
}
.categories-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 36px 0;
}
.cat-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.cat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.cat-icon.obras { background-color: #fff3e0; color: #e65100; }
.cat-icon.eletrica { background-color: #fffde7; color: #f57f17; }
.cat-icon.hidraulica { background-color: #e1f5fe; color: #0288d1; }
.cat-icon.ferramentas { background-color: #e8f5e9; color: #2e7d32; }
.cat-icon.casa { background-color: #f3e5f5; color: #7b1fa2; }

.cat-info h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}
.cat-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin: 40px 0;
}

/* Article Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.post-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.post-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e2e8f0;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-thumb img {
    transform: scale(1.06);
}
.post-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--accent-orange);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 10px;
}
.post-card:hover .post-title {
    color: var(--primary);
}
.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.read-more {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post-card:hover .read-more {
    color: var(--accent-orange);
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.widget {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-orange);
}

/* Widget: Store Banner Promo */
.widget-store-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.widget-store-banner i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 12px;
}
.widget-store-banner h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.widget-store-banner p {
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 18px;
}
.btn-store {
    background-color: var(--accent-orange);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35);
}
.btn-store:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-2px);
}

/* Widget: Popular Posts List */
.popular-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.popular-item {
    display: flex;
    gap: 12px;
    align-items: center;
}
.popular-img {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.popular-info h5 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}
.popular-info h5 a:hover {
    color: var(--primary);
}
.popular-info span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Single Post View */
.single-post-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 0;
}
.single-header {
    margin-bottom: 24px;
}
.breadcrumbs {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs a:hover {
    color: var(--primary);
}
.single-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 16px;
}
.single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}
.author-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-main);
}
.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.single-featured-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}
.single-content {
    background-color: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1.06rem;
    line-height: 1.8;
    color: #334155;
    box-shadow: var(--shadow-sm);
}
.single-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}
.single-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 12px 0;
}
.single-content p {
    margin-bottom: 20px;
}
.single-content ul, .single-content ol {
    margin: 0 0 20px 24px;
}
.single-content li {
    margin-bottom: 8px;
}
.single-content blockquote {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    margin: 24px 0;
    color: var(--primary-dark);
}

/* Callout Box inside Single Post */
.cta-post-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 36px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.cta-post-box i {
    font-size: 2.8rem;
    color: var(--primary-dark);
}
.cta-post-text h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.cta-post-text p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #2e7d32;
}

/* Footer */
.main-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: 60px;
    border-top: 4px solid var(--accent-orange);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-orange);
}
.footer-col p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover {
    color: var(--accent-orange);
    transform: translateX(3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsiveness */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }
}
