/* QB HOUSE USA — single-page site. Plain CSS, no build step.
   Sizes and colors follow the original WordPress site. */

:root {
  --navy: #00004b;
  --navy-deep: #000036;
  --ink: #181818;
  --page: #fcfcfc;
  --footer: #f9f9f9;
  --line: #dcdcdc;
  --sidebar: 250px;
  --topbar: 3.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 27px;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, ul, dl, dd, address {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.sidebar :focus-visible,
.topbar :focus-visible,
.hero :focus-visible,
.mobile-menu :focus-visible,
.pricing :focus-visible,
.gallery :focus-visible,
.not-found :focus-visible {
  outline-color: #ffcc00;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.block {
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--navy);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Navigation ---------- */

.nav-list a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  color: #a6a6a6;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: #fff;
}

.social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social a {
  display: block;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.social a:hover {
  opacity: 1;
}

.social svg {
  width: 1rem;
  height: 1rem;
}

/* Top bar: mobile and tablet */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar);
  padding-right: 0.75rem;
  background: var(--navy);
  color: #fff;
}

.topbar .brand {
  height: 100%;
  padding: 0.5rem 0;
}

.topbar .brand img {
  height: 100%;
  width: auto;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 0 1.5rem;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.mobile-menu .social {
  justify-content: center;
  margin-top: 1rem;
}

/* Sidebar: desktop only */
.sidebar {
  display: none;
}

@media (min-width: 64rem) {
  html {
    scroll-padding-top: 0;
  }

  .topbar {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--sidebar);
    background: var(--navy);
    color: #fff;
  }

  .sidebar .brand {
    display: block;
    width: 6rem;
    margin-top: 2.5rem;
  }

  .sidebar nav {
    display: flex;
    flex: 1;
    align-items: center;
    width: 100%;
  }

  .sidebar .nav-list {
    width: 100%;
  }

  .sidebar .social {
    margin-bottom: 2rem;
  }

  .page {
    margin-left: var(--sidebar);
  }
}

.sidebar .brand img {
  width: 100%;
}

/* ---------- Hero slider ---------- */

.hero {
  position: relative;
  height: min(80svh, 46rem);
  min-height: 30rem;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-tagline {
  position: absolute;
  z-index: 1;
  top: 2.5rem;
  left: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.hero-tagline span {
  display: block;
}

.slider-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
}

.slide > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 75, 0.55);
}

.slide-text {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 16%;
  left: 1.5rem;
  margin: 0;
  font-size: clamp(2.75rem, 10.5vw, 9.5rem);
  font-weight: 700;
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.75);
}

.slide-text span {
  display: block;
}

.slide-text span + span {
  padding-left: 1.4em;
}

.dots {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dot {
  position: relative;
  width: 2.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dot::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  margin-top: -1px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
}

.dot:hover::before,
.dot[aria-current="true"]::before {
  background: #fff;
}

.pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.85;
}

.pause:hover {
  opacity: 1;
}

.pause svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}

.pause .icon-play {
  display: none;
}

.pause[data-paused="true"] .icon-play {
  display: block;
}

.pause[data-paused="true"] .icon-pause {
  display: none;
}

@media (min-width: 40rem) {
  .hero-tagline {
    left: 2.5rem;
    font-size: 1.875rem;
  }

  .dots {
    left: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .hero-tagline {
    top: 4rem;
    left: 5%;
    font-size: 2.6rem;
    line-height: 1.1;
  }

  .dots {
    left: 5%;
  }

  .slide > img {
    left: auto;
    width: 50%;
  }

  .slide::after {
    display: none;
  }

  .slide-text {
    right: auto;
    left: 8%;
  }

  .slide-text span + span {
    padding-left: 1.9em;
  }
}

/* ---------- Shared section pieces ---------- */

.section,
.section-inner {
  padding: 4.5rem 2rem 3.5rem;
}

@media (min-width: 40rem) {
  .section,
  .section-inner {
    padding: 5rem 2.5rem 4rem;
  }
}

@media (min-width: 64rem) {
  .section,
  .section-inner {
    padding: 110px 50px 70px;
  }
}

.container,
.locations .section-inner > * {
  max-width: 71.25rem;
  margin-right: auto;
  margin-left: auto;
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink);
}

.section-title {
  max-width: 45.5rem;
  margin-top: 26px;
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

.btn {
  display: block;
  padding: 17px 24px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- About ---------- */

.about {
  padding-bottom: 0;
}

.about .container::after {
  content: "";
  display: block;
  margin-top: 70px;
  border-bottom: 1px solid var(--line);
}

.about-body {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 64rem) {
  .about-body {
    grid-template-columns: 49% 1fr;
    gap: 2rem;
    margin-top: 61px;
  }
}

.about-text p + p {
  margin-top: 14px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1rem;
  align-self: center;
  text-align: center;
}

.feature img {
  width: 6rem;
  height: 6rem;
  margin: 0 auto;
  object-fit: contain;
}

.feature p {
  margin-top: 0.75rem;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Schedule ---------- */

.schedule .btn {
  margin-top: 2.5rem;
}

@media (min-width: 64rem) {
  .schedule .btn {
    margin-top: 60px;
  }
}

.schedule .notes {
  margin-top: 28px;
  text-align: center;
}

/* ---------- Pricing ---------- */

.pricing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #181818;
  color: #fff;
}

@media (min-width: 64rem) {
  .pricing {
    padding-top: 140px;
    padding-bottom: 175px;
  }
}

.pricing-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Keep text readable over the photo */
.pricing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 20, 0.45);
}

.pricing .eyebrow,
.pricing .section-title {
  color: #fff;
}

.pricing .section-title {
  max-width: none;
}

.price-grid {
  display: grid;
  gap: 2.5rem 3rem;
  margin-top: 3.5rem;
}

@media (min-width: 48rem) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .price-grid {
    margin-top: 96px;
  }
}

.price-label {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  color: #fff;
}

.price-list {
  margin-top: 0.25rem;
}

.price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.price-row dt {
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
}

.price-row dt small {
  font-size: 16px;
  font-weight: 500;
}

.price-row dt .note {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.price-row dd {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}

.price-footnote {
  margin-top: 2.5rem;
  text-align: center;
  color: #fff;
}

/* ---------- Locations ---------- */

.locations {
  background: #fff;
}

.store-list {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 64rem) {
  .store-list {
    margin-top: 86px;
  }
}

.store {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .store {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .store.flip .store-photo {
    order: 2;
  }
}

.store-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.store-info {
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .store-info {
    padding: 0 24px 0 23px;
  }
}

.store-name {
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.25rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
}

.store-address {
  margin-top: 19px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

.store-address a {
  text-decoration-color: rgba(0, 0, 0, 0.35);
  text-underline-offset: 4px;
}

.store-address a:hover {
  text-decoration: underline;
}

.mini-title {
  margin-top: 19px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.hours {
  margin-top: 0;
}

.store-note {
  margin-top: 0;
}

.store .btn {
  margin-top: 36px;
}

.map {
  display: block;
  width: 100%;
  height: 28rem;
  border: 0;
}

@media (min-width: 64rem) {
  .map {
    height: 32rem;
  }
}

/* ---------- Policy ---------- */

.policy {
  display: grid;
}

@media (min-width: 64rem) {
  .policy {
    grid-template-columns: 1fr 1fr;
  }
}

.policy-body {
  padding: 4.5rem 2rem;
}

@media (min-width: 40rem) {
  .policy-body {
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .policy-body {
    padding: 100px 71px;
  }
}

.policy-list {
  margin-top: 2rem;
  padding-left: 30px;
  list-style: disc;
  color: #000;
}

.policy-list li + li {
  margin-top: 10px;
}

.policy-list li::marker {
  color: #000;
}

.policy-list a {
  font-weight: 700;
  color: var(--navy);
  text-underline-offset: 4px;
}

.policy-list .sub {
  padding-left: 0;
  list-style: none;
}

.policy-list .sub li + li {
  margin-top: 0;
}

.policy-photo-wrap {
  position: relative;
  min-height: 18rem;
}

.policy-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 40rem) {
  .policy-photo-wrap {
    min-height: 24rem;
  }
}

/* ---------- Gallery: navy mosaic, the heading is the first tile ---------- */

.gallery {
  background: var(--navy);
  color: #fff;
}

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

.gallery-grid li {
  overflow: hidden;
  aspect-ratio: 338 / 501;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid .gallery-head {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  padding: 4.5rem 2rem 3.5rem;
}

.gallery .eyebrow,
.gallery .section-title {
  color: #fff;
}

@media (min-width: 48rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid .gallery-head {
    grid-column: auto;
    aspect-ratio: 338 / 501;
    padding: 51px 40px 0 51px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer);
  color: #000;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 71.25rem;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 2.1fr 1fr 1fr;
    padding: 70px 50px 60px;
  }
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-text {
  margin-top: 14px;
}

.footer-text a {
  text-underline-offset: 4px;
}

.newsletter {
  position: relative;
  display: grid;
  gap: 12px;
  max-width: 25rem;
  margin-top: 14px;
}

.newsletter input[type="email"] {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #a8a8a8;
  background: #fff;
  color: #000;
  font: inherit;
}

.newsletter button {
  justify-self: start;
  padding: 10px 28px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.newsletter button:hover {
  background: var(--navy);
  color: #fff;
}

/* Mailchimp bot trap: visually removed, still in the DOM */
.honeypot {
  position: absolute;
  left: -5000px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-bottom .social {
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.25rem max(50px, calc((100% - 71.25rem) / 2 + 50px));
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.not-found .eyebrow,
.not-found .section-title {
  color: #fff;
}

.not-found .btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  border-color: #fff;
  background: none;
  color: #fff;
}

.not-found .btn:hover {
  background: #fff;
  color: var(--navy);
}
