/* Sunitech LLC - Solar Energy Website */

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

:root {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --secondary: #0EA5E9;
  --secondary-dark: #0284C7;
  --dark: #1E293B;
  --text: #334155;
  --text-light: #64748B;
  --white: #FFFFFF;
  --gray: #F8FAFC;
  --border: #E2E8F0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 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; }

.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: 0 2px 4px rgba(0,0,0,0.08);
  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: 22px;
  font-weight: 700;
  color: var(--dark);
}

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

.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: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  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(--dark);
  border: 2px solid var(--white);
}

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

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

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2D3A4F 100%);
  color: var(--white);
  padding: 130px 0 70px;
}

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

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

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

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat { text-align: center; }
.stat strong { font-size: 28px; color: var(--primary); }
.stat span { display: block; font-size: 14px; opacity: 0.8; margin-top: 5px; }

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--gray); }
.section-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 15px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 17px;
  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: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

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

.card-body { padding: 20px; }
.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.card-body p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}
.card-body a {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* 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(--primary);
  color: var(--white);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  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: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* Quote Section */
.quote-section { background: var(--dark); color: var(--white); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.quote-info h2 { font-size: 30px; margin-bottom: 15px; }
.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-item .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;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  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: 30px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}

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

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

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

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

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

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

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

/* Footer */
.footer {
  background: var(--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; font-size: 14px; line-height: 1.7; }
.footer-brand address { font-style: normal; opacity: 0.7; font-size: 14px; line-height: 1.8; }
.footer-brand a:hover { color: var(--primary); }

.footer h4 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { opacity: 0.7; font-size: 14px; transition: all 0.2s; }
.footer ul 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-bottom .disclaimer {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-bottom .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: 3px; }
.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: 420px;
  width: 100%;
  padding: 25px;
}

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

.cookie-option {
  padding: 12px 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: 6px;
}

.cookie-option-header label { font-weight: 500; font-size: 14px; }

.toggle { position: relative; width: 42px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }

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

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

.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
.toggle input:disabled + .slider { background: var(--primary); cursor: default; }

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

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

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

.page-hero h1 { font-size: 38px; margin-bottom: 10px; }
.page-hero p { font-size: 17px; opacity: 0.85; }

/* Service Detail */
.service-detail { padding: 60px 0; }
.service-detail-alt { background: var(--gray); }

.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: 0 8px 20px rgba(0,0,0,0.1);
}

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

.service-text h2 {
  font-size: 26px;
  color: var(--dark);
  margin-bottom: 12px;
}

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

.service-list { margin: 15px 0; }
.service-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  position: relative;
  padding-left: 22px;
}

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

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-box { background: var(--gray); padding: 25px; border-radius: 12px; }
.contact-box h3 { font-size: 18px; margin-bottom: 18px; color: var(--dark); }

.hours-table { width: 100%; margin-top: 15px; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 10px 0; font-size: 14px; }
.hours-table td:last-child { text-align: right; font-weight: 500; }

.map-container { border-radius: 12px; overflow: hidden; margin-top: 20px; }
.map-container iframe { width: 100%; height: 200px; border: none; }

/* Policy Pages */
.policy-content { padding: 50px 0; }
.policy-content .container { max-width: 750px; }
.policy-content h2 { font-size: 22px; color: var(--dark); margin: 30px 0 12px; }
.policy-content h3 { font-size: 18px; color: var(--dark); margin: 22px 0 10px; }
.policy-content p { margin-bottom: 12px; line-height: 1.7; color: var(--text-light); }
.policy-content ul { margin: 12px 0 18px 20px; }
.policy-content li { margin-bottom: 8px; line-height: 1.6; color: var(--text-light); }
.policy-content a { color: var(--primary); }
.policy-content a:hover { text-decoration: underline; }

/* Form Message */
.form-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  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: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    gap: 10px;
  }

  .nav.active { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 32px; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 20px; }

  .services-grid, .features-grid, .about-grid,
  .quote-grid, .contact-grid, .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .cookie-buttons { width: 100%; justify-content: center; }
}
