/* ═══════════════════════════════════════════
   HOME PAGE — Styles
   ═══════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex;
  align-items: center; overflow: hidden; background: var(--black);
  padding-top: var(--header-height-mobile);
}
@media (min-width: 1024px) {
  .hero { padding-top: var(--header-height-desktop); }
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,26,26,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(196,26,26,0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.hero::after {
  content: ''; position: absolute; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite; z-index: 2; pointer-events: none; opacity: 0.5;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 50%, #16213e 100%);
}
.hero-geo {
  position: absolute; border: 1px solid rgba(196,26,26,0.2);
  border-radius: var(--radius-md); z-index: 1;
}
.hero-geo-1 { width: 300px; height: 300px; top: 10%; right: -5%; transform: rotate(15deg); animation: float 6s ease-in-out infinite; }
.hero-geo-2 { width: 150px; height: 150px; bottom: 20%; left: 5%; transform: rotate(-10deg); animation: float 8s ease-in-out infinite reverse; }
.hero-geo-3 { width: 80px; height: 80px; top: 30%; left: 15%; border-radius: 50%; background: rgba(196,26,26,0.05); border-color: rgba(196,26,26,0.15); animation: float 5s ease-in-out infinite; }

.hero-content { position: relative; z-index: 3; padding: var(--space-2xl) 0; }

.hero-tag {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: rgba(196,26,26,0.15); border: 1px solid rgba(196,26,26,0.3);
  padding: 0.4rem 1rem; border-radius: var(--radius-full); margin-bottom: var(--space-xl);
}
.hero-tag-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-tag-text { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.9); font-family: var(--font-mono); }

.hero h1 { font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 900; color: var(--white); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: var(--space-lg); }
.hero h1 em { font-style: normal; color: var(--red-light); position: relative; }
.hero h1 em::after { content: ''; position: absolute; bottom: 0.05em; left: 0; right: 0; height: 0.08em; background: var(--red); border-radius: 2px; opacity: 0.4; }

.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto var(--space-2xl); line-height: 1.7; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-3xl); padding-top: var(--space-2xl); border-top: 1px solid rgba(255,255,255,0.08); }
.hero-stat { text-align: center; }
@media (min-width: 640px) { .hero-stat { text-align: center; } }
.hero-stat-number { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; color: var(--white); letter-spacing: -0.02em; line-height: 1; margin-bottom: var(--space-xs); }
.hero-stat-number span { color: var(--red-light); }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* ─── BRANDS ─── */
.brands-section { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: var(--space-2xl) 0; overflow: hidden; }
.brands-header { text-align: center; margin-bottom: var(--space-xl); }
.brands-marquee-wrapper {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.brands-marquee { display: flex; gap: var(--space-3xl); animation: marquee 30s linear infinite; width: max-content; will-change: transform; }
.brands-marquee-wrapper:hover .brands-marquee { animation-play-state: paused; }
.brand-item {
  display: flex; align-items: center; justify-content: center; min-width: 140px; height: 60px;
  padding: 0 var(--space-lg); background: var(--gray-50); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); font-weight: 700; font-size: 0.85rem; color: var(--gray-600);
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; transition: all 0.3s ease;
}
.brand-item:hover { border-color: var(--red); color: var(--red); background: var(--red-glow); }

/* ─── PRODUCTS GRID ─── */
.products-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.4s var(--ease-out); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img { position: relative; height: 220px; background: var(--gray-100); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badge { position: absolute; top: var(--space-md); left: var(--space-md); padding: 0.3rem 0.75rem; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-new { background: var(--red); color: white; }
.badge-used { background: var(--gray-800); color: white; }
.badge-featured { position: absolute; top: var(--space-md); right: var(--space-md); width: 32px; height: 32px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; box-shadow: var(--shadow-sm); }
.product-info { padding: var(--space-lg); }
.product-brand { font-size: 0.7rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-xs); font-family: var(--font-mono); }
.product-name { font-size: 1.05rem; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: var(--space-sm); }
.product-meta { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); }
.product-meta-item { font-size: 0.8rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--gray-100); }
.product-price { font-size: 0.8rem; font-weight: 500; color: var(--gray-400); }
.product-price strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.product-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-50); color: var(--dark); padding: 0.5rem 1rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; transition: all 0.3s ease; border: 1px solid var(--gray-200); }
.product-cta:hover { background: var(--red); color: white; border-color: var(--red); }
.products-more { text-align: center; margin-top: var(--space-2xl); }

/* ─── ABOUT ─── */
.about-section { background: var(--white); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3xl); } }
.about-visual { position: relative; height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%); }
@media (min-width: 1024px) { .about-visual { height: 420px; } }
.about-visual-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); opacity: 0.08; }
.about-visual-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--gray-600); font-size: 3rem; gap: var(--space-md); }
.about-visual-content span { font-size: 0.85rem; font-weight: 500; color: var(--gray-400); }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--dark); margin-bottom: var(--space-md); letter-spacing: -0.02em; line-height: 1.2; }
.about-text p { color: var(--gray-600); line-height: 1.8; margin-bottom: var(--space-md); }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-xl); }
.about-highlight { display: flex; align-items: flex-start; gap: var(--space-sm); }
.about-highlight-icon { width: 32px; height: 32px; background: var(--red-glow); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 0.9rem; flex-shrink: 0; }
.about-highlight-text { font-size: 0.85rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.about-highlight-text small { display: block; font-weight: 400; color: var(--gray-600); font-size: 0.78rem; margin-top: 2px; }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: var(--white); padding: var(--space-xl); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: all 0.4s var(--ease-out); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon { width: 48px; height: 48px; background: var(--red-glow); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: var(--space-md); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: var(--space-sm); }
.service-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; }

/* ─── CTA ─── */
.cta-section { background: var(--dark); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(196,26,26,0.12) 0%, transparent 70%); }
.cta-inner { position: relative; text-align: center; padding: var(--space-3xl) 0; }
@media (min-width: 1024px) { .cta-inner { padding: var(--space-4xl) 0; } }
.cta-inner h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; color: var(--white); margin-bottom: var(--space-md); letter-spacing: -0.02em; }
.cta-inner p { color: rgba(255,255,255,0.5); font-size: 1.05rem; max-width: 480px; margin: 0 auto var(--space-xl); line-height: 1.7; }

/* Product card link */
.product-card-link { display: block; color: inherit; text-decoration: none; }


/* ═══════════════════════════════════════════
   PRODUCT CARDS — Centering & SVG Icons
   ═══════════════════════════════════════════ */

/* Center product info on mobile/tablet */
@media (max-width: 1023px) {
  .product-info { text-align: center; }
  .product-brand { text-align: center; }
  .product-name { text-align: center; }
  .product-meta { justify-content: center; flex-wrap: wrap; }
  .product-footer { flex-direction: column; gap: var(--space-sm); align-items: center; }
  .product-price { text-align: center; }
  .products-more { text-align: center; }
}

/* SVG icon sizing in product meta */
.product-meta-item svg {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* Badge featured — SVG star icon */
.badge-featured {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F59E0B;
}
.badge-featured svg { width: 16px; height: 16px; }

/* Product CTA arrow icon */
.product-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.product-card:hover .product-cta svg {
  transform: translateX(3px);
}

/* Placeholder image — SVG tractor instead of emoji */
.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}
.placeholder-img svg {
  color: var(--gray-300);
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVENESS FIXES
   ═══════════════════════════════════════════ */

/* Hero - small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Hero actions - tablet */
@media (max-width: 639px) {
  .hero-actions { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-actions a { min-width: 260px; justify-content: center; }
}

/* Products grid - single column on small */
@media (max-width: 479px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { max-width: 100%; }
}

/* Brands marquee mobile fix - keep animation, no manual scroll */
@media (max-width: 1023px) {
  .brands-marquee { animation-duration: 20s; gap: var(--space-xl); }
  .brand-item { min-width: 120px; height: 50px; font-size: 0.75rem; padding: 0 var(--space-md); }
}

/* About section - stack on mobile */
@media (max-width: 639px) {
  .about-visual { height: 220px; }
  .about-text h2 { font-size: 1.3rem; }
  .about-highlights { grid-template-columns: 1fr; }
}

/* Services - single column on small phones */
@media (max-width: 479px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* CTA section mobile */
@media (max-width: 639px) {
  .cta-inner h2 { font-size: 1.5rem; }
}

/* iOS momentum scrolling for scrollable areas */
.pd-gallery-thumbs {
  -webkit-overflow-scrolling: touch;
}

/* ─── EXTRA MOBILE FIXES ─── */
@media (max-width: 639px) {
  .brand-item { min-width: 110px; height: 50px; }
  .product-cta { min-height: 44px; }
}
@media (max-width: 479px) {
  .hero-stats { grid-template-columns: 1fr; }
  .brand-item { min-width: 95px; height: 45px; font-size: 0.7rem; }
}
@media (max-width: 319px) {
  .hero-geo-1, .hero-geo-2, .hero-geo-3 { display: none; }
  .about-highlights { grid-template-columns: 1fr; }
}
