/* ===== Header Styles ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 245, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.is-sticky {
  padding-top: 4px;
  padding-bottom: 4px;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  height: 60px; /* Fixed height for vertical centering */
  max-width: 1152px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--foreground);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.85;
}

.site-logo img {
  max-width: 140px;
  max-height: 50px; /* Prevent logo from stretching header */
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: none;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  padding: 8px 0;
  color: var(--foreground);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  position: relative;
}

.main-nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.main-nav a:hover:after,
.main-nav a.current-menu-item:after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.current-menu-item {
  color: var(--primary);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
  .header-inner {
    padding: 0 24px;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: var(--muted);
  border-radius: 8px;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: var(--border);
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile drawer (Decorated Modern Look) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.drawer.open {
  display: block;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: drawerFadeIn 0.25s ease;
}

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(330px, 86vw);
  background: #ffffff;
  padding: 20px 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: drawerSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes drawerSlideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.drawer-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* Top Nav Links */
.drawer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.drawer-nav-item svg {
  color: var(--primary, #00b4d8);
  flex-shrink: 0;
}

.drawer-nav-item:hover {
  background: #ffffff;
  border-color: var(--primary, #00b4d8);
  color: var(--primary, #00b4d8);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
}

/* Categories Section */
.drawer-cat-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 2px;
}

.drawer-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-section-title svg {
  color: var(--primary, #00b4d8);
}

.drawer-cat-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #00b4d8);
  background: rgba(0, 180, 216, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.drawer-cats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-cat-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.drawer-cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
  line-height: 1.3;
  transition: color 0.18s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.drawer-cat-arrow {
  font-size: 18px;
  color: #94a3b8;
  font-weight: 700;
  transition: transform 0.2s, color 0.2s;
}

.drawer-cat-card:hover {
  background: #f8fafc;
  border-color: rgba(0, 180, 216, 0.4);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.drawer-cat-card:hover .drawer-cat-name {
  color: var(--primary, #00b4d8);
}

.drawer-cat-card:hover .drawer-cat-arrow {
  color: var(--primary, #00b4d8);
  transform: translateX(2px);
}

/* Contact Footer in Drawer */
.drawer-contact-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-contact-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
}

.drawer-contact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-cbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.drawer-cbtn-wa {
  background: #25D366;
  color: #ffffff;
}

.drawer-cbtn-call {
  background: var(--primary, #00b4d8);
  color: #ffffff;
}

.drawer-cbtn:active {
  transform: scale(0.96);
}

