/* ── Top Header ──────────────────────────────────────────────── */
.top-header {
  background:
    linear-gradient(135deg, #0b351d 0%, #145c30 100%);
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-header__inner {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* ── Search ──────────────────────────────────────────────────── */
.site-search {
  display: flex;
  align-items: center;

  min-width: 250px;
  height: 40px;

  background: #ffffff;
  border: 1px solid rgba(207, 227, 196, 0.9);
  border-radius: 999px;
  overflow: hidden;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.site-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;
  padding: 9px 14px;

  color: #24442c;
  font-size: 0.84rem;
  font-weight: 500;
  background: transparent;
}

.site-search input::placeholder {
  color: #7c927c;
}

.site-search button {
  width: 42px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-left: 1px solid #dcebd5;
  color: #145c30;
  background: #f3fbef;
  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.site-search button:hover {
  background: #dff3d7;
  color: #0d3d20;
}

.site-search button .material-icons {
  font-size: 1.15rem;
}

.site-search--mobile {
  display: none;
  margin: 14px 18px 10px;
  min-width: auto;
}

/* ── Phone Form ──────────────────────────────────────────────── */
.phone-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.phone-form__label {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.phone-form input {
  min-width: 170px;
  height: 34px;

  padding: 6px 12px;

  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.96);
  color: #24442c;

  font-size: 0.85rem;
  font-weight: 500;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.phone-form input::placeholder {
  color: #8a9a8f;
}

.phone-form input:focus {
  background: #ffffff;
  border-color: #8de06c;
  box-shadow: 0 0 0 3px rgba(141, 224, 108, 0.22);
}

.phone-form button {
  height: 34px;
  padding: 0 18px;

  background: #47c818;
  color: #ffffff;
  border: none;
  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;

  cursor: pointer;
  white-space: nowrap;

  box-shadow: 0 8px 18px rgba(71, 200, 24, 0.24);

  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.phone-form button:hover {
  background: #31930e;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(71, 200, 24, 0.3);
}

/* ── Header Shell ────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 4px 24px rgba(13, 61, 32, 0.08);
  transition: box-shadow 0.25s ease;
}

header.scrolled {
  box-shadow: 0 8px 30px rgba(13, 61, 32, 0.13);
}

/* ── Nav Container ───────────────────────────────────────────── */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 12px 24px;
}

/* ── Logo ────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  width: 48px;
  height: 48px;

  border-radius: 50%;
  object-fit: cover;

  border: 2px solid #e3f3e7;
  box-shadow: 0 6px 16px rgba(20, 92, 48, 0.14);
}

.logo h3 {
  margin: 0;

  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;

  color: #145c30;
  letter-spacing: -0.03em;
}

/* ── Desktop Navigation ──────────────────────────────────────── */
.desktop-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.desktop-menu a {
  position: relative;

  padding: 8px 14px;

  color: #514f4b;
  border-radius: 999px;

  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;

  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.desktop-menu a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 5px;

  height: 2px;
  border-radius: 999px;
  background: #22a355;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.desktop-menu a:hover,
.desktop-menu a.active-link {
  color: #145c30;
  background: #f0fdf6;
  transform: translateY(-1px);
}

.desktop-menu a:hover::after,
.desktop-menu a.active-link::after {
  transform: scaleX(1);
}

/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger {
  display: none;

  width: 42px;
  height: 42px;
  padding: 10px;

  flex-direction: column;
  justify-content: center;
  gap: 5px;

  border: 1px solid #d9eadc;
  border-radius: 12px;
  background: #f6fbf7;

  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;

  background-color: #145c30;
  border-radius: 999px;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.hamburger:hover {
  background: #eef8f1;
}

/* ================================================================
   Mobile Side Menu
   ================================================================ */

.side-menu {
  position: fixed;
  top: 0;
  right: -340px;
  z-index: 1100;

  width: min(320px, 86vw);
  height: 100%;

  background: #ffffff;
  border-left: 1px solid #e5f0e0;
  box-shadow: -12px 0 45px rgba(0, 0, 0, 0.16);

  overflow-y: auto;
  transition: right 0.32s ease;
}

.side-menu.open {
  right: 0;
}

/* ── Drawer Header ───────────────────────────────────────────── */
.side-menu-header {
  position: sticky;
  top: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 18px 22px;

  background:
    linear-gradient(135deg, #f4faf0 0%, #eaf7e5 100%);
  border-bottom: 1px solid #d4e9c8;
}

.side-menu-brand {
  font-family: var(--font-display, "Sora", sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: #145c30;
  letter-spacing: -0.02em;
}

.close-btn {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #b8d9a5;
  border-radius: 12px;

  color: #2e7d1c;
  font-size: 1rem;

  cursor: pointer;
  background: #ffffff;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.close-btn:hover {
  background: #e8f5e1;
  color: #1a5c0a;
  border-color: #7ec860;
  transform: rotate(90deg);
}

/* ── Mobile Nav Links ────────────────────────────────────────── */
.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 10px 0 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 24px;

  font-size: 0.92rem;
  font-weight: 700;
  color: #255f18;

  border-bottom: 1px solid #edf6e8;
  text-decoration: none;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
}

.mobile-menu a .material-icons {
  font-size: 1.05rem;
  color: #4ca82d;
  opacity: 0.78;
}

.mobile-menu a:hover {
  background: #f0faeb;
  color: #145c30;
  padding-left: 30px;
}

.mobile-menu a:hover .material-icons {
  opacity: 1;
}

/* ── Mobile Categories ───────────────────────────────────────── */
.mobile-categories {
  margin-top: 6px;
  border-top: 1px solid #d4e9c8;
}

.mobile-categories__heading {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 16px 24px 10px;

  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;

  color: #6aac4c;
}

.mobile-categories__heading .material-icons {
  font-size: 1rem;
  color: #6aac4c;
}

/* Main Category Row */
.mobile-main-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 13px 24px;

  font-size: 0.88rem;
  font-weight: 800;
  color: #1e6b0d;

  border-bottom: 1px solid #edf6e8;
  cursor: pointer;
  user-select: none;
  background: #ffffff;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.mobile-main-cat:hover,
.mobile-main-cat.open {
  background: #f0faeb;
  color: #144d08;
}

.mobile-main-cat__arrow {
  font-size: 1.15rem;
  color: #7ec860;
  line-height: 1;

  transition:
    transform 0.22s ease,
    color 0.22s ease;
}

.mobile-main-cat.open .mobile-main-cat__arrow {
  transform: rotate(90deg);
  color: #2e7d1c;
}

/* Sub Category List */
.mobile-sub-list {
  display: none;
  flex-direction: column;

  margin: 8px 16px 14px;
  padding: 8px;

  background: #ffffff;
  border: 1px solid #d7ead0;
  border-radius: 16px;

  box-shadow: 0 12px 30px rgba(18, 72, 26, 0.12);
}

.mobile-sub-list.show {
  display: flex;
  animation: mobileSubCardIn 0.18s ease;
}

@keyframes mobileSubCardIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-sub-item {
  display: block;
  position: relative;

  padding: 11px 14px 11px 32px;

  font-size: 0.82rem;
  font-weight: 700;
  color: #3a8020;

  text-decoration: none;
  border-bottom: 1px solid #edf6e8;
  border-radius: 10px;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    padding-left 0.18s ease;
}

.mobile-sub-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: #a8d48e;

  transform: translateY(-50%);
}

.mobile-sub-item:hover {
  background: #e8f5e1;
  color: #1a5c0a;
  padding-left: 36px;
}

.mobile-sub-item:last-child {
  border-bottom: none;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1090;

  background: rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.menu-overlay.active {
  display: block;
  animation: overlayFadeIn 0.22s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.menu-open {
  overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991px) {
  .desktop-menu {
    gap: 2px;
  }

  .desktop-menu a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .site-search {
    min-width: 210px;
  }
}

@media (max-width: 767px) {
  .top-header {
    padding: 7px 12px;
  }

  .top-header__inner {
    justify-content: center;
  }

  .site-search--desktop {
    display: none;
  }

  .site-search--mobile {
    display: flex;
  }

  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-container {
    padding: 10px 16px;
  }

  .logo {
    gap: 9px;
  }

  .logo h3 {
    font-size: 0.95rem;
    max-width: 160px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .phone-form {
    gap: 8px;
  }

  .phone-form__label {
    display: none;
  }

  .phone-form input {
    min-width: 140px;
    height: 32px;
    font-size: 0.8rem;
  }

  .phone-form button {
    height: 32px;
    padding: 0 14px;
    font-size: 0.74rem;
  }
}

@media (max-width: 420px) {
  .top-header {
    padding-inline: 10px;
  }

  .phone-form input {
    min-width: 128px;
    max-width: 145px;
  }

  .phone-form button {
    padding: 0 12px;
  }

  .logo h3 {
    font-size: 0.88rem;
    max-width: 135px;
  }

  .side-menu {
    width: 88vw;
  }
}