/* ============================================================
   GLOBALSPICETECH — Home Page Styles
   ============================================================ */

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-bg-deepest);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(5,8,15,0.25) 0%, rgba(5,8,15,0.55) 60%, var(--clr-bg-deep) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-family: var(--ff-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-gold);
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--clr-gold);
  opacity: 0.7;
}

.hero-kicker::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-gold);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: var(--fs-5xl);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--clr-text);
  margin-bottom: var(--sp-6);
}

.hero-title .line-accent {
  display: block;
  color: var(--clr-gold);
}

.hero-title .line-muted {
  display: block;
  color: var(--clr-text-secondary);
  font-weight: 400;
}

.hero-desc {
  font-size: var(--fs-lg);
  color: var(--clr-text-secondary);
  max-width: 50ch;
  margin-bottom: var(--sp-10);
  line-height: 1.75;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-16);
}

/* ---------- Hero Stats ---------- */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  max-width: 520px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(20, 29, 46, 0.40);
  backdrop-filter: blur(12px);
}

.hero-stat {
  flex: 1;
  min-width: 100px;
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--clr-border);
  transition: background var(--t-base);
}

.hero-stat:last-child { border-right: none; }
.hero-stat:hover      { background: rgba(201, 168, 76, 0.05); }

.hero-stat .number {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-family: var(--ff-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
  line-height: 1.4;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 2;
  color: var(--clr-text-muted);
  font-family: var(--ff-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  60%       { transform: translateX(-50%) translateY(7px); }
}

/* ---------- Ticker / Marquee ---------- */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  background: rgba(20, 29, 46, 0.30);
  padding-block: 14px;
}

.marquee-track {
  display: flex;
  gap: var(--sp-10);
  animation: marquee 36s linear infinite;
  width: max-content;
  white-space: nowrap;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.marquee-item .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--clr-gold);
  opacity: 0.4;
  flex-shrink: 0;
}

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

/* ---------- Categories Section ---------- */
.categories-section {
  background: var(--clr-bg-deep);
  border-bottom: 1px solid var(--clr-border);
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: clamp(var(--sp-10), 4vw, var(--sp-16));
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
  padding: var(--sp-10) var(--sp-8);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-base), box-shadow var(--t-slow), transform var(--t-slow);
}

.category-card:hover {
  border-color: var(--clr-border-hover);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
  transform: translateY(-4px);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  font-size: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.04;
  filter: blur(8px) grayscale(80%);
  transition: opacity var(--t-slow), transform var(--t-slower);
  user-select: none;
  pointer-events: none;
}

.category-card:hover .category-card-bg {
  opacity: 0.07;
  transform: scale(1.08);
}

/* Gradient overlay for text legibility over photo */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 9, 16, 0.92) 0%,
    rgba(6, 9, 16, 0.72) 40%,
    rgba(6, 9, 16, 0.30) 75%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
  transition: opacity var(--t-base);
}

/* Vertical rule on left */
.category-card::before {
  content: '';
  position: absolute;
  top: var(--sp-8);
  left: 0;
  width: 3px;
  height: 40px;
  background: var(--clr-gold);
  opacity: 0;
  border-radius: 0 2px 2px 0;
  transition: opacity var(--t-base), height var(--t-slow);
  z-index: 4;
}

.category-card:hover::before {
  opacity: 1;
  height: 60px;
}

.category-card-content { position: relative; z-index: 3; }

.category-number {
  font-family: var(--ff-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-gold);
  opacity: 0.6;
  margin-bottom: var(--sp-3);
}

.category-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--sp-4);
  filter: grayscale(40%);
  transition: filter var(--t-base);
}

.category-card:hover .category-icon { filter: grayscale(0%); }

.category-name {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
  line-height: 1.1;
}

.category-count {
  font-family: var(--ff-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: var(--sp-4);
}

.category-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
  max-width: 38ch;
}

.category-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold);
  transition: gap var(--t-base);
}

.category-card:hover .category-arrow { gap: var(--sp-4); }

/* ---------- Stats Section ---------- */
.stats-section {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-border);
  gap: 1px;
}

.stats-grid .stat-card {
  background: var(--clr-bg-card);
  transition: background var(--t-base);
}

.stats-grid .stat-card:hover {
  background: rgba(201, 168, 76, 0.04);
}

/* ---------- Featured Products ---------- */
.featured-section {
  background: var(--clr-bg-deep);
  border-bottom: 1px solid var(--clr-border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: clamp(var(--sp-10), 4vw, var(--sp-16));
}

/* ---------- Why Choose Us ---------- */
.why-section {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-16), 6vw, var(--sp-32));
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}

.why-feature {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--clr-border);
}

.why-feature:last-child { border-bottom: none; padding-bottom: 0; }

.why-num {
  font-family: var(--ff-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--clr-gold);
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 28px;
}

.why-feature h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.why-feature p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.why-visual {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-card);
}

.why-visual canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ---------- Certifications ---------- */
.certs-section {
  background: var(--clr-bg-deep);
  border-bottom: 1px solid var(--clr-border);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  max-width: 20ch;
  margin-inline: auto;
}

.cta-section .section-subtitle {
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}
