@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #0a3a58;
    --secondary-color: #A98A58;
    --dark-color: #1a1a1a;
    --gray-color: #333;
    --light-gray-color: #f8f9fa;
    --white-color: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: var(--dark-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--primary-color); } /* Added consistency */
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }

/* --- HEADER --- */
.header { background-color: var(--white-color); box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { max-height: 50px; }
.main-nav { flex-grow: 1; }
.main-nav ul { list-style: none; display: flex; justify-content: center; }
.main-nav ul li a { text-decoration: none; color: var(--gray-color); padding: 10px 15px; font-weight: 500; transition: color 0.3s ease; display: flex; align-items: center; gap: 4px; }
.main-nav ul li a:hover { color: var(--secondary-color); }
.header-right { flex-shrink: 0; display: flex; align-items: center; }
.contact-button { background-color: var(--secondary-color); color: var(--white-color); padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 500; transition: background-color 0.3s ease; }
.contact-button:hover { background-color: #8e734a; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background-color: var(--white-color); box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 5px; padding: 10px 0; z-index: 101; min-width: 220px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: flex; align-items: center; padding: 12px 20px; width: 100%; color: var(--dark-color); }
.product-icon { width: 24px; height: 24px; margin-right: 15px; }

/* --- HERO SECTION --- */
.hero-section { height: 75vh; color: var(--white-color); position: relative; }
.hero-swiper, .hero-slide { width: 100%; height: 100%; }
.hero-slide { background-size: cover; background-position: center; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 20px; margin: 0 auto; width: 100%; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); color: var(--white-color); }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-content .cta-button { background-color: var(--secondary-color); color: var(--white-color); padding: 15px 30px; border-radius: 5px; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: background-color 0.3s ease; border: none; }
.hero-content .cta-button:hover { background-color: #8e734a; }
.hero-nav-arrow { color: var(--white-color) !important; }
.hero-swiper .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.7); opacity: 1; }
.hero-swiper .swiper-pagination-bullet-active { background: var(--secondary-color); }

/* --- GENERIC SECTIONS --- */
.features, .products, .cases, .about, .reviews, .clients, .contact-section, .clubcasa-content, .about-content-section, .product-grid-section { padding: 80px 0; }
.products, .about, .clients, .page-title-section, .about-content-section.bg-light { background-color: var(--light-gray-color); }

/* --- PAGE TITLE SECTION --- */
.page-title-section { padding: 60px 0; text-align: center; border-bottom: 1px solid #eee; }
.page-title-section h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; }
.page-title-section p { font-size: 1.1rem; color: #666; max-width: 900px; margin: 0 auto; }
.page-title-section.category-title { padding-bottom: 0; } /* Remove padding for category nav */

/* --- CATEGORY NAVIGATION --- */
.category-nav { margin-top: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; text-align: center; }
.category-nav a { text-decoration: none; color: var(--gray-color); font-weight: 500; padding: 10px 20px; margin: 0 5px; border-radius: 20px; transition: background-color 0.3s ease, color 0.3s ease; }
.category-nav a:hover { background-color: #eee; color: var(--primary-color); }
.category-nav a.active { background-color: var(--primary-color); color: var(--white-color); }

/* --- FEATURES GRID --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.feature-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* --- PRODUCT SWIPER (HOME) --- */
.products { position: relative; padding-bottom: 120px; }
.product-swiper .swiper-pagination { position: absolute; bottom: -40px !important; left: 0; width: 100%; text-align: center; }
.product-swiper .swiper-pagination-bullet { background: #bbb; opacity: 1; }
.product-swiper .swiper-pagination-bullet-active { background: var(--secondary-color); }
.product-swiper .swiper-wrapper { align-items: stretch; }
.product-card { border-radius: 12px; background-color: var(--white-color); box-shadow: 0 5px 20px rgba(0,0,0,0.07); display: flex; flex-direction: column; justify-content: space-between; height: 420px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.product-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.product-card img { width: 100%; height: 220px; object-fit: contain; padding: 15px; }
.product-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; padding: 0 20px; text-align: center; }
.product-card p { font-size: 0.9rem; color: #666; padding: 0 20px 20px; margin-top: auto; text-align: center; }

/* --- PRODUCT GRID (CATEGORY PAGES) --- */
.product-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 576px) and (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-grid-card { display: block; text-decoration: none; color: inherit; background-color: var(--white-color); border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.product-grid-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.product-grid-image { height: 250px; background-color: #f0f0f0; padding: 10px; }
.product-grid-image img { width: 100%; height: 100%; object-fit: contain; }
.product-grid-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-grid-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.product-grid-content p { font-size: 0.9rem; color: #666; line-height: 1.5; margin-bottom: 15px; flex-grow: 1; }
.details-button { display: inline-block; background: none; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 8px 15px; border-radius: 5px; text-align: center; font-weight: 500; font-size: 0.85rem; margin-top: auto; transition: background-color 0.3s ease, color 0.3s ease; }
.details-button:hover { background-color: var(--primary-color); color: var(--white-color); }

/* --- CASES SWIPER --- */
.cases { position: relative; padding-bottom: 60px; }
.cases-swiper { padding-bottom: 50px; overflow: hidden; }
.cases-swiper .swiper-slide { height: auto; }
.case-card { position: relative; display: flex; flex-direction: column; height: 450px; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); color: var(--white-color); text-decoration: none; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.case-card:hover img { transform: scale(1.05); }
.case-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); }
.case-info h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; color: var(--white-color); }
.case-info p { font-size: 1rem; line-height: 1.5; }
.cases-pagination.swiper-pagination { position: absolute; bottom: 10px !important; left: 50%; transform: translateX(-50%); width: auto !important; }
.cases-pagination .swiper-pagination-bullet { background-color: var(--gray-color); opacity: 0.5; margin: 0 4px !important; }
.cases-pagination .swiper-pagination-bullet-active { background-color: var(--primary-color); opacity: 1; }
.cases-next, .cases-prev { color: var(--primary-color) !important; background-color: rgba(255, 255, 255, 0.8); border-radius: 50%; width: 44px !important; height: 44px !important; top: 50%; transform: translateY(-70%); transition: background-color 0.3s ease; position: absolute; z-index: 10; }
.cases-next:hover, .cases-prev:hover { background-color: rgba(255, 255, 255, 1); }
.cases-next { right: 15px; }
.cases-prev { left: 15px; }
.cases-next::after, .cases-prev::after { font-family: swiper-icons; font-size: 1.2rem; font-weight: bold; }
.cases-prev::after { content: 'prev'; }
.cases-next::after { content: 'next'; }
.cases-subtitle-link { display: block; text-decoration: none; font-size: 1.1rem; text-align: center; color: var(--gray-color); font-weight: 500; margin-top: -25px; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s ease, transform 0.3s ease; }
.cases-subtitle-link h3 { font-size: inherit; color: inherit; font-weight: inherit; text-transform: inherit; letter-spacing: inherit; margin: 0; }
.cases-subtitle-link:hover { color: var(--secondary-color); transform: scale(1.03); }

/* --- REVIEWS GRID --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-card { background-color: var(--white-color); padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); display: flex; flex-direction: column; }
.review-stars { margin-bottom: 20px; color: #FFC107; font-size: 1.2rem; }
.review-text { font-size: 1rem; line-height: 1.7; color: #555; flex-grow: 1; margin-bottom: 25px; }
.review-author { display: flex; align-items: center; gap: 15px; margin-top: auto; }
.review-author img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.author-info strong { display: block; font-weight: 700; color: var(--dark-color); }
.author-info span { font-size: 0.9rem; color: #777; }

/* --- ABOUT SECTION (HOME) --- */
.about-flex { display: flex; align-items: center; gap: 50px; }
.about-image, .about-text { flex: 1; }
.about-image iframe { width: 100%; height: 400px; border: none; border-radius: 8px; }
.about-text h2 { text-align: left; }
.cta-button-secondary { background: none; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; display: inline-block; margin-top: 20px; }
.cta-button-secondary:hover { background-color: var(--primary-color); color: var(--white-color); }

/* --- CLIENTS SWIPER --- */
.clients-swiper .swiper-slide { display: flex; justify-content: center; align-items: center; height: 100px; }
.clients-swiper img { max-width: 140px; max-height: 60px; height: auto; width: auto; opacity: 0.6; transition: all 0.3s ease; filter: grayscale(100%); /* Start grayscale */ }
.clients-swiper img:hover { filter: grayscale(0%); opacity: 1; }

/* --- PAGINATION (GENERAL) --- */
.pagination-nav { margin-top: 60px; display: flex; justify-content: center; }
.pagination { list-style: none; padding: 0; display: flex; gap: 8px; }
.page-link { display: block; padding: 10px 16px; text-decoration: none; color: var(--primary-color); background-color: var(--white-color); border: 1px solid #dee2e6; border-radius: 5px; font-weight: 500; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.page-link:hover { background-color: #e9ecef; color: var(--secondary-color); border-color: #ced4da; }
.page-item.active .page-link { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--white-color); cursor: default; }
.page-item.disabled .page-link { color: #aaa; background-color: var(--white-color); border-color: #dee2e6; pointer-events: none; cursor: default; }

/* --- CONTACT PAGE --- */
.contact-grid { display: grid; grid-template-columns: 1fr; /* Default to 1 column */ gap: 50px; }
@media (min-width: 993px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } } /* 2 columns on large screens */
.contact-info h3, .contact-form h3 { font-size: 1.8rem; margin-bottom: 25px; color: var(--primary-color); }
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.info-item i { font-size: 1.5rem; color: var(--secondary-color); margin-top: 3px; }
.info-item strong { display: block; font-weight: 700; margin-bottom: 3px; color: var(--dark-color); }
.info-item p, .info-item a { color: #555; text-decoration: none; }
.info-item a:hover { color: var(--secondary-color); }
.map-container { margin-top: 30px; border-radius: 8px; overflow: hidden; }
.map-container h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-color); }
.contact-form p { margin-bottom: 20px; color: #555; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--dark-color); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: 'Montserrat', sans-serif; font-size: 1rem; }
.form-group textarea { resize: vertical; }
.form-button { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 10px; }

/* --- CLUB&CASA PAGE --- */
.logo-parceiro { text-align: center; margin-bottom: 50px; }
.logo-parceiro img { max-width: 250px; height: auto; }
.texto-parceria { max-width: 800px; margin: 0 auto 50px auto; text-align: center; }
.subtitulo-parceria { font-size: 2rem; font-weight: 700; margin-bottom: 25px; }
.texto-parceria p { font-size: 1.1rem; color: #555; margin-bottom: 20px; line-height: 1.8; }
.como-funciona { text-align: center; margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; max-width: 800px; margin-left: auto; margin-right: auto; }
.como-funciona h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; }
.como-funciona p { font-size: 1.1rem; color: #555; margin-bottom: 30px; }

/* --- ABOUT US PAGE (sobrenos.php) --- */
.about-content-section { padding: 80px 0; }
.about-content-section.bg-light { background-color: var(--light-gray-color); }
.about-content-block { max-width: 850px; margin: 0 auto; text-align: center; }
.icon-about { font-size: 3.5rem; color: var(--secondary-color); margin-bottom: 25px; display: inline-block; }
.about-content-block h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; }
.about-content-block p { font-size: 1.1rem; color: #555; line-height: 1.8; text-align: justify; }
.values-list { text-align: left; margin: 20px 0 20px 40px; list-style: disc; } /* Added for About Us Values */
.values-list li { margin-bottom: 10px; font-size: 1.1rem; color: #555; }

/* --- FOOTER --- */
.footer { background-color: #071f2c; color: #f5f6f7; text-align: center; padding: 20px 10px 10px; font-size: 14px; }
.redes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 25px; margin-bottom: 15px; /* Increased margin */ }
.redes a { display: flex; align-items: center; gap: 8px; color: #f5f6f7; font-size: 15px; text-decoration: none; transition: color 0.3s ease; }
.redes a:hover { color: #A98A58; /* Changed hover to secondary gold */ }
.icon { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; }
.containerfooter p { font-size: 13px; color: #f5f6f7; margin-top: 8px; }
.footer-link { color: #f5f6f7; text-decoration: none; opacity: 0.8; transition: opacity 0.3s ease; }
.footer-link:hover { opacity: 1; text-decoration: underline; }

/* --- WHATSAPP ICON --- */
.whatsapp-icon { position: fixed; bottom: 25px; right: 25px; z-index: 100; }
.whatsapp-icon img { width: 70px; height: 70px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }

/* --- MOBILE MENU --- */
.mobile-menu-icon { display: none; background: none; border: none; font-size: 2.2rem; color: var(--primary-color); cursor: pointer; padding: 5px; margin-left: 15px; }
.mobile-nav { display: none; background-color: var(--dark-color); padding: 20px 0; position: absolute; top: 80px; left: 0; width: 100%; z-index: 99; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.mobile-nav ul li { margin: 15px 0; }
.mobile-nav ul li a { color: var(--white-color); text-decoration: none; font-size: 1.2rem; font-weight: 500; padding: 10px; display: block; transition: background-color 0.3s ease; }
.mobile-nav ul li a:hover { background-color: var(--primary-color); }

/* --- COOKIE BANNER --- */
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background-color: #071f2c; color: #f5f6f7; padding: 20px; z-index: 1001; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); }
#cookie-banner p { margin: 0; font-size: 0.95rem; flex-grow: 1; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; font-weight: 500; }
#cookie-banner button { background-color: var(--secondary-color); color: var(--white-color); border: none; padding: 10px 20px; border-radius: 5px; font-weight: 700; font-family: 'Montserrat', sans-serif; cursor: pointer; margin-left: 20px; transition: background-color 0.3s ease; }
#cookie-banner button:hover { background-color: #8e734a; }

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .main-nav, .header-right .contact-button { display: none; }
    .mobile-menu-icon { display: block; }
    .header .container { justify-content: space-between; }
    .main-nav { flex-grow: 0; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .features-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .about-flex { flex-direction: column; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .features-grid, .reviews-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .redes { flex-direction: column; gap: 12px; }
    .containerfooter p { font-size: 12px; }
    .page-title-section h1 { font-size: 2.2rem; }
    .about-content-block h2 { font-size: 1.8rem; }
    .about-content-block p { font-size: 1rem; text-align: left; }
    .about-content-section { padding: 60px 0; }
    #cookie-banner { flex-direction: column; gap: 15px; text-align: center; }
    #cookie-banner button { width: 100%; margin-left: 0; }
}