/* ==============================================
     MODERN & ACCESSIBLE COLOR SCHEME
     Primary: #ffcc71 (Logo Gold)
     Text: #212529 (High Contrast Dark Gray)
     Background: #ffffff (Pure White)
     Interactive: #0d6efd (Accessible Blue)
     Secondary BG: #f8f9fa (Light Gray)
  ================================================== */
  
:root {
  /* Core Color Palette */
  --primary-gold: #ffcc71;        /* Logo color - used sparingly for highlights */
  --dark-gold: #af7105;           /* Darker gold for better contrast */
  --dark-gray: #212529;           /* Primary text - 15.43:1 contrast ratio */
  --pure-white: #ffffff;          /* Clean backgrounds */
  --accessible-blue: #0d6efd;     /* Interactive elements - 4.50:1 contrast */
  --light-bg: #f8f9fa;           /* Secondary backgrounds */
  --near-dark: #282828;           /* Header background */
  --near-gold: #ffcc71;           /* Duplicate of primary-gold - cleaned up */
  --near-lightgold: #f1e7d5;     /* Light gold background */
  
  /* Semantic Colors */
  --success-green: #198754;       /* Success states */
  --warning-amber: #ffc107;       /* Warning states */
  --danger-red: #dc3545;          /* Error states */
  --muted-gray: #6c757d;          /* Secondary text - 4.69:1 contrast */
  --border-gray: #dee2e6;         /* Borders and dividers */
  
  /* Typography Scale */
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
}

/* ==============================================
   ACCESSIBILITY-FIRST RESET & BASE STYLES
================================================== */

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Enhanced focus management for accessibility */
*:focus-visible {
  outline: 2px solid var(--dark-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-gold);
  color: var(--dark-gray);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-gray);
  background-color: var(--pure-white);
  scroll-behavior: smooth;
}

/* Improved image accessibility */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==============================================
   UTILITY CLASSES
================================================== */

.lightbg {
  background: var(--near-lightgold) !important;
}

.ptb {
  padding: var(--spacing-xxl) 0;
}

.mtb {
  margin: var(--spacing-xxl) 0;
}

.subtitle {
  text-align: center;
  color: var(--muted-gray);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
}

/* ==============================================
   LAYOUT COMPONENTS
================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

main {
  padding-top: 70px; /* Account for fixed header */
}

section {
  padding: var(--spacing-xxl) 0;
}

/* Section headings with proper hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-gray);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
}

/* ==============================================
   HEADER & NAVIGATION
================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--near-dark);
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.1);
  z-index: 999;
  border-bottom: 1px solid var(--border-gray);
}

/* Base nav container */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Primary navigation list */
.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Navigation links */
.nav-menu a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--pure-white);
}

/* Active link indicator */
.nav-menu a.active {
  color: var(--pure-white);
  font-weight: 600;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 20px;
  height: 2px;
  background-color: var(--pure-white);
  transform: translateX(-50%);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  z-index: 1000;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--primary-gold);
  border-radius: 2px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(5px);
}

/* ==============================================
   MOBILE NAVIGATION - FIXED VERSION
================================================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 20px;
  }

  #primary-menu {
    display: none; /* Remove !important */
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--pure-white);
    border-top: 1px solid var(--border-gray);
    padding: var(--spacing-lg) 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }

  #primary-menu a {
    color: var(--dark-gray);
    width: 100%;
    text-align: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-gray);
  }

  #primary-menu a:last-child {
    border-bottom: none;
  }

  #primary-menu a.active {
    color: var(--dark-gold);
    background-color: var(--near-lightgold);
  }

  /* Show menu when toggle has 'open' class */
  .nav-toggle.open + #primary-menu {
    display: flex;
  }
}

/* Hamburger "X" Animation */
.nav-toggle.open .hamburger {
  background-color: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}




/* Hamburger "X" Animation */
.nav-toggle.open .hamburger {
  background-color: transparent;
}

.nav-toggle.open .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================================
   HERO SLIDER
================================================== */

.hero-section {
  position: relative;
  background-color: var(--light-bg);
  padding:0 !important;
}

.slider {
  position: relative;
}

/* Slider controls */
.slick-dots {
  bottom: 20px;
}

.slick-dots li button {
  background-color: var(--pure-white);
  border: 2px solid var(--dark-gold);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.slick-dots li.slick-active button {
  background-color: var(--primary-gold);
}

.slider .slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  position: relative;
  min-height: 80vh;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Improved overlay for better text readability */
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(33, 37, 41, 0.7), rgba(13, 110, 253, 0.3));
  z-index: 2;
}

.slider .slide .caption {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
  max-width: 820px;
  padding: var(--spacing-xl);
}

.caption h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--spacing-md);
  color: var(--pure-white);
}

.caption p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: var(--spacing-xl);
  color: var(--pure-white);
}

/* ==============================================
   BUTTONS
================================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 140px;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--dark-gold);
  color: var(--pure-white);
  border-color: var(--dark-gold);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--dark-gray);
  border-color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(175, 113, 5, 0.3);
}

.btn-secondary {
  background-color: var(--primary-gold);
  color: var(--dark-gray);
  border-color: var(--primary-gold);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--dark-gray);
  color: var(--pure-white);
  border-color: var(--dark-gray);
}

.btn-outline {
  background-color: transparent;
  color: var(--dark-gold);
  border-color: var(--dark-gold);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--near-lightgold);
  color: var(--dark-gray);
}

/* ==============================================
   SERVICES SECTION
================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.service-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--spacing-md);
  row-gap: var(--spacing-xs);
  align-content: start;
}

.service-images img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-images img:hover {
  transform: scale(1.02);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.service-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background-color: var(--pure-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.05);
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 8px 24px rgba(33, 37, 41, 0.1);
  transform: translateY(-2px);
}

.service-item i {
  font-size: 2rem;
  color: var(--dark-gold);
  min-width: 50px;
  display: flex;
  align-items: flex-start;
  margin-top: var(--spacing-xs);
}

.service-content h4 {
  color: var(--dark-gray);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.service-content p {
  color: var(--muted-gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==============================================
   PRODUCTS SECTION
================================================== */

.products {
  background-color: var(--pure-white);
}

.filter-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.filter-btn {
  background-color: var(--light-bg);
  color: var(--dark-gray);
  border: 2px solid var(--border-gray);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn:focus {
  background-color: var(--dark-gold);
  color: var(--pure-white);
  border-color: var(--dark-gold);
}

.filter-btn.active {
  background-color: var(--dark-gold);
  color: var(--pure-white);
  border-color: var(--dark-gold);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  align-items: start;
}

.product {
  background-color: var(--pure-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.08);
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
  max-width: 320px;
  width: 100%;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(33, 37, 41, 0.15);
}

.product.hidden {
  display: none;
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-info {
  padding: var(--spacing-lg);
}

.product-info h4 {
  color: var(--dark-gray);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.product-info p {
  color: var(--muted-gray);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.product-price {
  color: var(--dark-gold);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

/* ==============================================
   BRANDS SECTION
================================================== */

.brands {
  background-color: var(--light-bg);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.brand-card {
  background-color: var(--pure-white);
  padding: var(--spacing-xl);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.08);
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(33, 37, 41, 0.12);
}

.brand-card img {
  width: auto;
  margin: 0 auto var(--spacing-md);
  transition: filter 0.3s ease;
}

.brand-card:hover img {
  filter: grayscale(30%) opacity(0.9);
}

.brand-card h4 {
  color: var(--dark-gray);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.brand-card p {
  color: var(--muted-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==============================================
   CONTACT SECTION
================================================== */

.contact {
  background-color: var(--pure-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xxl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.contact-item i {
  color: var(--dark-gold);
  font-size: 1.25rem;
  margin-top: var(--spacing-xs);
  min-width: 24px;
}

.contact-item div h4 {
  color: var(--dark-gray);
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.contact-item div p {
  color: var(--muted-gray);
  margin-bottom: 0;
}

.error-message {
  color: var(--danger-red);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.form-help {
  color: var(--muted-gray);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

/* Social media links */
.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  color: var(--dark-gold);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
  background-color: var(--dark-gold);
  color: var(--pure-white);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form {
  background-color: var(--light-bg);
  padding: var(--spacing-xl);
  border-radius: 16px;
  border: 1px solid var(--border-gray);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  color: var(--dark-gray);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark-gray);
  background-color: var(--pure-white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--dark-gold);
  outline: none;
}

.form-group input:invalid,
.form-group textarea:invalid {
  border-color: var(--danger-red);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==============================================
   FOOTER
================================================== */

footer {
  background-color: var(--dark-gray);
  color: var(--pure-white);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--primary-gold);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  padding: var(--spacing-xs) 0;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.powered-by {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.powered-by strong {
  color: var(--primary-gold);
}

/* ==============================================
   FIXED CONTACT ICONS
================================================== */

.fixed-contact {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  z-index: 998;
}

.fixed-contact a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.fixed-contact a:hover,
.fixed-contact a:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-phone {
  background-color: var(--dark-gold);
  color: var(--pure-white);
}

.contact-whatsapp {
  background-color: #25d366;
  color: var(--pure-white);
}

/* Tooltip for accessibility */
.fixed-contact a::after {
  content: attr(aria-label);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--dark-gray);
  color: var(--pure-white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-right: var(--spacing-sm);
}

.fixed-contact a:hover::after,
.fixed-contact a:focus::after {
  opacity: 1;
}

/* ==============================================
   RESPONSIVE DESIGN
================================================== */

@media (max-width: 768px) {
  .container {
    width: 95%;
  }
  
  main {
    padding-top: 80px;
  }
  
  .slide {
    min-height: 60vh;
  }
  
  .caption h1 {
    font-size: 2rem;
  }
  
  .caption p {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .fixed-contact {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .services-grid,
  .brands-grid,
  .contact-grid {
    gap: var(--spacing-lg);
  }
  
  .service-item,
  .brand-card,
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ==============================================
   ACCESSIBILITY ENHANCEMENTS
================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-gray: #000000;
  }
  
  .service-item,
  .product,
  .brand-card,
  .contact-form {
    border: 2px solid var(--dark-gray);
  }
}

@media (prefers-color-scheme: dark) {
  .skip-link {
    background-color: var(--primary-gold);
    color: var(--dark-gray);
  }
}
