/* ==========================================================
   HERO REDESIGN — KatoFood modern landing hero
   Loaded last so it overrides style.css / navbar-fix.css
   ========================================================== */

/* ---------- Brand logo (image instead of text wordmark) ---------- */
.clean-navbar .brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 6rem;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 4.6rem;
  }
}

/* ---------- Navbar: transparent over hero, solid on scroll ---------- */
.clean-navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: var(--primary);
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 5rem;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

/* feather.replace() swaps the <i> for an <svg>, so icon rules must
   target svg, not i, or they silently never match. */
.nav-cta svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.3s ease;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-cta:hover svg {
  transform: translateX(3px);
}

@media (min-width: 992px) {
  .clean-navbar.on-hero {
    background-color: rgba(10, 20, 12, 0.25);
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .clean-navbar.on-hero .brand {
    color: #fff;
  }

  .clean-navbar.on-hero .nav-link {
    color: #f2f2f2;
  }

  .clean-navbar.on-hero .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
  }

  .clean-navbar.on-hero .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
  }
}

/* Contact Us only needs a place on mobile: on desktop it already has its
   own pill button, so hide the duplicate list entry there. */
.nav-item-contact {
  display: none;
}

/* Mobile navbar background stays solid white always (needed for the
   slide-out menu panel), so it must keep dark brand/hamburger colors —
   never mirror the desktop transparent-over-hero look here. The pill
   "Contact Us" button also disappears here — it lives inside the
   hamburger menu list instead, so the top bar only has one shortcut. */
@media (max-width: 991px) {
  .nav-cta {
    display: none;
  }

  .nav-item-contact {
    display: block;
  }

  /* Rounded tinted halo behind the hamburger via box-shadow spread, so
     it reads as a proper button without resizing the box the bars are
     absolutely positioned against. */
  .mobile-toggle {
    border-radius: 0.5rem;
    background: rgba(32, 97, 23, 0.08);
    box-shadow: 0 0 0 0.8rem rgba(32, 97, 23, 0.08);
    margin-right: 0.8rem;
    /* nav-right collapses to zero width on mobile (its Contact Us pill
       is hidden and the menu list is fixed-positioned out of flow), so
       justify-content:space-between has nothing real to pin against on
       that side — margin-left:auto forces the toggle flush right. */
    margin-left: auto;
  }

  .mobile-toggle span {
    background: var(--primary-dark);
  }
}

/* ---------- Hero section base ---------- */
.hero-section {
  background-image: none !important;
  background-color: #0d1a10;
  padding: 0 !important;
  min-height: 100vh;
  display: block;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: none !important;
}

.hero-bg-overlay {
  position: absolute;
  top: -8%;
  left: 0;
  right: 0;
  height: 116%;
  z-index: 0;
  will-change: transform;
  background-image:
    linear-gradient(
      100deg,
      rgba(6, 15, 8, 0.88) 0%,
      rgba(8, 20, 10, 0.65) 38%,
      rgba(10, 25, 12, 0.35) 65%,
      rgba(10, 25, 12, 0.55) 100%
    ),
    url('../img/home-new.png');
  background-size: cover;
  background-position: center;
}

/* Soft fade + wave so the hero photo dissolves into the next section
   instead of ending on a flat, hard-edged line. */
.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(252, 252, 252, 0) 0%,
    rgba(252, 252, 252, 0.55) 60%,
    #fcfcfc 100%
  );
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 7rem;
  display: block;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.55fr);
  gap: 6rem;
  align-items: center;
  min-height: 100vh;
  padding: 12rem 7% 8rem;
  max-width: 140rem;
  margin: 0 auto;
}

/* ---------- Hero content (left) ---------- */
.hero-section .hero-content {
  max-width: 60rem;
  text-align: left;
  animation: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #c9f5c9;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.7rem 1.6rem;
  border-radius: 5rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 2.4rem;
}

.hero-eyebrow svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.hero-section .hero-title {
  font-size: 4.6rem;
  text-align: left;
  margin-bottom: 2rem;
}

.hero-section .hero-subtitle {
  font-size: 1.9rem;
  text-align: left;
  max-width: 48rem;
  margin-bottom: 3.5rem;
  color: #e4e9e4;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.hero-cta-group .btn {
  animation: fadeInUp 0.6s 0.4s forwards;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5rem;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.btn-ghost svg {
  width: 1.7rem;
  height: 1.7rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ---------- Hero widgets (right column) ---------- */
.hero-widgets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 34rem;
  margin-left: auto;
}

.widget-card {
  background: rgba(10, 22, 12, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.6rem;
  padding: 2rem 2.2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInUp 0.6s 0.3s forwards;
}

.widget-map {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: 1.6rem;
  overflow: hidden;
}

.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-dot {
  fill: rgba(255, 255, 255, 0.45);
}

.map-route {
  fill: none;
  stroke: #3ed846;
  stroke-width: 1.6;
  stroke-dasharray: 5 4;
  animation: dashMove 3s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -18;
  }
}

.map-origin {
  fill: #3ed846;
  stroke: rgba(62, 216, 70, 0.4);
  stroke-width: 6;
}

.map-dest {
  fill: #fff;
}

.widget-map-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: auto;
}

.widget-map-caption svg {
  width: 1.6rem;
  height: 1.6rem;
  color: #3ed846;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.widget-map-caption strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  font-family: var(--heading-font);
}

.widget-map-caption span {
  color: #d5dcd5;
  font-size: 1.3rem;
}

.widget-chain h4 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  font-family: var(--heading-font);
  margin-bottom: 1.8rem;
}

.widget-chain h4 svg {
  width: 1.6rem;
  height: 1.6rem;
  color: #3ed846;
  flex-shrink: 0;
}

.chain-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.2rem;
}

.chain-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.chain-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(62, 216, 70, 0.15);
  border: 1px solid rgba(62, 216, 70, 0.4);
}

.chain-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.chain-step span {
  color: #e4e9e4;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.chain-arrow {
  width: 1.2rem;
  height: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  margin-top: 1.4rem;
}

/* ---------- Responsive ----------
   Breakpoints: >1199px desktop (with widgets), 768-1199px tablet,
   <=767px phone, <=480px small phone. */
@media (max-width: 1199px) {
  .hero-widgets {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 13rem 7% 8rem;
    min-height: auto;
  }

  .hero-bottom-fade {
    height: 6rem;
  }

  .hero-wave svg {
    height: 4rem;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    padding: 13rem 6% 9rem;
  }

  .hero-section .hero-title {
    font-size: 3.4rem;
  }

  .hero-bottom-fade {
    height: 5rem;
  }

  .hero-wave svg {
    height: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    padding: 12rem 6% 10rem;
  }

  .hero-section .hero-title {
    font-size: 2.7rem;
  }

  .hero-section .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-bottom-fade {
    height: 4rem;
  }

  .hero-wave svg {
    height: 2.5rem;
  }
}
