/* Main shared styles extracted from index.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0f;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hexagonPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* made the accent stronger so header doesn't look washed-out */
    box-shadow: 0 5px 30px rgba(255, 193, 7, 0.18);
    border-bottom: 2px solid rgba(255, 193, 7, 0.35);
    animation: slideInLeft 0.8s ease-out;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    background: linear-gradient(135deg, #ffc107, #ff9800, #ffc107);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    display: inline-block;
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: white; text-decoration: none; position: relative; transition: all 0.3s; padding: 0.5rem 0; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, #ffc107, #ff9800); transition: all 0.3s; transform: translateX(-50%); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #ffc107; transform: translateY(-2px); }

.hero { position: relative; background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%); background-size: 200% 200%; animation: gradientShift 15s ease infinite; color: white; padding: 8rem 2rem; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; /* increase pattern opacity slightly for better visibility */ background-image: repeating-linear-gradient(60deg, transparent 0px, transparent 50px, rgba(255, 193, 7, 0.06) 50px, rgba(255, 193, 7, 0.06) 100px), repeating-linear-gradient(-60deg, transparent 0px, transparent 50px, rgba(255, 152, 0, 0.06) 50px, rgba(255, 152, 0, 0.06) 100px); animation: float 8s ease-in-out infinite; }
.hero::after { content: ''; position: absolute; font-size: 8rem; opacity: 0.12; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: hexagonPulse 4s ease-in-out infinite; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, #ffffff, #ffc107, #ffffff); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientShift 4s ease infinite, fadeInUp 1s ease-out; text-shadow: 0 0 40px rgba(255, 193, 7, 0.3); }
.hero p { font-size: 1.4rem; margin-bottom: 2.5rem; animation: fadeInUp 1s ease-out 0.3s backwards; color: rgba(255, 255, 255, 0.9); }

/* Make inline links inside the hero text use the site's yellow theme color */
.hero-content a {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 600;
}
.hero-content a:hover {
    color: #ffb236;
}

.cta-button { display: inline-block; background: linear-gradient(135deg, #ffc107, #ff9800); color: #ffffff; padding: 1.2rem 3rem; text-decoration: none; border-radius: 50px; font-weight: bold; position: relative; overflow: hidden; animation: fadeInUp 1s ease-out 0.6s backwards; box-shadow: 0 10px 40px rgba(255, 193, 7, 0.4); transition: all 0.3s; }
.cta-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transition: left 0.5s; }
.cta-button:hover::before { left: 100%; }
.cta-button:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 50px rgba(255, 193, 7, 0.6); }
.cta-button {
    color: #ffffff; /* Ensure text is white */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* Increase shadow for stronger contrast */
    font-size: 1.2rem; /* Slightly increase font size for better readability */
}

.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 3rem; background: linear-gradient(135deg, #ffc107, #ff9800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; animation: fadeInUp 0.8s ease-out; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; background: linear-gradient(90deg, transparent, #ffc107, transparent); animation: shimmer 2s infinite; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.service-card { background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 15, 0.8)); padding: 2.5rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; border: 1px solid rgba(255, 193, 7, 0.22); animation: scaleIn 0.6s ease-out backwards; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107); background-size: 200% 100%; animation: shimmer 3s infinite; }
.service-card::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 193, 7, 0.22) 0%, transparent 70%); transition: all 0.6s; transform: scale(0); }
.service-card:hover::after { transform: scale(1); }
.service-card:hover { transform: translateY(-15px) scale(1.03); box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3); border-color: rgba(255, 193, 7, 0.4); }
.service-card h3 { color: #ffc107; margin-bottom: 1rem; font-size: 1.6rem; position: relative; z-index: 1; }
.service-card p { color: rgba(255, 255, 255, 0.95); line-height: 1.8; position: relative; z-index: 1; }
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.article-card { background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 15, 0.8)); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(255, 193, 7, 0.22); animation: fadeInUp 0.6s ease-out backwards; }
.article-card:hover { transform: translateY(-15px) rotate(1deg); box-shadow: 0 20px 60px rgba(255, 193, 7, 0.4); border-color: rgba(255, 193, 7, 0.4); }
.article-image { width: 100%; height: 220px; background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); display: flex; align-items: center; justify-content: center; color: white; font-size: 4rem; position: relative; overflow: hidden; transition: all 0.4s; }
.article-image img { width:100%; height:100%; object-fit:cover; display:block; }
.article-image::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; /* make highlight more visible */ background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); }
.article-card:hover .article-image::before { animation: shimmer 1s; }
.article-card:hover .article-image { transform: scale(1.1); }
.article-content { padding: 2rem; }
.article-content h3 { color: #ffc107; margin-bottom: 0.8rem; transition: all 0.3s; }
.article-card:hover .article-content h3 { transform: translateX(10px); }
.article-content p { color: rgba(255, 255, 255, 0.95); margin-bottom: 1.2rem; line-height: 1.7; }
.read-more { color: #ffc107; text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; }
.read-more::after { content: '→'; transition: transform 0.3s; }
.read-more:hover::after { transform: translateX(5px); }
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

.stats { background: linear-gradient(135deg, rgba(255, 193, 7, 0.18) 0%, rgba(255, 152, 0, 0.18) 100%); backdrop-filter: blur(10px); padding: 5rem 2rem; margin: 4rem 0; position: relative; overflow: hidden; border-top: 2px solid rgba(255, 193, 7, 0.35); border-bottom: 2px solid rgba(255, 193, 7, 0.35); }
.stats::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.12) 50%, transparent 70%); background-size: 200% 200%; animation: gradientShift 10s ease infinite; }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; position: relative; z-index: 1; }
.stat-item { animation: scaleIn 0.6s ease-out backwards; transition: transform 0.3s; }
.stat-item:hover { transform: scale(1.1); }
.stat-item h3 { font-size: 3.5rem; margin-bottom: 0.5rem; background: linear-gradient(135deg, #ffc107, #ff9800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: pulse 2s ease-in-out infinite; }
.stat-item p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.about { background: linear-gradient(145deg, rgba(26, 26, 46, 0.75), rgba(10, 10, 15, 0.75)); padding: 5rem 2rem; position: relative; overflow: hidden; }
.about::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 70%); animation: rotate 30s linear infinite; }
.about-content { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; animation: fadeInUp 0.8s ease-out; }
.about-content p { color: rgba(255, 255, 255, 0.95); font-size: 1.15rem; line-height: 1.9; }

.contact-form { background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(10, 10, 15, 0.8)); max-width: 600px; margin: 0 auto; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 193, 7, 0.35); animation: scaleIn 0.8s ease-out; }
.form-group { margin-bottom: 1.8rem; animation: fadeInUp 0.6s ease-out backwards; }
.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #ffc107; transition: all 0.3s; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; border: 2px solid rgba(255, 193, 7, 0.35); border-radius: 10px; font-size: 1rem; background: rgba(10, 10, 15, 0.85); color: white; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #ffc107; box-shadow: 0 0 20px rgba(255, 193, 7, 0.45); transform: translateY(-2px); }
.form-group textarea { resize: vertical; min-height: 120px; }

.submit-button { background: linear-gradient(135deg, #ffc107, #ff9800); color: #0a0a0f; padding: 1.2rem 2rem; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: bold; cursor: pointer; width: 100%; transition: all 0.3s; position: relative; overflow: hidden; box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3); }
.submit-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); transition: left 0.5s; }
.submit-button:hover::before { left: 100%; }
.submit-button:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 193, 7, 0.5); }

footer { background: rgba(10, 10, 15, 0.95); color: white; padding: 3rem 2rem; margin-top: 4rem; border-top: 2px solid rgba(255, 193, 7, 0.35); position: relative; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-section { animation: fadeInUp 0.6s ease-out backwards; }
.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section h3 { margin-bottom: 1rem; color: #ffc107; }
.footer-section p { color: rgba(255, 255, 255, 0.95); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.7rem; }
.footer-section a { color: rgba(255, 255, 255, 0.95); text-decoration: none; transition: all 0.3s; display: inline-block; }
.footer-section a:hover { color: #ffc107; transform: translateX(5px); }
.copyright { text-align: center; padding: 2rem; background: rgba(0, 0, 0, 0.45); margin-top: 2rem; border-top: 1px solid rgba(255, 193, 7, 0.18); color: rgba(255, 255, 255, 0.85); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .article-grid { grid-template-columns: 1fr; }
    .stat-item h3 { font-size: 2.5rem; }
    .services { grid-template-columns: 1fr; }
}

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: float 2s ease-in-out infinite; font-size: 2rem; color: #ffc107; z-index: 2; }

/* small compatibility fix requested by linter */
.logo-text { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Blog-specific small layout (keeps compatibility with existing blog.html structure) */
.article-image { height: 180px; display:flex; align-items:center; justify-content:center; font-size:3rem; }

/* Cookie consent banner styles */
#cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(10,10,15,0.95);
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
#cookie-consent .cookie-inner { display:flex; gap:1rem; align-items:center; flex:1; }
#cookie-consent p { margin: 0; color: rgba(255,255,255,0.95); font-size: 0.95rem; }
#cookie-consent a { color: #ffc107; text-decoration: underline; }
#cookie-consent .cookie-actions { display:flex; gap:0.6rem; }
#cookie-consent button { background: linear-gradient(135deg, #ffc107, #ff9800); border: none; color: #0a0a0f; padding: 0.6rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 700; }
#cookie-consent button.reject { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }

@media (max-width: 600px) {
    #cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 0.8rem; flex-direction: column; align-items: flex-start; }
    #cookie-consent .cookie-actions { width: 100%; justify-content: flex-end; }
}

/* Small hero variant for policy/terms/saiba pages */
.small-hero { padding: 4rem 2rem; background: linear-gradient(135deg, #0a0a0f 0%, #141422 60%, #0a0a0f 100%); margin-bottom: 1.5rem; border-radius: 12px; }
.small-hero .hero-content { max-width: 1000px; margin: 0 auto; text-align: left; }
.small-hero h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.small-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }

.policy, .terms, .cookies-info { background: linear-gradient(145deg, rgba(26,26,46,0.6), rgba(10,10,15,0.6)); padding: 2rem; border-radius: 12px; color: rgba(255,255,255,0.9); }
.policy h2, .terms h2, .cookies-info h2 { color: #ffc107; margin-top: 1rem; }
.policy ul, .terms ul, .cookies-info ul { margin-left: 1.2rem; margin-bottom: 1rem; }
.muted { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-bottom: 1rem; }

.cookie-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .cookie-detail { grid-template-columns: 1fr; } }

/* Specific styles for post pages */
.post-page .hero h1 {
    /* Use the theme yellow for post titles instead of the animated gradient */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: #ffc107 !important;
    text-shadow: none !important;
}

/* Estilo para textos dos artigos */
.post-page {
    color: #ffffff; /* Texto em branco */
}

/* Estilo para links */
.post-page a {
    color: #ffc107; /* Cor amarelada padrão do site */
    text-decoration: underline;
}

.post-page a:hover {
    color: #ffb236; /* Tom mais claro ao passar o mouse */
}

/* Specific override for 'Valorização 2025' title requested to be white across the site */
.valorizacao {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Estilo para imagens nos artigos */
.post-page img {
    filter: brightness(0) invert(1); /* Deixa a imagem branca */
}
