/* ═══════════════════════════════════════════════════
   BabyWarm Pro — Theme CSS 
   Header · Footer · Global · Utilities
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bw-cream:    #FDF6EE;
  --bw-warm:     #F5E6D3;
  --bw-peach:    #F2C49B;
  --bw-orange:   #E8873A;
  --bw-orange-d: #D97A2F;
  --bw-deep:     #2C1A0E;
  --bw-mid:      #6B4C35;
  --bw-green:    #4A7C59;
  --bw-white:    #FFFFFF;

  --bw-font-head: 'Playfair Display', Georgia, serif;
  --bw-font-body: 'DM Sans', -apple-system, sans-serif;

  --bw-radius-sm: 8px;
  --bw-radius-md: 14px;
  --bw-radius-lg: 20px;
  --bw-radius-pill: 50px;

  --bw-shadow-sm: 0 4px 16px rgba(44,26,14,.07);
  --bw-shadow-md: 0 8px 32px rgba(44,26,14,.12);
  --bw-shadow-lg: 0 20px 60px rgba(44,26,14,.18);
  --bw-header-h: 72px;
  --bw-promo-h:  42px;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--bw-font-body);
  background: var(--bw-cream);
  color: var(--bw-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--bw-orange); text-decoration: none; transition: color .3s; }

/* ════════════════════════════════════════
   PROMO BAR
════════════════════════════════════════ */
.bw-promo-bar {
  background: var(--bw-deep);
  height: var(--bw-promo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height .4s ease, opacity .4s ease;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.bw-promo-bar.bw-hidden {
  height: 0;
  opacity: 0;
}

.bw-promo-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  width: 100%;
  padding: 0 40px;
  justify-content: center;
}

.bw-promo-text {
  font-size: 13px;
  color: rgba(255,255,255,.88);
  font-family: var(--bw-font-body);
  font-weight: 500;
}

.bw-promo-phone {
  font-size: 13px;
  color: var(--bw-peach);
  font-weight: 600;
  transition: color .2s;
}
.bw-promo-phone:hover { color: var(--bw-orange); }

/* ════════════════════════════════════════
   MAIN HEADER
════════════════════════════════════════ */
.bw-header {
  position: sticky;
  top: 42px;
  z-index: 1000;
  background: rgba(253,246,238,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: var(--bw-header-h);
  box-shadow: 0 2px 20px rgba(44,26,14,.07);
  transition: box-shadow .3s, background .3s;
}

.bw-header.bw-scrolled {
  box-shadow: 0 4px 28px rgba(44,26,14,.13);
}

.bw-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.bw-logo-text {
  font-family: var(--bw-font-head);
  font-size: 24px;
  font-weight: 900;
  color: var(--bw-deep);
  white-space: nowrap;
}
.bw-logo-text em  { color: var(--bw-orange); font-style: italic; }
.bw-logo-text span { font-size: 16px; font-weight: 600; color: var(--bw-mid); }

/* Nav */
.bw-header-nav { flex: 1; display: flex; justify-content: center; }

.bw-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bw-nav-menu li a {
  font-family: var(--bw-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--bw-mid);
  padding: 8px 14px;
  border-radius: var(--bw-radius-sm);
  transition: all .25s;
  display: block;
}

.bw-nav-menu li a:hover,
.bw-nav-menu li.current-menu-item > a {
  color: var(--bw-orange);
  background: rgba(232,135,58,.08);
}

/* Dropdown */
.bw-nav-menu li { position: relative; }

.bw-nav-menu li ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bw-white);
  border-radius: var(--bw-radius-md);
  box-shadow: var(--bw-shadow-md);
  min-width: 200px;
  padding: 8px 0;
  list-style: none;
  z-index: 100;
  border: 1px solid rgba(242,196,155,.3);
}

.bw-nav-menu li:hover > ul { display: block; }

.bw-nav-menu li ul li a {
  padding: 10px 18px;
  border-radius: 0;
  font-size: 14px;
  color: var(--bw-mid);
}

.bw-nav-menu li ul li a:hover {
  background: var(--bw-warm);
  color: var(--bw-orange);
}

/* Header actions */
.bw-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.bw-header-phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-mid);
  white-space: nowrap;
}
.bw-header-phone:hover { color: var(--bw-orange); }

.bw-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bw-orange);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--bw-radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--bw-font-body);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(232,135,58,.3);
  transition: all .3s;
}
.bw-header-btn:hover {
  background: var(--bw-orange-d);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,135,58,.4);
}

.bw-header-price {
  background: rgba(255,255,255,.2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* Hamburger (mobile) */
.bw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.bw-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bw-deep);
  border-radius: 2px;
  transition: all .3s;
}
.bw-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.bw-hamburger.active span:nth-child(2) { opacity: 0; }
.bw-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.bw-footer {
  color: rgba(255,255,255,.7);
  font-family: var(--bw-font-body);
}

.bw-footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}

/* Brand col */
.bw-footer-logo {
  font-family: var(--bw-font-head);
  font-size: 26px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  margin-bottom: 14px;
}
.bw-footer-logo em { color: var(--bw-peach); font-style: italic; }

.bw-footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
  max-width: 260px;
}

/* Social */
.bw-footer-social { display: flex; gap: 10px; }

.bw-social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .3s;
}
.bw-social-btn:hover {
  background: var(--bw-orange);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer columns */
.bw-footer-col-title {
  font-family: var(--bw-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}

.bw-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bw-footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.bw-footer-links li a:hover { color: var(--bw-peach); }

/* Contacts col */
.bw-footer-contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bw-footer-contacts svg {
  color: var(--bw-orange);
  flex-shrink: 0;
}

.bw-footer-contacts li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
}

.bw-footer-contacts li:not(:has(a)) {
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

/* Footer bottom */
.bw-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.bw-footer-copy { font-size: 13px; color: rgba(255,255,255,.35); }

.bw-footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.bw-badge-small {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ════════════════════════════════════════
   STICKY BAR
════════════════════════════════════════ */
#bw-sticky-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bw-deep);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--bw-radius-pill);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--bw-shadow-lg);
  z-index: 9999;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
  font-family: var(--bw-font-body);
  font-size: 14px;
}

#bw-sticky-bar.bw-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#bw-sticky-bar strong { color: var(--bw-peach); }

#bw-sticky-bar a {
  background: var(--bw-orange);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: background .3s;
}
#bw-sticky-bar a:hover { background: var(--bw-orange-d); color: #fff; }

/* ════════════════════════════════════════
   GENERAL PAGE CONTENT
════════════════════════════════════════ */
.bw-post-content {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 40px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--bw-mid);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bw-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .bw-header-phone { display: none; }
}

@media (max-width: 768px) {
  :root { --bw-header-h: 64px; }

  .bw-header-inner { padding: 0 20px; justify-content: space-between; }

  .bw-header-nav { display: none; position: absolute; top: var(--bw-header-h); left: 0; right: 0;
    background: var(--bw-white); padding: 16px 20px 24px; box-shadow: var(--bw-shadow-md);
    flex-direction: column; align-items: stretch; }

  .bw-header-nav.bw-open { display: flex; }

  .bw-nav-menu { flex-direction: column; gap: 4px; }
  .bw-nav-menu li a { padding: 12px 16px; font-size: 16px; }
  .bw-nav-menu li ul { position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; display: block; }

  .bw-hamburger { display: flex; }
  .bw-header-actions { gap: 10px; }
  .bw-header-btn { padding: 9px 16px; font-size: 14px; }
  .bw-header-price { display: none; }

  .bw-promo-inner { padding: 0 16px; gap: 12px; justify-content: space-around; }
  .bw-promo-text { font-size: 12px; }
  .bw-promo-phone { font-size: 12px; }

  .bw-footer-top { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
  .bw-footer-bottom { padding: 20px 24px; flex-direction: column; align-items: center; text-align: center; }
  .bw-footer-tagline { max-width: 100%; }

  #bw-sticky-bar { width: calc(100% - 32px); white-space: normal; flex-wrap: wrap; justify-content: center; gap: 12px; }
}
