/* ==========================================================================
   Royal Honey Shop - Subdomain Theme (Header & Footer Styles)
   Matches https://royalhoneyshop.us Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --rhs-font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rhs-bg-dark: #1f1e20;
  --rhs-bg-dark-secondary: #181719;
  --rhs-announcement-bg: #c57319;
  --rhs-announcement-gold: #d4af37;
  --rhs-gold-accent: #a38233;
  --rhs-gold-hover: #d4af37;
  --rhs-text-light: #ffffff;
  --rhs-text-muted: rgba(255, 255, 255, 0.7);
  --rhs-text-faint: rgba(255, 255, 255, 0.45);
  --rhs-border-dark: rgba(255, 255, 255, 0.12);
  --rhs-header-max-width: 1200px;
  --rhs-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Utilities for Header/Footer */
.rhs-site-header,
.rhs-site-footer,
.rhs-announcement-bar,
.rhs-mobile-nav-drawer {
  font-family: var(--rhs-font-main);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.rhs-site-header *,
.rhs-site-footer *,
.rhs-announcement-bar *,
.rhs-mobile-nav-drawer * {
  box-sizing: border-box;
}

/* ==========================================================================
   1. Announcement Bar
   ========================================================================== */
.rhs-announcement-bar {
  background-color: var(--rhs-announcement-bg);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 1001;
}

.rhs-announcement-container {
  max-width: var(--rhs-header-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rhs-announcement-text {
  margin: 0;
  line-height: 1.4;
}

.rhs-announcement-text strong {
  font-weight: 700;
  color: #ffffff;
}

.rhs-announcement-text s {
  opacity: 0.85;
  margin: 0 4px;
}

.rhs-announcement-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #111111 !important;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: var(--rhs-transition);
  white-space: nowrap;
}

.rhs-announcement-btn:hover {
  background-color: #f3f3f3;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Main Header
   ========================================================================== */
.rhs-site-header {
  background-color: var(--rhs-bg-dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--rhs-border-dark);
}

.rhs-header-main-row {
  max-width: var(--rhs-header-max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Left: Mobile Toggle & Socials */
.rhs-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rhs-mobile-menu-toggle {
  background: none;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--rhs-transition);
}

.rhs-mobile-menu-toggle:hover {
  color: var(--rhs-gold-hover);
}

.rhs-header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .rhs-header-socials {
    display: none;
  }
}

.rhs-social-icon {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--rhs-transition);
  text-decoration: none;
}

.rhs-social-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.rhs-social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Center: Logo */
.rhs-header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rhs-header-logo {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}

.rhs-header-logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--rhs-transition);
}

.rhs-header-logo:hover img {
  opacity: 0.92;
}

/* Right: CTA & Store Utility Icons */
.rhs-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.rhs-shop-now-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #111111 !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--rhs-transition);
}

.rhs-shop-now-cta:hover {
  background-color: var(--rhs-gold-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .rhs-shop-now-cta {
    display: none;
  }
}

.rhs-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rhs-action-icon {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--rhs-transition);
  position: relative;
  padding: 4px;
}

.rhs-action-icon:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.rhs-action-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   3. Desktop Navigation Bar
   ========================================================================== */
.rhs-header-nav-row {
  border-top: 1px solid var(--rhs-border-dark);
  background-color: rgba(0, 0, 0, 0.15);
}

.rhs-nav-container {
  max-width: var(--rhs-header-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.rhs-nav-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.rhs-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rhs-nav-item {
  margin: 0;
}

.rhs-nav-link {
  display: inline-block;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: var(--rhs-transition);
}

.rhs-nav-link:hover {
  color: #ffffff;
}

.rhs-nav-link.active {
  color: var(--rhs-gold-hover);
  font-weight: 700;
}

.rhs-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--rhs-gold-hover);
  border-radius: 2px 2px 0 0;
}

/* ==========================================================================
   4. Mobile Slide-out Drawer
   ========================================================================== */
.rhs-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rhs-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.rhs-mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background-color: var(--rhs-bg-dark-secondary);
  color: #ffffff;
  z-index: 10001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.rhs-drawer-overlay.open .rhs-mobile-nav-drawer {
  transform: translateX(0);
}

.rhs-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rhs-border-dark);
}

.rhs-drawer-logo img {
  height: 38px;
}

.rhs-drawer-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rhs-drawer-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.rhs-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 15px 0;
  flex: 1;
}

.rhs-drawer-link {
  display: block;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--rhs-transition);
}

.rhs-drawer-link:hover,
.rhs-drawer-link.active {
  color: var(--rhs-gold-hover);
  background-color: rgba(255, 255, 255, 0.04);
  border-left-color: var(--rhs-gold-hover);
}

.rhs-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--rhs-border-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rhs-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--rhs-announcement-gold);
  color: #111111 !important;
  font-weight: 700;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rhs-drawer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   5. Site Footer
   ========================================================================== */
.rhs-site-footer {
  background-color: var(--rhs-bg-dark);
  color: #ffffff;
  border-top: 1px solid var(--rhs-border-dark);
  margin-top: 4rem;
  padding: 50px 20px 30px 20px;
}

.rhs-footer-container {
  max-width: var(--rhs-header-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* Top Section: Quick Contact & Socials */
.rhs-footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rhs-border-dark);
}

.rhs-footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rhs-footer-brand-info h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.rhs-footer-brand-info p {
  color: var(--rhs-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.rhs-footer-contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.rhs-footer-phone-btn,
.rhs-footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--rhs-transition);
}

.rhs-footer-phone-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid var(--rhs-border-dark);
}

.rhs-footer-phone-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.rhs-footer-whatsapp-btn {
  background-color: #25D366;
  color: #ffffff !important;
}

.rhs-footer-whatsapp-btn:hover {
  background-color: #20BA5A;
  transform: translateY(-1px);
}

/* Medical Disclaimer Block */
.rhs-footer-disclaimer {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 20px;
}

.rhs-footer-disclaimer p {
  font-size: 0.85rem;
  color: var(--rhs-text-muted);
  line-height: 1.6;
  margin: 0;
}

.rhs-footer-disclaimer strong {
  color: #ffffff;
}

/* Bottom Row: Legal Navigation & Copyright */
.rhs-footer-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .rhs-footer-bottom-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.rhs-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.rhs-footer-legal-link {
  color: var(--rhs-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--rhs-transition);
}

.rhs-footer-legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.rhs-footer-copyright {
  color: var(--rhs-text-faint);
  font-size: 0.85rem;
  margin: 0;
}
