/* ===========================================================================
   Fratelli home page (front-page.php content = a stack of kooka_* / fratelli_*
   shortcodes). Loads only on is_front_page(), AFTER custom.css / fratelli-base,
   so it supersedes the inherited Artusi hero styling.
   ======================================================================== */

/* Salient's base `.container-wrap, .project-title` rule (theme style.css) sets
   `padding-top:40px; padding-bottom:40px` - kills the flush join between the
   header and the full-bleed hero at the top, and adds a dead 40px gap above
   the footer at the bottom. Zero both for the home's edge-to-edge sections. */
body.home[data-header-resize] .container-wrap,
body.home .container-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --- Hero (kooka_hero: image | slider | video) ------------------------------
   Reference home hero is bottom-left aligned, title-case, with a solid white
   CTA - overrides the inherited centered/uppercase kooka-hero styling. */
.home .section.section--hero.kooka-hero {
  min-height: 88vh;
  align-items: flex-end;
}
.home .section--hero.kooka-hero .kooka-hero__bg--image,
.home .section--hero.kooka-hero .hero__slide {
  min-height: 88vh;
}
/* photo lives on the inner media layer now (hero.js parallaxes only this) */
.home .section--hero.kooka-hero .kooka-hero__bg-media,
.home .section--hero.kooka-hero .hero__slide {
  background-position: center 42%;
}
/* Static left-darkening scrim so the white copy stays legible over the photo.
   Plain alpha (not multiply) - a straight dark veil like the reference. Sits
   above the parallaxing .kooka-hero__bg-media, below the copy. */
.home .section--hero.kooka-hero .kooka-hero__bg::after {
  background: linear-gradient(
    100deg,
    rgba(20, 19, 17, 0.62) 0%,
    rgba(20, 19, 17, 0.4) 38%,
    rgba(20, 19, 17, 0.12) 68%,
    rgba(20, 19, 17, 0.04) 100%
  ) !important;
  mix-blend-mode: normal !important;
}
/* Lift the copy clear of the hero's bottom edge (~72px in the reference).
   Vertical rhythm keyed to viewport HEIGHT, on the section's own container. */
.home .section--hero.kooka-hero .container.normal-container {
  padding-bottom: clamp(72px, 12vh, 132px);
}
.home .section--hero.kooka-hero .hgroup--hero {
  max-width: 620px;
}
/* Reference-measured (1200px vp): eyebrow 13px/0.2em, h1 60px/1.06/700,
   subtitle 18px/1.6, CTA 14px/0.16em ~54px tall. */
.home .hgroup__eyebrow--hero {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.home .hgroup__title--hero {
  font-family: var(--font-sans);
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 22px;
}
.home .hgroup__subtitle--hero {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 30px;
}
.home .kooka-hero__cta {
  background: #fff;
  border-color: #fff;
  color: var(--text-primary, #141311);
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  padding: 16px 26px;
  letter-spacing: 0.16em;
}
.home .kooka-hero__cta:hover {
  background: var(--ivory-100, #f2efe7);
  color: var(--text-primary, #141311);
}
.home .kooka-hero__scroll-down {
  display: none;
}

/* --- Feature intro heading -------------------------------------------------- */
.home .kooka-text-intro {
  padding: clamp(64px, 8vw, 112px) 0 clamp(40px, 5vw, 72px);
}
.home .kooka-text-intro h2 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  text-transform: none;
  letter-spacing: -0.01em;
}

/* --- Feature image+text blocks (kooka_text_image_split) -------------------
   Reference (1200px vp): a CONTAINED ~1180px band, two equal ~522px columns,
   ~48px gutter, image NOT full-bleed, ~5:4 image. eyebrow 12px/0.16em garnet,
   h3 29px/700, body 16px/1.65 rgba(.65). The inherited .kooka-split--image is
   a 100vw bleed with an uppercase 42px/400 heading and 9vw copy padding -
   fully overridden here for the home. */
.home .kooka-split.kooka-split--image {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 68px) 0;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  min-height: 0;
  align-items: center;
}
.home .kooka-split--image .kooka-split-copy {
  padding: 0 !important;
  max-width: none;
}
.home .kooka-split-copy h2 {
  text-transform: none;
  font-size: clamp(23px, 2.4vw, 29px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.home .kooka-split-copy .kooka-eyebrow {
  color: var(--accent-primary, #8c1c1c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
}
.home .kooka-split-copy p:not(.kooka-eyebrow) {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(20, 19, 17, 0.65);
}
.home .kooka-split--image .kooka-split-image {
  min-height: 0;
  aspect-ratio: 5 / 4;
}

/* --- Final blade: layout="full" ---------------------------------------------
   Reference markup for this cell:
     div  { display:flex; flex-direction:column; justify-content:center;
            padding: clamp(40px,6vw,110px); }
       img { height:56px; width:1px; margin-bottom:28px }   <- vertical hairline
       h2  { font-weight:700; font-size:clamp(30px,3vw,44px); line-height:1.15; margin:0 0 20px }
       p   { font-size:17px; line-height:1.65; color:rgba(20,19,17,.65); max-width:46ch; margin:0 0 32px }
       a   { border:1px solid #141311; padding:14px 30px; font-size:13px; letter-spacing:.16em; text-transform:uppercase }
   Full-bleed 50/50 band on white, image edge-to-edge on its half. */
.home .kooka-split.kooka-split--image.kooka-split--full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  align-items: stretch;
  min-height: clamp(460px, 46vw, 600px);
}
/* equal padding all round, copy fills its half (no max-width on the cell -
   the reference caps only the paragraph at 46ch), vertically centred */
.home .kooka-split.kooka-split--image.kooka-split--full .kooka-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 110px) !important;
  max-width: none;
}
/* vertical hairline above the heading (reference's 1px x 56px <img>) */
.home .kooka-split--full .kooka-split-copy::before {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  margin-bottom: 28px;
  background: rgba(20, 19, 17, 0.4);
}
.home .kooka-split--full .kooka-split-copy h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.home .kooka-split--full .kooka-split-copy p:not(.kooka-eyebrow) {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(20, 19, 17, 0.65);
  max-width: 46ch;
  margin: 0 0 32px;
}
/* Give the image cell real height with enough specificity to beat
   custom.css's `.kooka-split--image:not():not() .kooka-split-image
   { min-height: 100% }` (which collapses to 0 on an auto grid row). */
.home .kooka-split.kooka-split--image.kooka-split--full .kooka-split-image {
  aspect-ratio: auto;
  min-height: clamp(460px, 46vw, 600px);
}
/* leave .kooka-parallax-layer's base top:-15% / height:130% overshoot intact -
   custom.js needs that buffer or the parallax shift exposes an edge. */
.home .kooka-split--full .kooka-split-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 30px;
  border: 1px solid var(--text-primary, #141311);
  color: var(--text-primary, #141311);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.home .kooka-split--full .kooka-split-link:hover {
  background: var(--text-primary, #141311);
  color: #fff;
}
@media (max-width: 860px) {
  .home .kooka-split.kooka-split--image.kooka-split--full {
    grid-template-columns: 1fr;
  }
  .home .kooka-split.kooka-split--image.kooka-split--full .kooka-split-image {
    min-height: clamp(300px, 60vw, 420px);
  }
}

/* --- "Two ranges. One standard." tiles ---------------------------------- */
/* Reference: full-width section, ~108px vertical padding; a 3-col grid where
   the two range tiles fill columns 1-2 (column 3 left open). Each tile is a
   portrait 4:5 image, object-fit:cover on white, name 26px/400 below. */
.fratelli-range {
  padding: clamp(72px, 10vw, 108px) 0;
}
.fratelli-range-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.fratelli-range-head .kooka-eyebrow {
  margin: 0 0 12px;
}
.fratelli-range-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 36px);
}
.fratelli-range-viewall {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary, #8c1c1c);
  text-decoration: none;
}
.fratelli-range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fratelli-range-tile {
  display: block;
  text-decoration: none;
}
.fratelli-range-tile-media {
  display: block;
  background: #fff;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 22px;
}
.fratelli-range-tile-media .fratelli-range-tile-img,
.fratelli-range-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
  font-size: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fratelli-range-tile:hover .fratelli-range-tile-media img {
  transform: scale(1.04);
}
.fratelli-range-tile-name {
  display: block;
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary, #141311);
}
.fratelli-range-tile-sub {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: var(--warm-500, #7d766a);
}
.fratelli-range-tile-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary, #8c1c1c);
}

/* --- 3-col stat band -------------------------------------------------------- */
.fratelli-home-band {
  border-top: 1px solid rgba(20, 19, 17, 0.12);
  border-bottom: 1px solid rgba(20, 19, 17, 0.12);
  margin-top: clamp(24px, 4vw, 56px);
}
.fratelli-home-band-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.fratelli-home-band-icon-wrap {
  display: block;
  margin-bottom: 16px;
}
.fratelli-home-band-icon-wrap img,
.fratelli-home-band-icon-wrap svg {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: inline-block;
}
.fratelli-home-band .kooka-eyebrow {
  margin: 0 0 8px;
}
.fratelli-home-band-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--warm-500, #7d766a);
  max-width: 34ch;
}

@media (max-width: 900px) {
  .fratelli-range-head { flex-direction: column; align-items: flex-start; }
  .fratelli-range-grid { grid-template-columns: 1fr 1fr; }
  .fratelli-home-band-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .fratelli-range-grid { grid-template-columns: 1fr; }
}
