/* ============================================================
   Little Wood Home — case study
   Loaded after styles.css. Same paper components as Relif and DreamCatcher,
   re-coloured from the project's own slides: moss green, sage, bark paper and
   the warm yellow light of the finished room. Adds the pieces this project
   needs: photo-led method cards, the photo grid inside the tabs, the floor
   plan, and the polaroid photos.
   ============================================================ */

.theme-lwh {
  --hero-bg:     #34462f;   /* the slides' deep moss */
  --card-blue:   #e6ecdb;   /* pale moss paper */
  --tab-blue:    #5b7650;   /* moss: tape, tag eyelet, rules, marks */
  --mock-blue:   #aebd9b;   /* sage: mockup + active tab */
  --mock-blue-2: #d8e0cb;   /* inactive tab */
  --tab-hover:   #c4d0b3;
  --flow-bg:     #f1e8d6;   /* bark / kraft paper for the sticky notes */
  --tag-pink:    #ece0c4;
  --highlight:   #f4dc8c;   /* the room's warm yellow light */
  /* the index is the one brown in the palette — bark against the moss, so the
     page is not green all the way down. The bars carry it at 50%, the current
     one at full. */
  --index-pink:  #c9b18d;
}

/* ---- hero -------------------------------------------------------------- */
.theme-lwh .hero__title   { color: #f3ecd8; }
.theme-lwh .hero__tagline { color: #fff; }
.theme-lwh .hero__card    { background: #f1e8d6; }
.theme-lwh .hero::before,
.theme-lwh .hero::after   { box-shadow: inset 2px 0 3px rgba(0, 0, 0, .5); }

/* the photo takes the laptop's place, a little smaller so a 3:2 frame fits */
.theme-lwh .hero__photo {
  left: 4.5%;
  top: 30%;
  width: 60%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 8px solid #f7f2e4;      /* a print, pinned to the moss */
  box-shadow: 4px 8px 16px rgba(0, 0, 0, .35);
  transform: rotate(-1.2deg);
}
@media (max-width: 1199px) {
  .theme-lwh .hero__photo { width: 100%; transform: none; }
}

/* ---- design brief beside the problem statement ------------------------ */
.brief { margin: 0; justify-self: center; max-width: 360px; }
.brief img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--paper-shadow);
  transform: rotate(1.5deg);
}
.brief figcaption {
  margin-top: 16px;
  font-size: var(--small);
  color: var(--ink-soft);
  text-align: center;
}
/* Aim is a peer of Problem statement, not a step below it: the same H2, with
   the rhythm's 64 between the two blocks */
.split__text > .h2:not(:first-child) { margin-top: clamp(40px, 4.44vw, 64px); }

/* ---- method / sketch cards: a photo on paper with its caption ---------- */
.methods,
.pair {
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}
.methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pair    { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 899px) { .methods { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .pair    { grid-template-columns: minmax(0, 1fr); } }

.method {
  margin: 0;
  padding: 12px 12px 20px;
  background: #fffdf7;
  box-shadow: var(--paper-shadow);
}
.method img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}
.pair .method img { aspect-ratio: 4 / 3; object-fit: contain; }
.method figcaption {
  padding: 16px 8px 0;
  font-size: var(--small);
  line-height: 1.6;
}
.method figcaption b {
  display: block;
  margin-bottom: 6px;
  font-family: Urbanist, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

/* ---- photos inside the making tabs ------------------------------------- */
.theme-lwh .panel { min-width: 0; }
.theme-lwh .mockup__body { padding: clamp(20px, 3.5cqw, 40px); }
.photos {
  display: flex;
  gap: clamp(12px, 2cqw, 20px);
  align-items: stretch;
  height: clamp(260px, 46cqw, 520px);
}
.photos img {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
@media (max-width: 767px) {
  .photos { flex-direction: column; height: auto; }
  .photos img { height: auto; aspect-ratio: 4 / 3; }
}

/* ---- floor plan + immersive experience --------------------------------- */
/* a sheet of paper punched down its left edge, like the Relif site map.
   --holes sets how many: the strip is divided into that many equal slots with
   one hole centred in each, so none is ever cut off at the bottom. */
.tour {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 48px) clamp(64px, 7vw, 88px);
  background: var(--hero-bg);
  color: #fff;
  box-shadow: var(--paper-shadow);
}

.tour::before {
  content: "";
  position: absolute;
  left: clamp(18px, 2vw, 26px);
  top: 28px;
  bottom: 28px;
  width: 22px;
  background-image:
    radial-gradient(circle 11px at 11px 50%, var(--paper) 96%, transparent),
    radial-gradient(circle 11px at 12px 50%, rgba(0, 0, 0, .16) 96%, transparent);
  background-size: 22px calc(100% / var(--holes, 6));
  background-repeat: repeat-y;
}

@media (max-width: 767px) { .tour { grid-template-columns: minmax(0, 1fr); } }

.floorplan { margin: 0; }
.floorplan img { display: block; width: 100%; height: auto; }
.floorplan figcaption { margin-top: 8px; text-align: center; font-size: var(--small); color: rgba(255, 255, 255, .8); }

.senses .h3 { margin: 0 0 16px; color: #fff; }
.senses ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.senses li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  font-size: var(--body);
  line-height: 1.6;
}
.senses__icon { font-size: 22px; line-height: 1.4; }

/* the line the three pictures add up to — a caption, not a heading: the page's
   caption size and colour, 16 under the photos, with the quote below it still
   opening at the usual 64 of a new subsection */
.views__title {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  margin-top: calc(16px - clamp(24px, 2.78vw, 40px));
  text-align: center;
  font-size: var(--small);
  line-height: 1.6;
  color: var(--ink-soft);
}
.views__title + .prose { margin-top: clamp(16px, 1.67vw, 24px); }

.quote {
  margin: 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--tab-blue);
}
.quote p {
  margin: 0;
  font-family: Urbanist, sans-serif;
  font-weight: 600;
  font-size: var(--h4);
  line-height: 1.35;
}
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: var(--small); color: var(--ink-soft); }

.footer a { color: inherit; }
