/*
Theme Name: Rio Grande Embalagens
Author: @parmedia.cc
Description: Tema da Rio Grande Embalagens
Version: 1.0
*/

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

:root {
  --primary: #005A9C; 
  --primary-dark: #003f6e;
  --secondary: #F4A261;
  --secondary-hover: #e08b47;
  --text: #444;
  --bg: #fafafa;
  --glass-bg: #ffffff;
}

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

body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top-bar { background: var(--primary-dark); color: #fff; padding: 10px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }

.top-bar .container { display: flex; justify-content: space-between; align-items: center; }

.contact-link { transition: color 0.3s ease; text-decoration: none; }
.contact-link:hover { color: var(--secondary); }

header { position: sticky; top: 0; z-index: 999; background: var(--glass-bg); box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s ease; padding: 15px 0; }
header.scrolled { padding: 10px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo img { max-width: 220px; height: auto; transition: max-width 0.3s ease; }
header.scrolled .logo img { max-width: 180px; }

nav ul { list-style: none; display: flex; gap: 30px; }
nav a { font-weight: 600; color: var(--primary); position: relative; padding-bottom: 5px; font-size: 15px; }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--secondary); transition: width 0.3s ease; }
nav a:hover::after { width: 100%; }

.hero-slider { position: relative; width: 100%; height: 80vh; min-height: 500px; overflow: hidden; background: var(--primary-dark); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 60%; height: 100%; background: linear-gradient(to right, rgba(0, 31, 63, 0.8) 0%, rgba(0, 31, 63, 0) 100%); z-index: 2; }
.slide-content { position: relative; z-index: 3; padding: 0 50px; text-align: left; }
.slide-title { font-size: 3.5rem; color: #fff; font-weight: 700; line-height: 1.1; max-width: 600px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.slide-subtitle { display: inline-block; color: #fff; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; position: relative; padding-left: 45px; }
.slide-subtitle::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 35px; height: 3px; background: #00a0e3; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 4; pointer-events: none; }
.slider-nav button { background: #fff; border: none; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; font-size: 20px; color: var(--primary); transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.slider-nav button:hover { background: var(--secondary); color: #fff; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.slider-dots .dot { width: 10px; height: 10px; border: 2px solid #fff; cursor: pointer; background: transparent; transition: 0.3s; }
.slider-dots .dot.active { background: #fff; }

.btn { display: inline-block; padding: 15px 35px; background: var(--secondary); color: #fff; font-weight: 700; border-radius: 50px; transition: all 0.3s ease; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(244, 162, 97, 0.4); border: none; cursor: pointer; }
.btn:hover { background: var(--secondary-hover); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(244, 162, 97, 0.6); color: #fff; }

.section { padding: 100px 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-subtitle { display: flex; align-items: center; gap: 15px; font-size: 12px; font-weight: 700; color: #666; letter-spacing: 1px; margin-bottom: 20px; text-transform: uppercase; }
.section-subtitle::before { content: ''; width: 35px; height: 2px; background: #00A0E3; }
.about-content h2 { color: var(--primary); margin-bottom: 20px; font-size: 2.8rem; font-weight: 700; line-height: 1.2; }
.about-divider { border: none; border-top: 1px solid #eaeaea; margin: 35px 0; }

.btn-custom { display: inline-flex; align-items: stretch; background: #00A0E3; color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 15px rgba(0, 160, 227, 0.3); }
.btn-custom:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 90, 156, 0.4); }
.btn-text { padding: 18px 25px; letter-spacing: 1px; }
.btn-icon { padding: 18px 20px; border-left: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; }

.about-image-wrapper { position: relative; padding: 0 30px; z-index: 1; }
.about-image-wrapper::before { content: ''; position: absolute; top: 15%; left: 0; right: 0; bottom: 15%; background: #00A0E3; z-index: -1; }
.about-image-wrapper::after { content: ''; position: absolute; top: 25px; left: 45px; right: 15px; bottom: -25px; background: #F8EFE3; z-index: -2; }
.about-image-inner { position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.15); font-size: 0; }
.about-image-inner img { width: 100%; height: auto; display: block; }
.image-border { position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border: 1px solid rgba(255,255,255,0.8); pointer-events: none; z-index: 2; }
.experience-badge { position: absolute; bottom: 35px; left: 35px; color: #fff; display: flex; align-items: center; gap: 15px; z-index: 3; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.experience-badge strong { font-size: 4rem; line-height: 1; font-weight: 800; }
.experience-badge span { font-size: 0.85rem; font-weight: 700; line-height: 1.4; letter-spacing: 1px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-card { padding: 40px 30px; background: #fff; border-radius: 12px; border-bottom: 4px solid var(--primary); box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: all 0.4s ease; text-align: center; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-bottom-color: var(--secondary); }
.feature-card h4 { color: var(--primary); margin-bottom: 15px; font-size: 1.3rem; font-weight: 700; }

.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; padding: 100px 20px; border-radius: 20px; max-width: 95%; margin: 0 auto 50px auto; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 700; }
.cta-section .btn { background: #fff; color: var(--primary); box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); }
.cta-section .btn:hover { background: var(--secondary); color: #fff; }

footer { background: #1a1a1a; color: #aaa; padding: 70px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-grid h3 { color: #fff; margin-bottom: 20px; font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-grid a[aria-label]:hover { transform: scale(1.05) !important; background: var(--primary) !important; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 25px; }

.menu-toggle { display: none; font-size: 30px; background: none; border: none; cursor: pointer; color: var(--primary); transition: transform 0.3s ease; }

.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.whatsapp-float { position: fixed; width: 65px; height: 65px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; transition: all 0.3s ease; cursor: pointer; }
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

.wpcf7-form-control.form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; box-sizing: border-box; }
.wpcf7-textarea.form-control { resize: vertical; min-height: 120px; }
.wpcf7-submit.btn { width: 100%; padding: 15px 30px; }
.wpcf7-response-output { border-radius: 4px; margin-top: 15px !important; }

@media(max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrapper { margin-top: 40px; padding: 0 15px; }
  .cta-section { border-radius: 0; max-width: 100%; margin-bottom: 0; }
}

@media(max-width: 768px) {
  nav ul { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--glass-bg); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; text-align: center; gap: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  nav ul.active { max-height: 400px; padding: 15px 0; }
  nav a { display: block; padding: 15px 20px; }
  .menu-toggle { display: block; }
  .slide::before { width: 100%; background: linear-gradient(to right, rgba(0, 31, 63, 0.8) 0%, rgba(0, 31, 63, 0.5) 100%); }
  .slide-title { font-size: 2.2rem; }
  .slide-content { padding: 0 20px; text-align: center; }
  .slide-subtitle::before { display: none; }
  .slide-subtitle { padding-left: 0; }
  .section { padding: 60px 0; }
  .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
  
  .top-bar .container { flex-direction: column; gap: 15px; }
  .top-contacts { flex-direction: column; gap: 10px; }
  .social-icons a:hover { opacity: 0.8; }
}