﻿:root {
  --ink: #221c18;
  --muted: #776861;
  --paper: #fbf8f3;
  --soft: #f0e7dc;
  --sand: #dcc8b1;
  --cacao: #776861;
  --forest: #4f4540;
  --gold: #f6c000;
  --white: #fffdf9;
  --shadow: 0 24px 70px rgba(119, 104, 97, 0.18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(251, 248, 243, 0.88);
  border-bottom: 1px solid rgba(34, 28, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 55px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.3rem);
}

.site-nav a,
.site-footer a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active,
.site-nav a[aria-current="page"],
.site-footer a:hover,
.site-footer a:focus {
  color: var(--ink);
}

.site-nav a.is-active::after,
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.header-cta {
  justify-self: end;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(34, 28, 24, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 560px;
  height: calc(100svh - 82px);
  max-height: none;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: var(--forest);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(79, 69, 64, 0.84), rgba(79, 69, 64, 0.38) 42%, rgba(79, 69, 64, 0.14));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(680px, calc(100% - 2rem));
  margin: 0 0 clamp(5rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.03;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
}

h3 {
  line-height: 1.15;
  font-size: 1.25rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 610px;
  color: rgba(255, 253, 249, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.hero .button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid currentColor;
  color: inherit;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-facts {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(600px, calc(100% - 2rem));
  margin: 0;
  background: rgba(255, 253, 249, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-facts div {
  padding: 0.95rem 1.1rem;
  border-right: 1px solid rgba(34, 28, 24, 0.1);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
}

.hero-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-pad {
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}

.section-heading h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.section-heading.center {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-lead {
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.category-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  color: inherit;
  text-decoration: none;
}

.category-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 776px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 28, 24, 0) 42%, rgba(34, 28, 24, 0.72));
}

.category-card:hover img {
  transform: scale(1.035);
}

.category-card div {
  position: absolute;
  inset-inline: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  color: var(--white);
}

.category-card span {
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-card h3 {
  max-width: 14ch;
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 5vw, 5rem);
  background: var(--forest);
  color: var(--white);
}

.feature-copy {
  max-width: 580px;
}

.feature-copy p:not(.eyebrow) {
  color: rgba(255, 253, 249, 0.78);
}

.feature-band img {
  width: 100%;
  max-height: 580px;
  object-fit: cover;
  border-radius: var(--radius);
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: rgba(34, 28, 24, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-grid article {
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--white);
}

.service-grid span {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.service-grid p {
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.story-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  background: var(--forest);
  color: var(--white);
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 253, 249, 0.76);
  font-size: 1.1rem;
}

.mattress-hero {
  background:
    linear-gradient(90deg, rgba(79, 69, 64, 0.92), rgba(79, 69, 64, 0.68)),
    url("assets/images/bedroom-light.jpg") center / cover;
}

.mattress-intro,
.mattress-feature,
.mattress-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.mattress-steps {
  background: var(--white);
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(34, 28, 24, 0.1);
}

.step-grid article {
  padding: clamp(1.5rem, 3vw, 3rem);
  background: var(--white);
}

.step-grid span {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.step-grid p,
.mattress-feature p,
.mattress-cards p,
.mattress-cta p {
  color: var(--muted);
}

.mattress-feature {
  background: var(--soft);
}

.mattress-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mattress-cards {
  display: grid;
  gap: 1.2rem;
  background: var(--paper);
}

.mattress-cards article {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid rgba(34, 28, 24, 0.08);
  border-radius: var(--radius);
  background: var(--white);
}

.mattress-cards article:nth-child(even) img {
  order: 2;
}

.mattress-cards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.mattress-cards h2,
.mattress-cta h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.mattress-cta {
  background: var(--forest);
  color: var(--white);
}

.mattress-cta p {
  color: rgba(255, 253, 249, 0.76);
}

.mattress-cta .button-primary {
  background: var(--white);
  color: var(--ink);
}

.gallery {
  background: var(--white);
}

.gallery-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.gallery-top h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin: 0 0 2rem;
}

.gallery-filter {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(34, 28, 24, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gallery-filter.is-active,
.gallery-filter:hover,
.gallery-filter:focus {
  background: var(--ink);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--soft);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.035);
}

.gallery-item span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(79, 69, 64, 0.82);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-count {
  margin: 0;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.lightbox {
  width: min(1120px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #332c28;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(50, 43, 39, 0.84);
}

.lightbox figure {
  display: grid;
  place-items: center;
  min-height: min(760px, calc(100svh - 7rem));
  margin: 0;
  padding: 3.8rem 4rem 3rem;
}

.lightbox img {
  max-height: calc(100svh - 11rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox figcaption {
  margin-top: 1rem;
  color: rgba(255, 253, 249, 0.76);
  font-weight: 800;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 253, 249, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.1);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 800;
}

.lightbox-nav {
  top: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.contact {
  background: linear-gradient(180deg, var(--forest), #332c28);
  color: var(--white);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.12);
  border-radius: var(--radius);
}

.contact-card p,
.contact-details,
.contact-details a {
  color: rgba(255, 253, 249, 0.78);
}

.contact-card h2 {
  max-width: 10ch;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

address {
  font-style: normal;
}

.contact-details dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-details dt {
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0.2rem 0 0;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1rem;
  max-width: 1120px;
  margin: 2rem auto 0;
}

.hours,
.map-card {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
}

.hours::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  height: 3px;
  background: var(--accent);
}

.hours table {
  width: 100%;
  border-collapse: collapse;
}

.opening-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(34, 28, 24, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.opening-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
}

.opening-status.is-closed::before {
  background: rgba(34, 28, 24, 0.35);
}

.opening-status strong {
  color: var(--ink);
}

.hours th,
.hours td {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(34, 28, 24, 0.1);
  text-align: left;
}

.hours td {
  color: var(--muted);
  text-align: right;
}

.hours .highlight-row th,
.hours .highlight-row td {
  color: var(--ink);
  font-weight: 800;
}

.hours .highlight-row th {
  background: linear-gradient(90deg, var(--accent) 0 3px, transparent 3px);
}

.map-card {
  display: grid;
  gap: 1rem;
}

.map-card iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
}

.route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.route-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(34, 28, 24, 0.16);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.route-links a:first-child {
  background: var(--ink);
  color: var(--white);
}

.admin-page {
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 4rem);
  background: var(--paper);
}

.admin-panel {
  max-width: 1040px;
  margin: 0 auto 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(34, 28, 24, 0.08);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-panel h1,
.admin-panel h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.admin-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(34, 28, 24, 0.16);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.admin-message {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-message.is-error {
  color: #9b2c2c;
}

.admin-uploads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-upload-card {
  overflow: hidden;
  border: 1px solid rgba(34, 28, 24, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
}

.admin-upload-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-upload-card div {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
}

.admin-upload-card span {
  color: var(--muted);
}

.admin-upload-card button {
  justify-self: start;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(34, 28, 24, 0.16);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: #332c28;
  color: var(--white);
}

.site-footer p {
  max-width: 460px;
  margin: 0.7rem 0 0;
  color: rgba(255, 253, 249, 0.62);
}

.site-footer .footer-legal {
  max-width: 720px;
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.9rem;
}

.footer-brand,
.site-footer .brand {
  color: var(--white);
}

.footer-right {
  display: grid;
  justify-items: end;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 253, 249, 0.16);
  border-radius: 999px;
  color: rgba(255, 253, 249, 0.72);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus {
  background: rgba(255, 253, 249, 0.1);
  color: var(--white);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 0.75rem;
    padding-block: 0.65rem;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 32px;
    height: 46px;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(34, 28, 24, 0.16);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    justify-content: start;
    gap: 0;
    padding: 0.45rem;
    border: 1px solid rgba(34, 28, 24, 0.08);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 40px rgba(34, 28, 24, 0.08);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0.9rem;
    border-radius: 6px;
    color: var(--ink);
  }

  .site-nav a:hover,
  .site-nav a:focus,
  .site-nav a.is-active,
  .site-nav a[aria-current="page"] {
    background: var(--soft);
  }

  .site-nav a.is-active::after,
  .site-nav a[aria-current="page"]::after {
    display: none;
  }

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

  .intro,
  .feature-band,
  .story,
  .page-hero,
  .mattress-intro,
  .mattress-feature,
  .mattress-cta,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .step-grid,
  .visit-grid,
  .mattress-cards article {
    grid-template-columns: 1fr;
  }

  .mattress-cards article:nth-child(even) img {
    order: 0;
  }

  .gallery-top {
    display: grid;
    align-items: start;
  }

  .gallery-count {
    text-align: left;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card.large {
    min-height: 520px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: start;
  }

  .map-card iframe {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 0.85rem;
  }

  .hero {
    min-height: 620px;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5.5rem 1rem 1rem;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(79, 69, 64, 0.14), rgba(79, 69, 64, 0.9));
  }

  .hero-content {
    width: 100%;
    margin: 0;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
    max-width: 11ch;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .hero-content p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions,
  .route-links {
    width: 100%;
  }

  .hero-actions .button,
  .contact-actions .button,
  .route-links a {
    flex: 1 1 100%;
  }

  .hero-facts {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-facts div {
    padding: 0.9rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(34, 28, 24, 0.1);
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card.large {
    min-height: 300px;
    grid-column: auto;
    grid-row: auto;
  }

  .category-card h3 {
    font-size: 1.35rem;
  }

  .section-pad,
  .feature-band,
  .page-hero,
  .mattress-intro,
  .mattress-feature,
  .mattress-cta,
  .mattress-cards {
    padding: 3.25rem 1rem;
  }

  .page-hero h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .feature-band img,
  .story-image img,
  .mattress-feature img,
  .mattress-cards img {
    max-height: 360px;
  }

  .service-grid {
    display: grid;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -1rem;
    padding: 0 1rem 0.35rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .gallery-filter {
    flex: 0 0 auto;
  }

  .lightbox figure {
    min-height: min(620px, calc(100svh - 5rem));
    padding: 4rem 0.9rem 2.5rem;
  }

  .lightbox img {
    max-height: calc(100svh - 10rem);
  }

  .lightbox-nav {
    top: auto;
    bottom: 0.8rem;
    transform: none;
  }

  .hours th,
  .hours td {
    display: block;
    padding: 0.25rem 0;
    text-align: left;
  }

  .hours tr {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(34, 28, 24, 0.1);
  }

  .hours th,
  .hours td {
    border: 0;
  }

  .map-card iframe {
    min-height: 280px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-right {
    justify-items: start;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-content: start;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 150px;
  }

  .nav-toggle {
    padding-inline: 0.8rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    margin-bottom: 0;
  }

  .hero-facts dt {
    font-size: 1.1rem;
  }

  .hero-facts dd {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

