/* ============================================
   NOVO ISRAEL BLOG - CSS OTIMIZADO PARA SEO/GEO
   Versão: 1.0
   Otimizado para: Core Web Vitals, Performance, Acessibilidade
   ============================================ */

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Identidade Visual Novo Israel */
    --primary-color: #550202;      /* Vermelho escuro da loja */
    --secondary-color: #ffd966;    /* Amarelo ouro da loja */
    --accent-color: #990000;       /* Vermelho intenso */
    --text-dark: #444444;          /* Cinza escuro */
    --text-light: #666666;         /* Cinza médio */
    --bg-light: #f9f9f9;           /* Cinza muito claro */
    --bg-dark: #101010;            /* Preto */
    --white: #ffffff;
    --border-color: #e0e0e0;

    /* Tipografia */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;

    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Larguras */
    --max-width: 1200px;
    --content-width: 800px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: var(--spacing-lg);
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    margin-top: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* === HEADER === */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    color: var(--white);
    height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo img {
    width: auto;
    height: 225px;
    object-fit: contain;
}

.site-logo:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    color: #ffd966;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* === MAIN CONTENT === */
.main-content {
    max-width: var(--max-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

/* === HERO SECTION === */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.hero-section h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-search {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-right: none;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.hero-search input:focus {
    border-color: var(--primary-color);
}

.hero-search button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-search button:hover {
    background: var(--accent-color);
}

.hero-cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* === FEATURED ARTICLES === */
.featured-section {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.featured-card {
    border: 2px solid var(--secondary-color);
}

.featured-card .blog-card-image {
    height: 250px;
}

/* === TAGS === */
.blog-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.tag-campanha {
    background: #990000;
}

.tag-material {
    background: #0066cc;
}

.tag-simbolo {
    background: #ff6600;
}

.tag-vida-crista {
    background: #009900;
}

.tag-gestao {
    background: #6600cc;
}

/* === CATEGORIES GRID === */
.categories-section {
    margin: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.category-title a {
    color: var(--primary-color);
}

.category-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* === NEWSLETTER === */
.newsletter-section {
    margin: 4rem 0;
}

.newsletter-box {
    background: linear-gradient(135deg, #f9f9f9 0%, #ececec 100%);
    padding: var(--spacing-xl);
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.newsletter-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.newsletter-box p {
    margin-bottom: 1.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
}

.newsletter-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-button:hover {
    background: var(--accent-color);
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* === CTA FINAL === */
.cta-final {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

/* === ARTICLE === */
.article-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--secondary-color);
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    color: #777;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* === LISTAS === */
.article-content ul,
.article-content ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.article-content li {
    margin-bottom: var(--spacing-xs);
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

/* === FAQ SECTION === */
.faq-section {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin: var(--spacing-xl) 0;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.faq-answer {
    color: var(--text-light);
}

/* === CTA (CALL TO ACTION) === */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.cta-box h2,
.cta-box h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-md);
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--bg-dark);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: #ffed99;
    text-decoration: none;
    color: var(--bg-dark);
}

/* === BLOG GRID === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: var(--max-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: var(--spacing-md);
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.blog-card-title a {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.blog-card-meta {
    font-size: 0.9rem;
    color: #999;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    max-width: var(--content-width);
    margin: var(--spacing-md) auto;
    padding: 0 var(--spacing-md);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #666;
}

.breadcrumbs span {
    color: #999;
    margin: 0 var(--spacing-xs);
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
    border-top: 2px solid var(--secondary-color);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* === MOBILE MENU HAMBURGER === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* === RESPONSIVE - TABLET === */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === RESPONSIVE - MOBILE === */
@media (max-width: 768px) {
    /* HEADER MOBILE */
    .site-header {
        height: auto;
        min-height: 60px;
        padding: 10px 0;
    }

    .header-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        height: auto;
    }

    .site-logo {
        height: auto;
    }

    .site-logo img {
        height: 150px !important;
        width: auto !important;
    }

    /* ESCONDER HAMBURGER - Menu sempre visível */
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        display: block !important;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        margin-top: 10px;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .main-nav li {
        display: inline-block;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        display: block;
        padding: 10px 15px;
        font-size: 0.95rem;
        color: var(--white);
        text-align: center;
        text-decoration: none;
        border-radius: 4px;
        transition: background 0.2s ease;
    }

    .main-nav a:hover {
        background: rgba(255,255,255,0.1);
        color: var(--secondary-color);
    }

    /* MAIN CONTENT */
    .main-content {
        margin: var(--spacing-md) auto;
        padding: 0 15px;
    }

    /* HERO SECTION */
    .hero-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
        margin-bottom: 1.5rem;
    }

    .hero-search {
        flex-direction: column;
        margin: 1.5rem 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .hero-search input {
        border: 2px solid var(--border-color);
        border-radius: 8px 8px 0 0;
        padding: 14px 15px;
        font-size: 16px; /* Previne zoom no iOS */
    }

    .hero-search button {
        border-radius: 0 0 8px 8px;
        padding: 14px;
    }

    .hero-cta-button {
        display: block;
        margin: 1rem 15px 0;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    /* FEATURED SECTION */
    .featured-section {
        margin-bottom: 2rem;
    }

    .featured-section h2,
    .latest-articles-section h2,
    .categories-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem !important;
        padding: 0 10px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0;
    }

    .featured-card .blog-card-image {
        height: 180px;
    }

    /* BLOG CARDS */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin: var(--spacing-md) auto;
        padding: 0;
    }

    .blog-card {
        margin: 0;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 15px;
    }

    .blog-card-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .blog-card-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .blog-card-meta {
        font-size: 0.8rem;
    }

    .blog-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* CATEGORIES */
    .categories-section {
        margin: 2rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .category-card {
        padding: var(--spacing-sm);
    }

    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .category-title {
        font-size: 0.95rem;
    }

    .category-description {
        font-size: 0.8rem;
        display: none; /* Esconder em mobile para economizar espaço */
    }

    /* CTA BOX */
    .cta-box {
        padding: var(--spacing-md);
        margin: 2rem 0 !important;
        border-radius: 8px;
    }

    .cta-box h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .cta-box p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        display: block;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* NEWSLETTER */
    .newsletter-section {
        margin: 2rem 0;
    }

    .newsletter-box {
        padding: var(--spacing-md);
        border-radius: 8px;
    }

    .newsletter-box h3 {
        font-size: 1.1rem;
    }

    .newsletter-box p {
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        padding: 14px 15px;
        font-size: 16px; /* Previne zoom no iOS */
        border-radius: 6px;
    }

    .newsletter-button {
        padding: 14px;
        border-radius: 6px;
    }

    .newsletter-privacy {
        font-size: 0.75rem;
    }

    /* ARTICLE CONTENT */
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .article-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }

    .article-meta {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq-section {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }

    .faq-item {
        padding: var(--spacing-sm);
    }

    .faq-question {
        font-size: 1rem;
    }

    /* FOOTER */
    .site-footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
        margin-top: var(--spacing-lg);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 15px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-section ul li {
        display: inline;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: var(--spacing-sm);
    }

    /* Esconder seções do footer em mobile exceto a primeira e última */
    .footer-section:nth-child(2),
    .footer-section:nth-child(3) {
        display: none;
    }
}

/* === RESPONSIVE - MOBILE PEQUENO === */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-description {
        display: block;
    }

    .blog-card-title {
        font-size: 1rem;
    }

    .featured-card .blog-card-image,
    .blog-card-image {
        height: 160px;
    }
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* === PERFORMANCE OPTIMIZATIONS === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading optimization */
img[loading="lazy"] {
    min-height: 200px;
    background: var(--bg-light);
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .cta-box,
    .main-nav {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
