/* ============== YU SLEEP — SHARED PAGE STYLES ============== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1d3a;
  background: #fafbff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

:root {
  --navy-deep: #0a0f3d;
  --navy: #141a52;
  --navy-mid: #232a6e;
  --purple: #5b3fa6;
  --purple-light: #8a6fd9;
  --gold: #f5b942;
  --gold-deep: #d99a2a;
  --orange: #ff7a3d;
  --orange-deep: #ff5722;
  --cream: #fdf6e8;
  --white: #ffffff;
  --text-dark: #1a1d3a;
  --text-mid: #4a4f7a;
  --text-light: #7a80a8;
  --bg-soft: #f4f0ff;
  --bg-light: #fafbff;
  --border: #e4e1f0;
  --success: #10b981;
  --shadow-soft: 0 4px 20px rgba(20, 26, 82, 0.08);
  --shadow-card: 0 10px 40px rgba(20, 26, 82, 0.12);
  --shadow-strong: 0 20px 60px rgba(20, 26, 82, 0.18);
  --grad-night: linear-gradient(135deg, #0a0f3d 0%, #232a6e 50%, #5b3fa6 100%);
  --grad-gold: linear-gradient(135deg, #f5b942 0%, #ff7a3d 100%);
  --grad-cta: linear-gradient(135deg, #ff7a3d 0%, #ff5722 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ============== ANNOUNCEMENT BAR ============== */
.top-bar {
  background: var(--grad-night);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.top-bar .gold { color: var(--gold); font-weight: 700; }

/* ============== HEADER ============== */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(20, 26, 82, 0.05);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy-deep);
  letter-spacing: -0.5px;
}
.logo-icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f0ff 100%);
  padding: 4px;
  box-shadow: 0 4px 14px rgba(91, 63, 166, 0.2);
}
nav.main-nav { display: flex; gap: 32px; align-items: center; }
nav.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
}
nav.main-nav a:hover { color: var(--purple); }
.btn-header {
  background: var(--grad-cta);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5); }
.mobile-toggle { display: none; font-size: 26px; color: var(--navy-deep); }
@media (max-width: 920px) {
  nav.main-nav { display: none; }
  .mobile-toggle { display: block; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(20, 26, 82, 0.15);
  }
}

/* ============== BUTTONS ============== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 18px 38px;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 87, 34, 0.55); }

/* ============== PAGE HERO ============== */
.page-hero {
  background: var(--grad-night);
  color: #fff;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(245, 185, 66, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(138, 111, 217, 0.2), transparent 40%),
    radial-gradient(2px 2px at 20% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 80% 80%, rgba(255,255,255,0.6), transparent);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 16px;
  line-height: 1.15;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  background: rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}
.breadcrumb a { color: var(--gold); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }

/* ============== PAGE CONTENT ============== */
.page-content {
  padding: 60px 0 80px;
  background: #fff;
}
.page-content-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-content h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 40px 0 16px;
  color: var(--navy-deep);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-soft);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 14px;
  color: var(--purple);
}
.page-content p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.75;
}
.page-content ul, .page-content ol {
  margin: 16px 0 24px 28px;
  color: var(--text-mid);
}
.page-content li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
}
.page-content li strong { color: var(--navy-deep); }
.page-content a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.page-content a:hover { color: var(--orange-deep); }
.page-content .info-box {
  background: linear-gradient(145deg, #f4f0ff 0%, #ffffff 100%);
  border-left: 4px solid var(--purple);
  padding: 22px 26px;
  border-radius: 12px;
  margin: 26px 0;
  font-size: 15.5px;
  color: var(--text-dark);
}
.page-content .info-box strong { color: var(--navy-deep); }
.page-content .warn-box {
  background: linear-gradient(145deg, #fff5e6 0%, #ffffff 100%);
  border-left: 4px solid var(--gold-deep);
  padding: 22px 26px;
  border-radius: 12px;
  margin: 26px 0;
  font-size: 15.5px;
  color: var(--text-dark);
}
.page-content .last-updated {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.page-content th, .page-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.page-content th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--navy-deep);
}

/* ============== FOOTER ============== */
footer.site-footer {
  background: #050a25;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo-icon-img { background: rgba(255, 255, 255, 0.95); }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.footer-disclaimer p { margin-bottom: 12px; }
.footer-copyright {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ============== CTA SECTION ============== */
.cta-section {
  background: var(--grad-night);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; border: none; padding: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ============== BLOG SPECIFIC ============== */
.blog-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  flex-wrap: wrap;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-hero-img {
  max-width: 900px;
  margin: -40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}
.blog-hero-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(20, 26, 82, 0.25);
  border: 6px solid #fff;
}
.blog-article { padding-top: 60px; }
.blog-article p.lead {
  font-size: 18px;
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 28px;
}
.blog-toc {
  background: linear-gradient(145deg, #f4f0ff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 30px 0;
}
.blog-toc h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.blog-toc ol {
  list-style: decimal;
  margin: 0 0 0 22px;
  color: var(--text-mid);
}
.blog-toc li { margin-bottom: 8px; font-size: 15px; }
.blog-toc a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.blog-toc a:hover { color: var(--orange-deep); text-decoration: underline; }

.product-callout {
  background: linear-gradient(135deg, #fff5e6 0%, #f4f0ff 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 30px;
  margin: 36px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 700px) {
  .product-callout { grid-template-columns: 1fr; text-align: center; }
}
.product-callout-img { width: 100px; height: auto; }
.product-callout-text h4 {
  font-size: 18px;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.product-callout-text p {
  font-size: 14.5px;
  color: var(--text-mid);
  margin: 0;
}
.product-callout .btn-primary {
  font-size: 14px;
  padding: 14px 24px;
  white-space: nowrap;
}

/* ============== BLOG GRID ============== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  background: var(--bg-soft);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-card h3 {
  font-size: 17px;
  color: var(--navy-deep);
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card p { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; }
.blog-card-link {
  margin-top: auto;
  color: var(--purple);
  font-weight: 600;
  font-size: 14px;
}

/* ============== CONTACT FORM ============== */
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-top: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; color: var(--navy-deep); margin-bottom: 8px; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-light);
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 140px; }

/* ============== CONTACT INFO GRID ============== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0;
}
@media (max-width: 768px) { .contact-info-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: linear-gradient(145deg, #ffffff 0%, #faf7ff 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}
.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-night);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.contact-info-card h4 { font-size: 17px; margin-bottom: 8px; color: var(--navy-deep); }
.contact-info-card p { font-size: 14.5px; color: var(--text-mid); margin: 0; }
