/*
Theme Name: CONBEL - Obras & Reformas
Theme URI: https://conbel.com.br
Description: Tema profissional para CONBEL - Obras, Reformas & Serviços em Taubaté, SP
Author: CONBEL
Version: 2.0
License: GPL v2 or later
Text Domain: conbel-theme
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

:root {
  --primary-blue: #0052cc;
  --dark-blue: #003d99;
  --accent-orange: #ff6b35;
  --text-dark: #333333;
  --text-light: #666666;
  --light-gray: #f5f5f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-dark); background: #fff; }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 50px; width: auto; }
.logo-text { font-size: 28px; font-weight: 700; color: var(--primary-blue); text-decoration: none; }
.logo-text:hover { color: var(--accent-orange); }
.logo-subtitle { font-size: 11px; color: #999; font-weight: 600; text-transform: uppercase; }

/* INFO BAR */
.info-bar { background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)); color: white; padding: 10px 20px; }
.info-bar-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }

/* NAVIGATION */
.site-nav ul { display: flex; gap: 5px; list-style: none; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 14px; padding: 8px 16px; display: block; transition: 0.3s ease; border-radius: 4px; }
.nav-link:hover { color: var(--primary-blue); background: #f0f7ff; }
.whatsapp-btn { background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)); color: white !important; padding: 10px 20px !important; border-radius: 50px; text-decoration: none; font-weight: 600; transition: 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,82,204,0.15); }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; border: 1px solid #ddd; border-radius: 8px; list-style: none; min-width: 250px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.3s ease; box-shadow: 0 8px 24px rgba(0,82,204,0.15); z-index: 100; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { padding: 12px 20px; display: block; color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 14px; transition: 0.3s ease; }
.dropdown-menu a:hover { background: #f0f7ff; color: var(--primary-blue); padding-left: 25px; }

/* MOBILE MENU */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: var(--text-dark); border-radius: 2px; transition: 0.3s ease; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* HERO */
.hero { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%); color: white; padding: 100px 20px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: rgba(255,255,255,0.1); border-radius: 50%; z-index: 0; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; line-height: 1.2; position: relative; z-index: 1; }
.hero p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; position: relative; z-index: 1; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-primary, .btn-secondary { padding: 15px 40px; border: none; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.3s ease; }
.btn-primary { background: var(--accent-orange); color: white; box-shadow: 0 8px 20px rgba(255,107,53,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,107,53,0.4); }
.btn-secondary { background: white; color: var(--primary-blue); }
.btn-secondary:hover { background: var(--light-gray); transform: translateY(-3px); }

/* SECTIONS */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 20px; font-weight: 700; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* SERVICES */
.services-section { padding: 80px 20px; background: var(--light-gray); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.service-card { background: white; border-radius: 12px; padding: 40px; box-shadow: 0 4px 12px rgba(0,82,204,0.1); border-top: 4px solid var(--primary-blue); transition: 0.3s ease; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 24px rgba(0,82,204,0.15); }
.service-card h3 { font-size: 1.5rem; margin: 20px 0; color: var(--primary-blue); }
.service-card p { color: var(--text-light); line-height: 1.8; }
.service-icon { font-size: 3rem; display: inline-block; }

/* PORTFOLIO */
.portfolio-section { padding: 80px 20px; background: white; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.portfolio-item { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1; box-shadow: 0 4px 12px rgba(0,82,204,0.1); cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }

/* FORM */
.form-section { padding: 80px 20px; background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%); color: white; }
.form-container { max-width: 700px; margin: 0 auto; }
.form-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; font-weight: 700; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: none; border-radius: 8px; font-size: 1rem; font-family: inherit; transition: 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 15px; background: var(--accent-orange); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.3s ease; box-shadow: 0 8px 20px rgba(255,107,53,0.3); }
.form-submit:hover { background: #e55a2a; transform: translateY(-2px); }

/* FOOTER */
.site-footer { background: #1a1a1a; color: white; padding: 40px 20px; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.footer-links a { color: white; text-decoration: none; transition: 0.3s ease; }
.footer-links a:hover { color: var(--accent-orange); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .section-header h2 { font-size: 2rem; }
  .info-bar-content { gap: 15px; font-size: 12px; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; }
  .site-nav { position: absolute; top: 70px; left: 0; right: 0; background: white; border-bottom: 1px solid #ddd; flex-direction: column; display: none; }
  .site-nav.active { display: flex; }
  .site-nav ul { flex-direction: column; width: 100%; }
  .site-nav li { width: 100%; }
  .site-nav a { border-radius: 0; padding: 15px 20px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: var(--light-gray); border: none; box-shadow: none; display: none; }
  .nav-dropdown:hover .dropdown-menu { display: block; }
  .mobile-menu-toggle { display: flex; }
  .whatsapp-btn { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .header-container { flex-direction: column; gap: 15px; }
  .hero { padding: 50px 20px; }
  .services-section, .portfolio-section, .form-section { padding: 50px 20px; }
  .service-card { padding: 25px; }
  .logo-text { font-size: 20px; }
  .info-bar-content { font-size: 11px; gap: 10px; }
}
