/* Shared styles for the inner pages (mattresses, adjustable bases, delivery).
   Colors and fonts match the homepage. */
:root {
  --bg-page: #F0F0EE;
  --bg-white: #FFFFFF;
  --brand-red: #D92427;
  --brand-red-hover: #A91C1E;
  --brand-red-tint: #FBEDED;
  --ink: #1C1A19;
  --ink-secondary: #5C5955;
  --ink-muted: #918E89;
  --line: #E7E4E0;
  --line-strong: #D3CFC9;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-page); color: var(--ink);
  font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; letter-spacing: -0.01em; text-transform: uppercase; }
h4 { margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,249,247,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header .wrap { max-width: 1100px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; text-decoration: none; color: var(--ink); }
.brand-mark { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  font-size: 13.5px; font-weight: 700; padding: 12px 20px; border-radius: 999px;
  border: none; background: var(--brand-red); color: #fff; white-space: nowrap; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.02em; transition: background 0.15s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-cta:hover { background: var(--brand-red-hover); }
.nav-cta.call { background: var(--ink); }
.nav-cta.call:hover { background: #000; }
.nav-cta svg { width: 15px; height: 15px; flex-shrink: 0; }
.nav-cta .call-number-text { display: none; }
@media (hover: hover) and (pointer: fine) { .nav-cta .call-number-text { display: inline; margin-left: 2px; } }

/* ---------- Page links (same menu as the homepage) ---------- */
.site-nav { border-top: 1px solid var(--line); }
.site-nav .wrap { max-width: 1100px; display: flex; justify-content: flex-start; gap: 6px; padding: 8px 24px; overflow-x: auto; scrollbar-width: none; }
.site-nav .wrap::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 13px; font-weight: 600; color: var(--ink-secondary); text-decoration: none;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-white); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--brand-red-tint); color: var(--brand-red-hover); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 12.5px; color: var(--ink-muted); padding-top: 22px; }
.crumbs a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 26px 0 36px; text-align: center; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--brand-red);
  text-transform: uppercase; display: block; margin-bottom: 14px; font-weight: 500;
}
.page-hero h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.05; }
.page-hero h1 .accent { color: var(--brand-red); }
.page-hero p.sub { margin: 18px auto 0; max-width: 520px; font-size: 17px; color: var(--ink-secondary); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn-primary {
  display: inline-block; background: var(--brand-red); color: #fff; border: none; font-weight: 700; font-size: 15px;
  padding: 16px 30px; border-radius: 999px; text-decoration: none; text-align: center;
  text-transform: uppercase; letter-spacing: 0.02em; font-family: var(--font-display);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { background: var(--brand-red-hover); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block; background: var(--bg-white); color: var(--ink); border: 1.5px solid var(--line-strong);
  font-weight: 700; font-size: 15px; padding: 14.5px 28px; border-radius: 999px; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.02em; font-family: var(--font-display);
}
.btn-secondary:hover { border-color: var(--ink-muted); }

/* ---------- Sections ---------- */
section { padding: 36px 0; scroll-margin-top: 130px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(22px, 5.5vw, 28px); }
.section-head h2 .accent { color: var(--brand-red); }
.section-head p { color: var(--ink-secondary); font-size: 15px; margin-top: 10px; }

.card {
  background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: 0 1px 2px rgba(28,26,25,0.04);
}
.card + .card { margin-top: 14px; }
.card h3 { font-size: 19px; text-transform: none; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-secondary); }
.card p + p { margin-top: 10px; }
.card .tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-red-hover); background: var(--brand-red-tint); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px;
}
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-secondary); font-size: 15px; }
.card li + li { margin-top: 4px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-grid .card + .card { margin-top: 0; }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.photo-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-white); box-shadow: 0 1px 2px rgba(28,26,25,0.04); }
.photo-card img { width: 100%; display: block; }
.photo-card .caption { padding: 14px 18px; font-size: 13.5px; color: var(--ink-secondary); }

.prose p { font-size: 16px; color: var(--ink-secondary); }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--brand-red); font-weight: 600; }

.town-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.town-list li {
  list-style: none; background: var(--bg-white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; font-weight: 600;
}
ul.town-list { padding: 0; margin: 0; }

/* ---------- FAQ (native details/summary, works without JavaScript) ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 4px; font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\25BE'; color: var(--ink-muted); transition: transform 0.2s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 4px 18px; font-size: 14.5px; color: var(--ink-secondary); }
.faq details p a { color: var(--brand-red); font-weight: 600; }

/* ---------- Closing call to action ---------- */
.cta-card {
  background: var(--brand-red-tint); border: 1px solid #F2C6C7; border-radius: var(--radius-lg);
  padding: 34px 28px; text-align: center;
}
.cta-card h2 { font-size: clamp(22px, 5vw, 28px); margin-bottom: 12px; }
.cta-card p { font-size: 15px; color: var(--ink-secondary); max-width: 480px; margin: 0 auto 22px; }
.cta-card .eyebrow { color: var(--brand-red-hover); margin-bottom: 10px; }

.owners-strip { display: flex; align-items: center; gap: 18px; margin-top: 22px; text-align: left; }
.owners-strip img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--brand-red-tint); }
.owners-strip p { font-size: 14.5px; color: var(--ink-secondary); }
.owners-strip strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; text-align: center; margin-top: 24px; }
footer p { font-size: 13px; color: var(--ink-muted); }
footer p + p { margin-top: 6px; }
footer .footer-logo { width: 40px; height: 40px; border-radius: 9px; display: block; margin: 0 auto 12px; }
footer a { color: var(--ink-secondary); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 14px; font-size: 13.5px; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  header .wrap { padding: 12px 16px; }
  .site-nav .wrap { padding: 8px 16px; }
  .wrap { padding: 0 16px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand span { display: none; }
  .nav-cta { padding: 10px 14px; font-size: 12px; }
  .card { padding: 22px 18px; }
  .cta-card { padding: 28px 20px; }
  .owners-strip { flex-direction: column; text-align: center; }
}

/* Phones: keep the header on one line */
@media (max-width: 480px) { .nav-cta .call-number-text { display: none !important; } }
.photo-card img.tall { max-height: 620px; object-fit: cover; object-position: center top; }
.feature-grid .photo-card { align-self: start; }
