/* ============================================
   BreezAway — Design Tokens
   ============================================ */
:root {
  --bg-warm:      #F6F2EA;
  --ink:          #1A1A1A;
  --muted:        #444444;
  --navy:         #1B2A41;
  --brown:        #5C4030;
  --accent:       #F04E23;
  --frame-black:  #101012;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --edge: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }

/* Visible to search engines and screen readers, not sighted users —
   used for the H1 that the logo image can't carry as text. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-warm);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   Patent bar — replaces the nav entirely
   ============================================ */
.patent-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 var(--edge);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--bg-warm);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

body {
  padding-top: 48px;
}

/* ============================================
   Hero — logo block, then full-bleed carousel
   ============================================ */
.hero {
  background: var(--bg-warm);
}

.hero__intro {
  padding: 56px var(--edge) 40px;
}

.hero__logo {
  width: min(360px, 60vw);
  height: auto;
}

.hero__carousel {
  position: relative;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  height: min(78vh, 820px);
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Composite street shot: zoom origin sits on the trailer itself,
   so the zoom-in reads as panning toward it, not just scaling in place. */
/* 1st photo (palm/skyline): base crop was cutting the trailer off,
   especially on narrow mobile crops — reframed to keep it fully in shot. */
/* 1st photo (palm/skyline): swapped once more — this version is both
   sharp AND has a compact subject span (57% of frame height), giving
   real margin at the widest desktop width, verified mathematically
   and confirmed on screen. No more head-cropping trade-off needed. */
.hero__slide--pos-1 {
  background-position: 40% 61%;
}

/* Composite street shot: replaced with a version the user pre-cropped
   for better centering (especially on narrow mobile crops), roughly
   16:9 already. Zoom origin sits left, on the trailer, for a pan-left
   feel as it zooms in. */
.hero__slide--pan-trailer {
  transform-origin: 30% 50%;
  background-position: 43% 48%;
}

/* Desk shot: base crop centred to keep the full trailer (including
   where it touches the floor) safely in frame with real margin, not
   a razor-thin one, verified against the widest realistic desktop
   container as well as mobile. Animation runs in reverse (zoom OUT):
   opens low and close on the trailer/floor, then eases up and right
   to this wider view as it settles, revealing more of the person. */
.hero__slide--pos-4 {
  background-position: 15% 56%;
}

/* 5th photo (firewood/rain, weatherproofing detail): zooms in while
   panning right, toward the trailer and away from the woodpile. */
.hero__slide--pos-5 {
  background-position: 68% 46%;
}

.hero__video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: none; /* the clip's own motion carries it; no extra drift needed */
}

/* Zoom is now driven in JS (main.js) so the zoom-out can start from
   wherever the zoom-in actually was, rather than snapping. */

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
}

@media (max-width: 640px) {
  .hero__carousel { height: 58vh; }
}

/* ============================================
   Versatility line
   ============================================ */
.versatility {
  padding: 64px var(--edge);
  text-align: left;
}

.versatility p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================
   Lifestyle cards
   ============================================ */
.lifestyle {
  padding: 24px var(--edge) 72px;
}

.lifestyle__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: default;
}

.card__image {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.card__image.is-active {
  opacity: 1;
  z-index: 1;
}

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

.card__title {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.card--pending .card__image--pending {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,0.04),
    rgba(0,0,0,0.04) 10px,
    rgba(0,0,0,0.07) 10px,
    rgba(0,0,0,0.07) 20px
  );
}

.card--pending .card__title {
  color: var(--muted);
  text-shadow: none;
}

.lifestyle__disclaimer {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

/* ============================================
   Pending-content placeholders
   ============================================ */
.section-pending {
  margin: 0;
  padding: 48px var(--edge);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,0.03),
    rgba(0,0,0,0.03) 10px,
    rgba(0,0,0,0.05) 10px,
    rgba(0,0,0,0.05) 20px
  );
  border-radius: 4px;
}

.real-problem,
.four-ways {
  padding: 0 var(--edge) 48px;
}

.real-problem__heading {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--ink);
}

.real-problem__body {
  max-width: 640px;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.real-problem__body:last-child {
  margin-bottom: 0;
}

.four-ways__heading {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--ink);
}

.four-ways__intro {
  margin: 0 0 32px;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.four-ways__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 40px;
}

.four-ways__label {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 500;
  color: var(--accent);
}

.four-ways__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 72px var(--edge);
  max-width: 720px;
}

.faq__heading {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--ink);
}

.faq__item {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 18px 0;
}

.faq__item:last-of-type {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq__question {
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.how-it-works {
  padding: 0 var(--edge) 64px;
}

.how-it-works__player {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.how-it-works__player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.how-it-works__player .section-pending {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 72px var(--edge);
  text-align: center;
  background: var(--navy);
}

.cta__heading {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: #fff;
}

.cta__form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.cta__input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 3px;
  border: none;
  font-family: var(--font);
  font-size: 15px;
}

.cta__button {
  padding: 14px 28px;
  border-radius: 3px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta__button:hover {
  opacity: 0.88;
}

.cta__privacy {
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   Our Story
   ============================================ */
.our-story {
  padding: 72px var(--edge);
  max-width: 720px;
}

.our-story__heading {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--ink);
}

.our-story__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px var(--edge);
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  height: 28px;
  width: auto;
}

.footer__copyright {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
