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

:root {
  --navy: #00004b;
  --navy-deep: #000036;
  --gold: #ffcc00;
  --head: #7d7d7d;      /* large headings (3:1 is enough for large text) */
  --label: #666666;     /* small gray text (4.5:1) */
  --soft: #fbfbfb;
  --footer: #f7f7f7;
  --line: #dcdcdc;
  --header: 4rem;
}

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

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

body {
  margin: 0;
  font-family: "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: inherit;
}

button {
  font: inherit;
}

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

.site-header :focus-visible,
.hero :focus-visible,
.not-found :focus-visible {
  outline-color: var(--gold);
}

@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;
}

.anchor {
  display: block;
  height: 0;
}

.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;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
  max-width: 80rem;
  margin: 0 auto;
  padding-right: 0.75rem;
}

@media (min-width: 64rem) {
  .header-inner {
    padding-right: 1.5rem;
  }
}

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

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

.header-nav,
.sister-button {
  display: none;
}

.header-nav a,
.mobile-menu a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.2s;
}

.header-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
  color: #a6a6a6;
}

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

.header-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sister-button {
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

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

.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;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.mobile-menu a {
  padding: 0.6rem 1rem;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #a6a6a6;
}

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

.mobile-menu .sister {
  font-weight: 700;
  color: #fff;
}

@media (min-width: 72rem) {
  .header-nav {
    display: block;
    flex: 1;
  }

  .sister-button {
    display: block;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

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

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

.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;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.slide-caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 14%;
  left: 0;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.slide-caption h1,
.slide-caption p {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.slide-caption .btn {
  display: inline-block;
  min-width: 14rem;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

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

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

.dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dot::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  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: 64rem) {
  .dots {
    right: 4rem;
  }
}

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

.section {
  padding: 5rem 1.25rem 3rem;
}

@media (min-width: 64rem) {
  .section {
    padding: 120px 20px 60px;
  }
}

.container {
  max-width: 65rem;
  margin: 0 auto;
}

.container.narrow {
  max-width: 48rem;
}

.eyebrow,
.section-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 38px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  color: var(--head);
}

.section-title {
  margin: 0;
  text-wrap: balance;
}

.btn {
  display: block;
  padding: 16px 24px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  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 .eyebrow {
  margin-top: 0;
}

.about-title {
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 1.2rem + 4.4vw, 4.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.15em;
}

.about-text {
  margin-top: 2.5rem;
  text-align: center;
}

.about-text p + p {
  margin-top: 1rem;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
  text-align: center;
}

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

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.feature p {
  margin-top: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--label);
}

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

.schedule {
  padding-bottom: 3rem;
}

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

.schedule .notes {
  margin-top: 2rem;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  color: #333;
}

.schedule .notes li:last-child {
  color: var(--navy);
}

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

.pricing {
  background: var(--soft);
  text-align: center;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  color: var(--navy);
}

.price-currency {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.price-amount {
  font-size: clamp(5rem, 14vw, 6.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 3px;
}

.price-tax {
  font-size: 1.125rem;
  font-weight: 500;
}

.steps-heading {
  margin-top: 3.5rem;
  font-size: 20px;
  font-weight: 500;
  text-align: left;
  color: var(--label);
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.step {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  background: #fff;
}

.step-num {
  display: flex;
  flex: 0 0 5.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  background: var(--navy);
  color: #fff;
}

.step-num span:first-child {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.step-num span:last-child {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 40rem) {
  .step-num {
    flex-basis: 7.5rem;
  }

  .step-num span:last-child {
    font-size: 4rem;
  }
}

.step-body {
  align-self: center;
  padding: 1rem 1.25rem 1rem 0;
}

.step-body h4 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

@media (min-width: 40rem) {
  .step-body h4 {
    font-size: 1.875rem;
  }
}

.step-body p {
  margin-top: 0.25rem;
}

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

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

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

@media (min-width: 48rem) {
  .store {
    grid-template-columns: 707fr 300fr;
    gap: 40px;
  }
}

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

.store-name {
  font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.375rem);
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  color: #000;
}

.store-address {
  margin-top: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-style: normal;
  line-height: 24px;
}

.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: 1rem;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.hours {
  font-size: 14px;
  line-height: 24px;
}

.store .btn {
  margin-top: 2rem;
  padding: 14px 24px;
  font-size: 16px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 3rem;
}

.faq-item {
  background: #f6f6f6;
}

.faq-item summary {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-num {
  display: flex;
  flex: 0 0 3.5rem;
  align-items: center;
  justify-content: center;
  background: #ececec;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

@media (min-width: 40rem) {
  .faq-num {
    flex-basis: 4rem;
  }
}

.faq-q {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

.faq-icon {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  color: #555;
  transition: transform 0.2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 1rem 1.25rem;
  border-top: 1px solid #fff;
  font-size: 14px;
  line-height: 24px;
}

.faq-a p + p {
  margin-top: 0.5rem;
}

@media (min-width: 40rem) {
  .faq-a {
    padding-left: calc(4rem + 1.25rem);
  }
}

/* ---------- Video ---------- */

.video {
  padding: 2rem 1.25rem 3rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .video {
    padding: 3rem 20px 4rem;
  }
}

.video-frame {
  position: relative;
  max-width: 65rem;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(0, 0, 75, 0.9);
  color: #fff;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

.video-play:hover .play-button {
  background: var(--navy);
}

.play-button svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-left: 0.25rem;
}

/* ---------- Gallery: full-bleed tiles ---------- */

.gallery {
  padding: 5rem 0 0;
  background: #fff;
}

@media (min-width: 64rem) {
  .gallery {
    padding-top: 120px;
  }
}

.gallery-head {
  padding: 0 1.25rem;
}

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

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

.gallery-grid li {
  overflow: hidden;
  aspect-ratio: 316 / 440;
}

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

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

.site-footer {
  background: var(--footer);
  color: #000;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

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

@media (min-width: 64rem) {
  .footer-grid {
    padding-right: 4rem;
    padding-left: 4rem;
  }
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.policy-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

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

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  text-transform: uppercase;
}

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

.footer-contact {
  display: grid;
  gap: 2rem;
}

.footer-text {
  margin-top: 0.25rem;
}

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

.newsletter-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0.5rem;
}

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

.newsletter-row button {
  padding: 12px 22px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-row button:hover {
  background: var(--navy-deep);
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 13px;
  line-height: 20px;
  color: #555;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--navy);
}

.footer-bottom-links .sister-link {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-underline-offset: 4px;
}

.footer-bottom-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 40rem) {
  .footer-bottom-inner {
    flex-direction: row;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .footer-bottom-inner {
    padding-right: 4rem;
    padding-left: 4rem;
  }
}

/* ---------- 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);
}
