/* Casagrande Electric Inc - Stylesheet */
:root {
  --primary: #0047AB;
  --primary-dark: #003580;
  --primary-light: #0066CC;
  --accent: #FFB800;
  --accent-dark: #E5A600;
  --dark: #1C1C1C;
  --text: #333333;
  --text-light: #666666;
  --light: #F5F5F5;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --success: #28A745;
  --error: #DC3545;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; background: transparent; z-index: 1000; padding: 15px 0; transition: var(--transition); }
.header.scrolled { background: var(--white); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Source Sans Pro', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--white); }
.header.scrolled .logo { color: var(--dark); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 30px; }
.nav-link { color: var(--white); font-weight: 500; }
.header.scrolled .nav-link { color: var(--dark); }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--white); transition: var(--transition); }
.header.scrolled .hamburger span { background: var(--dark); }
.header-phone { color: var(--accent); font-weight: 600; }
.header.scrolled .header-phone { color: var(--primary); }

/* Hero */
.hero { min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, #0047AB 0%, #003580 50%, #001a40 100%); position: relative; padding: 120px 0 80px; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='rgba(255,184,0,0.05)'/%3E%3C/svg%3E"); opacity: 0.5; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(255,184,0,0.2); color: var(--accent); padding: 8px 20px; border-radius: 50px; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-family: 'Source Sans Pro', sans-serif; font-size: 3.5rem; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 50px; }
.hero-stat { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; transition: var(--transition); cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* Sections */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-tag { display: inline-block; background: rgba(0,71,171,0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; margin-bottom: 15px; }
.section-title { font-family: 'Source Sans Pro', sans-serif; font-size: 2.5rem; color: var(--dark); margin-bottom: 15px; }
.section-desc { color: var(--text-light); font-size: 1.1rem; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 24px; }
.service-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.service-icon svg { width: 24px; height: 24px; stroke: var(--white); }
.service-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.service-desc { color: var(--text-light); font-size: 0.95rem; margin-bottom: 15px; }
.service-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.service-link:hover { color: var(--accent); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge { display: inline-block; background: rgba(0,71,171,0.1); color: var(--primary); padding: 8px 20px; border-radius: 50px; font-weight: 600; margin-bottom: 20px; }
.about-title { font-size: 2.2rem; margin-bottom: 20px; color: var(--dark); }
.about-text { color: var(--text-light); margin-bottom: 15px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.feature-item { display: flex; align-items: center; gap: 10px; }
.feature-item svg { width: 20px; height: 20px; stroke: var(--success); flex-shrink: 0; }
.feature-item span { color: var(--text); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 25px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-item-icon { width: 45px; height: 45px; background: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--white); }
.contact-item-text h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-item-text p { color: var(--text-light); font-size: 0.95rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1rem; transition: var(--transition); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,71,171,0.1); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.form-checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.form-disclaimer { font-size: 0.85rem; color: var(--text-light); margin-top: 15px; }
.form-disclaimer a { color: var(--primary); }
.form-disclaimer a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--dark); color: var(--white); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 1.1rem; margin-bottom: 20px; color: var(--accent); }
.footer p, .footer address { color: rgba(255,255,255,0.7); font-style: normal; margin-bottom: 10px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; margin-bottom: 20px; }
.footer-disclaimer p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); color: var(--white); padding: 20px; z-index: 9999; display: none; }
.cookie-content { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { padding: 10px 20px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.cookie-btn.btn-accept { background: var(--accent); color: var(--dark); }
.cookie-btn.btn-reject { background: transparent; border: 1px solid var(--white); color: var(--white); }
.cookie-btn.btn-customize { background: transparent; color: var(--accent); }
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10000; display: none; align-items: center; justify-content: center; }
.cookie-modal-content { background: var(--white); padding: 30px; border-radius: var(--radius-lg); max-width: 500px; width: 90%; }
.cookie-modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; background: none; border: none; }
.cookie-option { margin-bottom: 20px; }
.cookie-option-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cookie-option-header label { font-weight: 600; }
.cookie-status { background: var(--border); padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; color: var(--text-light); }
.cookie-toggle { width: 44px; height: 24px; appearance: none; background: var(--border); border-radius: 12px; position: relative; cursor: pointer; }
.cookie-toggle:checked { background: var(--success); }
.cookie-toggle::before { content: ''; position: absolute; width: 20px; height: 20px; background: var(--white); border-radius: 50%; top: 2px; left: 2px; transition: var(--transition); }
.cookie-toggle:checked::before { left: 22px; }

/* Legal Pages */
.legal-page { padding-top: 120px; }
.legal-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.legal-content h2 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--dark); }
.legal-content p { margin-bottom: 15px; color: var(--text-light); }
.legal-content ul { margin: 15px 0 15px 30px; }
.legal-content li { margin-bottom: 8px; color: var(--text-light); list-style: disc; }

/* Sitemap */
.sitemap-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.sitemap-section { margin-bottom: 40px; }
.sitemap-section h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary); }
.sitemap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sitemap-list a { color: var(--text); padding: 8px 0; border-bottom: 1px solid var(--border); }
.sitemap-list a:hover { color: var(--primary); }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].animated { opacity: 1; transform: translateY(0); }

/* Map */
.map-container { width: 100%; height: 400px; border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 20px; display: none; }
  .nav.active { display: flex; }
  .nav-link { color: var(--white); }
  .hamburger { display: flex; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
