/* ==========================================================================
   NH Foods — Premium Food Trading Website
   Modern, Professional UAE-region styling with animations
   ========================================================================== */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors - UAE luxury palette */
  --brand-primary: #1E3A5F;      /* Deep navy */
  --brand-secondary: #C9A227;    /* Gold accent */
  --brand-accent: #059669;       /* Fresh green */
  --brand-light: #F8FAFC;
  --brand-dark: #0F172A;
  
  /* Neutrals */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Functional */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-gold: 0 4px 14px 0 rgb(201 162 39 / 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-primary);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.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;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.5s ease forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal - initially hidden */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible,
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--gray-600);
  max-width: 65ch;
}

.lede {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 60ch;
}

.gold-text {
  color: var(--brand-secondary);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-secondary);
  margin-bottom: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-primary), #2d4a6f);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn.gold {
  background: linear-gradient(135deg, var(--brand-secondary), #d4af37);
  color: var(--brand-dark);
  box-shadow: var(--shadow-gold);
}

.btn.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgb(201 162 39 / 0.35);
}

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

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

.btn.white {
  background: white;
  color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.btn.white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.link {
  color: var(--brand-primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-base), color var(--transition-base);
}

.link:hover {
  color: var(--brand-secondary);
  gap: var(--space-sm);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.main-nav a {
  font-weight: 500;
  color: var(--gray-700);
  padding: var(--space-sm) 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-secondary);
  transition: width var(--transition-base);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--brand-primary);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-lg);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  margin-left: auto;
  position: relative;
  z-index: 1500;
}

.nav-toggle:hover {
  background: var(--gray-100);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  left: 0;
  transition: all var(--transition-base);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: var(--space-md) 0;
  margin-top: var(--header-height);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--gray-400);
}

.breadcrumbs a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumbs span {
  color: var(--brand-primary);
  font-weight: 500;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2d4a6f 50%, var(--brand-dark) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero-copy {
  animation: slideInLeft 0.8s ease forwards;
}

.hero-copy .section-label {
  color: var(--brand-secondary);
  margin-bottom: var(--space-md);
}

.hero-copy h1 {
  color: white;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-copy h1 .highlight {
  color: var(--brand-secondary);
  position: relative;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  animation: slideInRight 0.8s ease forwards;
}

.hero-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--brand-secondary);
  border-radius: var(--radius-xl);
  z-index: -1;
  animation: float 4s ease-in-out infinite;
}

/* Animated headline and subtitle */
.animated-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.hero-copy.animated .animated-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
}

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
  margin-top: calc(-1 * var(--header-height));
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), white);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 1;
}

.page-hero .container {
  padding: 0 var(--space-lg);
}

.page-hero h1 {
  color: var(--brand-dark);
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: var(--gray-600);
  max-width: 60ch;
}

/* Brochure section styles */
.brochure-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
}
.brochure-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}
.brochure-content h3 { margin: 0 0 var(--space-sm) 0; }
.brochure-actions .btn { padding: calc(var(--space-sm) + 4px) var(--space-lg); }
.brochure-actions .btn:hover { box-shadow: var(--shadow-gold); transform: translateY(-3px); }

/* Responsive map container */
.map-responsive { overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

/* Reduce heavy animations on small screens or if user prefers reduced motion */
@media (max-width: 420px), (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none !important; }
  .hero-image-wrapper { animation: none !important; }
  .animated-title { transition: none; transform: none; opacity: 1; }
  .brand-logos img { transition: none; }
}

/* Responsive brochure grid */
@media (max-width: 860px) {
  .brochure-grid { flex-direction: column; text-align: center; }
  .brochure-actions { margin-top: var(--space-md); }
}


.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Small Hero (inner pages) */
.hero.small {
  min-height: 0;
  padding: var(--space-3xl) 0;
}

.hero.small .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
  padding: var(--space-xl) 0;
}

.hero.small .hero-copy {
  animation: fadeInUp 0.6s ease forwards;
}

.hero.small .hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  margin: 0 auto;
}

.section-head {
  margin-bottom: var(--space-xl);
}

.section-head h1 {
  margin-bottom: var(--space-sm);
}

/* ---------- Features / Stats ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.feature-card h4 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  margin: 0 auto;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: calc(-1 * var(--space-3xl));
  position: relative;
  z-index: 10;
}

.stat-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- About Section ---------- */
.about-section {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
}

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

.about-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 200px;
  height: 200px;
  background: var(--brand-secondary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.2;
}

.about-content .section-label {
  margin-bottom: var(--space-sm);
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-md);
}

.about-list {
  margin: var(--space-lg) 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

.about-list-icon {
  width: 24px;
  height: 24px;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
  font-size: 0.75rem;
}

/* ---------- Products Section ---------- */
.products-section {
  background: var(--gray-50);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
  pointer-events: none;
}

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

.product-card:hover::after {
  border-color: var(--brand-secondary);
}

.product-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--brand-secondary);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.product-card-content {
  padding: var(--space-lg);
}

.product-card h3 {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.product-card:hover h3 {
  color: var(--brand-primary);
}

.product-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Product card detailed variant */
.product-card.detailed .product-card-image {
  height: 220px;
}

/* ---------- Brands Section ---------- */
.brands-section {
  background: white;
  padding: var(--space-3xl) 0;
}

.brands-marquee {
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.brands-track {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
}

.brands-track:hover {
  animation-play-state: paused;
}

.brand-logo-item {
  flex-shrink: 0;
  height: 60px;
  display: flex;
  align-items: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

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

.brand-logo-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Static brand logos grid */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  justify-content: center;
  align-items: center;
}

.brand-logos img {
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transform: translateY(8px);
  transition: all var(--transition-base);
}

.brand-logos.animated img {
  transform: translateY(0);
  opacity: 1;
}

.brand-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08) translateY(0);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23C9A227' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--space-sm);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

/* ---------- Contact Section & Form ---------- */
.contact-section {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
}

.contact-info {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  color: white;
}

.contact-info h3 {
  color: white;
  margin-bottom: var(--space-lg);
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.contact-details {
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--brand-secondary);
}

.contact-item-text {
  font-size: 0.9375rem;
}

.contact-item-text strong {
  display: block;
  color: white;
  margin-bottom: var(--space-xs);
}

.contact-item-text span,
.contact-item-text a {
  color: rgba(255, 255, 255, 0.8);
}

.contact-item-text a:hover {
  color: var(--brand-secondary);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--brand-secondary);
  transform: translateY(-4px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Contact Form */
.contact-form-wrapper {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--space-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem var(--space-md);
  font-size: 1rem;
  font-family: var(--font-primary);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

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

.form-result {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: none;
}

.form-result.show {
  display: block;
}

.form-result.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.form-result.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ---------- Content Blocks ---------- */
.content-block {
  padding: var(--space-xl) 0;
}

.content-block h2 {
  margin-bottom: var(--space-md);
}

.content-block p {
  margin-bottom: var(--space-md);
}

.content-block ul {
  margin: var(--space-md) 0;
}

.content-block li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
  color: var(--gray-600);
}

.content-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--brand-secondary);
  border-radius: var(--radius-full);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: var(--space-md);
  display: inline-block;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.9375rem;
}

.footer-column h4 {
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-secondary);
}

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

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-credit {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.footer-credit a {
  color: var(--brand-secondary);
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--brand-secondary);
  transform: translateY(-4px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: white;
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: pulse 2s infinite;
}

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

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

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 998;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--brand-secondary);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Page Loader ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  
  .hero-copy {
    order: 1;
  }
  
  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .features-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-content p {
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: var(--space-lg) var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 1200;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  }
  
  .main-nav.active {
    max-height: calc(100vh - var(--header-height));
  }
  
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    padding-top: var(--space-md);
  }

  .main-nav li {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  }

  .main-nav a {
    display: block;
    padding: var(--space-md) var(--space-xs);
    font-size: 1.125rem;
    color: var(--brand-dark);
  }
  
  .main-nav a::after {
    display: none;
  }
  
  .nav-cta {
    margin: 0;
    margin-top: var(--space-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  .features-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float a {
    width: 54px;
    height: 54px;
  }
  
  .back-to-top {
    bottom: 90px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
  
  .contact-info {
    padding: var(--space-lg);
  }
  
  .contact-form-wrapper {
    padding: var(--space-lg);
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .whatsapp-float,
  .back-to-top,
  .nav-toggle,
  .page-loader {
    display: none !important;
  }
  
  .hero {
    min-height: 0;
    margin-top: 0;
    background: white !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .hero-copy h1,
  .hero-copy p {
    color: black !important;
  }
  
  body {
    background: white;
  }
}
