/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   PAGE LAYOUT (GRID)
========================= */
body {
  font-family: "SF Pro Text", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #101010;

  padding: 2rem 3rem;
  margin-inline: auto;
  max-inline-size: 1500px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  /* header | content | footer */
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "header  header  header  header"
    "box-0   box-0   box-0   box-0"
    "footer  footer  footer  footer";

  gap: 1rem;
  min-height: 100vh;
}

/* =========================
   GRID AREAS
========================= */
.page-spec-title { grid-area: header; }
.main-content-box-0 { grid-area: box-0; }
.footer { grid-area: footer; }

/* =========================
   SHARED PANEL STYLES
========================= */
.page-spec-title,
.footer {
  border: 1px solid var(--clr--blue_lite);
  padding: 1rem 1.5rem;
}

/* =========================
   HEADER / NAV
========================= */
.page-spec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr--blue_dark);
}

.site-nav-toggle {
  font-size: 1.75rem;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-nav {
  display: none;
  justify-content: flex-end;
  gap: 1.25rem;
}

.site-nav.is-open { display: flex; }

.site-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr--blue_dark);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav-toggle:hover {
  color: var(--clr-gray70);
}

/* =========================
   MAIN: STACK VERTICALLY
   (Fix #1)
========================= */
.main-content-box-0 {
  display: flex;
  flex-direction: column;  /* 👈 house-2 will be BELOW house-1 */
  gap: 1.25rem;
  align-items: stretch;
}

/* =========================
   H1 CENTERED (Fix #3)
========================= */
.assembly-description {
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-block: 0.25rem 0.75rem;
}

/* =========================
   ROOMS
========================= */
.house-1_room-1,
.house-2_room-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  width: 100%;
}


/* =========================
   RESPONSIVE IMAGES (content1 + content2)
========================= */
.content1,
.content2 {
  display: block;
  height: auto;

  /* KEY FIX:
     - min: readable on mobile
     - fluid middle: scales with viewport
     - max: never oversized on desktop
  */
  width: clamp(280px, 55vw, 700px);
  max-width: 100%;

  margin-inline: auto;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}


/* =========================
   PDF VIEWER (Fix #2)
========================= */
.pdf-viewer {
  width: min(100%, 1100px);
  height: min(80vh, 900px);

  border: none;        /* remove frame */
  outline: none;       /* safety */
  box-shadow: none;    /* remove any shadow */
  background: transparent;
}


@media (width <= 480px) {
  .content1,
  .content2 {
    width: clamp(340px, 92vw, 420px);
  }
}


/* =========================
   FOOTER (Fix #4)
========================= */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 72px;
}

.footer h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr--blue_dark);
}

/* =========================
   RESPONSIVE (MEDIA)
========================= */
@media (width >= 650px) {
  .site-nav-toggle { display: none; }
  .site-nav { display: flex; }
}

