/* ============================================================
   ui-layout.css
   CheapRedLightBed.com — Layout Structure
   Modern B2B SaaS · All pages
   ============================================================ */

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Two common grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* Sidebar layout (content + aside) */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-16);
  align-items: start;
}

/* ============================================================
   NAVIGATION — Sticky Header
   ============================================================ */

/*
  Structure:
  <header class="site-header" id="site-header">
    <div class="container nav-inner">
      <a class="nav-logo">...</a>
      <nav class="nav-links">
        <a class="nav-link">Home</a>
        <a class="nav-link">Products</a>
        <a class="nav-link">Services</a>
        <a class="nav-link">Blog</a>
      </nav>
      <a class="btn btn--primary btn--sm">Contact Us</a>
      <button class="nav-hamburger" id="nav-toggle">...</button>
    </div>
    <div class="nav-mobile-drawer" id="mobile-menu">...</div>
  </header>
*/

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: var(--space-8);
}

/* Logo mark — square badge */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark::after {
  content: '';
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 3px;
}
.nav-logo-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--color-accent); }

/* Desktop nav links — centered */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}
.nav-link {
  padding: 0.45em 0.875em;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-body);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link:hover {
  color: var(--color-ink);
  background: var(--color-bg-soft);
}
.nav-link--active {
  color: var(--color-ink);
  font-weight: var(--weight-semibold);
}
/* Small dot indicator for active page */
.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* CTA in header */
.nav-cta { margin-left: var(--space-4); flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-left: auto;
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--color-bg-soft); }
.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--color-ink);
  border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--container-pad) var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.nav-mobile-drawer.is-open { max-height: 500px; }
.nav-mobile-drawer .nav-link {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}
.nav-mobile-drawer .btn {
  margin-top: var(--space-4);
  width: 100%; justify-content: center;
}

#main-content { padding-top: 68px; }

/* ============================================================
   FOOTER
   ============================================================ */

/*
  <footer class="site-footer">
    <div class="footer-cta-strip">...</div>
    <div class="footer-body">
      <div class="container footer-grid">
        <div class="footer-brand">logo + tagline + email</div>
        <div class="footer-col">Products</div>
        <div class="footer-col">Company</div>
        <div class="footer-col">Support</div>
      </div>
    </div>
    <div class="footer-base">
      <div class="container footer-base-inner">copyright · legal</div>
    </div>
  </footer>
*/

.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-16);
}

/* CTA strip */
.footer-cta-strip {
  background: var(--color-ink);
  padding: var(--space-10) 0;
}
.footer-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.footer-cta-headline {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #ffffff;
  letter-spacing: -0.02em;
}
.footer-cta-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-1);
}

/* Footer body grid */
.footer-body { padding: var(--space-16) 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}
.footer-brand-tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin: var(--space-4) 0;
  max-width: 36ch;
}
.footer-brand-email a {
  font-size: var(--text-sm);
  color: var(--color-body);
  transition: color var(--transition);
}
.footer-brand-email a:hover { color: var(--color-accent); }

.footer-col-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-ink); }

/* Footer base bar */
.footer-base {
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.footer-base-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copy, .footer-legal {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ============================================================
   PAGE HERO — Dark background, white text
   Used on homepage. Other pages use .page-banner (light).
   ============================================================ */

/*
  <section class="page-hero page-hero--dark">
    <div class="container page-hero-inner">
      <div class="page-hero-content">
        <span class="section-label">eyebrow text</span>
        <h1 class="page-hero-headline">Headline</h1>
        <p class="page-hero-sub">Subheadline</p>
        <div class="page-hero-actions">
          <a class="btn btn--primary btn--lg btn--arrow">Get a Quote</a>
          <a class="btn btn--hero-ghost btn--lg">View Products</a>
        </div>
      </div>
      <div class="page-hero-visual">
        <img src="placeholder.jpg" alt="product">
      </div>
    </div>
    <div class="page-hero-stats">...</div>
  </section>
*/

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  padding: var(--space-24) 0 var(--space-20);
}
/* Subtle dot-grid texture */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* Accent glow bottom-left */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(225,29,72,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-hi);
  margin-bottom: var(--space-5);
}
.page-hero-eyebrow::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.page-hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: var(--weight-extrabold);
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-5);
}
.page-hero-headline em {
  font-style: normal;
  color: var(--color-accent-hi);
}
.page-hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  line-height: var(--leading-loose);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.page-hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
/* Ghost button on dark background */
.btn--hero-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn--hero-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

/* Product image on right */
.page-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
.page-hero-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats bar below hero */
.page-hero-stats-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  display: flex;
  gap: var(--space-12);
}
.page-hero-stats-bar .stat-number { color: #ffffff; }
.page-hero-stats-bar .stat-label  { color: rgba(255,255,255,0.5); }

/* ── Page Banner (light) — for inner pages ────────────────── */
.page-banner {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-12);
}
.page-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.page-banner h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}
.page-banner-sub {
  font-size: var(--text-base);
  color: var(--color-body);
  max-width: 52ch;
  line-height: var(--leading-relaxed);
}

/* ============================================================
   HOMEPAGE — Section layouts
   ============================================================ */

/* ── Trust bar (logos or stats below hero) ────────────────── */
.trust-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  background: var(--color-bg);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.trust-item-icon {
  width: 36px; height: 36px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item-icon svg {
  width: 18px; height: 18px;
  stroke: var(--color-accent);
  fill: none; stroke-width: 1.75;
}
.trust-item-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}
.trust-item-sub {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* ── Product highlights grid ──────────────────────────────── */
.products-section {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* ── Benefits / Why Us ────────────────────────────────────── */
.benefits-section {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-24) 0;
}
.benefits-intro {
  max-width: 600px;
  margin-bottom: var(--space-14);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.benefit-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 2px solid var(--color-border);
  transition: border-color var(--transition);
}
.benefit-item:hover { border-top-color: var(--color-accent); }

/* ── How it works / Process ───────────────────────────────── */
.process-section {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 0;
  margin-top: var(--space-12);
}
/* Connector line between steps */
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--color-accent), var(--color-border));
}
.process-step-item {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.process-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.process-step-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.process-step-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* ── Blog preview ─────────────────────────────────────────── */
.blog-preview-section {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: var(--space-24) 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

/* ── Final CTA ────────────────────────────────────────────── */
.cta-section {
  background: var(--color-ink);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(225,29,72,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta-headline {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}
.cta-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}
.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: var(--space-5);
  letter-spacing: 0.04em;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */

/* Filter bar — sticky below header */
.filter-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
  position: sticky;
  top: 68px;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: var(--space-1);
  background: var(--color-bg-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
}
.filter-tab {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 0.4em 0.9em;
  border-radius: 6px;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.filter-tab:hover { color: var(--color-ink); }
.filter-tab.is-active {
  background: var(--color-bg);
  color: var(--color-ink);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-sm);
}

/* Products listing — 2 col horizontal cards */
.products-page { padding: var(--space-12) 0 var(--space-24); }
.products-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Horizontal product card */
.product-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-slow), border-color var(--transition), transform var(--transition-slow);
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.product-card-img {
  background: var(--color-bg-muted);
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.product-card-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.product-card-name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
}
.product-card-desc {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-relaxed);
  flex: 1;
}
.product-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.product-spec-cell {
  background: var(--color-bg-soft);
  padding: var(--space-3) var(--space-4);
}
.product-spec-label {
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.product-spec-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.product-card-price-from {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card-price-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.product-card-actions { display: flex; gap: var(--space-3); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail-page { padding: var(--space-12) 0 var(--space-24); }
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-14);
  align-items: start;
}

/* Gallery / Carousel */
.product-gallery {
  position: sticky;
  top: calc(68px + var(--space-6));
}
.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--color-bg-muted);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.gallery-nav-btn:hover { background: #fff; box-shadow: var(--shadow-md); }
.gallery-nav-btn--prev { left: var(--space-3); }
.gallery-nav-btn--next { right: var(--space-3); }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.gallery-dot {
  width: 24px; height: 3px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: background var(--transition), width var(--transition);
}
.gallery-dot.is-active { background: var(--color-accent); width: 40px; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--color-bg-muted);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--color-accent); }

/* Product info panel */
.product-info { display: flex; flex-direction: column; gap: var(--space-7); }
.product-info-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.product-model-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.cert-pill {
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.cert-pill--accent {
  color: var(--color-accent-deep);
  border-color: rgba(225,29,72,0.3);
  background: var(--color-accent-dim);
}
.product-info-title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  color: var(--color-ink);
  letter-spacing: -0.025em;
  line-height: var(--leading-snug);
}
.product-info-tagline {
  font-size: var(--text-base);
  color: var(--color-body);
  line-height: var(--leading-relaxed);
}

/* Price block */
.product-price-block {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.product-price-amount {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.product-price-meta { padding-bottom: 4px; }
.product-price-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.product-price-note {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 2px;
}

/* Key specs strip */
.product-key-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Inquiry CTA */
.product-inquiry-cta {
  background: var(--color-ink);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.product-inquiry-cta-heading {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #ffffff;
}
.product-inquiry-cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.product-inquiry-cta-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* Tabs (Specs / FAQ) */
.product-tabs { margin-top: var(--space-16); }
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  gap: 0;
  margin-bottom: var(--space-8);
}
.tab-btn {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  padding: var(--space-3) var(--space-6);
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn:hover   { color: var(--color-ink); }
.tab-btn.is-active {
  color: var(--color-ink);
  font-weight: var(--weight-semibold);
  border-bottom-color: var(--color-accent);
}

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.specs-table tr { border-bottom: 1px solid var(--color-border); transition: background var(--transition); }
.specs-table tr:hover { background: var(--color-bg-soft); }
.specs-table td { padding: var(--space-4) var(--space-4); vertical-align: top; }
.specs-table td:first-child {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  width: 35%;
}
.specs-table td:last-child { color: var(--color-ink); font-weight: var(--weight-medium); }
.spec-group-row td {
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-page { padding: var(--space-16) 0 var(--space-24); }

.service-section {
  padding: var(--space-20) 0;
  border-bottom: 1px solid var(--color-border);
}
.service-section:last-of-type { border-bottom: none; }
.service-section-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: start;
}
.service-section-intro { position: sticky; top: calc(68px + var(--space-8)); }
.service-section-num {
  font-size: 5rem;
  font-weight: var(--weight-extrabold);
  color: rgba(15,23,42,0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), border-color var(--transition), transform var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover {
  border-color: var(--color-border-hi);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 40px; height: 40px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-card-icon svg { width: 18px; height: 18px; stroke: var(--color-accent); fill: none; stroke-width: 1.75; }
.service-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.service-card-desc {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-relaxed);
  flex: 1;
}
.service-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.service-card-features li {
  font-size: var(--text-xs);
  color: var(--color-body);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-4);
  position: relative;
}
.service-card-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-page { padding: var(--space-12) 0 var(--space-24); }

/* Blog card grid — 3 columns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Blog card */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow var(--transition-slow), border-color var(--transition), transform var(--transition-slow);
}
.blog-card:hover {
  border-color: var(--color-border-hi);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--color-bg-muted);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.blog-card-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.blog-card-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.blog-card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  letter-spacing: -0.015em;
  line-height: var(--leading-snug);
  transition: color var(--transition);
}
.blog-card:hover .blog-card-title { color: var(--color-accent); }
.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-body);
  line-height: var(--leading-relaxed);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-readmore {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  transition: gap var(--transition);
}
.blog-card:hover .blog-card-readmore { gap: var(--space-2); }
.blog-card-readmore::after { content: '→'; }

/* Blog sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-14);
  align-items: start;
}
.blog-sidebar {
  position: sticky;
  top: calc(68px + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}
.sidebar-widget-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.sidebar-widget-body { padding: var(--space-5); }

/* ============================================================
   CONTACT PAGE
   Email only — no phone numbers
   ============================================================ */

.contact-page { padding: var(--space-16) 0 var(--space-24); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-14);
  align-items: start;
}

/* Form panel */
.contact-form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-form-panel-header {
  padding: var(--space-5) var(--space-7);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact-form-panel-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}
.contact-form-panel-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: var(--weight-medium);
}
.contact-form-panel-status::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--color-success);
  border-radius: 50%;
}
.contact-form-panel-body { padding: var(--space-8) var(--space-7); }

/* Contact info sidebar */
.contact-sidebar {
  position: sticky;
  top: calc(68px + var(--space-6));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-info-card-header {
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}
.contact-info-card-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-info-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.contact-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-info-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.contact-info-value a {
  color: var(--color-accent);
  transition: color var(--transition);
}
.contact-info-value a:hover { color: var(--color-accent-deep); }

/* Contact email channels */
/*
  Sales: sales@cheapredlightbed.com
  Service: info@cheapredlightbed.com
  NO phone numbers anywhere on contact page
*/
.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-channel:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}
.contact-channel-icon {
  width: 40px; height: 40px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-channel-icon svg { width: 18px; height: 18px; stroke: var(--color-accent); fill: none; stroke-width: 1.75; }
.contact-channel-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-channel-email {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.breadcrumb-list li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb-list li + li::before {
  content: '/';
  color: var(--color-muted);
  font-size: var(--text-xs);
}
.breadcrumb-list a, .breadcrumb-list span {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-muted);
  transition: color var(--transition);
  text-transform: none;
}
.breadcrumb-list a:hover { color: var(--color-ink); }
.breadcrumb-list li:last-child span { color: var(--color-accent); font-weight: var(--weight-semibold); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.pagination-info { font-size: var(--text-xs); color: var(--color-muted); }
.pagination-links { display: flex; gap: var(--space-1); }
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-body);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  box-shadow: var(--shadow-xs);
}
.page-link:hover   { color: var(--color-ink); border-color: var(--color-border-hi); }
.page-link.is-active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}
.page-link.is-disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid    { grid-template-columns: repeat(2, 1fr); }
  .process-steps    { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery  { position: static; }
  .service-section-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .service-section-intro { position: static; }
  .blog-layout      { grid-template-columns: 1fr; }
  .blog-sidebar     { position: static; }
  .contact-layout   { grid-template-columns: 1fr; }
  .contact-sidebar  { position: static; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .footer-brand     { grid-column: 1 / -1; }
  .layout-sidebar   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger        { display: flex; }
  .nav-mobile-drawer    { display: flex; }
  .page-hero-inner      { grid-template-columns: 1fr; }
  .page-hero-visual     { display: none; }
  .products-grid        { grid-template-columns: 1fr; }
  .blog-grid            { grid-template-columns: 1fr 1fr; }
  .product-card         { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
  .service-cards-grid   { grid-template-columns: 1fr; }
  .footer-cta-strip-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .benefits-grid  { grid-template-columns: 1fr; }
  .process-steps  { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
}
