/* =============================================
   SHALLOW THE BED STORE — STYLESHEET
   Theme: Navy / White / Warm Gold
   ============================================= */

:root {
  /* Brand */
  --primary: #1B3664;
  --primary-dark: #122447;
  --primary-light: #E8EFF9;
  --gold: #C8913A;
  /* Neutrals */
  --white: #ffffff;
  --off-white: #F7F8FA;
  --gray-light: #EAEDF2;
  --gray-mid: #C4C9D4;
  --gray-text: #62697A;
  --dark: #111928;
  /* Red accent */
  --red: #C8232C;
  --red-light: rgba(200,35,44,0.14);
  /* Backward-compat aliases used in inline HTML */
  --orange: var(--primary);
  --orange-dark: var(--primary-dark);
  --orange-light: var(--primary-light);
  /* System */
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(17,25,40,0.09);
  --transition: 0.2s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* TYPOGRAPHY */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--gray-text); }

/* =============================================
   PROMO BAR
   ============================================= */
.promo-bar {
  background: var(--dark);
  color: var(--gray-mid);
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.promo-bar a { color: var(--white); text-decoration: underline; }

/* =============================================
   HEADER & NAV
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(17,25,40,0.22);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.1;
}
.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.logo-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.52);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
  color: rgba(255,255,255,0.72);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-phone {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px !important;
}
.nav-phone:hover {
  background: rgba(255,255,255,0.24) !important;
  border-color: rgba(255,255,255,0.55) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(17,25,40,0.25);
  }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 0.75rem 1rem; }
  .nav-phone { margin-top: 0.5rem; text-align: center; }
}

/* =============================================
   CATEGORY CARDS
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.category-card:hover img { transform: scale(1.04); }
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,25,40,0.85) 0%, rgba(17,25,40,0.08) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}
.category-card-overlay h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.4rem; }
.category-card-overlay .btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  align-self: flex-start;
}

/* =============================================
   PROMO BANNER STRIP
   ============================================= */
.promo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--gray-light);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.promo-strip-item {
  background: var(--white);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.promo-strip-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.promo-strip-icon svg { width: 18px; height: 18px; fill: var(--primary); }
.promo-strip-item h4 { font-size: 0.85rem; margin-bottom: 0.1rem; }
.promo-strip-item p { font-size: 0.75rem; }

/* =============================================
   BRANDS STRIP
   ============================================= */
.brands-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 2rem 1.25rem;
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.brands-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-text);
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}
.brand-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 6px;
  background: var(--white);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--dark);
  padding: 5rem 1.25rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

/* Store photo background — drop store.jpg into images/ to activate */
.hero-store-bg {
  background-image: url('../images/store.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-store-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 40, 0.74);
  z-index: 0;
}
.hero-store-bg .hero-inner {
  position: relative;
  z-index: 1;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.42);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* =============================================
   SECTIONS
   ============================================= */
section { padding: 4rem 1.25rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { margin-top: 0.5rem; font-size: 1rem; }

.bg-off { background: var(--off-white); }
.bg-orange-light { background: var(--primary-light); }
.bg-dark { background: var(--dark); }

/* =============================================
   CARDS
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(17,25,40,0.10);
  border-color: var(--gray-mid);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-light);
}
.card-body { padding: 1.25rem; }
.card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.card h3 { margin-bottom: 0.3rem; }
.card p { font-size: 0.9rem; margin-bottom: 1rem; }
.card .btn { width: 100%; text-align: center; }

/* =============================================
   FEATURE LIST
   ============================================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.feature-item {
  background: var(--white);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.feature-item h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.85rem; }

/* =============================================
   PRODUCT DETAIL (mattresses / bases pages)
   ============================================= */
.product-grid {
  display: grid;
  gap: 3rem;
}
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-light);
  overflow: hidden;
}
.product-card:nth-child(even) .product-img { order: 2; }
.product-card:nth-child(even) .product-info { order: 1; }
.product-img img { width: 100%; height: 340px; object-fit: cover; }
.product-info { padding: 2rem; }
.product-info .card-badge { margin-bottom: 0.75rem; }
.product-info h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.product-info > p { margin-bottom: 1.25rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.size-dropdown {
  margin-bottom: 1.25rem;
}
.size-dropdown summary {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}
.size-dropdown summary::-webkit-details-marker { display: none; }
.size-dropdown summary::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.size-dropdown[open] summary::after { transform: rotate(-180deg); }
.size-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.size-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.feature-tag {
  font-size: 0.78rem;
  background: var(--gray-light);
  color: var(--dark);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-weight: 500;
}

@media (max-width: 700px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card:nth-child(even) .product-img { order: 0; }
  .product-card:nth-child(even) .product-info { order: 0; }
  .product-img img { height: 220px; }
  .product-info { padding: 1.25rem; }
}

/* =============================================
   ABOUT STRIP
   ============================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}
.stat {
  background: var(--white);
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.8rem; color: var(--gray-text); text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 500px) {
  .stats-strip { grid-template-columns: 1fr; }
}

/* =============================================
   CONTACT / INFO
   ============================================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.info-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1.5px solid var(--gray-light);
}
.info-block h3 { color: var(--primary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
.info-block p, .info-block a { color: var(--dark); font-size: 1rem; }
.info-block a:hover { color: var(--primary); }
.hours-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; }
.hours-row:last-child { border-bottom: none; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--gray-light); }
.map-wrap iframe { width: 100%; height: 320px; border: none; display: block; }

@media (max-width: 700px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* =============================================
   FINANCING
   ============================================= */
.financing-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  justify-items: center;
}
@media (max-width: 800px) {
  .financing-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .financing-steps { grid-template-columns: 1fr; }
}
.step {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-light);
  width: 100%;
}
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.875rem; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--primary);
  padding: 3.5rem 1.25rem;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.42); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--dark);
  color: var(--gray-mid);
  padding: 3rem 1.25rem 2rem;
  border-top: 4px solid var(--primary);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo-name { color: var(--white); font-size: 1rem; }
.footer-brand p { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.6; }
footer h4 { color: var(--white); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.75rem; }
footer a { font-size: 0.875rem; color: var(--gray-mid); display: block; margin-bottom: 0.4rem; transition: color var(--transition); }
footer a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.32);
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-bottom a {
  color: rgba(255,255,255,0.32);
  font-size: 0.78rem;
  display: inline;
  margin-bottom: 0;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--primary);
  padding: 3rem 1.25rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--gray-text);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* =============================================
   NAV CARDS (pre-footer strip)
   ============================================= */
.nav-cards-strip {
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
  padding: 2.5rem 1.25rem;
}
.nav-cards-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.nav-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(27,54,100,0.12);
  transform: translateX(3px);
}
.nav-card svg {
  width: 22px; height: 22px;
  fill: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.nav-card:hover svg { transform: translateX(3px); }
.nav-card-title { font-weight: 700; font-size: 1rem; }
.nav-card-sub { font-size: 0.82rem; color: var(--gray-text); margin-top: 0.2rem; }

@media (max-width: 700px) {
  .nav-cards-row { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITY
   ============================================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
