/* ==========================================================================
   JandJRoo — Homepage sections
   ========================================================================== */

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  background: var(--c-dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .1) 100%);
}

.hero__inner { position: relative; z-index: 2; padding-block: 70px; }
.hero__content { max-width: 620px; color: #fff; }
.hero__kicker {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--c-secondary);
}
.hero__title {
  color: #fff;
  font-size: var(--fs-4xl);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 18px;
}
.hero__text { font-size: var(--fs-md); color: rgba(255, 255, 255, .88); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 749px) {
  .hero { min-height: 440px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .75) 100%); }
}

/* --- Category tiles ------------------------------------------------------- */
.cat-tile {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
}

.cat-tile__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* No tinted ground: `contain` + padding left a grey frame around every
     photo. Cut-out product shots can reinstate it via --c-bg-specs. */
  background: transparent;
}
.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform .45s var(--ease);
}
.cat-tile:hover .cat-tile__media img { transform: scale(1.05); }

.cat-tile__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-body);
  line-height: var(--lh-snug);
  transition: color var(--dur) var(--ease);
}
.cat-tile:hover .cat-tile__name { color: var(--c-black); }

/* --- Split feature band --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 0;
}
.split--reverse .split__media { order: 2; }

.split__media { min-height: 420px; background: var(--c-bg-dim); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(24px, 5vw, 80px);
  background: var(--c-bg-alt);
}
.split__body--dark { background: var(--c-dark); }
.split__body--dark,
.split__body--dark h2,
.split__body--dark p { color: var(--c-on-dark); }
.split__body--dark .section-kicker { color: rgba(255, 255, 255, .65); }

.split__title { font-size: var(--fs-2xl); text-transform: uppercase; margin-bottom: 16px; }
.split__text { max-width: 520px; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { min-height: 280px; }
  .split__body { padding: 40px var(--page-pad); }
}

/* --- Stats strip ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--c-black);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-muted);
}
@media (max-width: 749px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 30px var(--gutter); } }

/* --- Testimonials --------------------------------------------------------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--c-border);
  height: 100%;
}
.testimonial__stars { display: flex; gap: 2px; color: var(--c-star); }
.testimonial__stars svg { width: 16px; height: 16px; }
.testimonial__quote { font-size: var(--fs-sm); line-height: 1.7; margin: 0; }
.testimonial__author {
  margin-top: auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-black);
}
.testimonial__source { font-size: var(--fs-xs); color: var(--c-muted); font-weight: var(--fw-normal); text-transform: none; letter-spacing: 0; }

/* --- Brand strip ---------------------------------------------------------- */
.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px 54px;
}
.brand-strip a {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-disabled);
  transition: color var(--dur) var(--ease);
}
.brand-strip a:hover { color: var(--c-black); }
.brand-strip img,
.brand-strip svg {
  max-height: 34px;
  width: auto;
  /* Muted by default so the row reads as one texture, not competing marks. */
  opacity: .45;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.brand-strip img { filter: grayscale(1); }
.brand-strip a { color: var(--c-black); }
.brand-strip a:hover img { filter: none; opacity: 1; }
.brand-strip a:hover svg { opacity: 1; color: var(--c-primary-text); }

/* --- Instagram / gallery strip -------------------------------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ig-grid a { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-bg-dim); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ig-grid a:hover img { transform: scale(1.07); }

@media (max-width: 1023px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* --- Case-study cards ---------------------------------------------- */
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  background: #fff;
  overflow: hidden;
}
.case-card__media { aspect-ratio: 16 / 10; background: var(--c-bg-dim); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.04); }
.case-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-card__type {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-muted);
}
.case-card__title { font-size: var(--fs-md); margin: 0; }
.case-card__title a { color: var(--c-black); }
.case-card__link {
  margin-top: auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-black);
  border-bottom: 2px solid var(--c-black);
  align-self: flex-start;
  padding-bottom: 2px;
}

/* --- Enquiry CTA band ----------------------------------------------------- */
.cta-band { background: var(--c-dark); color: var(--c-on-dark); }
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding-block: 48px;
}
.cta-band h2 { color: var(--c-on-dark); font-size: var(--fs-2xl); text-transform: uppercase; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 720px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1023px) {
  .cta-band__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* --- Section header with inline link -------------------------------------- */
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}
.section-head__link {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-black);
  border-bottom: 2px solid var(--c-secondary);
  padding-bottom: 3px;
}
@media (max-width: 749px) {
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* --- Showroom map --------------------------------------------------------
   Full-bleed frame with the details card aligned to the content container
   on wide screens, stacking underneath once there is no room to overlay.
   ------------------------------------------------------------------------ */
.map-section { position: relative; }

.map-section__frame {
  position: relative;
  height: var(--map-height, 440px);
  background: var(--c-bg-dim);
}

.map-section__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  /* Sits on the container's left edge, not the viewport's. */
  left: max(var(--page-pad), calc((100% - var(--container)) / 2 + var(--page-pad)));
  width: min(360px, calc(100% - var(--page-pad) * 2));
  padding: 26px 28px;
  background: var(--c-bg);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}

.map-card__title {
  font-size: var(--fs-lg);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.map-card__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: var(--fs-sm);
  font-style: normal;
  line-height: 1.65;
  margin-bottom: 12px;
}
.map-card__row svg { flex: 0 0 auto; margin-top: 3px; color: var(--c-ink); }
.map-card__row a { color: var(--c-body); }
.map-card__row a:hover { color: var(--c-black); text-decoration: underline; }

.map-card__cta { margin-top: 6px; }

@media (max-width: 860px) {
  .map-section__frame { height: min(var(--map-height, 440px), 320px); }

  .map-card {
    position: static;
    transform: none;
    width: auto;
    margin: 0 var(--page-pad);
    /* Lift over the seam between map and footer. */
    margin-top: -40px;
    box-shadow: var(--shadow);
  }
}

/* --- Reviews -------------------------------------------------------------- */
.review-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px 26px;
  margin-bottom: 28px;
  background: var(--c-bg-specs);
  border: 1px solid var(--c-border);
}

.review-summary__score { display: flex; align-items: center; gap: 12px; }

.review-summary__avg {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--c-black);
}

.review-summary__score .testimonial__stars svg { width: 20px; height: 20px; }

.review-summary__meta { display: flex; flex-direction: column; gap: 2px; }

.review-summary__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-black);
}
.review-summary__count { font-size: var(--fs-sm); color: var(--c-muted); }

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}

.review-card__quote {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin: 0;
}

.review-card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border-soft);
}

.review-card__author {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--c-black);
}
.review-card__meta { font-size: var(--fs-xs); color: var(--c-muted); }

.review-card__product {
  font-size: var(--fs-xs);
  color: var(--c-primary-text);
}
.review-card__product:hover { text-decoration: underline; }

@media (max-width: 749px) {
  .review-summary { gap: 14px; padding: 16px 18px; }
}

/* --- Story band ----------------------------------------------------------
   Image flush left, copy right with room to breathe. The action sits at the
   end of the column rather than inline with the text.
   ------------------------------------------------------------------------ */
.split--story .split__media { min-height: 560px; }
.split--story .split__body {
  background: var(--c-bg);
  padding-block: clamp(40px, 5vw, 72px);
}
.split--story .split__text { max-width: 560px; }
.split--story .split__text p { margin-bottom: 1.15em; }
.split--story .split__actions { margin-top: 14px; justify-content: flex-start; }

@media (max-width: 1023px) {
  .split--story .split__media { min-height: 300px; }
}

/* "Shop all" tile — closes the category grid, in the brand's dark tone. */
.cat-tile--all .cat-tile__media {
  display: grid;
  place-items: center;
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.cat-tile__all-icon {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border: 2px solid currentColor;
  border-radius: var(--radius-pill);
  transition: transform .45s var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat-tile--all:hover .cat-tile__all-icon { transform: scale(1.05); background: var(--c-on-dark); color: var(--c-dark); }
