/* Homepage-only redesign for The Freedom in Leaving.
   Loaded AFTER style.css. Everything is scoped to body.homepage. */

.homepage{
  --hp-navy:#0a2f5b;
  --hp-navy-deep:#072746;
  --hp-green:#00623f;
  --hp-gold:#bd7a00;
  --hp-cream:#fbf8f1;
  --hp-paper:#fffdf8;
  --hp-line:#ded8cb;
  --hp-text:#17315d;
}

.homepage .hp-wide{
  width:min(94vw,1720px);
  margin:0 auto;
  padding-left:clamp(18px,2vw,36px);
  padding-right:clamp(18px,2vw,36px);
}

.homepage .hp-narrow{
  width:min(90vw,1080px);
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

.homepage .hp-eyebrow{
  font-family:Georgia,'Times New Roman',serif;
  text-transform:uppercase;
  letter-spacing:.23em;
  font-size:12px;
  line-height:1.2;
  color:var(--hp-gold);
  font-weight:700;
  margin-bottom:11px;
  text-align:center;
}

.homepage .hp-eyebrow.left{text-align:left}
.homepage .hp-eyebrow.light{color:#f4d177}

.homepage main h1,
.homepage main h2,
.homepage main h3{
  color:var(--hp-text);
}

.homepage .hp-lead{
  text-align:center;
  color:#425775;
  font-size:18px;
  margin:8px auto 0;
}

.homepage .hp-center{text-align:center}

/* Let the navigation breathe wider on the homepage without changing other pages. */
.homepage .nav .wrap{
  max-width:1720px;
  width:min(96vw,1720px);
}

/* HERO */
.homepage .hp-hero{
  background:
    linear-gradient(90deg,rgba(251,248,241,.96),rgba(255,255,255,.98) 45%,rgba(255,255,255,.98)),
    var(--hp-paper);
  padding:30px 0 22px;
  border-bottom:1px solid #eee8dc;
}

.homepage .hp-hero-grid{
  display:grid;
  grid-template-columns:minmax(300px,29%) minmax(540px,1fr) minmax(170px,15%);
  gap:clamp(26px,3.1vw,60px);
  align-items:center;
}

.homepage .hp-cover-col{
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:0;
}

.homepage .hp-main-cover{
  width:min(100%,440px);
  max-height:620px;
  object-fit:contain;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.20));
  transition:transform .18s ease;
}

.homepage .hp-cover-col a:hover .hp-main-cover{transform:translateY(-3px)}

.homepage .hp-copy-col{
  min-width:0;
  padding:8px 0;
}

.homepage .hp-copy-col .hp-eyebrow{text-align:left}

.homepage .hp-copy-col h1{
  font-size:clamp(42px,4.2vw,70px);
  margin:0 0 8px;
  line-height:.98;
}

.homepage .hp-subtitle{
  color:#173b78;
  font-style:italic;
  font-size:clamp(18px,1.35vw,24px);
  margin-bottom:25px;
}

.homepage .hp-copy-col > p:not(.hp-subtitle){
  font-size:clamp(17px,1.06vw,20px);
  line-height:1.5;
  color:#1e3c70;
  max-width:900px;
  margin-bottom:18px;
}

.homepage .hp-release{
  display:inline-block;
  margin-top:8px;
  padding:9px 26px;
  border:1.5px solid var(--hp-gold);
  border-radius:999px;
  color:#a45c00;
  font-family:Georgia,serif;
  font-weight:700;
  letter-spacing:.18em;
  font-size:13px;
}

.homepage .hp-main-cta{
  min-width:min(100%,420px);
  text-align:center;
  margin-top:15px;
}

/* Slim, visible, subordinate rail */
.homepage .hp-rail{
  align-self:stretch;
  border-left:1px solid #d8b36d;
  padding-left:clamp(14px,1.35vw,24px);
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
  min-width:0;
}

.homepage .hp-rail-item{
  display:grid;
  grid-template-columns:minmax(54px,72px) 1fr;
  gap:12px;
  align-items:center;
  padding:7px 0;
  color:var(--hp-text);
  text-decoration:none;
}

.homepage .hp-rail-item:hover{text-decoration:none}
.homepage .hp-rail-item:hover span{text-decoration:underline}

.homepage .hp-rail-item img{
  width:100%;
  height:92px;
  object-fit:contain;
}

.homepage .hp-rail-item span{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:800;
  font-size:clamp(14px,1vw,17px);
  line-height:1.1;
  color:#082b68;
}

/* QUOTE */
.homepage .hp-quote{
  min-height:250px;
  padding:0;
  background:url('images/home-cape-town-aerial.jpg') center 48%/cover no-repeat;
  position:relative;
}

.homepage .hp-quote-overlay{
  min-height:250px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:60px 30px 26px;
  background:linear-gradient(180deg,rgba(3,37,73,.06),rgba(3,37,73,.84));
}

.homepage .hp-quote blockquote{
  color:#fff;
  font-family:'Playfair Display',Georgia,serif;
  font-weight:800;
  text-align:center;
  font-size:clamp(22px,2.25vw,36px);
  line-height:1.25;
  max-width:1220px;
  margin:0;
  text-shadow:0 2px 6px rgba(0,0,0,.45);
}

.homepage .hp-quote cite{
  display:block;
  color:#efb81f;
  font-family:Georgia,serif;
  font-size:12px;
  letter-spacing:.16em;
  font-style:normal;
  margin-top:10px;
}

/* MOVEMENT */
.homepage .hp-movement{
  padding:46px 0 40px;
  background:#fff;
  text-align:center;
}

.homepage .hp-movement h2{
  font-size:clamp(30px,3vw,48px);
  margin-bottom:14px;
}

.homepage .hp-movement p{
  font-size:clamp(17px,1.2vw,20px);
  line-height:1.55;
  color:#1c3b6b;
}

/* INSIDE */
.homepage .hp-inside{
  background:var(--hp-cream);
  padding:38px 0 54px;
}

.homepage .hp-inside h2{
  text-align:center;
  font-size:clamp(32px,3vw,50px);
  margin-bottom:2px;
}

.homepage .hp-four{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:26px;
}

.homepage .hp-inside-card{
  background:#fff;
  border:1px solid var(--hp-line);
  border-radius:12px;
  padding:24px 22px;
  box-shadow:0 4px 14px rgba(18,39,74,.05);
  display:flex;
  flex-direction:column;
  min-height:255px;
}

.homepage .hp-inside-card h3{
  font-size:21px;
  margin-bottom:10px;
}

.homepage .hp-inside-card p{
  color:#243e65;
  font-size:16px;
  line-height:1.52;
  margin-bottom:14px;
}

.homepage .hp-inside-card a{
  margin-top:auto;
  color:#a45c00;
  text-decoration:underline;
  font-family:Georgia,serif;
  font-weight:700;
}

.homepage .hp-inside .btn{margin-top:28px}

/* COLLECTION + TRAVEL */
.homepage .hp-pathways{
  background:#fff;
  padding:18px 0 34px;
}

.homepage .hp-pathway-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.homepage .hp-pathway{
  position:relative;
  display:grid;
  grid-template-columns:45% 55%;
  min-height:270px;
  overflow:hidden;
  border-radius:10px;
  text-decoration:none;
  box-shadow:0 5px 18px rgba(0,0,0,.09);
}

.homepage .hp-pathway:hover{text-decoration:none}

.homepage .hp-pathway-photo{
  min-height:270px;
  overflow:hidden;
  background:#f5f5f5;
}

.homepage .hp-pathway-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.homepage .hp-collection{
  background:linear-gradient(135deg,#1f1b13,#080807);
}

.homepage .hp-travel{
  background:#0b4f83;
}

.homepage .hp-pathway-copy{
  padding:28px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:#fff;
}

.homepage .hp-pathway-copy h2{
  color:#fff;
  font-size:clamp(28px,2.1vw,40px);
  margin-bottom:8px;
}

.homepage .hp-pathway-copy p{
  color:rgba(255,255,255,.93);
  font-size:16px;
  line-height:1.45;
  margin-bottom:18px;
}

.homepage .hp-pathway-copy .hp-eyebrow{text-align:left;color:#f0b51c}

.homepage .hp-buttonlike{
  display:inline-block;
  width:max-content;
  max-width:100%;
  color:#fff;
  background:#c48700;
  border-radius:8px;
  padding:10px 20px;
  font-family:Georgia,serif;
  font-weight:700;
}

.homepage .hp-outline{
  background:transparent;
  border:1px solid #fff;
}

/* BLOG */
.homepage .hp-blog{
  padding:30px 0 36px;
  background:#fffdf8;
}

.homepage .hp-blog-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}

.homepage .hp-blog-head h2{
  font-size:clamp(30px,2.7vw,44px);
  margin-bottom:2px;
}

.homepage .hp-blog-head p{color:#40536e}
.homepage .hp-view-all{font-weight:700;text-decoration:underline}

.homepage .hp-blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.homepage .hp-blog-card{
  display:grid;
  grid-template-columns:38% 62%;
  border:1px solid #e4dfd4;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
  color:inherit;
  text-decoration:none;
  min-height:165px;
}

.homepage .hp-blog-card:hover{text-decoration:none}
.homepage .hp-blog-card:hover h3{text-decoration:underline}

.homepage .hp-blog-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
}

.homepage .hp-blog-fallback{
  background:linear-gradient(135deg,var(--hp-navy),var(--hp-green));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  font-family:'Playfair Display',Georgia,serif;
  font-weight:800;
}

.homepage .hp-blog-card-copy{
  padding:17px 18px;
}

.homepage .hp-blog-card h3{
  font-size:18px;
  line-height:1.22;
  margin-bottom:8px;
}

.homepage .hp-blog-card-copy p{
  font-size:13px;
  line-height:1.4;
  color:#5b6676;
}

.homepage .hp-blog-meta{
  font-size:12px!important;
  color:#7b6945!important;
  margin-bottom:8px;
}

.homepage .hp-blog-read{
  display:block;
  margin-top:11px;
  color:var(--hp-green);
  text-decoration:underline;
  font-size:13px;
  font-weight:700;
}

/* STARTER KIT */
.homepage .hp-signup{
  background:linear-gradient(90deg,#00603e,#00744d);
  color:#fff;
  padding:28px 0;
}

.homepage .hp-signup-grid{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:30px;
}

.homepage .hp-signup h2{
  color:#fff;
  font-size:clamp(28px,2.4vw,40px);
  margin-bottom:5px;
}

.homepage .hp-signup p{color:rgba(255,255,255,.9)}
.homepage .hp-signup .btn{margin-top:0;white-space:nowrap}

/* FOOTER */
.homepage .hp-footer-tagline{
  color:#dca217;
  letter-spacing:.19em;
  font-family:Georgia,serif;
  margin:22px auto 0;
  font-size:13px;
}

/* RESPONSIVE */
@media (min-width:1800px){
  .homepage .hp-hero-grid{
    grid-template-columns:minmax(360px,30%) minmax(700px,1fr) minmax(185px,14%);
  }
  .homepage .hp-main-cover{width:min(100%,500px)}
  .homepage .hp-rail-item img{height:100px}
}

@media (max-width:1180px){
  .homepage .hp-hero-grid{
    grid-template-columns:minmax(260px,31%) 1fr;
  }
  .homepage .hp-rail{
    grid-column:1/-1;
    border-left:0;
    border-top:1px solid #d8b36d;
    padding:18px 0 0;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
  }
  .homepage .hp-rail-item{
    justify-content:center;
    grid-template-columns:62px auto;
  }
  .homepage .hp-four{grid-template-columns:repeat(2,1fr)}
  .homepage .hp-blog-grid{grid-template-columns:1fr}
  .homepage .hp-blog-card{grid-template-columns:180px 1fr}
}

@media (max-width:860px){
  .homepage .hp-hero{padding-top:22px}
  .homepage .hp-hero-grid{grid-template-columns:1fr}
  .homepage .hp-cover-col{order:1}
  .homepage .hp-copy-col{order:2;text-align:center}
  .homepage .hp-copy-col .hp-eyebrow{text-align:center}
  .homepage .hp-copy-col > p:not(.hp-subtitle){margin-left:auto;margin-right:auto}
  .homepage .hp-main-cover{width:min(72vw,390px)}
  .homepage .hp-rail{order:3;grid-column:auto}
  .homepage .hp-pathway-grid{grid-template-columns:1fr}
  .homepage .hp-signup-grid{grid-template-columns:1fr;text-align:center}
  .homepage .hp-signup-action{display:flex;justify-content:center}
}

@media (max-width:640px){
  .homepage .hp-wide{width:100%;padding-left:16px;padding-right:16px}
  .homepage .hp-narrow{width:100%;padding-left:18px;padding-right:18px}
  .homepage .hp-copy-col h1{font-size:40px}
  .homepage .hp-rail{
    grid-template-columns:1fr;
    gap:6px;
  }
  .homepage .hp-rail-item{
    grid-template-columns:56px 1fr;
    justify-content:start;
    max-width:260px;
    margin:0 auto;
  }
  .homepage .hp-rail-item img{height:68px}
  .homepage .hp-four{grid-template-columns:1fr}
  .homepage .hp-inside-card{min-height:0}
  .homepage .hp-pathway{
    grid-template-columns:1fr;
  }
  .homepage .hp-pathway-photo{height:220px;min-height:220px}
  .homepage .hp-blog-head{
    display:block;
  }
  .homepage .hp-view-all{
    display:inline-block;
    margin-top:10px;
  }
  .homepage .hp-blog-card{
    grid-template-columns:110px 1fr;
    min-height:140px;
  }
}
