/* ============================================
   ZIVA ELECTRIC LTD. - Main Stylesheet
   Version: v1.0 | Date: 2026-09-18
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #1A3C6E;
  --primary-dark: #0F2548;
  --primary-light: #2A5298;
  --accent: #E8A020;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --gray: #E0E0E0;
  --medium-gray: #999999;
  --dark-gray: #333333;
  --text: #444444;
  --text-light: #666666;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
  --radius: 6px;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* === Utility === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.5em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-accent:hover {
  background: #D0901A;
  transform: translateY(-2px);
}

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

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

/* === Top Bar === */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 24px;
}

.top-bar-left a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left a:hover {
  color: var(--white);
}

.top-bar .btn-quote {
  background: var(--accent);
  color: var(--white);
  padding: 6px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
}

.top-bar .btn-quote:hover {
  background: #D0901A;
}

/* === Navigation === */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 1.5px;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 11px 14px;
  font-weight: 500;
  color: var(--dark-gray);
  border-radius: var(--radius);
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--light-gray);
}

.nav-links .has-dropdown > a::after {
  display: none;
}

.nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 100;
}

.nav-links .has-dropdown:hover .dropdown {
  display: block;
}

.nav-links .dropdown a {
  display: block;
  padding: 10px 20px;
  border-radius: 0;
}

.hamburger {
  display: none;
  background: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* === Hero Banner === */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient fallback for hero slides when images are missing */
.hero-slide:not(:has(img[src])) {
  background: linear-gradient(135deg, #0F2548 0%, #1A3C6E 40%, #2A5298 100%);
}

.hero-slide:nth-child(2):not(:has(img[src])) {
  background: linear-gradient(135deg, #1A3C6E 0%, #0A1E3D 60%, #003366 100%);
}

.hero-slide:nth-child(3):not(:has(img[src])) {
  background: linear-gradient(135deg, #2A5298 0%, #1A3C6E 50%, #0F2548 100%);
}

/* Placeholder pattern overlay for hero slides */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(42,82,152,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,60,110,0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,60,110,0.7) 0%, rgba(15,37,72,0.5) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}

.hero-content h2 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.hero-arrow {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}

/* === Products Section === */
.products-section {
  padding: 72px 0;
  background: var(--light-gray);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

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

.product-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Grid pattern overlay for product cards without images */
.product-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-img .placeholder {
  color: rgba(255,255,255,0.6);
  font-size: 3rem;
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.product-card-body ul {
  margin-bottom: 16px;
}

.product-card-body ul li {
  padding: 4px 0;
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  padding-left: 18px;
}

.product-card-body ul li::before {
  content: '\25CF';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  top: 7px;
}

.product-card-body ul li a:hover {
  color: var(--primary);
}

.more-detail {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.more-detail:hover {
  gap: 10px;
}

/* Hot Products Carousel === */
.hot-products {
  padding: 64px 0;
}

.hot-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hot-tab {
  padding: 8px 20px;
  background: var(--light-gray);
  border: none;
  border-radius: 20px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.hot-tab.active,
.hot-tab:hover {
  background: var(--primary);
  color: var(--white);
}

.hot-carousel {
  position: relative;
  overflow: hidden;
}

.hot-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  padding: 8px 0;
}

.hot-item {
  flex: 0 0 calc(25% - 18px);
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hot-item:hover {
  box-shadow: var(--shadow-lg);
}

.hot-item-img {
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hot-item-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.hot-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-item-img svg {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.hot-item-img .placeholder {
  color: var(--medium-gray);
  font-size: 2.5rem;
}

.hot-item-body {
  padding: 16px;
  text-align: center;
}

.hot-item-body h4 {
  font-size: 0.95rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.carousel-arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-arrow {
  background: var(--light-gray);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark-gray);
}

.carousel-arrow:hover {
  background: var(--primary);
  color: var(--white);
}

/* === About Preview === */
.about-preview {
  padding: 64px 0;
  background: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

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

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

.about-image img {
  width: 100%;
  height: auto;
}

/* === CTA Banner === */
.cta-banner {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 24px;
}

/* === Inquiry Form === */
.inquiry-section {
  padding: 64px 0;
  background: var(--white);
}

.inquiry-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.1);
}

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

.form-group.full {
  grid-column: 1 / -1;
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit .btn {
  min-width: 200px;
}

/* === Footer === */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-about h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact .icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
}

/* === Floating Buttons === */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: var(--white);
  font-size: 1.2rem;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.whatsapp {
  background: #25D366;
}

.float-btn.email-float {
  background: var(--primary);
}

.float-btn.top-btn {
  background: var(--dark-gray);
  font-size: 1rem;
}

/* === Mobile Responsive === */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hot-item {
    flex: 0 0 calc(33.333% - 16px);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    gap: 16px;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero {
    height: 400px;
  }
  
  .hero-content h2 {
    font-size: 1.75rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hot-item {
    flex: 0 0 calc(50% - 12px);
    min-width: 240px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .top-bar .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .top-bar-left {
    flex-direction: column;
    gap: 6px;
  }
  
  .hero {
    height: 340px;
  }
  
  .hero-content h2 {
    font-size: 1.4rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .hot-item {
    flex: 0 0 80%;
  }
}
