@charset "utf-8";
/* ==========================================================================
   citychampions.ca - home page
   Loaded after the shared template CSS (style / mobile / navbar), which is
   kept byte-identical to the city sites. Everything new is namespaced hp-.

   Why this file exists beyond new components:
   - The template sizes all type in vw with one 767px breakpoint, so at
     tablet widths body text falls to ~8px. Text here uses clamp().
   - A global `article {margin-bottom: 7vw}` (14vw on phones) leaves white
     strips between coloured bands. Home sections are <section>s with one
     shared vertical rhythm (--sec) instead.
   - Template overrides that mobile.css also sets are scoped to >=768px so
     the phone layout keeps its own rules.
   ========================================================================== */

:root{
  --forest:#365649; --sea:#40896f; --jade:#45b08e; --mint:#73eab4;
  --sun:#ffb452; --tangerine:#ff9929; --carrot:#e48114;
  --egg:#f2f2ed; --peach:#fff0e5; --mist:#f8f8f6; --ink:#111; --text:#2b2b2b;

  --sec: clamp(64px, 7vw, 112px);        /* top + bottom padding, every band */
  --wrap: min(1180px, 84%);
  --radius: 16px;
  --shadow: 0 2px 22px rgba(17,17,26,.07);
  --shadow-hi: 0 16px 42px rgba(17,17,26,.15);
  --logo-w: clamp(150px, 16%, 240px);
}

/* keyboard focus: the template removes outlines globally (*:focus) */
a:focus-visible, button:focus-visible{outline:3px solid var(--sun) !important; outline-offset:3px;}

/* ---------- layout primitives ---------- */
.hp-wrap{width:var(--wrap); margin:0 auto;}
.hp-sec{padding:var(--sec) 0;}

.hp-head{max-width:700px; margin:0 auto clamp(36px,4vw,60px); text-align:center;}
.hp-head--left{max-width:none; margin:0 0 26px; text-align:left;}

.hp-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:'Inter',sans-serif; font-weight:700;
  font-size:clamp(11px,.78vw,12.5px); letter-spacing:.18em; text-transform:uppercase;
  color:var(--carrot); margin:0 0 14px;
}
.hp-eyebrow:before{content:""; width:24px; height:2px; background:var(--sun);}
.hp-head:not(.hp-head--left) .hp-eyebrow:after{content:""; width:24px; height:2px; background:var(--sun);}

.hp-h2{
  font-family:'Barlow Condensed',sans-serif; font-weight:900; text-transform:uppercase;
  font-size:clamp(32px,2.9vw,46px); line-height:1.02; color:var(--ink); margin:0 0 16px;
}
.hp-lead{font-size:clamp(15.5px,1.1vw,18px); line-height:1.7; font-weight:500; color:var(--text); margin:0;}

/* ---------- buttons ---------- */
.hp-actions{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:8px;}
.hp-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:'Inter',sans-serif; font-weight:700; font-size:clamp(12px,.82vw,13px);
  letter-spacing:.08em; text-transform:uppercase; line-height:1;
  padding:18px 30px; border:2px solid var(--jade); background:var(--jade); color:#fff;
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.hp-btn:hover{background:var(--forest); border-color:var(--forest); color:#fff;}
.hp-btn--sun{background:var(--tangerine); border-color:var(--tangerine);}
.hp-btn--sun:hover{background:var(--carrot); border-color:var(--carrot); color:#fff;}
.hp-btn--ghost{background:transparent; border-color:rgba(255,255,255,.75); color:#fff;}
.hp-btn--ghost:hover{background:#fff; border-color:#fff; color:var(--forest);}

.hp-link{
  display:inline-flex; align-items:center; gap:8px; padding:18px 6px;
  font-family:'Inter',sans-serif; font-weight:700; font-size:clamp(12px,.82vw,13px);
  letter-spacing:.08em; text-transform:uppercase; line-height:1; color:#000;
  transition:gap .25s ease, color .25s ease;
}
.hp-link i{color:var(--jade); font-size:.85em;}
.hp-link:hover{color:var(--sea); gap:13px;}

/* ==========================================================================
   1. Intro (peach band, sits under the shared hero)
   ========================================================================== */
.hp-intro{padding-bottom:var(--sec); margin:0;}
.hp-intro .phead01 br{display:block;}

/* ==========================================================================
   2. Find your community
   ========================================================================== */
.hp-cities{background:#e8fbf1 url(../images/bg-map.jpg) center / cover no-repeat;}

.hp-city-grid{display:flex; flex-wrap:wrap; justify-content:center; gap:clamp(20px,2.4vw,36px);}
/* each new city is one more card; the row reflows on its own */
.hp-city{
  flex:1 1 320px; max-width:480px;
  display:flex; flex-direction:column; position:relative; overflow:hidden;
  background:#fff; border-radius:var(--radius); box-shadow:var(--shadow);
  color:#000; transition:transform .3s ease, box-shadow .3s ease;
}
.hp-city:hover{color:#000; transform:translateY(-6px); box-shadow:var(--shadow-hi);}
.hp-city:after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:4px;
  background:var(--tangerine); transform:scaleX(0); transform-origin:left;
  transition:transform .35s ease;
}
.hp-city:hover:after{transform:scaleX(1);}

/* the image is taken out of flow so a tall region (BC) can't stretch the box:
   aspect-ratio alone yields to an image's intrinsic height */
.hp-city__art{position:relative; aspect-ratio:16 / 10; background:var(--egg); overflow:hidden;}
.hp-city__art img{
  position:absolute; top:48px; left:28px; right:28px; bottom:22px;
  width:calc(100% - 56px); height:calc(100% - 70px);
  object-fit:contain; transition:transform .5s ease;
}
.hp-city:hover .hp-city__art img{transform:scale(1.04);}

.hp-city__chip{
  position:absolute; top:16px; left:16px; z-index:1;
  display:inline-flex; align-items:center; gap:7px;
  background:#fff; border-radius:999px; padding:8px 13px;
  font-family:'Inter',sans-serif; font-weight:700; font-size:11px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--forest);
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.hp-city__chip i{color:var(--tangerine);}

.hp-city__body{display:flex; flex-direction:column; flex:1; padding:26px 28px 28px;}
.hp-city__name{
  font-family:'Barlow Condensed',sans-serif; font-weight:900; text-transform:uppercase;
  font-size:clamp(28px,2.2vw,34px); line-height:1; margin:0 0 10px;
}
.hp-city__body p{flex:1; font-size:clamp(15px,1vw,16px); line-height:1.65; color:var(--text); margin:0 0 22px;}
.hp-city__cta{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  border-top:1px solid #ececec; padding-top:18px;
  font-family:'Inter',sans-serif; font-weight:700; font-size:12px;
  letter-spacing:.1em; text-transform:uppercase; color:var(--forest);
}
.hp-arrow{
  flex:0 0 auto; width:40px; height:40px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--egg); color:var(--forest); font-size:14px;
  transition:background .3s ease, color .3s ease, transform .3s ease;
}
.hp-city:hover .hp-arrow{background:var(--tangerine); color:#fff; transform:translateX(4px);}

.hp-more{display:flex; justify-content:center; margin-top:clamp(28px,3vw,44px);}
.hp-more span{
  display:inline-flex; align-items:center; gap:10px; text-align:center;
  border:1.5px dashed var(--jade); border-radius:999px; background:rgba(255,255,255,.75);
  padding:12px 22px; font-size:clamp(14px,.95vw,15px); font-weight:600; color:var(--forest);
}
.hp-more i{color:var(--jade);}

/* ==========================================================================
   3. How Champions help
   ========================================================================== */
.hp-help-grid{display:grid; grid-template-columns:repeat(6,1fr); gap:clamp(18px,2vw,32px);}
.hp-help{text-align:center;}
.hp-help img{
  display:block; width:clamp(84px,7vw,108px); height:auto; margin:0 auto 16px;
  transition:transform .3s ease;
}
.hp-help:hover img{transform:translateY(-4px) rotate(-4deg);}
.hp-help h3{
  font-family:'Barlow Condensed',sans-serif; font-weight:700; text-transform:uppercase;
  font-size:clamp(20px,1.5vw,23px); line-height:1.1; margin:0 0 8px;
}
.hp-help p{font-size:clamp(14px,.95vw,15px); line-height:1.6; color:#444; margin:0;}

/* ==========================================================================
   4. Why it matters
   ========================================================================== */
.hp-why{background:var(--mist);}
.hp-why__grid{display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(32px,5vw,84px); align-items:center;}
.hp-why__text p{font-size:clamp(15px,1.05vw,17px); line-height:1.75; color:var(--text); margin:0 0 16px;}
.hp-why__text .hp-pull{
  margin:26px 0 0; padding:4px 0 4px 20px; border-left:4px solid var(--sun);
  font-family:'Barlow Condensed',sans-serif; font-weight:700; text-transform:uppercase;
  font-size:clamp(22px,1.7vw,27px); line-height:1.2; color:var(--forest);
}
.hp-why__art img{display:block; width:100%; height:auto;}

/* ==========================================================================
   5. Selection process
   ========================================================================== */
.hp-trust-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(16px,2vw,28px);}
.hp-trust{
  position:relative; overflow:hidden; background:#fff;
  border:1px solid #eeeeea; border-radius:var(--radius); box-shadow:var(--shadow);
  padding:30px 26px 28px;
}
.hp-trust__num{
  position:absolute; top:16px; right:22px;
  font-family:'Barlow Condensed',sans-serif; font-weight:900; font-size:46px; line-height:1;
  color:var(--egg);
}
.hp-trust__icon{
  width:54px; height:54px; border-radius:14px; margin:0 0 20px;
  display:flex; align-items:center; justify-content:center;
  background:var(--jade); color:#fff; font-size:22px;
}
.hp-trust:nth-child(even) .hp-trust__icon{background:var(--tangerine);}
.hp-trust h3{
  font-family:'Barlow Condensed',sans-serif; font-weight:700; text-transform:uppercase;
  font-size:clamp(21px,1.5vw,24px); line-height:1.1; margin:0 0 10px;
}
.hp-trust p{font-size:clamp(14px,.95vw,15px); line-height:1.6; color:#444; margin:0;}
.hp-note{
  max-width:640px; margin:clamp(30px,3.2vw,48px) auto 0; text-align:center;
  font-size:clamp(15px,1vw,16px); line-height:1.7; font-style:italic; color:var(--forest);
}

/* ==========================================================================
   6. Closing band
   ========================================================================== */
.hp-cta{
  background:var(--forest) url(../images/bg-map-dark.jpg) center / cover no-repeat;
  color:#fff; text-align:center; padding:clamp(84px,9vw,140px) 0;
}
.hp-cta__mark{display:block; width:clamp(64px,5.5vw,86px); height:auto; margin:0 auto 26px;}
.hp-cta__title{
  font-family:'Barlow Condensed',sans-serif; font-weight:900; text-transform:uppercase;
  font-size:clamp(38px,4.4vw,68px); line-height:.98; color:#fff; max-width:920px; margin:0 auto 20px;
}
.hp-cta__title span{display:block; color:var(--sun);}
.hp-cta__sub{font-size:clamp(16px,1.2vw,19px); line-height:1.6; color:rgba(255,255,255,.88); max-width:560px; margin:0 auto 34px;}
.hp-cta .hp-actions{justify-content:center; margin:0;}

/* ==========================================================================
   Template overrides - tablet and desktop only (mobile.css owns phones)
   ========================================================================== */
@media only screen and (min-width:768px){
  /* header: the network lockup is wider than the city lockups */
  .top-left{width:var(--logo-w);}
  .top-right{width:calc(100% - var(--logo-w));}
  .top-left .cc-logo{width:100%;}

  /* readable type where the template drops into single-digit px */
  .phead01{font-size:clamp(28px,2.8vw,44px); line-height:1.12;}
  .block-right{font-size:clamp(16px,1.3vw,20px); line-height:1.65;}
  .block-right p{margin:0 0 18px;}

  .footer-left li{font-size:clamp(11px,.8vw,13px); line-height:2.1;}
  .footer-right{font-size:clamp(12px,.9vw,14px); line-height:1.7;}
  .footer-social li{font-size:clamp(16px,1.3vw,20px) !important;}
  .copyright{font-size:clamp(10px,.62vw,12px); padding:18px 0;}
}
@media only screen and (min-width:769px){
  nav a{font-size:clamp(11px,.85vw,13px);}
}

/* ---------- tablet ---------- */
@media only screen and (min-width:768px) and (max-width:1199px){
  .footer-left{width:54%; margin:0 10% 0 0;}
  .footer-right{width:36%;}
}
@media only screen and (max-width:1100px){
  .hp-help-grid{grid-template-columns:repeat(3,1fr); row-gap:40px;}
}
@media only screen and (max-width:1023px){
  .hp-why__grid{grid-template-columns:1fr;}
  .hp-why__art{max-width:640px; margin:0 auto;}
  .hp-trust-grid{grid-template-columns:repeat(2,1fr);}
}

/* ---------- phones ---------- */
@media only screen and (max-width:767px){
  :root{--wrap:86%;}
  .top-left{width:44%;}
  .hp-intro{padding-bottom:var(--sec);}
  .hp-actions{flex-direction:column; align-items:stretch; gap:6px;}
  .hp-actions .hp-btn{width:100%; padding:19px 20px;}
  .hp-actions .hp-link{justify-content:center;}
  .hp-head{margin-bottom:32px;}
  .hp-city{flex-basis:100%;}
  .hp-city:hover{transform:none;}
  .hp-city__body{padding:22px 22px 24px;}
  .hp-help-grid{grid-template-columns:repeat(2,1fr); gap:34px 18px;}
  .hp-trust-grid{grid-template-columns:1fr;}
  .hp-more span{border-radius:14px;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .hp-city, .hp-city:after, .hp-city__art img, .hp-arrow, .hp-help img, .hp-btn, .hp-link{transition:none !important;}
  .hp-city:hover, .hp-help:hover img, .hp-city:hover .hp-city__art img{transform:none;}
}
