/* ==========================================================================
   AK ENTERPRISES - HARDWARE WHOLESALE
   Corporate Premium Stylesheet with Mobile-First App Experience & SEO/AEO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
  --color-forest: #063B2B;
  --color-forest-dark: #071712;
  --color-forest-deep: #03140f;
  --color-forest-light: #0d543e;
  --color-gold: #D6A83A;
  --color-gold-light: #ECC86C;
  --color-gold-dark: #B58A24;
  --color-bg-light: #F5F6F3;
  --color-card-bg: #FFFFFF;
  --color-text-main: #1C2421;
  --color-text-muted: #5A6963;
  --color-border-light: #E4E8E3;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-hand: 'Caveat', cursive;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  line-height: 1.55;
  padding-bottom: 60px; /* Offset for Mobile Bottom Sticky Bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #071712;
}
::-webkit-scrollbar-thumb {
  background: #063B2B;
  border-radius: 4px;
  border: 1px solid rgba(214, 168, 58, 0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: #D6A83A;
}

/* Hide scrollbar for clean horizontal scrolling pills on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

.font-hand {
  font-family: var(--font-hand);
}

.site-header {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background-color: rgba(7, 23, 18, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(214, 168, 58, 0.25);
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: #E2E8F0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--color-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #FFFFFF;
}

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

.nav-link.active {
  color: var(--color-gold);
}

.gold-line {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #D6A83A 0%, #ECC86C 100%);
  border-radius: 2px;
}

.gold-line-center {
  margin-left: auto;
  margin-right: auto;
}

.btn-gold {
  background: linear-gradient(135deg, #D6A83A 0%, #E5B84B 50%, #C49629 100%);
  color: #071712;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(214, 168, 58, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(214, 168, 58, 0.5);
  filter: brightness(1.06);
}

.btn-gold:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Hero Slider - Adaptive Mobile Portrait & Desktop Landscape Banners
   ========================================================================== */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #071712;
}

/* Mobile: Fits 941x1672 vertical mobile slider perfectly */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 941 / 1672;
  max-height: 78vh;
  min-height: 440px;
}

/* Desktop: Fits 1983x793 wide desktop slider */
@media (min-width: 768px) {
  .hero-slider-wrapper {
    aspect-ratio: 1983 / 793;
    max-height: none;
    min-height: 350px;
    height: auto;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease-in-out, transform 0.65s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

/* ==========================================================================
   Product Cards & Brand Cards (Optimized for Mobile Touch)
   ========================================================================== */
.category-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--color-border-light);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.category-card:hover, .category-card:active {
  transform: translateY(-4px);
  border-color: rgba(214, 168, 58, 0.7);
  box-shadow: 0 10px 25px rgba(6, 59, 43, 0.12);
}

.category-card:hover .cat-arrow, .category-card:active .cat-arrow {
  background: var(--color-gold);
  color: #071712;
  transform: translateX(3px);
}

.cat-arrow {
  transition: all 0.25s ease;
}

.brand-card {
  background: #FFFFFF;
  border: 1px solid #E4E8E3;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.brand-card:hover, .brand-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--color-gold);
}

.feature-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 168, 58, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.feature-badge:hover {
  background: rgba(214, 168, 58, 0.12);
  border-color: rgba(214, 168, 58, 0.6);
  transform: translateY(-2px);
}

.stat-box {
  border-right: 1px solid #E2E5DF;
}

@media (max-width: 768px) {
  .stat-box {
    border-right: none;
    border-bottom: 1px solid #E2E5DF;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .stat-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.testimonial-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E5DF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.floating-contact-btn {
  animation: pulse-gold 2.5s infinite;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.form-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 15px; /* Prevents auto-zoom on iOS mobile */
  transition: all 0.25s ease;
  color: #111827;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 58, 0.2);
}

.modal-overlay {
  background-color: rgba(7, 23, 18, 0.88);
  backdrop-filter: blur(8px);
}

.modal-content {
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.96) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   AEO & FAQ Accordion Styles
   ========================================================================== */
.faq-item {
  background: #FFFFFF;
  border: 1px solid #E4E8E3;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item.active {
  border-color: rgba(214, 168, 58, 0.7);
  box-shadow: 0 6px 20px rgba(6, 59, 43, 0.08);
}

.faq-header {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #071712;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F5F6F3;
  color: #063B2B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: #D6A83A;
  color: #071712;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  color: #5A6963;
  line-height: 1.6;
}

.faq-item.active .faq-body {
  max-height: 300px;
  padding-bottom: 1.15rem;
}
