/* 
 * LOTUS ELECTRONICS
 * Main Stylesheet
 */

/* ===== RESET & BASE STYLES ===== */
:root {
  --primary: #0056b3;
  --primary-dark: #004494;
  --secondary: #ff6b00;
  --secondary-dark: #e65c00;
  --text: #333333;
  --text-light: #666666;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --border: #dee2e6;
  --shadow: rgba(0, 0, 0, 0.1);
  
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  --transition: all 0.3s ease;
  --radius: 4px;
  --radius-lg: 8px;
  --container-width: 1200px;
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--text);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1rem;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

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

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

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

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

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px;
  z-index: 100;
}

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

/* Focus styles for accessibility */
:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: white;
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo img {
  height: 50px;
  margin-right: 1rem;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  padding: 0.5rem;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.header-cta {
  margin-left: 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero-text {
  flex: 1;
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px var(--shadow);
}

/* ===== FEATURES SECTION ===== */
.features {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== PRODUCTS SECTION ===== */
.products {
  background-color: var(--light);
}

.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.category-image {
  height: 200px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-content {
  padding: 1.5rem;
}

.category-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.category-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--primary);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-content {
  flex-grow: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.1;
  color: var(--primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== BRANDS SECTION ===== */
.brands {
  padding: 3rem 0;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.brand-item {
  max-width: 150px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.brand-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== CTA SECTION ===== */
.cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta .btn-outline {
  border-color: white;
  color: white;
}

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

/* ===== CONTACT FORM ===== */
.contact-form-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-details p, .contact-details a {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-check-input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

.form-check-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background-color: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  display: block;
}

.form-message.error {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  display: block;
}

/* ===== MAP ===== */
.map-container {
  height: 400px;
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background-color: var(--light);
  padding: 6rem 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text-light);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-values {
  margin-top: 4rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.value-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.legal-page h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-page p, .legal-page ul, .legal-page ol {
  margin-bottom: 1.5rem;
}

.legal-page ul, .legal-page ol {
  padding-left: 2rem;
}

.legal-page ul li, .legal-page ol li {
  margin-bottom: 0.5rem;
}

.legal-page ul {
  list-style-type: disc;
}

.legal-page ol {
  list-style-type: decimal;
}

.legal-page .effective-date {
  font-style: italic;
  margin-top: 3rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 1rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: white;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 1rem;
  color: var(--secondary);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: white;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    padding-right: 0;
    margin-bottom: 3rem;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header-inner {
    position: relative;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 5px 10px var(--shadow);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    margin: 0;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: 0.75rem 0;
  }
  
  .header-cta {
    display: none;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .about-hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-content {
    min-height: 450px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .legal-page h1 {
    font-size: 2rem;
  }
  
  .legal-page h2 {
    font-size: 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
