/* ===== FoldMax Custom Styles ===== */

/* Design Tokens */
:root {
  --color-primary: #0f2b46;
  --color-primary-light: #1a3d5c;
  --color-primary-dark: #0a1e33;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-accent-light: #fbbf24;
  --color-surface: #f8fafc;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-muted: #64748b;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===== Navigation Color States ===== */
/* Light nav: used on transparent/hero headers (white text) */
.nav-light .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
.nav-light .nav-link:hover {
  color: #f59e0b;
}
.nav-light .nav-link.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
}
.nav-light .mobile-menu-btn {
  color: white;
}

/* Dark nav: used on white/solid headers (dark text) */
.nav-dark .nav-link {
  color: #475569;
}
.nav-dark .nav-link:hover {
  color: #0f2b46;
}
.nav-dark .nav-link.active {
  color: #0f2b46;
  border-bottom-color: #f59e0b;
}
.nav-dark .mobile-menu-btn {
  color: #0f2b46;
}

/* Header transition */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Nav logo image - blend mode for dark backgrounds */
.nav-logo-img {
  mix-blend-mode: screen;
  transition: mix-blend-mode 0.3s ease;
}
#site-header.scrolled .nav-logo-img {
  mix-blend-mode: normal;
}

/* Scrolled header state (solid white) */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}
#site-header.scrolled .nav-link {
  color: #475569;
}
#site-header.scrolled .nav-link:hover {
  color: #0f2b46;
}
#site-header.scrolled .nav-link.active {
  color: #0f2b46;
}
#site-header.scrolled .mobile-menu-btn {
  color: #0f2b46;
}


/* Hero gradient overlay */
.hero-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #1e4a6e 100%);
}

/* Accent underline for headings */
.heading-accent {
  position: relative;
  display: inline-block;
}

.heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Card hover effects */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 43, 70, 0.12);
}

/* Spec table styling */
.spec-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.spec-table thead th {
  background: var(--color-primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.spec-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.spec-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.spec-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.spec-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

.spec-table tbody tr:hover {
  background: #f0f7ff;
}

/* Mobile spec table scroll */
.spec-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .spec-table-wrapper {
    margin: 0;
    padding: 0;
  }
}

/* CTA button pulse */
.btn-cta {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  border: 2px solid white;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Section divider */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 50;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Page header banner */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 80px 0 60px;
}

@media (max-width: 768px) {
  .page-header {
    padding: 60px 0 40px;
  }
}
