/* =========================================================
   Page CSS: Home
   Canonical: /
   Purpose: move inline styles into a small, predictable layer
   ========================================================= */

/* --- Hero 1 --- */
.home-hero{
  background-image:url("https://www.aliwatersassociates.co.uk/images/frontpage/SuccessfulInterviews.webp");
  background-size:cover;
  background-position:top;
  text-align:center;
  position:relative;
  padding:30px 0;
}

/* keep the legacy feel of “65vh”, but let site.css clamp do the safety */
.home-hero{
  min-height:65vh;
}

/* anchored CTA row near bottom (old design) */
.home-hero__ctaRow{
  position:absolute;
  left:0;
  right:0;
  bottom:22px;
  display:flex;
  gap:18px;
  justify-content:center;
  padding:0 16px;
  z-index:20000;
}

.home-hero__ctaBtn{
  letter-spacing:0.1em;
  width:250px;
  font-size:16px;
  margin-top:0; /* anchors shouldn't inherit button spacing assumptions */
}
.home-hero__ctaBtn--alt{
  color:#98F03E;
  background:#35258D;
}

/* stack CTA buttons on small screens */
@media (max-width: 767px){
  .home-hero__ctaRow{
    flex-direction:column;
    align-items:center;
    gap:12px;
    bottom:16px;
  }
  .home-hero__ctaBtn{ width: min(280px, 100%); }
}

/* --- Intro section --- */
.home-intro{ padding:30px 0 60px 0; }
.home-intro__figure{ margin:0; text-align:center; }
.home-intro__cta{ text-align:center; }

/* retain legacy image size intent */
.ImageSize{ max-width:250px; height:auto; padding-top:100px; }
@media (max-width: 767px){
  .ImageSize{ padding-top:30px; }
}

/* --- Split panels (background boards) --- */
.home-splitCards .col-6aFS{ padding:0; }

.home-splitCards__panel{
  background-size:cover;
  background-position:top;
  padding:0 10px;
}
.home-splitCards__panel--candidates{
  background-image:url("https://www.aliwatersassociates.co.uk/images/frontpage/InterviewCoachingBoard1.jpg");
}
.home-splitCards__panel--managers{
  background-image:url("https://www.aliwatersassociates.co.uk/images/frontpage/InterviewerTrainingBoard1.jpg");
}

.home-splitCards__title{
  text-align:center;
  padding-top:60px;
}
.home-splitCards__copy{
  margin:0 auto 10px auto;
  max-width:400px;
  text-align:center;
}
.home-splitCards__cta{
  text-align:center;
  margin-bottom:60px;
}
.home-splitCards__btnAlt{
  background:#35258D;
  color:#98F03E;
}

/* --- Compare cards --- */
.home-compare{ padding:90px 0 30px 0; }
.home-compare__card{
  border-radius:25px;
  padding:10px;
  border:5px solid transparent;
}
.home-compare__card--green{ border-color:#98F03E; }
.home-compare__card--purple{ border-color:#35258D; }

.home-compare__title{ text-align:center; }
.home-compare__subtitle{
  margin:0 auto 10px auto;
  max-width:400px;
  text-align:center;
}

.home-compare__list{ margin:0; padding-left:20px; }
.home-compare__list li{ margin:0 0 6px 0; text-align:left; }
.home-compare__list--green li{ color:#98F03E; }
.home-compare__list--purple li{ color:#35258D; }
.home-compare__list li span{ color:#000; }

.home-compare__cta{
  text-align:center;
  margin:20px 0 60px 0;
}
.home-compare__btnAlt{
  background:#35258D;
  color:#98F03E;
}

/* prevent global button rules from adding top margin to anchor CTAs */
.home-compare a.book1.book2{ margin-top:0; }

/* --- Mid hero: Interviewer training --- */
.home-training-hero{
  background-image:url("https://www.aliwatersassociates.co.uk/images/InterviewerTraining/InterviewerTrainingH.jpg");
  background-size:cover;
  background-position:center;
  text-align:center;
  min-height:65vh;
  position:relative;
  padding:30px 0;
}

/* --- Reviews --- */
.home-reviews{ padding:0 0 90px 0; }
.home-reviews__title{ text-align:center; }
.home-reviews__iconWrap{
  margin:0 auto;
  text-align:center;
  max-width:55px;
}
.home-reviews__icon{ width:100%; height:auto; }
.home-reviews__quote{ font-style:italic; }
.home-reviews__cta{ text-align:center; }
.home-reviews__btnAlt{ background:#35258D; color:#98F03E; }

/* --- Bottom hero: Coaching --- */
.home-coaching-hero{
  background-image:url("https://www.aliwatersassociates.co.uk/images/InterviewCoaching/InterviewCoachingTeam.jpg");
  background-size:cover;
  background-position:left;
  text-align:center;
  min-height:65vh;
  position:relative;
  padding:30px 0;
}

/* --- Logos cards --- */
.home-logos__inner{ padding-top:60px; }
.home-logos__card{
  padding:10px;
  border-radius:25px;
  border:5px solid transparent;
}
.home-logos__card--green{ border-color:#98F03E; }
.home-logos__card--purple{ border-color:#35258D; }

.home-logos__title{ text-align:center; }
.home-logos__imgWrap{ margin:0 auto; text-align:center; max-width:100%; }
.home-logos__img{ width:100%; height:auto; }

/* --- Typography helper (site.css defines .four but not always .four1) --- */
.four1{ font-size:25px; }
@media screen and (max-width:471px){
  .four1{ font-size:20px; }
}
/* --- Legacy column aliases for home page (so sections become 2-col again) --- */
.col-6aF,
.col-6aFS,
.col-6aFSA{
  float:left;
  width:50%;
  padding:0px 15px;
}

@media screen and (max-width:767px){
  .col-6aF,
  .col-6aFS,
  .col-6aFSA{
    float:none;
    width:100%;
    padding:0px;
  }
}
/* =========================================================
   Home: equal-height 2-col rows + aligned CTAs
   Works with existing float markup (no HTML changes required)
   ========================================================= */

/* Turn common 2-col containers into flex rows */
.home-splitCards .centriclaptop,
.home-compare .centriclaptop,
.home-reviews .centriclaptop,
.home-logos__inner.centriclaptop,
.home-intro .centriclaptop{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch; /* equal height columns */
}

/* Make the “columns” behave as flex children (override float behaviour) */
.home-splitCards .col-6aFS,
.home-compare .col-6aFSA,
.home-reviews .col-6aFS,
.home-logos__inner .col-6aFS,
.home-intro .col-6aF{
  float:none;              /* disable float inside flex row */
  display:flex;            /* allow vertical alignment inside */
  flex-direction:column;   /* stack content */
  width:50%;
  padding:0px 15px;
}

/* Stack on mobile */
@media (max-width:767px){
  .home-splitCards .col-6aFS,
  .home-compare .col-6aFSA,
  .home-reviews .col-6aFS,
  .home-logos__inner .col-6aFS,
  .home-intro .col-6aF{
    width:100%;
    padding:0px;
  }
}

/* Equal-height panels/cards inside each column */
.home-splitCards__panel,
.home-compare__card,
.home-reviews__card,
.home-logos__card{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Pin CTA areas to bottom + ensure bottom breathing room */
.home-splitCards__cta,
.home-compare__cta,
.home-reviews__cta{
  margin-top:auto;         /* pushes CTA area to bottom */
  padding-bottom:24px;     /* prevents button sitting on edge */
}

/* Safety: if a card has an inline “margin-bottom:60px” on a button wrapper,
   keep it but still guarantee bottom padding */
.home-compare__card,
.home-splitCards__panel,
.home-reviews__card{
  padding-bottom:18px;
}

/* Reviews columns: if your markup doesn't yet have .home-reviews__card,
   apply the same behaviour to the immediate inner div */
.home-reviews .col-6aFS > div{
  display:flex;
  flex-direction:column;
  height:100%;
}
/* --- Fix: reviews CTA should not stretch --- */
.home-reviews .col-6aFS > div{
  padding-bottom:24px;
width:auto;            /* breathing room under button */
}

.home-reviews .col-6aFS > div > a{
  display:inline-block;          /* stop full-width anchor */             /* don't pad the link */
  margin-top:auto;               /* keep it pinned to bottom */
}

.home-reviews .col-6aFS > div > a .book2,
.home-reviews .col-6aFS > div > a.book2{
  width:auto;                    /* ensure it doesn't expand */
}
/* --- Fix: more spacing between top hero CTAs --- */
.home-hero__ctaRow{
  gap:80px;          /* was 18px */
}
/* --- Reviews CTA: sized to content, centred --- */
.home-reviews .col-6aFS > div{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.home-reviews a.book2{
  display:inline-flex;
  width:auto;
  align-self:center;
  padding:5px 32px;
  white-space:nowrap;
}

@media (max-width:471px){
  .home-hero__ctaRow{
    gap:16px;        /* keep mobile tighter */
  }
}
/* --- Home hero CTA: keep at bottom on mobile without overlapping text --- */
@media (max-width: 767px){
  .home-hero{
    /* Reserve space for stacked CTAs */
    padding-bottom: 170px;
    /* Optional: a touch more breathing room on small screens */
    min-height: 520px;
  }

  .home-hero__ctaRow{
    flex-direction: column;
    gap: 14px;
    bottom: 18px;
  }

  .home-hero__ctaBtn{
    width: min(320px, 90vw);
    justify-content: center;
  }
}
