/* ================================================================
   HOMEPAGE — homepage.css
   Styles for all Fosters Solicitors homepage sections.
   Depends on: style.css (design tokens as CSS custom properties)
   ================================================================ */

/* ----------------------------------------------------------------
   LAYOUT PRIMITIVES
   ---------------------------------------------------------------- */

.hp-main {
  overflow-x: hidden;
  background: #fff;
}

/* --site-px token and .site-container are defined globally in style.css.
   Declarations below are intentionally removed — style.css takes precedence. */

/* Standard section: uses the responsive px, capped at 1440px */
.hp-section {
  padding: 40px var(--site-px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* Card-wrapper sections: vertical rhythm only — no horizontal padding.
   Cards that need side inset (e.g. hp-category) carry their own margin. */
.hp-section--card {
  max-width: 100%;
  padding: 40px;
}

/* Extra top padding variant */
.hp-section--pt-lg {
  padding-top: 80px;
}

/* ----------------------------------------------------------------
   SHARED UTILITIES
   ---------------------------------------------------------------- */

.hp-teal    { color: #4FBEBE; }
.hp-primary { color: var(--color-primary, #071D49); }

/* Eyebrow pill */
.hp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: var(--fs-overhead);
  font-weight: var(--fw-overhead);
  line-height: var(--lh-overhead);
  letter-spacing: var(--ls-overhead);
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
}
.hp-pill--teal {
  background: #4FBEBE;
  color: #071D49;
}

/* Buttons */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-action);
  font-weight: var(--fw-action);
  line-height: var(--lh-action);
  letter-spacing: var(--ls-action);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  justify-content: center;
}
.hp-btn--primary {
  background: #071D49;
  color: #fff;
}
.hp-btn--primary:hover,
.hp-btn--primary:focus {
  background: #103683;
  color: #fff;
}
.hp-btn--ghost {
  background: #E8EDF6;
  color: #1E153D;
}
.hp-btn--ghost:hover,
.hp-btn--ghost:focus {
  background: #d4ddf0;
  color: #1E153D;
}
.hp-btn--light-outline {
  background: #E8EDF6;
  color: #1E153D;
}
.hp-btn--light-outline:hover,
.hp-btn--light-outline:focus {
  background: #fff;
  color: #1E153D;
}


/* ----------------------------------------------------------------
   S1: HERO (shortcode handles all styling)
   ---------------------------------------------------------------- */

.hp-hero {
  position: relative;
}


/* ----------------------------------------------------------------
   S2: CATEGORY BOXES / WILLIAM SEARCH
   ---------------------------------------------------------------- */

.hp-category {
  background: #E8EDF6;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 10;
    position: relative;
    max-width: 1440px;
    margin: -200px auto 0;
}

.hp-category-boxes {
  padding: 0 var(--site-px) var(--site-py-flush);
  max-width: 1440px;
}

/* Header: heading + search bar centered */
.hp-category__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hp-category__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: #1E153D;
  text-align: center;
  margin: 0;
}

.hp-category__subtext {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: #1E153D;
  text-align: center;
  max-width: 645px;
  margin: 0;
}

/* William Search Bar — [fosters_enquiry_input] plugin overrides */
.hp-category .fosters-enquiry-input-wrapper {
  width: 100%;
  max-width: 727px;
  position: relative;
  border-radius: 999px;
  box-shadow: -6px 0 30px 0 rgba(79, 190, 190, 0.5), 6px 0 30px 0 rgba(77, 78, 185, 0.5);
  box-sizing: border-box;
}

.hp-category .fosters-enquiry-input-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 250, 250, 0.8);
  border-radius: 999px;
  padding: 4px;
  gap: 8px;
}

.hp-category .fosters-enquiry-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.hp-category .fosters-enquiry-input-field {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(20, 24, 31, 0.6);
  outline: none;
  min-width: 0;
  padding: 0;
  box-shadow: none;
}
.hp-category .fosters-enquiry-input-field::placeholder {
  color: rgba(20, 24, 31, 0.6);
}

.hp-category .fosters-enquiry-input-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #4FBEBE;
  border: 1px solid #34BFBF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #1E153D;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.3s ease;
  margin: 2px;
}
.hp-category .fosters-enquiry-input-button:hover {
  background: #3aa8a8;
}

/* 3 category hover boxes */
.hp-category__boxes {
  display: flex;
  gap: 24px;
  height: 220px;
}

.hp-cat-box {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.hp-cat-box__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(1.13deg, rgba(7, 29, 73, 0.75) 0.86%, rgba(7, 29, 73, 0) 97.78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.81) 100%);
  border-radius: 12px;
  pointer-events: none;
}

.hp-cat-box__content {
  position: relative;
  z-index: 1;
  padding: 24px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

/* Override venue-content for Fosters brand fonts */
.hp-cat-box .venue-content {
  font-family: var(--font-body);
}

.hp-cat-box .venue-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
}

.hp-cat-box{
  width: 0;
  transition: all 0.5s ease;
  margin: 0;
}

 .hp-cat-box .divider-property {
  border-bottom: 2px solid var(--color-old-pink);
  width: 0;
  transition: all 0.5s ease;
  margin: 0;
 }

 .hp-cat-box .divider-personal {
  border-bottom: 2px solid var(--color-old-green);
  width: 0;
  transition: all 0.5s ease;
  margin: 0;
 }

 .hp-cat-box .divider-business {
  border-bottom: 2px solid var(--color-old-blue);
  width: 0;
  transition: all 0.5s ease;
  margin: 0;
 }

.hp-cat-box:hover .divider-property,
.hp-cat-box:focus .divider-property,

.hp-cat-box:hover .divider-personal,
.hp-cat-box:focus .divider-personal,

.hp-cat-box:hover .divider-business,
.hp-cat-box:focus .divider-business
{
  width: 50%;
  margin: 8px 0;
}

.hp-cat-box .venue-desc-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  color: #fff;
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  width: 80%;
  margin: 0;
  display: block;
}

.hp-cat-box:hover .venue-desc-text,
.hp-cat-box:focus .venue-desc-text {
  max-height: 5rem;
}


/* ----------------------------------------------------------------
   S3: WHY CHOOSE FOSTERS
   ---------------------------------------------------------------- */

.hp-why {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hp-why__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.hp-why__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: #1E153D;
  margin: 0;
}

.hp-why__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: #1E153D;
  margin: 0;
}

.hp-why__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hp-why__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

/* Feature cards */
.hp-feature-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-1);
}

.hp-feature-card__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-feature-card__icon--navy {
  background: #071D49;
}

.hp-feature-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1E153D;
}

.hp-feature-card__text h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  margin: 0;
}

.hp-feature-card__text p {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-body-s);
  line-height: var(--lh-body-s);
  letter-spacing: var(--ls-body-s);
  margin: 0;
}


/* ----------------------------------------------------------------
   S4: WILLIAM MID-PAGE CTA
   ---------------------------------------------------------------- */

.hp-section--card.william-mid-page-cta {
padding: 40px;
}
.hp-william-cta {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow-2);
  min-height: 381px;
  justify-content: center;
  background-image: url('/wp-content/uploads/2026/05/Frame-1984079008-e1779197160874.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hp-william-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  text-align: center;
}

.hp-william-cta__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: #1E153D;
  margin: 0;
}

.hp-william-cta__sub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 12px;
}

.hp-william-cta__sub h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: #1E153D;
  margin: 0;
}

.hp-william-cta__sub p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: #1E153D;
  margin: 0;
}


/* ----------------------------------------------------------------
   S5: FEATURED PRACTICE AREA + ACCREDITATIONS
   ---------------------------------------------------------------- */


section.hp-featured{
  padding: 40px 0 80px;
}

.hp-featured__upper {
  display: flex;
  align-items: stretch;
  min-height: 533px;
  padding-bottom: var(--site-py-flush);
  /* Full viewport width — image col bleeds to the left edge */
}

/* Left: image col — 50% of viewport, bleeds to the left viewport edge */
.hp-featured__image-col {
  flex: 0 0 50%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border-radius: 0 32px 32px 0; /* rounded on the right side only */
  background-size: cover;
  background-position: center top;
  min-height: 550px;
  aspect-ratio: 16 / 9;
}

.hp-featured__image-spacer {
  flex: 40%;
  background-image: url('/wp-content/uploads/2026/07/Rectangle-29-8.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hp-featured__quote {
  flex: 0 0 50%;
  background: #071D49;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  justify-content: center;
  color: #fff;
  max-width: 602px;
}

.hp-featured__quote h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: #fff;
  margin: 0;
}

.hp-featured__quote p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: #fff;
  margin: 0;
}

/* Right: text col — matching 50%, content padded within its half */
.hp-featured__text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: var(--site-py) var(--site-px);
  justify-content: center;
  max-width: 720px;
}

.hp-featured__text-col h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: #1E153D;
  margin: 0;
}

.hp-featured__text-col p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: #1E153D;
  margin: 0;
}

.hp-featured__text-col a.hp-btn.hp-btn--primary {
    width: fit-content;
}

/* Accreditation cards row */
.hp-featured__accreds {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 40px var(--site-px) 0;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}

.hp-accred-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  flex-grow: 1;
  align-items: center;
  justify-content: flex-start;
  /* Cards render as an <a> when a link is set (page-home.php), plain <div>
     otherwise — reset anchor defaults so a clickable card looks identical
     to a static one, plus a subtle hover affordance. */
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a.hp-accred-card:hover,
a.hp-accred-card:focus-visible {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.hp-accred-card__logo {
  height: 175px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.hp-accred-card__text {
    padding: 0 24px 24px;
}

.hp-accred-card__text h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
  color: #1E153D;
  margin: 0 0 12px;
}

.hp-accred-card__text p {
  font-family: var(--font-body-s);
  font-size: var(--fs-body-s);
  font-weight: var(--fw-body-s);
  line-height: var(--lh-body-s);
  letter-spacing: var(--ls-body-s);
  color: #1E153D;
  margin: 0;
}


/* ----------------------------------------------------------------
   S6a: INSIGHTS CAROUSEL
   ---------------------------------------------------------------- */

.hp-insights-section {
  background: #E8EDF6;
  padding: 80px 0 40px;
}

.hp-insights-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.hp-insights-section__title-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-insights-section__title-group h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: #1E153D;
  margin: 0;
}

.hp-insights-section__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hp-insights-section__arrow {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.hp-insights-section__arrow:hover {
  opacity: 1;
}


/* ----------------------------------------------------------------
   S6b: REVIEWS
   ---------------------------------------------------------------- */

.hp-reviews-section {
  background: #E8EDF6;
  padding: 40px 0 80px;
}

section.hp-reviews-section .carousel-slide {
    background: #ccd6e8;
}

.hp-reviews-section .site-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hp-reviews-section__summary {
  flex: 0 0 305px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-right: 20px;
  text-align: center;
}

/* .hp-reviews-section__label {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: #1E153D;
  margin: 0 0 8px;
}

.hp-reviews-section__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.hp-reviews-section__count {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: #1E153D;
  margin: 0 0 8px;
}

.hp-reviews-section__count a {
  color: #1E153D;
  text-decoration: underline;
}

.hp-reviews-section__powered {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #4D4D4D;
  margin: 4px 0 4px;
} */

/* 3 review cards */
/* .hp-reviews-section__cards {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.hp-review-card {
  flex: 1;
  background: #CCD6E8;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hp-review-card__header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hp-review-card__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hp-review-card__google {
  margin-left: 2px;
}

.hp-review-card__text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #1E153D;
  margin: 0;
  flex: 1;
}

.hp-review-card__meta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #1E153D;
  margin: 0;
}

.hp-review-card__meta strong {
  font-weight: 700;
} */


/* ----------------------------------------------------------------
   S7: CTA DARK BANNER
   ---------------------------------------------------------------- */

.hp-cta-dark {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  min-height: 409px;
  justify-content: center;
  box-shadow: var(--shadow-1);
}

.hp-cta-dark__bg {
  position: absolute;
  inset: 0;
  background: #060F20;
  opacity: 0.89;
  border-radius: 32px;
  pointer-events: none;
}

.hp-cta-dark__glow {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(129.25deg, #4FBEBE 24.4%, #071D49 70%, #1E153D 94%);
  opacity: 0.35;
  filter: blur(37px);
  pointer-events: none;
}

.hp-cta-dark__heading {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: #fff;
  max-width: 808px;
  margin: 0;
}

.hp-cta-dark__body {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: #fff;
  max-width: 628px;
  margin: 0;
}

.hp-cta-dark__btns {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Keep pill above the gradient layers */
.hp-cta-dark > .hp-pill {
  position: relative;
}


/* ----------------------------------------------------------------
   S8: FOOTER
   ---------------------------------------------------------------- */

.hp-footer {
  background: #fff;
}

.hp-footer__upper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  padding: 40px var(--site-px) 80px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.hp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.hp-footer__logo {
  max-width: 287px;
  height: auto;
}

.hp-footer__logo-fallback {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #071D49;
}

.hp-footer__reg {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #071D49;
  margin: 0;
}

.hp-footer__socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.hp-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(7, 29, 73, 0.05);
  border: 1px solid #F4F3F5;
  text-decoration: none;
  transition: background 0.2s ease;
  overflow: hidden;
}

.hp-footer__social:hover {
  background: rgba(7, 29, 73, 0.1);
}

/* Footer navigation columns */
.hp-footer__nav {
  flex: 1;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.hp-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.hp-footer__nav-col h5 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: #071D49;
  margin: 0;
}

.hp-footer__nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-footer__nav-col ul li a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #071D49;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.hp-footer__nav-col ul li a:hover {
  opacity: 1;
}

/* Footer bottom bar — full-bleed bg, inner wrapper constrains content */
.hp-footer__bar {
  background: #E8EDF6;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #0C1B47;
}

.hp-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--site-px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.hp-footer__bar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hp-footer__bar-nav a {
  color: #0C1B47;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hp-footer__bar-nav a:hover {
  opacity: 0.7;
}


/* ================================================================
   RESPONSIVE — LAPTOP (1024 – 1366px)
   ================================================================ */

@media (max-width: 1366px) {

  .hp-why__left  { flex: 0 0 45%; max-width: 45%; }
  .hp-why__right { flex: 0 0 48%; max-width: 48%; }

  .hp-featured__accreds  { padding-left: var(--site-px); padding-right: var(--site-px); }

  .hp-footer__upper { gap: 40px; }
  .hp-footer__nav   { gap: 24px; }
  .hp-footer__nav-col ul li a { font-size: 15px; }
}


/* ================================================================
   RESPONSIVE — TABLET (768 – 1023px)
   ================================================================ */

@media (max-width: 1024px) {

  /* S2 */
  .hp-section--card { padding: 0 0 32px 0; }
  .hp-category { padding: 48px 40px; gap: 24px; margin-left: var(--site-px); margin-right: var(--site-px); margin-top: -170px; }
  .hp-category__boxes { height: auto; flex-direction: column; }
  .hp-cat-box { height: 200px; width: 100%; }
  .hp-cat-box .venue-desc-text { max-height:fit-content; width: 100%;}
  .hp-cat-box .divider-personal,.hp-cat-box .divider-property,.hp-cat-box .divider-business { width: 50%; margin: 8px 0; }

  /* S3 */
  .hp-why { flex-direction: column; gap: 40px; padding: 32px 40px 64px;}
  .hp-why__left, .hp-why__right { flex: none; max-width: 100%; }

  /* S4 */
  .hp-section--card.william-mid-page-cta {padding: 0px;}
  .hp-william-cta { padding: 48px 24px; border-radius: 0; box-shadow: unset; }

  /* S5 */
  section.hp-featured {padding: 64px 0;}
  .hp-featured__upper { flex-direction: column-reverse; padding-bottom: 0;}
  .hp-featured__image-col {
    flex: none;
    width: 100%;
    border-radius: 0;
    min-height: 300px;
  }

  .hp-featured__text-col {
    flex: none;
    width: 100%;
    padding: 0 40px 64px;
    max-width: unset;
  }
  .hp-featured__accreds {
    align-items: stretch;
    padding: 64px 40px 0;
  }
  .hp-accred-card { width: 100%; }

  /* S6a */
  .hp-insights-section__title-group {
    padding-right: var(--site-px);
}

  .hp-insights-section { padding: 64px 0 32px; }
  section.hp-insights-section .site-container {
    padding-right: 0;
}
  div#hp-insights-nav {
    display: none;
}

  /* S6b */
  .hp-reviews-section { padding: 32px 0 64px; }
  .hp-reviews-section .site-container { flex-direction: column; align-items: flex-start; }
  .hp-reviews-section__summary { flex: none; padding-right: 0; align-items: flex-start; text-align: left; }
  .hp-reviews-section__cards { width: 100%; overflow-x: auto; }

  /* S7 */
  .hp-section--card.hp-section--pt-lg {padding: 0;}
  .hp-cta-dark {padding: 40px 64px; border-radius: 0;}
  .hp-cta-dark__bg {border-radius: 0;}

  

  /* Footer */
  .hp-footer__upper { flex-direction: column; gap: 32px; }
  .hp-footer__nav { flex-wrap: wrap; }
  .hp-footer__nav-col { flex: 0 0 calc(50% - 16px); }
  .hp-footer__bar { font-size: 14px; gap: 16px; flex-wrap: wrap; }
}


/* ================================================================
   RESPONSIVE — MOBILE (< 768px)
   ================================================================ */

@media (max-width: 767px) {

  /* Section paddings */
  .hp-section--card { padding-top: 16px; padding-bottom: 16px; padding-left: 0; padding-right: 0; }

  /* S2 */
  section.hp-section.hp-section--card.hp-category-boxes {padding: 0; margin-top: -80px;}
  .hp-category { border-radius: 40px 40px 0 0; width: 100%; margin: 0; padding: 48px 20px;}
  .hp-category__heading { font-size: var(--fs-h2-mob); }
  .hp-category .fosters-enquiry-input-wrapper { max-width: 100%; }
  .hp-category .fosters-enquiry-input-button { padding: 8px 16px; font-size: 14px; }
  .hp-category__boxes { gap: 12px; }
  .hp-cat-box { height: 180px; }
  .hp-cat-box .venue-title { font-size: 28px; }
  

  /* S3 */
  section.hp-section.hp-why { padding: 48px 20px;}
  .hp-why__heading { font-size: var(--fs-h2-mob); }
  .hp-feature-card__icon { width: 32px; height: 32px; padding: 0; }
  .hp-feature-card svg {
    height: 16px;
    width: 16px;
}
  .hp-why__ctas .hp-btn {width: 100%;}

  /* S4 */
  .hp-william-cta { padding: 48px 20px; min-height: auto;}
  .hp-william-cta__heading { font-size: var(--fs-h2-mob); }
  .hp-william-cta__sub h4 {font-size: var(--fs-h4-mob);}
  .hp-william-cta__sub p {font-size: var(--fs-body-mob);}

  /* S5 */
      section.hp-featured {padding: 48px 0;}
  .hp-featured__text-col { padding: 0 20px 48px;}
  .hp-featured__image-col { flex-direction: column; min-height: 220px; aspect-ratio: unset;}
  .hp-featured__image-spacer { flex: 1; min-height: 260px; border-radius: 0 50px 0 0; }
  .hp-featured__text-col a.hp-btn.hp-btn--primary {width: unset;}
  .hp-featured__quote h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2-mob);
    font-weight: var(--fw-h2);
    line-height: 1;
    letter-spacing: 0.64px;
    color: #fff;
    margin: 0;
}
  .hp-featured__quote { flex: none; border-radius: 0; padding: 48px 20px; }
  .hp-featured__quote p {font-size: var(--fs-body-mob);}
  .hp-featured__text-col h2 { font-size: var(--fs-h2-mob); }

  .hp-featured__accreds {padding: 48px 20px 0; flex-direction: column;}

  /* S6a */
  .hp-insights-section { padding: 48px 0 24px; }
  .hp-insights-section__header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .hp-insights-section__title-group h2 { font-size: var(--fs-h2-mob); }

  /* S6b */
  section.hp-reviews-section {padding: 24px 0 48px;}
  .hp-reviews-section__cards { flex-direction: column; }
  .hp-reviews-section__label { font-size: 20px; }

  /* S7 */
  .hp-cta-dark { padding: 48px 20px; min-height: auto; }
  .hp-cta-dark__heading { font-size: var(--fs-h2-mob); }
  .hp-cta-dark__body { font-size: var(--fs-body-mob); }
  .hp-cta-dark__btns { flex-direction: column; }
  
  button.ask-william-btn {align-self: stretch; display: flex; justify-content: center; width: 100%;}
  .gradient-outline-pill.white-text {width: 100%;}

  /* Footer */
  .hp-footer__nav { flex-direction: column; gap: 24px; }
  .hp-footer__nav-col { flex: none; }
  .hp-footer__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hp-footer__reg { font-size: 16px; }
}
