/*
 * GKM Food Products — jazzy final layer
 * A lively market-stall palette with editorial type and generous rhythm.
 * This file is intentionally loaded last; content, asset URLs and behavior stay untouched.
 */
:root {
  --jazzy-ink: #211b2d;
  --jazzy-muted: #655d70;
  --jazzy-paper: #fffaf2;
  --jazzy-surface: #ffffff;
  --jazzy-orange: #ff6b35;
  --jazzy-yellow: #ffc857;
  --jazzy-teal: #0f9d8a;
  --jazzy-purple: #5b3f93;
  --logo-red: #ed1c24;
  --logo-red-deep: #b70f19;
  --logo-red-warm: #ff4b3e;
  --jazzy-line: rgba(33, 27, 45, 0.12);
  --jazzy-shadow: 0 18px 45px rgba(44, 29, 62, 0.12);
  --jazzy-radius: 18px;
}

html { background: var(--jazzy-paper); }
body.theme-modern {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 200, 87, 0.17), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, var(--jazzy-paper) 100%);
  color: var(--jazzy-ink);
  font-family: var(--font-body);
}

.container { max-width: 1240px; padding-inline: clamp(18px, 4vw, 42px); }

/* Header */
.site-header {
  background: var(--logo-red) !important;
  border-bottom: 3px solid var(--jazzy-yellow);
  box-shadow: 0 10px 30px rgba(183, 15, 25, 0.28);
}
.site-header .container { min-height: 78px; height: auto; }
.brand img {
  height: 52px;
  padding: 5px 9px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--jazzy-yellow);
}
.main-nav ul { gap: 4px; }
.main-nav a {
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  padding: 11px 14px;
}
.main-nav a:hover,
.main-nav a.is-active {
  color: var(--jazzy-ink) !important;
  background: var(--jazzy-yellow);
  box-shadow: none;
}
.nav-toggle {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after { background: currentColor; }

/* Full-bleed carousel: only the active state is changed by the existing JS. */
main > section:first-of-type { padding: 0; }
.hero-media {
  width: 100% !important;
  height: min(76vh, 680px) !important;
  min-height: 390px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  background: var(--jazzy-ink);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(33, 27, 45, 0.45), transparent 68%),
    linear-gradient(0deg, rgba(33, 27, 45, 0.35), transparent 42%);
}
.hero-media .hero-slide {
  position: absolute !important;
  inset: 0;
  min-height: 0 !important;
  display: block !important;
  opacity: 0;
  transition: opacity 0.9s ease !important;
}
.hero-media .hero-slide.is-active { opacity: 1 !important; z-index: 1 !important; }
.hero-dots {
  right: clamp(18px, 4vw, 52px) !important;
  bottom: 24px !important;
  z-index: 4 !important;
  padding: 7px 10px;
  background: rgba(255, 250, 242, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-dots button {
  width: 9px;
  height: 9px;
  margin: 0 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(33, 27, 45, 0.35);
}
.hero-dots button.is-active { background: var(--jazzy-orange); transform: scale(1.35); }

/* Page introductions and content rhythm */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 132px) 0 clamp(58px, 8vw, 96px);
  background: var(--jazzy-purple);
  color: #fff;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -150px;
  border: 28px solid var(--jazzy-yellow);
  border-radius: 50%;
  opacity: 0.9;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--jazzy-yellow); }
.page-hero h1 {
  max-width: 13ch;
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.page-hero p { max-width: 62ch; color: rgba(255, 255, 255, 0.86); }
section { padding: clamp(62px, 8vw, 108px) 0; }
.section-alt { background: rgba(255, 255, 255, 0.72); }
.eyebrow { color: var(--jazzy-orange); }
h1, h2, h3, h4, h5, h6 { color: var(--jazzy-ink); }
h2 { letter-spacing: -0.035em; line-height: 1.05; }
p { color: var(--jazzy-muted); }
.split { gap: clamp(34px, 7vw, 96px); }
.split-copy { max-width: 58ch; }
.split-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 12px 0 18px; }
.split-media img,
.contact-visual img {
  width: 100%;
  border-radius: var(--jazzy-radius);
  box-shadow: 12px 12px 0 var(--jazzy-yellow);
}
.list-marks li::before { color: var(--jazzy-orange); }

/* Products and image-led surfaces */
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.grid-3 { gap: clamp(18px, 2.5vw, 30px); }
.product-card {
  border: 1px solid var(--jazzy-line);
  border-radius: var(--jazzy-radius);
  background: var(--jazzy-surface);
  box-shadow: var(--jazzy-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-8px) rotate(-0.4deg); box-shadow: 0 25px 55px rgba(44, 29, 62, 0.17); }
.product-media { aspect-ratio: 4 / 3; }
.product-body { padding: 22px; }
.product-body h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.product-spec {
  color: var(--jazzy-teal);
  background: rgba(15, 157, 138, 0.12);
  border-radius: 999px;
  padding: 6px 11px;
}
.gallery-grid { gap: 20px; }
.gallery-item {
  min-height: 260px;
  border-radius: var(--jazzy-radius);
  box-shadow: var(--jazzy-shadow);
}
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  left: 16px;
  bottom: 16px;
  background: var(--jazzy-ink);
  border-radius: 999px;
  padding: 8px 13px;
}

/* Stats, contact and calls to action */
.stat-grid { gap: 16px; }
.stat {
  padding: 24px;
  border: 1px solid var(--jazzy-line);
  border-radius: var(--jazzy-radius);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(255, 200, 87, 0.5);
}
.stat b { color: var(--jazzy-purple); }
.contact-grid { gap: clamp(24px, 5vw, 72px); }
.contact-card {
  border: 1px solid var(--jazzy-line);
  border-radius: var(--jazzy-radius);
  background: #fff;
  box-shadow: var(--jazzy-shadow);
}
.contact-row { padding: 22px; }
.contact-row .icon { background: rgba(255, 107, 53, 0.12); color: var(--jazzy-orange); }
.map-frame {
  overflow: hidden;
  border-radius: var(--jazzy-radius);
  box-shadow: var(--jazzy-shadow);
}
.cta-band {
  padding: clamp(26px, 5vw, 48px);
  border-radius: var(--jazzy-radius);
  background: var(--jazzy-orange);
  box-shadow: 10px 10px 0 var(--jazzy-yellow);
}
.cta-band h2, .cta-band p { color: #fff; }
.btn { border-radius: 999px; }
.btn-primary { background: var(--jazzy-ink); box-shadow: none; }
.btn-primary:hover { background: var(--jazzy-purple); }
.btn-outline { border-color: var(--jazzy-ink); color: var(--jazzy-ink); }
.btn-outline:hover { border-color: var(--jazzy-orange); color: var(--jazzy-orange); }

/* Footer */
.site-footer {
  background: var(--jazzy-ink);
  border-top: 7px solid var(--jazzy-yellow);
  padding: 64px 0 28px;
}
.footer-brand p, .footer-col li, .footer-bottom { color: rgba(255, 255, 255, 0.7); }
.footer-col h5 { color: var(--jazzy-yellow); }
.footer-col a, .footer-bottom a { color: #fff; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--jazzy-yellow); }

@media (max-width: 900px) {
  .site-header .container { min-height: 70px; }
  .main-nav {
    inset: 0 0 0 auto !important;
    width: min(86vw, 340px);
    padding-top: 88px;
    background: var(--logo-red) !important;
  }
  .main-nav ul { padding: 22px; gap: 8px; }
  .main-nav a { display: block; padding: 14px 16px; }
  .hero-media { height: min(72vh, 580px) !important; min-height: 320px !important; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .brand img { height: 44px; }
  .hero-media { height: 60vh !important; min-height: 280px !important; }
  .page-hero { padding: 60px 0 54px; }
  .page-hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  section { padding: 56px 0; }
  .split-media img, .contact-visual img { box-shadow: 7px 7px 0 var(--jazzy-yellow); }
  .grid-3, .gallery-grid { gap: 18px; }
  .gallery-item { min-height: 220px; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Professional type and authored motion */
:root {
  --font-professional: "Work Sans", "Segoe UI", Arial, sans-serif;
  --font-display: "Work Sans", "Segoe UI", Arial, sans-serif;
}

body.theme-modern,
button,
input,
textarea,
select {
  font-family: var(--font-professional);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

.site-header {
  animation: header-enter 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.site-header::after {
  animation: header-sheen 11s ease-in-out infinite;
}

.brand img {
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--jazzy-yellow);
}

.hero-media .hero-slide.is-active {
  animation: hero-drift 8s ease-in-out both;
}

.hero-dots button {
  transition: transform 220ms ease, background-color 220ms ease;
}

.hero-dots button:hover,
.hero-dots button:focus-visible {
  transform: scale(1.5);
}

.page-hero::after {
  animation: orbit 12s ease-in-out infinite;
}

.product-card,
.contact-card,
.stat,
.gallery-item {
  will-change: transform;
}

.product-card,
.contact-card,
.stat {
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.contact-card:hover,
.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(44, 29, 62, 0.16);
  border-color: rgba(255, 107, 53, 0.32);
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -75%;
  width: 45%;
  background: rgba(255, 255, 255, 0.24);
  transform: skewX(-20deg);
  transition: left 420ms ease;
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(33, 27, 45, 0.16);
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 135%;
}

.reveal {
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes header-enter {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes header-sheen {
  0%, 55% { transform: translateX(-30%); }
  78%, 100% { transform: translateX(130%); }
}

@keyframes hero-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

@keyframes orbit {
  0%, 100% { transform: rotate(-8deg) translate3d(0, 0, 0); }
  50% { transform: rotate(8deg) translate3d(-16px, -10px, 0); }
}
