/* ========================================
   Burbank Electric LLC - Modern Styles
   ======================================== */

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #D97706;
  --primary-dark: #B45309;
  --secondary: #1E3A5F;
  --secondary-dark: #152D47;
  --text: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --gray: #F3F4F6;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Services Page */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-grid.reverse {
  direction: rtl;
}

.service-grid.reverse > * {
  direction: ltr;
}

.service-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.service-text h2 {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.service-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-list {
  margin: 20px 0;
}

.service-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding-left: 25px;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
}

.logo-bolt {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 35px;
}

.nav a {
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 650px;
  color: var(--white);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
}

.badge-icon {
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 25px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 15px;
}

.service-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-card a:hover {
  gap: 10px;
}

/* About Preview */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: 12px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: var(--secondary);
  color: var(--white);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.feature-card:hover .feature-icon {
  background: var(--white);
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  opacity: 0.8;
}

/* Quote Form */
.quote-section {
  background: var(--secondary);
  color: var(--white);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.quote-info h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.quote-info p {
  opacity: 0.85;
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 3px;
}

.contact-item p,
.contact-item a {
  font-size: 15px;
}

.contact-item a:hover {
  color: var(--primary);
}

/* Form */
.form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label span {
  color: #DC2626;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.form-checkbox label {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--primary);
}

.form-checkbox a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 16px;
}

/* Footer */
.footer {
  background: var(--secondary-dark);
  color: var(--white);
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.footer-brand p {
  opacity: 0.7;
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 14px;
}

.footer-brand address {
  font-style: normal;
  opacity: 0.7;
  font-size: 14px;
  line-height: 1.8;
}

.footer h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.7;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.cookie-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.cookie-text p {
  font-size: 14px;
  color: var(--text-light);
}

.cookie-text a {
  color: var(--primary);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  padding: 30px;
}

.cookie-modal-content h3 {
  font-size: 22px;
  margin-bottom: 25px;
}

.cookie-option {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-option-header label {
  font-weight: 600;
  font-size: 15px;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #CCC;
  border-radius: 24px;
  transition: 0.2s;
}

.cookie-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.2s;
}

.cookie-toggle input:checked + .cookie-slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .cookie-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-slider {
  background: var(--primary);
  cursor: default;
}

.cookie-option p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.cookie-modal-content .btn {
  width: 100%;
  margin-top: 20px;
}

/* Page Hero */
.page-hero {
  background: var(--secondary);
  color: var(--white);
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.8;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-box {
  background: var(--gray);
  padding: 30px;
  border-radius: 12px;
}

.contact-box h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary);
}

.contact-box-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-box-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.hours-table {
  width: 100%;
  margin-top: 20px;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table td {
  padding: 12px 0;
  font-size: 14px;
}

.hours-table td:last-child {
  text-align: right;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 30px;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* Services Page */
.service-detail {
  padding: 60px 0;
}

.service-detail-alt {
  background: var(--gray);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-detail-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-detail-content h2 {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 15px;
}

.service-detail-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.service-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* Policy Pages */
.policy-content {
  padding: 60px 0;
}

.policy-content .container {
  max-width: 800px;
}

.policy-content h2 {
  font-size: 26px;
  color: var(--secondary);
  margin: 35px 0 15px;
}

.policy-content h3 {
  font-size: 20px;
  color: var(--secondary);
  margin: 25px 0 12px;
}

.policy-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.policy-content ul {
  margin: 15px 0 20px 25px;
}

.policy-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-light);
}

.policy-content a {
  color: var(--primary);
}

.policy-content a:hover {
  text-decoration: underline;
}

/* Message */
.form-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-message.success {
  background: #D1FAE5;
  color: #065F46;
}

.form-message.error {
  background: #FEE2E2;
  color: #991B1B;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  z-index: 10001;
}

.skip-link:focus {
  top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow);
    flex-direction: column;
    gap: 15px;
  }
  
  .nav.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .services-grid,
  .features-grid,
  .about-grid,
  .quote-grid,
  .contact-grid,
  .service-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .service-grid.reverse {
    direction: ltr;
  }
  
  .service-image img {
    height: 220px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .service-features {
    grid-template-columns: 1fr;
  }
  
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}
