/* ============================================================
   Garg Farms — Shared Layout: Navbar + Footer
   ============================================================ */

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, padding .3s;
  padding-block: 1.25rem;
  background-color: transparent;
}
.navbar.is-solid {
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding-block: 0.75rem;
}

/* Replicates Tailwind's responsive `container mx-auto px-4 md:px-6`:
   full width, with max-width snapping to each breakpoint (up to 1536px). */
.navbar-inner {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px)  { .navbar-inner { max-width: 40rem; } }
@media (min-width: 768px)  { .navbar-inner { max-width: 48rem; padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .navbar-inner { max-width: 64rem; } }
@media (min-width: 1280px) { .navbar-inner { max-width: 80rem; } }
@media (min-width: 1536px) { .navbar-inner { max-width: 96rem; } }

.navbar-logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.2));
  transition: transform .2s;
}
.navbar-logo:hover img { transform: scale(1.05); }

.navbar-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .navbar-nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .2s;
  color: #fff;
}
.navbar.is-solid .nav-link { color: hsl(var(--foreground)); }
.nav-link:hover { color: hsl(var(--secondary)); }

.nav-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--secondary));
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--secondary) / 0.4);
  transition: background-color .2s;
}
.navbar.is-solid .nav-shop { border-color: hsl(var(--secondary) / 0.3); }
.nav-shop:hover { background-color: hsl(var(--secondary) / 0.1); }
.nav-shop.is-active { background-color: hsl(var(--secondary) / 0.1); }

/* B2B enquiry button changes with scroll state */
.nav-cta {
  background-color: #fff;
  color: hsl(var(--primary));
}
.nav-cta:hover { background-color: rgba(255, 255, 255, 0.9); }
.navbar.is-solid .nav-cta {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: var(--primary-border);
}
.navbar.is-solid .nav-cta:hover { background-color: hsl(96 57% 20% / 0.9); }

.navbar-toggle {
  display: inline-flex;
  padding: 0.5rem;
  color: #fff;
}
.navbar.is-solid .navbar-toggle { color: hsl(var(--foreground)); }
@media (min-width: 768px) {
  .navbar-toggle { display: none; }
}
.navbar-toggle .icon-close { display: none; }
.navbar-toggle.is-open .icon-menu { display: none; }
.navbar-toggle.is-open .icon-close { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu.is-open { display: flex; }
@media (min-width: 768px) {
  .mobile-menu, .mobile-menu.is-open { display: none; }
}
.mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  padding-block: 0.5rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.mobile-menu .mobile-shop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--secondary));
  font-weight: 600;
}
.mobile-menu .btn { width: 100%; margin-top: 0.5rem; min-height: 2.5rem; }
/* keep the primary button's text white — overrides .mobile-menu a color */
.mobile-menu .btn-primary { color: hsl(var(--primary-foreground)); border-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo {
  height: 4rem;
  width: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.3));
}
.footer-about {
  color: hsl(var(--primary-foreground) / 0.75);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary-foreground) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s;
}
.footer-social a:hover { background-color: hsl(var(--secondary)); }

.footer-heading {
  font-family: var(--app-font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.footer-list a {
  color: hsl(var(--primary-foreground) / 0.75);
  transition: color .2s;
}
.footer-list a:hover { color: hsl(var(--secondary)); }

.footer-contact { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; }
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.75);
}
.footer-contact a {
  color: inherit;
}
.footer-contact a:hover {
  color: hsl(var(--secondary));
}
.footer-contact svg {
  flex-shrink: 0;
  color: hsl(var(--secondary));
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.5);
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- 404 page ---------- */
.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem; /* top clears the fixed navbar */
  background-color: hsl(var(--background));
}
.notfound-icon {
  height: 4rem;
  width: 4rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary) / 0.12);
  color: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.notfound-icon svg { width: 2rem; height: 2rem; }
.notfound-code {
  font-family: var(--app-font-serif);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}
.notfound-code span { color: hsl(var(--secondary)); }
@media (min-width: 768px) { .notfound-code { font-size: 7rem; } }
.notfound h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .notfound h1 { font-size: 2.25rem; } }
.notfound p {
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.7);
  max-width: 32rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}
.notfound-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 480px) { .notfound-actions { flex-direction: row; } }
.notfound-actions .btn { min-height: 2.75rem; padding-inline: 1.5rem; font-weight: 600; }
