/* Homepage redesign (October 2026). Loaded only on index.html, after
   site-rebuild.css and type-scale.css. Everything is scoped to .home-page so
   other pages are untouched. */

/* ---- Section rhythm: 120px desktop, 72px phones ---- */
.home-page main>section:not(.hero){padding-top:120px;padding-bottom:120px}
.home-page main>section.detail-row,
.home-page main>section.partner-strip{padding-top:0}
.home-page main>section.detail-row::before,
.home-page main>section.partner-strip::before{content:none}

/* ---- 1. Hero destination sequence ---- */
.home-page .hero-sequence{background:#071c2b url('/assets/images/home/hero-poster-soft.jpg') center/cover no-repeat;padding-bottom:132px}
.hero-media{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-clip{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;filter:brightness(1.12) contrast(.92) saturate(.7);transition:opacity 1.5s ease;pointer-events:none}
.hero-clip.is-active{opacity:1}
/* Light navy wash (.12), plus a soft scrim only where text sits (centre copy, lower-left label)
   so the white text keeps WCAG contrast on the brightest frames without dimming the whole clip. */
.hero-overlay{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  radial-gradient(ellipse 58% 44% at 50% 45%,rgba(16,40,61,.62) 0%,rgba(16,40,61,.46) 45%,rgba(16,40,61,0) 100%),
  linear-gradient(0deg,rgba(16,40,61,.58) 0,rgba(16,40,61,0) 24%),
  linear-gradient(rgba(16,40,61,.12),rgba(16,40,61,.12))}
.home-page .hero h1{text-shadow:0 2px 22px rgba(7,22,34,.42),0 1px 3px rgba(7,22,34,.28)}
.home-page .hero .eyebrow,.home-page .hero p{text-shadow:0 1px 12px rgba(7,22,34,.45)}

.hero-country{position:absolute;z-index:2;left:clamp(22px,4vw,64px);bottom:clamp(28px,5vh,48px);color:var(--ivory);font-family:"Gallery",Georgia,serif;font-style:italic;font-size:26px;line-height:1.1;text-shadow:0 1px 14px rgba(7,22,34,.45);pointer-events:none}
.hero-scenes{position:absolute;z-index:2;right:clamp(22px,4vw,64px);bottom:clamp(16px,5vh,36px);display:flex;gap:4px}
.hero-scene{appearance:none;-webkit-appearance:none;position:relative;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;cursor:pointer}
.hero-scene::before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;margin-top:-1px;background:rgba(248,243,234,.45);transition:background-color .3s ease}
.hero-scene[aria-current="true"]::before{background:var(--champagne)}
.hero-scene:hover::before{background:rgba(248,243,234,.8)}
.hero-scene[aria-current="true"]:hover::before{background:var(--champagne)}
.hero-scene:focus{outline:none}
.hero-scene:focus-visible{outline:2px solid var(--champagne);outline-offset:2px}

/* ---- 5. Relationships photo carousel: whole photos only, no edge fade ---- */
.home-page .difference-gallery{-webkit-mask-image:none;mask-image:none}
.home-page .difference-gallery-track{animation:none;width:auto}
.home-page .difference-gallery-group{flex-wrap:wrap;justify-content:center;padding-right:0}
.home-page .difference-gallery.is-stepped{margin:0 auto;overflow:hidden}
.home-page .difference-gallery.is-stepped .difference-gallery-track{width:max-content}
.home-page .difference-gallery.is-stepped .difference-gallery-group{flex-wrap:nowrap;justify-content:flex-start;will-change:transform}
.home-page .difference-gallery.is-stepped figure{flex:0 0 auto;width:var(--item-w,260px);height:calc(var(--item-w,260px) * .6923)}

/* ---- 2. The Genesis Difference ---- */
.home-page .bridge-section{background:var(--ivory);background-image:none;text-align:left;overflow:visible}
.difference-split{width:min(var(--max),100%);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,6vw,96px);align-items:center}
.difference-photo{height:600px;overflow:hidden}
.difference-photo picture{display:block;height:100%}
.difference-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.home-page .bridge-inner{width:auto;margin:0}
.home-page .bridge-section h2{margin-bottom:0;color:var(--navy)}
.home-page .bridge-section .genesis-difference-line{display:block;color:var(--navy)}
.difference-rule{display:block;width:56px;height:1px;margin:28px 0;background:var(--gold)}
html body main .bridge-section .bridge-inner p:not(#_){width:auto;max-width:460px;margin:0;font-size:1.125rem;color:var(--slate)}

/* ---- 3. Detail photo row ---- */
.detail-row{background:var(--ivory)}
.detail-row-grid{width:min(var(--max),100%);margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
.detail-row-grid figure{margin:0;height:380px;overflow:hidden}
.detail-row-grid figure:nth-child(even){margin-top:48px}
.detail-row-grid img{width:100%;height:100%;object-fit:cover}

/* ---- 4. Partner logo strip: static, centered, wraps ---- */
.partner-strip{background:var(--ivory)}
.partner-frame{width:min(var(--max),100%);margin:0 auto;padding:40px 0;border-top:1px solid rgba(184,138,74,.7);border-bottom:1px solid rgba(184,138,74,.7)}
.partner-window{margin:0 auto}
.partner-logos{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:28px 40px}
/* Scrolling (set by js/home-gallery.js): one row, window holds whole logos only */
.partner-window.is-stepped{overflow:hidden}
.partner-window.is-stepped .partner-logos{flex-wrap:nowrap;justify-content:flex-start;width:max-content;gap:40px;will-change:transform}
.partner-logos li{display:flex;align-items:center;justify-content:center;flex:0 0 150px;width:150px;height:76px;margin:0;padding:0}
.partner-logos img{display:block;width:100%;height:52px;object-fit:contain;filter:brightness(0) saturate(100%) invert(12%) sepia(34%) saturate(1300%) hue-rotate(175deg) brightness(92%) contrast(95%);opacity:.7}
.partner-logos .supplier-logo-atrium,.partner-logos .supplier-logo-allway{height:76px}

/* ---- Soft-light photo treatment (matches the Four Ways photos) ---- */
.home-page .difference-gallery img{filter:brightness(1.18) contrast(.84) saturate(.74)}
.home-page .detail-row-grid img{filter:saturate(.8)}
.home-page .specialties{background:linear-gradient(90deg,rgba(16,40,61,0) 0%,rgba(16,40,61,0) 36%,rgba(16,40,61,.42) 60%,rgba(16,40,61,.6) 100%),url('/assets/images/home/map-turks-caicos-soft.jpg') center/cover no-repeat}
.home-page .specialties-content{text-shadow:0 1px 3px rgba(7,22,34,.4),0 2px 16px rgba(7,22,34,.45)}
.home-page .specialties .button{text-shadow:none}
@media(max-width:980px){.home-page .specialties{background:radial-gradient(ellipse 90% 60% at 50% 50%,rgba(16,40,61,.58),rgba(16,40,61,.2)),url('/assets/images/home/map-turks-caicos-soft.jpg') center/cover no-repeat}}

/* Small labels over photos in ivory (gold failed contrast on bright frames) */
.home-page .hero .eyebrow,.home-page .specialties .section-kicker,.home-page .cta .section-kicker{color:var(--ivory)}

/* ---- 6. Start Planning ---- */
.home-page .cta{background-image:radial-gradient(ellipse 52% 50% at 50% 50%,rgba(16,40,61,.6),rgba(16,40,61,0)),linear-gradient(rgba(16,40,61,.16),rgba(16,40,61,.16)),url('/assets/images/home/cta-stone-steps-soft.jpg');background-image:radial-gradient(ellipse 52% 50% at 50% 50%,rgba(16,40,61,.6),rgba(16,40,61,0)),linear-gradient(rgba(16,40,61,.16),rgba(16,40,61,.16)),image-set(url('/assets/images/home/cta-stone-steps-soft.webp') type('image/webp'),url('/assets/images/home/cta-stone-steps-soft.jpg') type('image/jpeg'))}
.home-page .cta .section-kicker,.home-page .cta h2,.home-page .cta p{text-shadow:0 1px 3px rgba(7,22,34,.45),0 2px 18px rgba(7,22,34,.55)}

/* ---- 7. Footer ---- */
.home-page .footer-column-title,
.home-page .footer-contact>strong,
.home-page .footer-associations-title,
.home-page .newsletter-title{font-family:var(--body);font-size:12px;font-weight:700;line-height:1.2;letter-spacing:.22em;text-transform:uppercase;color:var(--champagne)}
.home-page .footer-iatan-logo img{width:56px}

/* ---- Tablet ---- */
@media(max-width:980px){
  .difference-split{grid-template-columns:1fr;gap:48px}
  .difference-photo{height:480px}
  .detail-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Phones ---- */
@media(max-width:620px){
  .home-page main>section:not(.hero){padding-top:72px;padding-bottom:72px}
  .home-page main>section.detail-row,.home-page main>section.partner-strip{padding-top:0}
  .home-page .hero-sequence{padding-bottom:124px;background-image:url('/assets/images/home/hero-poster-mobile-soft.jpg')}
  .hero-overlay{background:
    radial-gradient(ellipse 95% 46% at 50% 44%,rgba(16,40,61,.62) 0%,rgba(16,40,61,.46) 50%,rgba(16,40,61,0) 100%),
    linear-gradient(0deg,rgba(16,40,61,.6) 0,rgba(16,40,61,0) 26%),
    linear-gradient(rgba(16,40,61,.12),rgba(16,40,61,.12))}
  .home-page .cta{background-image:radial-gradient(ellipse 120% 70% at 50% 42%,rgba(16,40,61,.66),rgba(16,40,61,.1)),linear-gradient(rgba(16,40,61,.16),rgba(16,40,61,.16)),url('/assets/images/home/cta-stone-steps-soft.jpg');background-image:radial-gradient(ellipse 120% 70% at 50% 42%,rgba(16,40,61,.66),rgba(16,40,61,.1)),linear-gradient(rgba(16,40,61,.16),rgba(16,40,61,.16)),image-set(url('/assets/images/home/cta-stone-steps-soft.webp') type('image/webp'),url('/assets/images/home/cta-stone-steps-soft.jpg') type('image/jpeg'))}
  .hero-country{left:22px;bottom:68px;font-size:24px}
  .hero-scenes{left:16px;right:auto;bottom:14px;gap:0}
  .hero-scene::before{left:6px;right:6px}
  .difference-split{gap:36px}
  .difference-photo{height:360px}
  .difference-rule{margin:22px 0}
  html body main .bridge-section .bridge-inner p:not(#_){font-size:1.0625rem}
  .detail-row-grid{gap:12px}
  .detail-row-grid figure{height:240px}
  .detail-row-grid figure:nth-child(even){margin-top:0}
  .partner-frame{padding:32px 0}
  .partner-logos{gap:20px 16px}
  .partner-window.is-stepped .partner-logos{gap:16px}
  .partner-logos li{flex-basis:100px;width:100px;height:56px}
  .partner-logos img{height:36px}
  .partner-logos .supplier-logo-atrium,.partner-logos .supplier-logo-allway{height:56px}
  .home-page .footer-iatan-logo img{width:48px}
}
@media(max-width:820px){.home-page .footer-iatan-logo img{width:48px}}
@media(max-width:359px){.hero-scenes{left:8px}.hero-scene{width:42px}}
