/*
Theme Name: HFG
Version: 1.0
Text Domain: hfg
*/

/* =========================
   Variables
========================= */
:root {
  --orange: #B85730;
  --dark: #261412;
  --tan: #754D3B;
  --cream: #F4EFDD;
  --light: #f9f7ee;
  --font-primary: "Manrope", sans-serif;
  --container: 1240px;
  --radius: 10px;

  --fs-large-intro: 26px;
  --lh-large-intro: 35px;
  --fs-para: 16px;
  --lh-para: 24px;
  --fs-nav: 16px;
  --lh-nav: 24px;
  --fs-small: 12px;
  --lh-small: 18px;
  --fs-h1: 70px;
  --lh-h1: 76px;
  --fs-h2: 60px;
  --lh-h2: 64px;
  --fs-h3: 32px;
  --lh-h3: 38px;
  --fs-h4: 24px;
  --lh-h4: 30px;
}

/* =========================
   Base
========================= */
*,*::before,*::after { box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  color: var(--dark);
  background: var(--light);
  font-family: var(--font-primary);
  font-weight: 400;
  padding-top: 100px;
}

@media (max-width: 900px) {
  body { padding-top: 72px; }
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

p {
  font-size: var(--fs-para);
  line-height: var(--lh-para);
  margin: 0 0 1.25rem;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 400;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 300;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 300;
  margin: 0 0 1rem;
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  margin: 0 0 0.75rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  h1 { font-size: 48px; line-height: 54px; }
  h2 { font-size: 40px; line-height: 46px; }
  h3 { font-size: 26px; line-height: 32px; }
}

.hfg-large-intro {
  font-size: var(--fs-large-intro);
  line-height: var(--lh-large-intro);
}

.hfg-small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

/* =========================
   Container
========================= */
.hfg-container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
	padding-top: 50px;
}

/* =========================
   Colour utilities
========================= */
.is-orange { background: var(--orange); color: var(--cream); }
.is-dark   { background: var(--dark);   color: var(--cream); }
.is-tan    { background: var(--tan);    color: var(--cream); }
.is-cream  { background: var(--cream);  color: var(--dark);  }
.is-light  { background: var(--light);  color: var(--dark);  }

/* =========================
   Buttons
========================= */
.hfg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid rgba(38, 20, 18, 0.4);
  color: var(--dark);
  transition: border-color 0.2s ease;
}

.hfg-btn:hover { border-color: var(--dark); opacity: 1; }

/* Cream button for dark/orange/tan backgrounds */
.is-dark .hfg-btn,
.is-orange .hfg-btn,
.is-tan .hfg-btn {
  color: var(--cream);
  border-color: rgba(244, 239, 221, 0.5);
}

.is-dark .hfg-btn:hover,
.is-orange .hfg-btn:hover,
.is-tan .hfg-btn:hover {
  border-color: var(--cream);
}

/* =========================
   Header
========================= */
.hfg-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--light);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.gc-nav-open .hfg-header {
  background: var(--tan);
  box-shadow: 0 2px 0 var(--light);
}

.hfg-header__logo.has-light-logo {
  position: relative;
  z-index: 9;
}

.hfg-header.scrolled {
  box-shadow: 0 2px 24px rgba(38, 20, 18, 0.1);
}

.hfg-header.scrolled .hfg-header__secondary {
  top: -100px;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
}


.hfg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding 0.3s ease;
}

.hfg-header__logo-link {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.hfg-header__logo-img {
  width: auto;
  max-height: 90px;
  display: block;
  transition: opacity 0.35s ease, max-height 0.3s ease;
}

/* Light logo: absolute overlay (mobile nav, doesn't affect header height) */
.hfg-header__logo-img--light {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

/* Horizontal logo: in normal flow, collapsed until needed */
.hfg-header__logo-img--horizontal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Scrolled: remove primary from flow, fade in horizontal */
.hfg-header.scrolled .has-horizontal-logo .hfg-header__logo-img--primary    { display: none; }
.hfg-header.scrolled .has-horizontal-logo .hfg-header__logo-img--horizontal { max-height: 40px; overflow: visible; opacity: 1; pointer-events: auto; }

/* Scrolled without horizontal logo: shrink primary */
.hfg-header.scrolled .hfg-header__logo-img--primary { max-height: 45px; }

/* Mobile nav open: swap dark → light */
.gc-nav-open .has-light-logo .hfg-header__logo-img--dark  { opacity: 0; pointer-events: none; }
.gc-nav-open .has-light-logo .hfg-header__logo-img--light { opacity: 1; pointer-events: auto; }

.hfg-header__logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.hfg-header__navs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
}

/* Secondary nav */
.hfg-header__secondary {
  display: flex;
  align-items: center;
  position: relative;
  top: 0;
  max-height: 60px;
  overflow: hidden;
  padding-bottom: 5px;
  transition: top 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
}

.hfg-header__secondary-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.hfg-secondary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.hfg-secondary-menu li { position: relative; }

.hfg-secondary-menu a {
  display: block;
  font-size: 12px;
  line-height: var(--lh-small);
  font-weight: 500;
  color: var(--tan);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  background-image: linear-gradient(var(--tan), var(--tan));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}

.hfg-secondary-menu a:hover { background-size: 100% 1px; }
.hfg-secondary-menu li.current-menu-item > a { font-weight: 700; }

/* Search toggle */
.hfg-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 12px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.hfg-search-toggle:hover { opacity: 0.8; }

.hfg-search-toggle svg,
.hfg-search-toggle__icon svg { width: 16px; height: 16px; display: block; }

/* Search icon inherits tan colour from SVG */

/* Desktop search form */
.hfg-header-search { display: none; align-items: center; }

.hfg-header__secondary-inner.is-search-open .hfg-header-search { display: flex; }
.hfg-header__secondary-inner.is-search-open .hfg-secondary-menu { display: none; }

.hfg-header-search input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--fs-para);
  color: var(--dark);
  width: 200px;
  padding: 4px 8px;
}

/* Primary nav */
.hfg-primary-nav { display: flex; }

.hfg-primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0;
  gap: 26px;
  border-top: 1px solid rgba(117, 77, 59, 0.5);
}

.hfg-primary-menu > li { position: relative; }

.hfg-primary-menu > li > a {
  display: block;
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  font-weight: 500;
  color: var(--tan);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  background-image: linear-gradient(var(--tan), var(--tan));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}

.hfg-primary-menu > li > a:hover { background-size: 100% 1px; }
.hfg-primary-menu > li.current-menu-item > a,
.hfg-primary-menu > li.current-menu-ancestor > a { font-weight: 700; }

/* Chevron for items with children */
.hfg-primary-menu .menu-item-has-children > a,
.hfg-secondary-menu .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hfg-primary-menu .menu-item-has-children > a::after,
.hfg-secondary-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex-shrink: 0;
}

.hfg-primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(38,20,18,0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  z-index: 10;
}

.hfg-primary-menu .menu-item-has-children:hover > .sub-menu { display: block; }

.hfg-primary-menu .sub-menu a {
  display: block;
  font-size: var(--fs-nav);
  color: var(--dark);
  text-decoration: none;
  padding: 8px 20px;
  transition: color 0.2s, background 0.2s;
}

.hfg-primary-menu .sub-menu a:hover { color: var(--orange); background: var(--cream); }

/* Mobile controls */
.hfg-header__mobile-controls {
  display: none;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 10;
}

.hfg-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 32px;
}

.hfg-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tan);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease, background 0.3s ease;
}

/* Middle bar is 4px shorter */
.hfg-nav-toggle__bar:nth-child(2) { width: calc(100% - 4px); }

/* Open state — morph to X in cream */
.gc-nav-open .hfg-nav-toggle .hfg-nav-toggle__bar { background: var(--cream); }
.gc-nav-open .hfg-nav-toggle .hfg-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 100%; }
.gc-nav-open .hfg-nav-toggle .hfg-nav-toggle__bar:nth-child(2) { opacity: 0; width: 0; }
.gc-nav-open .hfg-nav-toggle .hfg-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile search icon turns cream when nav open */
.gc-nav-open .hfg-search-toggle--mobile svg path,
.gc-nav-open .hfg-search-toggle--mobile svg circle,
.gc-nav-open .hfg-search-toggle--mobile svg line { stroke: var(--cream); }

/* Mobile search */
.hfg-mobile-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 16px 24px;
  z-index: 99;
}

.gc-mobile-search-open .hfg-mobile-search { display: flex; align-items: center; }

.hfg-mobile-search input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid var(--tan);
  outline: none;
  font-family: var(--font-primary);
  font-size: var(--fs-para);
  color: var(--dark);
  padding: 8px 0;
}

/* Desktop: hide secondary nav duplicate inside mobile nav panel */
.hfg-primary-nav__bottom { display: none; }

@media (max-width: 900px) {
  .hfg-header__mobile-controls { display: none; }
  .hfg-header__secondary { display: none; }
  .hfg-primary-nav__bottom { display: block; }

  .hfg-primary-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--tan);
    z-index: 200;
    overflow-y: auto;
    flex-direction: column;
    padding: 130px 24px 40px;
  }

  .gc-nav-open .hfg-primary-nav { display: flex; z-index: 1; }

  .hfg-primary-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  .hfg-primary-menu > li {
    width: 100%;
    position: relative;
  }

  .hfg-primary-menu > li > a {
    padding: 10px 0;
    font-size: 18px;
    color: var(--cream);
    background-image: none;
  }

  .hfg-primary-menu > li > a:hover,
  .hfg-primary-menu > li.current-menu-item > a,
  .hfg-primary-menu > li.current-menu-ancestor > a {
    color: var(--cream);
  }


  .hfg-primary-menu .sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(38,20,18,0.15);
    padding: 0;
  }

  .hfg-primary-menu .sub-menu a {
    padding: 10px 16px;
    color: var(--cream);
  }

  .hfg-primary-nav__bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(244, 239, 221, 0.3);
  }

  .hfg-secondary-menu--mobile { flex-direction: column; align-items: flex-start; }
  .hfg-secondary-menu--mobile a { font-size: var(--fs-para); padding: 10px 0; color: var(--cream); }

  .hfg-submenu-toggle { display: none; }
}


/* =========================
   Breadcrumbs
========================= */
.site-main { position: relative; }

.hfg-breadcrumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 12px;
  font-size: 12px;
  color: var(--light);
  z-index: 10;
  pointer-events: none;
}

.hfg-breadcrumbs a,
.hfg-breadcrumbs .breadcrumb_last {
  pointer-events: auto;
}

.hfg-breadcrumbs a {
  color: var(--light);
  text-decoration: none;
}

.hfg-breadcrumbs a:hover {
  text-decoration: underline;
}

.hfg-breadcrumbs .breadcrumb_last {
  color: var(--light);
  font-weight: 500;
}

/* =========================
   Banner / Hero
========================= */
.hfg-banner {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background: var(--dark) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hfg-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(38,20,18,0.3) 100%);
}

.hfg-banner__content {
  position: relative;
  z-index: 2;
  padding: 60px 0 48px;
}

.hfg-banner h1 { color: var(--cream); margin: 0; }

/* =========================
   Column Layout
========================= */
.hfg-col-layout { position: relative; }

/* 66/33 — full bleed, edge to edge */
.hfg-col-layout--66-33 .hfg-col-layout__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.hfg-col-layout--66-33 .hfg-col {
  padding-top: 150px;
  padding-bottom: 150px;
}

.hfg-col-layout--66-33 .hfg-col:first-child {
  padding-left: max(32px, calc((100vw - var(--container)) / 2 + 48px));
  padding-right: 60px;
}

.hfg-col-layout--66-33 .hfg-col:last-child {
  padding-left: 48px;
  padding-right: max(32px, calc((100vw - var(--container)) / 2 + 48px));
}

/* Section margin modifiers */
.hfg-col-layout.hfg-padding-none { margin-top: 0; margin-bottom: 0; }

.hfg-col-layout.has-bg-image,
.hfg-col.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hfg-col-layout.hfg-padding-sm   { margin-top: 32px; margin-bottom: 32px; }
.hfg-col-layout.hfg-padding-md   { margin-top: 64px; margin-bottom: 64px; }
.hfg-col-layout.hfg-padding-lg   { margin-top: 96px; margin-bottom: 96px; }

/* 33/66 — inside container */
.hfg-col-layout--33-66 .hfg-col-layout__outer { padding-top: 64px; padding-bottom: 64px; }

.hfg-col-layout--33-66 .hfg-col-layout__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.hfg-col-layout--33-66 .hfg-col { padding: 0; }

/* 40/40 — inside container */
.hfg-col-layout--40-40 .hfg-col-layout__outer { padding-top: 64px; padding-bottom: 64px; }

.hfg-col-layout--40-40 .hfg-col-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hfg-col-layout--40-40 .hfg-col { padding: 0; }

/* 10/30/30/30 — inside container */
.hfg-col-layout--10-30-30-30 .hfg-col-layout__outer { padding-top: 80px; padding-bottom: 80px; }

.hfg-col-layout--10-30-30-30 .hfg-col-layout__grid {
  display: grid;
  grid-template-columns: 1fr 3fr 3fr 3fr;
  gap: 20px;
  align-items: start;
}

.hfg-col-layout--10-30-30-30 .hfg-col { padding: 0; }

/* Vertical alignment — columns stretch to equal height, content aligns within */
.hfg-col-layout__grid.hfg-valign-top    { align-items: stretch; }
.hfg-col-layout__grid.hfg-valign-center { align-items: stretch; }
.hfg-col-layout__grid.hfg-valign-bottom { align-items: stretch; }

.hfg-col-layout__grid.hfg-valign-top    .hfg-col { display: flex; flex-direction: column; justify-content: flex-start; }
.hfg-col-layout__grid.hfg-valign-center .hfg-col { display: flex; flex-direction: column; justify-content: center; }
.hfg-col-layout__grid.hfg-valign-bottom .hfg-col { display: flex; flex-direction: column; justify-content: flex-end; }

/* Section title — shown above columns */
.hfg-col-layout__section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}

.is-orange .hfg-col-layout__section-title,
.is-dark .hfg-col-layout__section-title,
.is-tan .hfg-col-layout__section-title { color: var(--cream); }

/* Column image — full bleed to column edges */
.hfg-col__image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hfg-col-layout--66-33 .hfg-col__image { aspect-ratio: 4/3; margin-bottom: 24px; }
.hfg-col-layout--40-40 .hfg-col__image { aspect-ratio: 1/1; }
.hfg-col-layout--10-30-30-30 .hfg-col__image { aspect-ratio: 3/4; }

/* Column inner (text wrapper, padded) */
.hfg-col__inner {
  padding: 24px 0 32px;
}

.hfg-col-layout--66-33 .hfg-col__inner { padding: 0; }
.hfg-col-layout--10-30-30-30 .hfg-col__inner { padding: 20px 0 0; }

/* Column logo */
.hfg-col__logo {
  max-height: 48px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

/* Column content text */
.hfg-col__content { margin-bottom: 20px; }
.hfg-col__content h2, .hfg-col__content h3 { margin-top: 0; }

/* Column label (e.g. Sustainability) */
.hfg-col__content p:last-child { margin-bottom: 0; }

/* Dark/orange/tan bg: cream text */
.hfg-col.is-orange h1, .hfg-col.is-orange h2, .hfg-col.is-orange h3, .hfg-col.is-orange h4,
.hfg-col.is-dark h1,   .hfg-col.is-dark h2,   .hfg-col.is-dark h3,   .hfg-col.is-dark h4,
.hfg-col.is-tan h1,    .hfg-col.is-tan h2,    .hfg-col.is-tan h3,    .hfg-col.is-tan h4 { color: var(--cream); }

/* 66/33 left col: large intro text */
.hfg-col-layout--66-33 .hfg-col:first-child .hfg-col__content h2 {
  font-size: var(--fs-large-intro);
  line-height: var(--lh-large-intro);
  margin-bottom: 24px;
}

/* Column CTA */
.hfg-col__cta { margin-top: 8px; }

/* Background section for outer (non-bleed) layouts */
.hfg-col-layout--33-66,
.hfg-col-layout--40-40,
.hfg-col-layout--10-30-30-30 {
  background: var(--light);
}

.hfg-col-layout--33-66.is-cream,
.hfg-col-layout--40-40.is-cream,
.hfg-col-layout--10-30-30-30.is-cream { background: var(--cream); }

.hfg-col-layout--33-66.is-orange,
.hfg-col-layout--40-40.is-orange,
.hfg-col-layout--10-30-30-30.is-orange { background: var(--orange); }

.hfg-col-layout--33-66.is-dark,
.hfg-col-layout--40-40.is-dark,
.hfg-col-layout--10-30-30-30.is-dark { background: var(--dark); }

.hfg-col-layout--33-66.is-tan,
.hfg-col-layout--40-40.is-tan,
.hfg-col-layout--10-30-30-30.is-tan { background: var(--tan); }

/* Responsive */
@media (max-width: 900px) {
  .hfg-col-layout--66-33 .hfg-col-layout__grid { grid-template-columns: 1fr; }
  .hfg-col-layout--66-33 .hfg-col { padding: 100px 24px; }
  .hfg-col-layout--66-33 .hfg-col:first-child,
  .hfg-col-layout--66-33 .hfg-col:last-child { padding-left: 24px; padding-right: 24px; }

  .hfg-col-layout--33-66 .hfg-col-layout__grid { grid-template-columns: 1fr; }

  .hfg-col-layout--40-40 .hfg-col-layout__grid { grid-template-columns: 1fr; }
  .hfg-col-layout--40-40 .hfg-col__image { aspect-ratio: 16/9; }

  .hfg-col-layout--10-30-30-30 .hfg-col-layout__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hfg-col-layout--10-30-30-30 .hfg-col:first-child { display: none; }
  .hfg-col-layout--10-30-30-30 .hfg-col:nth-child(2) { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .hfg-col-layout--10-30-30-30 .hfg-col-layout__grid { grid-template-columns: 1fr; }
}

/* =========================
   Stats
========================= */
.hfg-stats {
  overflow: hidden;
}

.hfg-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Vertical alignment */
.hfg-stats-valign-top    .hfg-stats__content-col,
.hfg-stats-valign-top    .hfg-stats__stats-col  { align-self: start; }
.hfg-stats-valign-center .hfg-stats__content-col,
.hfg-stats-valign-center .hfg-stats__stats-col  { align-self: center; }
.hfg-stats-valign-bottom .hfg-stats__content-col,
.hfg-stats-valign-bottom .hfg-stats__stats-col  { align-self: end; }

.hfg-stats__content-col {
  background: var(--light);
  padding: 80px 64px 80px 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  box-shadow: -100vw 0 0 100vw var(--light);
}

.hfg-stats__stats-col {
  background: var(--dark);
  padding: 0;
  box-shadow: 100vw 0 0 100vw var(--dark);
}

.hfg-stats__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  row-gap: 20px;
}

.hfg-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 40px;
  border-bottom: 1px solid rgba(244, 239, 221, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hfg-stats__item.hfg-in-view {
  opacity: 1;
  transform: translateY(0);
}

.hfg-stats__item:nth-last-child(-n+2) {
  border-bottom: none;
}

.hfg-stats__value {
  font-size: var(--fs-h1);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 12px;
  text-align: center;
}

.hfg-stats__desc {
  font-size: var(--fs-para);
  line-height: var(--lh-para);
  color: var(--cream);
  text-align: center;
  max-width: 30ch;
}


.hfg-stats.hfg-padding-sm { margin-top: 32px;  margin-bottom: 32px; }
.hfg-stats.hfg-padding-md { margin-top: 64px;  margin-bottom: 64px; }
.hfg-stats.hfg-padding-lg { margin-top: 96px;  margin-bottom: 96px; }

@media (max-width: 900px) {
  .hfg-stats__grid { grid-template-columns: 1fr; }
  .hfg-stats__content-col { padding: 48px 0; }
  .hfg-stats__item { padding: 32px 24px; }
  .hfg-stats__value { font-size: var(--fs-h2); }
}

/* =========================
   Business Row
========================= */
.hfg-biz-row {
  overflow: hidden;
}

.hfg-biz-row__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  align-items: center;
}

.hfg-biz-row__content {
  background: var(--light);
  box-shadow: -100vw 0 0 100vw var(--light);
  padding: 80px 30% 80px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.hfg-biz-row__logo {
  max-height: 64px;
  width: auto;
  display: block;
}

.hfg-biz-row__bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 800px;
}

.hfg-biz-row__overlay {
  position: absolute;
  width: calc(var(--container) / 3);
  height: 450px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hfg-biz-row__overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hfg-biz-row.hfg-padding-sm { margin-top: 32px;  margin-bottom: 32px; }
.hfg-biz-row.hfg-padding-md { margin-top: 64px;  margin-bottom: 64px; }
.hfg-biz-row.hfg-padding-lg { margin-top: 96px;  margin-bottom: 96px; }

@media (max-width: 900px) {
  .hfg-biz-row__grid { grid-template-columns: 1fr; }
  .hfg-biz-row__content { padding: 48px 24px; }
  .hfg-biz-row__bg { min-height: 300px; }
  .hfg-biz-row__overlay { display: none; }
}

/* =========================
   Careers
========================= */
.hfg-careers {
  overflow: hidden;
  background: var(--light);
}

.hfg-careers__grid {
  --gutter: max(0px, calc((100vw - var(--container)) / 2));
  --col: calc(min(var(--container), 100vw) / 12);
  display: grid;
  grid-template-columns:
    calc(var(--col) * 4)
    1fr
    1fr;
  padding-left: calc(var(--gutter) + 24px);
  align-items: stretch;
}

.hfg-careers__text {
  display: flex;
  align-items: center;
  padding: 60px 48px 60px 0;
}

.hfg-careers__content h1,
.hfg-careers__content h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  margin-bottom: 24px;
}

.hfg-careers__content h3,
.hfg-careers__content h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 600;
  margin-bottom: 12px;
}

.hfg-careers__content p {
  margin-bottom: 16px;
}

.hfg-careers__img-col {
  position: relative;
  overflow: hidden;
}

.hfg-careers__img-col + .hfg-careers__img-col {
  margin-left: 4px;
}

.hfg-careers__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hfg-careers__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.5);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-para);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
  width: fit-content;
}

.hfg-careers__label:hover { background: rgba(0,0,0,.7); }

.hfg-careers__arrow {
  font-size: 20px;
  line-height: 1;
  margin-left: 10px;
}

.hfg-careers.hfg-padding-sm { margin-top: 32px;  margin-bottom: 32px; }
.hfg-careers.hfg-padding-md { margin-top: 64px;  margin-bottom: 64px; }
.hfg-careers.hfg-padding-lg { margin-top: 96px;  margin-bottom: 96px; }

@media (max-width: 900px) {
  .hfg-careers__grid {
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
  }

  .hfg-careers__text {
    grid-column: 1 / -1;
    padding: 40px 24px;
  }
}

@media (max-width: 600px) {
  .hfg-careers__grid { grid-template-columns: 1fr; }
}

/* =========================
   Image Columns
========================= */
.hfg-img-cols {
  overflow: hidden;
}

.hfg-img-cols__grid {
  --gutter: max(0px, calc((100vw - var(--container)) / 2));
  --col5:  calc(var(--gutter) + 24px + var(--container) * 4 / 12);
  --img-w: calc((100vw - var(--col5) - 4px) / 2);
  display: grid;
  grid-template-columns: var(--img-w) var(--img-w);
  padding-left: calc(var(--col5) - var(--img-w) - 20px);
  gap: 20px;
}

.hfg-img-cols__col {
  position: relative;
  overflow: hidden;
  height: 600px;
}

.hfg-img-cols__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hfg-img-cols__link {
  display: block;
  height: 100%;
}

.hfg-img-cols__logo-wrap {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.hfg-img-cols__logo {
  height: 60px;
  width: auto;
  display: block;
}

.hfg-img-cols.hfg-padding-sm { margin-top: 32px;  margin-bottom: 32px; }
.hfg-img-cols.hfg-padding-md { margin-top: 64px;  margin-bottom: 64px; }
.hfg-img-cols.hfg-padding-lg { margin-top: 96px;  margin-bottom: 96px; }

@media (max-width: 900px) {
  .hfg-img-cols__grid {
    grid-template-columns: 1fr 1fr;
    padding-right: 0;
    gap: 10px;
  }

}

@media (max-width: 600px) {
  .hfg-img-cols__grid {
    grid-template-columns: 1fr;
  }
}

/* Offset CTA margin modifiers */
.hfg-offset-cta.hfg-padding-none { margin-top: 0; margin-bottom: 0; }
.hfg-offset-cta.hfg-padding-sm   { margin-top: 32px; margin-bottom: 32px; }
.hfg-offset-cta.hfg-padding-md   { margin-top: 64px; margin-bottom: 64px; }
.hfg-offset-cta.hfg-padding-lg   { margin-top: 96px; margin-bottom: 96px; }

/* =========================
   Offset CTA
========================= */

/*
  Image is absolutely positioned — sits flush with section top,
  stretches to section bottom. Right-col defines the section height.
  Left 40% = image column, right 60% = title + cards.
*/

.hfg-offset-cta {
  background: var(--light);
  position: relative;
  overflow: visible;
}

/* Image: absolute, flush with section top, stretches to section bottom */
.hfg-offset-cta__image-col {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  bottom: 0;
  z-index: 2;
}

.hfg-offset-cta__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right col: pushes right of image, defines section height */
.hfg-offset-cta__right-col {
  margin-left: 40%;
  display: flex;
  flex-direction: column;
}

.hfg-offset-cta__title-wrap {
  padding: 60px 60px 48px;
}

.hfg-offset-cta__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 10ch;
}

/* CTA cards — 3 equal columns filling the right col */
.hfg-offset-cta__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: auto;
  transform: scale(1.1) translateY(50px);
  transform-origin: right;
  z-index: 99;
}

.hfg-offset-cta__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px;
  aspect-ratio: 1;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hfg-offset-cta__card:hover { transform: translateY(-3px); }
.hfg-offset-cta__card:nth-child(3n+1) { background: var(--orange); }
.hfg-offset-cta__card:nth-child(3n+2) { background: var(--dark);   }
.hfg-offset-cta__card:nth-child(3n+3) { background: var(--tan);    }

.hfg-offset-cta__card-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  align-self: flex-end;
}

.hfg-offset-cta__card-title {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  color: var(--cream);
  margin: 0;
  align-self: flex-start;
  max-width: 10ch;
}

@media (max-width: 900px) {
  .hfg-offset-cta__image-col {
    position: relative;
    top: 0;
    width: 100%;
    bottom: auto;
    height: 280px;
  }
  .hfg-offset-cta__image { height: 280px; }
  .hfg-offset-cta__right-col { margin-left: 0; }
  .hfg-offset-cta__title-wrap { padding: 40px 24px 32px; }
  .hfg-offset-cta__cards { grid-template-columns: 1fr; margin-top: 0; gap: 0; transform: none; }
  .hfg-offset-cta__card { aspect-ratio: auto; min-height: 160px; }
  .hfg-offset-cta__card:hover { transform: none; }
}

/* =========================
   Footer
========================= */
.site-footer {
  background: var(--tan);
  color: var(--cream);
  padding: 60px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}

.site-footer__logo {
  max-width: 120px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.site-footer__col h4,
.site-footer__col .widget-title,
.site-footer__col .widgettitle {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col ul li { margin-bottom: 10px; }

.site-footer__col a {
  color: var(--cream);
  text-decoration: none;
  font-size: var(--fs-para);
  line-height: var(--lh-para);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.site-footer__col a:hover { opacity: 1; }

.site-footer__col p {
  font-size: var(--fs-para);
  line-height: var(--lh-para);
  opacity: 0.85;
  margin: 0 0 6px;
  color: var(--cream);
}

.site-footer__bottom {
  border-top: 1px solid rgba(244,239,221,0.2);
  padding: 20px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__legal,
.site-footer__legal p {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--cream);
  opacity: 0.65;
  margin: 0;
}

.site-footer__legal a { color: var(--cream); opacity: 0.65; text-decoration: none; }
.site-footer__legal a:hover { opacity: 1; }

.site-footer__credit {
  font-size: var(--fs-small);
  color: var(--cream);
  opacity: 0.45;
  text-decoration: none;
}

.site-footer__credit:hover { opacity: 0.8; }

.site-footer__social { display: flex; gap: 10px; margin-top: 20px; }
.site-footer__social--bottom { margin-top: 0; }

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(244,239,221,0.3);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.2s;
  opacity: 1;
}

.site-footer__social a:hover { border-color: var(--cream); }

@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer__col:first-child { grid-column: 1/-1; }
}

/* =========================
   Weblink panel — HFG overrides
========================= */
.hfg-col.is-orange .gc-weblink-panel,
.hfg-col.is-dark .gc-weblink-panel,
.hfg-col.is-tan .gc-weblink-panel {
  color: var(--cream) !important;
}

.gc-weblink-panel { padding: 0 !important; border-radius: 0 !important; background: transparent !important; }

.gc-weblink-panel h2 { font-size: var(--fs-small) !important; font-weight: 700 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; margin: 0 0 12px !important; opacity: 0.8; color: var(--cream) !important; }

.gc-weblink-panel__price { font-size: 52px !important; line-height: 1 !important; font-weight: 800 !important; letter-spacing: -0.03em !important; color: var(--cream) !important; margin: 0 0 12px !important; }

.gc-weblink-panel__delta { color: var(--cream) !important; font-size: var(--fs-para) !important; }
.gc-weblink-panel__delta.is-up .gc-weblink-panel__tri { border-bottom-color: var(--cream) !important; }
.gc-weblink-panel__delta.is-down .gc-weblink-panel__tri { border-top-color: var(--cream) !important; }

.gc-weblink-panel__asat { color: var(--cream) !important; opacity: 0.65; font-size: var(--fs-small) !important; margin: 0 0 28px !important; }

.gc-weblink-panel__section-title { font-size: var(--fs-small) !important; font-weight: 700 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; opacity: 0.8; color: var(--cream) !important; margin: 0 0 12px !important; }

.gc-weblink-panel__list { border-top: 1px solid rgba(244,239,221,0.25) !important; }
.gc-weblink-panel__item { border-bottom: 1px solid rgba(244,239,221,0.25) !important; padding: 14px 0 !important; }
.gc-weblink-panel__date { color: var(--cream) !important; opacity: 0.6; font-size: var(--fs-small) !important; }
.gc-weblink-panel__headline { color: var(--cream) !important; font-size: var(--fs-para) !important; font-weight: 600 !important; }

.gc-weblink-panel__btn {
  color: var(--cream) !important;
  border: 1.5px solid rgba(244,239,221,0.5) !important;
  border-radius: var(--radius) !important;
  font-size: var(--fs-small) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  min-width: 0 !important;
  margin-top: 20px !important;
  transition: border-color 0.2s !important;
  width: 100% !important;
  justify-content: center !important;
}

.gc-weblink-panel__btn:hover { border-color: var(--cream) !important; opacity: 1 !important; }

/* =========================
   Scroll animations
========================= */
.hfg-will-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hfg-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Utilities
========================= */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.py-8 { padding-top: 6rem; padding-bottom: 6rem; }
