/* ============================================
   Hemco Electrical Services LLC
   Modern Professional Website Styles
   ============================================ */

/* CSS Variables */
:root {
  --primary: #0066CC;
  --primary-dark: #004C99;
  --secondary: #1a1a2e;
  --accent: #FFB800;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  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;
  padding: 15px 0;
}

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

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-badge {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,102,204,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,184,0,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--white);
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
}

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

.hero-badges {
  display: flex;
  gap: 15px;
  margin-top: 40px;
  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: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: #e5a700;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,184,0,0.3);
}

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

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

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

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

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

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

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

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

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.service-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
}

.service-content {
  padding: 25px;
}

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

.service-text {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  gap: 12px;
}

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

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

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

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 80px;
}

.about-content h3 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--secondary);
}

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

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

.feature-card {
  text-align: center;
  padding: 30px;
  background: var(--light);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

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

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

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

/* Quote Form Section */
.quote-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  color: var(--white);
}

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

.quote-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

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

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

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

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

.contact-text p,
.contact-text a {
  opacity: 0.8;
  font-size: 15px;
}

.contact-text a:hover {
  color: var(--accent);
  opacity: 1;
}

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

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

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
}

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

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

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

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

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

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

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

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

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

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

.footer-license {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-links a {
  opacity: 0.7;
  transition: var(--transition);
}

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

.footer-contact p {
  opacity: 0.7;
  margin-bottom: 10px;
}

.footer-contact a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  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 20px rgba(0,0,0,0.1);
  padding: 25px;
  z-index: 9999;
  display: none;
}

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

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

.cookie-text h4 {
  margin-bottom: 5px;
  color: var(--secondary);
}

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

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

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

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.cookie-btn-accept:hover {
  background: var(--primary-dark);
}

.cookie-btn-reject {
  background: var(--light);
  color: var(--dark);
}

.cookie-btn-reject:hover {
  background: #e9ecef;
}

.cookie-btn-settings {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray);
}

.cookie-btn-settings:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* 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: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal-header {
  padding: 25px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  font-size: 22px;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
}

.cookie-modal-body {
  padding: 25px;
}

.cookie-option {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}

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

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

.cookie-option-header label {
  font-weight: 600;
  color: var(--dark);
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.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: 26px;
  transition: var(--transition);
}

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

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

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

.cookie-toggle.disabled {
  pointer-events: none;
}

.cookie-toggle.disabled .cookie-slider {
  background: var(--primary) !important;
}

.cookie-option p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.cookie-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #e9ecef;
}

.cookie-modal-footer .btn {
  width: 100%;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  color: var(--white);
  padding: 150px 0 80px;
  text-align: center;
}

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

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

/* Service Detail */
.service-detail {
  padding: 80px 0;
}

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

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

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

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

.service-detail-img-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 60px;
}

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

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

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

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}

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

/* Contact Page */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

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

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

.hours-list {
  margin-top: 20px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hours-item:last-child {
  border-bottom: none;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

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

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

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

.policy-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--secondary);
}

.policy-content h3 {
  font-size: 22px;
  margin: 30px 0 15px;
  color: var(--secondary);
}

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

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

.policy-content li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--gray);
}

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

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

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

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-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);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  
  .nav.active {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 15px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .header-badge {
    display: none;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-text {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid,
  .quote-grid,
  .contact-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .page-hero h1 {
    font-size: 32px;
  }
}

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

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