/* ============================================================
   CAPE OFFICE FURNITURE, Homepage Styles
   Loaded only on index.php via $page_css
   ============================================================ */

/* ---- Scroll Reveal Animations ---------------------------------------- */
.hp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hp-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.hp-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.hp-reveal.is-visible,
.hp-reveal-left.is-visible,
.hp-reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.hp-delay-1 { transition-delay: 0.10s; }
.hp-delay-2 { transition-delay: 0.22s; }
.hp-delay-3 { transition-delay: 0.34s; }
.hp-delay-4 { transition-delay: 0.46s; }
.hp-delay-5 { transition-delay: 0.58s; }

/* ---- Section Typography Components ------------------------------------ */
.hp-section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cof-green);
  margin-bottom: 0.4rem;
}
.hp-section-heading {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--cof-grey) !important;
  text-transform: uppercase !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}
.hp-section-heading span {
  color: var(--cof-green);
}
.hp-title-bar {
  width: 48px;
  height: 3px;
  background: var(--cof-green);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.hp-section-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ---- Shared Buttons --------------------------------------------------- */
.hp-btn-primary {
  display: inline-block;
  background: var(--cof-green);
  color: #000;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.72rem 1.8rem;
  border: 2px solid var(--cof-green);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.hp-btn-primary:hover {
  background: #8fb00d;
  border-color: #8fb00d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(143,176,13,0.45);
  color: #000;
  text-decoration: none;
}
.hp-btn-outline-light {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.72rem 1.8rem;
  border: 2px solid rgba(255,255,255,0.65);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.hp-btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.hp-btn-dark-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.72rem 1.8rem;
  border: 2px solid rgba(255,255,255,0.4);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.hp-btn-dark-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   1. HERO SECTION
   ============================================================ */
#hp-hero {
  position: relative;
  isolation: isolate; /* keep hero z-index layers below the navbar dropdowns */
  background: #111;
  overflow: hidden;
}

/* Desktop carousel */
.hp-hero-desktop {
  position: relative;
}
#heroCarousel .carousel-item {
  overflow: hidden;
  max-height: 500px;
}
#heroCarousel .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: brightness(0.58);
  transform: scale(1);
  transition: transform 7s ease-out;
  display: block;
}
#heroCarousel .carousel-item.active img {
  transform: scale(1.06);
}
/* Override master.css carousel control positions for hero only */
#heroCarousel .carousel-control-prev {
  left: 0 !important;
}
#heroCarousel .carousel-control-next {
  right: 0 !important;
}
.hp-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
}
.hp-hero-overlay > * { pointer-events: auto; }

.hp-hero-tag {
  display: inline-block;
  background: var(--cof-green);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.5;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  margin: 0 0 1.25rem;
  animation: hp-fadeDown 0.6s ease 0.4s both;
}
.hp-hero-title {
  font-size: clamp(1.65rem, 3.5vw, 2.85rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
  text-transform: none !important;
  animation: hp-fadeDown 0.6s ease 0.6s both;
}
.hp-hero-title span { color: var(--cof-green); }
.hp-hero-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem;
  padding: 0;
  font-weight: 300;
  line-height: 1.5;
  text-transform: none;
  max-width: 560px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
  animation: hp-fadeDown 0.6s ease 0.8s both;
}
.hp-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: hp-fadeDown 0.6s ease 1.0s both;
}

/* Mobile hero: tall image with the caption set low over a dark fade */
.hp-hero-mobile {
  position: relative;
  background: #111;
  overflow: hidden;
}
.hp-hero-mobile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  display: block;
}
.hp-hero-mobile-overlay {
  position: relative;
  min-height: clamp(440px, 70vh, 600px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 3rem 1.5rem 2.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.1) 100%);
}
.hp-hero-mobile-overlay .hp-hero-tag { font-size: 0.6rem; letter-spacing: 2px; margin-bottom: 1rem; }
.hp-hero-mobile-overlay .hp-hero-title { font-size: 2rem !important; line-height: 1.15 !important; margin-bottom: 0.85rem !important; }
.hp-hero-mobile-overlay .hp-hero-subtitle { display: block; font-size: 0.95rem; margin-bottom: 1.6rem; }
.hp-hero-mobile-overlay .hp-hero-actions {
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 0.7rem;
}
.hp-hero-mobile-overlay .hp-hero-actions a { text-align: center; padding: 0.9rem 1rem; }

@keyframes hp-fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   2. VALUE PROPS
   ============================================================ */
#hp-value-props {
  background: #fff;
  padding: 0;
  border-bottom: 3px solid #f2f2f2;
}
#hp-value-props .row { margin: 0; }
.hp-value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid #eee;
  transition: background 0.3s, transform 0.3s;
}
.hp-value-card:last-child { border-right: none; }
.hp-value-card:hover { background: #fafff0; transform: translateY(-4px); }
.hp-value-icon {
  width: 68px;
  height: 68px;
  background: var(--cof-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.35s, box-shadow 0.35s;
}
.hp-value-card:hover .hp-value-icon {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 8px 22px rgba(165,199,17,0.4);
}
.hp-value-icon i { font-size: 1.4rem; color: #fff; }
.hp-value-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cof-grey);
  margin: 0 0 0.4rem;
}
.hp-value-desc { font-size: 0.84rem; color: #888; margin: 0; line-height: 1.55; }

/* ============================================================
   3. STATS BAR
   ============================================================ */
#hp-stats {
  background: #2b2b2b;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
#hp-stats::before {
  content: '';
  position: absolute;
  top: -50%; left: -5%;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,199,17,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hp-stat { text-align: center; padding: 0.5rem 0.25rem; }
.hp-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cof-green);
  line-height: 1;
  display: block;
}
.hp-stat-suffix { font-size: 1.4rem; }
.hp-stat-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 0.4rem;
  display: block;
}

/* ============================================================
   4. PRODUCT CATALOGUE
   ============================================================ */
#hp-products {
  padding: 4rem 1.5rem;
  background: #f7f8f4;
}
.hp-product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.hp-product-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
}
.hp-product-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  background: #eff6d8;
  transition: background 0.3s;
}
.hp-product-card:hover .hp-product-icon-wrap { background: #e2f0a8; }
.hp-product-icon-wrap img {
  width: 85px;
  height: 85px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.hp-product-card:hover .hp-product-icon-wrap img { transform: scale(1.1); }
.hp-product-body { padding: 1.25rem; flex: 1; }
.hp-product-body h4 {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--cof-grey) !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
.hp-product-body h4 span { color: var(--cof-green); }
.hp-product-body p { font-size: 0.82rem; color: #777; margin: 0; line-height: 1.55; }
.hp-product-footer {
  padding: 0.8rem 1.25rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.hp-product-footer a {
  color: var(--cof-green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.hp-product-footer a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hp-product-footer a:hover { color: #7a9900; text-decoration: none; }
.hp-product-footer a i { font-size: 0.7rem; transition: transform 0.2s; }
.hp-product-footer a:hover i { transform: translateX(5px); }
.hp-catalogue-cta { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   5. ABOUT / CONTENT
   ============================================================ */
/* Outline button for light backgrounds */
.hp-btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--cof-grey);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.72rem 1.8rem;
  border: 2px solid #d2d6c4;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.hp-btn-outline-dark:hover {
  background: var(--cof-grey);
  border-color: var(--cof-grey);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}


/* ============================================================
   6. SERVICES
   ============================================================ */

/* ============================================================
   7. KEY CLIENTS
   ============================================================ */
#hp-clients {
  padding: 3.5rem 0 4rem;
  background: #fff;
  overflow: hidden;
}
.hp-clients-header { padding: 0 1.5rem; margin-bottom: 2.5rem; }
.hp-clients-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  padding: 0.75rem 0;
}
.hp-clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hp-marquee 40s linear infinite;
}
.hp-clients-track:hover { animation-play-state: paused; }
@keyframes hp-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hp-client-item { padding: 0.5rem 1.75rem; flex-shrink: 0; }
.hp-client-logo {
  width: 210px;
  height: 82px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.67rem;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  padding: 0 0.5rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: default;
  line-height: 1.3;
}
.hp-client-logo:hover {
  transform: translateY(-2px);
}
.hp-client-logo img {
  max-width: 190px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.hp-client-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.04);
}
.hp-clients-note {
  text-align: center;
  font-size: 0.78rem;
  color: #bbb;
  margin-top: 1.75rem;
  padding: 0 1.5rem;
  font-style: italic;
}

@media (max-width: 767.98px) {
  .hp-client-item {
    padding: 0.35rem 0.65rem;
  }

  .hp-client-logo {
    width: 140px;
    height: 64px;
    padding: 0 0.25rem;
  }

  .hp-client-logo img {
    max-width: 128px;
    max-height: 52px;
  }
}

/* ============================================================
   8. CTA BANNER
   ============================================================ */
#hp-cta {
  background: #232323;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
#hp-cta::before {
  content: '';
  position: absolute;
  top: -35%; right: -6%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,199,17,0.13) 0%, transparent 70%);
  pointer-events: none;
}
#hp-cta::after {
  content: '';
  position: absolute;
  bottom: -45%; left: -5%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,199,17,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hp-cta-inner { position: relative; z-index: 1; }
.hp-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}
.hp-cta-title span { color: var(--cof-green); }
.hp-cta-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.25rem;
  font-weight: 300;
}
.hp-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}
.hp-cta-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.hp-cta-info-item { display: flex; align-items: center; gap: 0.45rem; }
.hp-cta-info-item i { color: var(--cof-green); font-size: 0.9rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  #heroCarousel .carousel-item img { height: 400px; }
  .hp-value-card { border-right: none; border-bottom: 1px solid #eee; }
  .hp-value-card:last-child { border-bottom: none; }
}
@media (max-width: 767px) {
  #heroCarousel .carousel-item img { height: 380px; }
  .hp-hero-subtitle { display: none; }
  #hp-products, #hp-cta { padding: 2.75rem 1rem; }
  #hp-stats { padding: 2rem 0.5rem; }
  .hp-stat-number { font-size: 2rem; }
  .hp-cta-info { gap: 0.85rem; }
  .hp-section-heading { font-size: 1.45rem !important; }
}
@media (max-width: 575px) {
  .hp-hero-title { font-size: 1.35rem !important; }
  .hp-hero-actions { flex-direction: column; align-items: center; }
  .hp-stat-number { font-size: 1.75rem; }
  .hp-stat-label { letter-spacing: 1.5px; }
}

/* ============================================================
   SHOWROOM GALLERY
   ============================================================ */
#hp-gallery {
  background: #1a1a1a;
}
.hp-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: 420px;
}
.hp-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}
.hp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1),
              filter 0.55s ease;
  filter: brightness(0.72);
}
.hp-gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.5);
}
.hp-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.hp-gallery-item:hover .hp-gallery-caption {
  transform: translateY(0);
}
.hp-gallery-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cof-green);
  margin-bottom: 0.4rem;
}
.hp-gallery-caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  line-height: 1.25;
}
/* Description takes no space until hover, so every title sits at the same
   height; on hover it opens and pushes the tag and title up. */
.hp-gallery-caption p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.35s ease 0.05s;
}
.hp-gallery-item:hover .hp-gallery-caption p {
  max-height: 6em;
  margin-top: 0.35rem;
  opacity: 1;
}
.hp-gallery-showroom {
  border-left: 3px solid #1a1a1a;
  border-right: 3px solid #1a1a1a;
}
/* Near-square photo in a wide tile: bias the crop up so the desk cluster sits above the caption */
.hp-gallery-showroom img { object-position: 50% 38%; }
@media (max-width: 991px) {
  .hp-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px;
  }
  /* Two small tiles side by side on top, wide showroom tile below */
  .hp-gallery-showroom {
    order: 1;
    grid-column: 1 / -1;
    border-left: none;
    border-right: none;
    border-top: 3px solid #1a1a1a;
  }
}
@media (max-width: 575px) {
  .hp-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 240px 240px;
  }
  .hp-gallery-showroom {
    order: 0;
    grid-column: auto;
    border: none;
    border-top: 3px solid #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
  }
  .hp-gallery-caption strong { font-size: 0.9rem; }
}

/* ============================================================
   10. STAT BAR ICONS (polish)
   ============================================================ */
#hp-stats { border-top: 3px solid var(--cof-green); }
.hp-stat-icon {
  display: block;
  font-size: 1.15rem;
  color: rgba(165,199,17,0.85);
  margin-bottom: 0.6rem;
}
/* Word-based stat (e.g. "In-House") keeps the same size as the numeric tiles */
.hp-stat-number--word { white-space: nowrap; }

/* ============================================================
   12. FLOATING QUICK-CONTACT (mobile-first conversion)
   ============================================================ */
.hp-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.hp-fab-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 48px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.hp-fab-action i { font-size: 1rem; }
.hp-fab-action:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }
.hp-fab-call { background: var(--cof-grey); }
.hp-fab-call:hover { background: #1f1f1f; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.hp-fab-quote { background: var(--cof-green); color: #000; }
.hp-fab-quote:hover { background: #8fb00d; box-shadow: 0 12px 30px rgba(143,176,13,0.5); color: #000; }
/* On very small screens show compact icon-only call, keep quote labelled */
@media (max-width: 575px) {
  .hp-fab-call .hp-fab-label { display: none; }
  .hp-fab-call { padding: 0; width: 48px; justify-content: center; }
}
/* Call button hidden for now; delete this rule to bring it back */
.hp-fab-call { display: none !important; }

/* ============================================================
   13. ACCESSIBILITY, focus + reduced motion
   ============================================================ */
.hp-btn-primary:focus-visible,
.hp-btn-outline-light:focus-visible,
.hp-btn-dark-outline:focus-visible,
.hp-fab-action:focus-visible,
.hp-product-footer a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.hp-btn-primary:focus-visible { outline-color: var(--cof-grey); }

@media (prefers-reduced-motion: reduce) {
  .hp-reveal,
  .hp-reveal-left,
  .hp-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  #heroCarousel .carousel-item img,
  #heroCarousel .carousel-item.active img {
    transition: none !important;
    transform: none !important;
  }
  .hp-clients-track { animation: none !important; }
  .hp-hero-tag,
  .hp-hero-title,
  .hp-hero-subtitle,
  .hp-hero-actions { animation: none !important; }
  .hp-cat2-card,
  .hp-cat2-media img { transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   14. PRODUCT CATALOGUE — REDESIGN MOCKUP (#hp-products-v2)
   Image-forward, premium, neutral palette with green only as accent.
   ============================================================ */
#hp-products-v2 {
  padding: 4.75rem 1.5rem 5rem;
  background:
    radial-gradient(140% 100% at 50% -10%, #fbfbfc 0%, #f4f5f7 60%, #eef0f3 100%);
}
.hp-cat2-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cof-green);
  margin-bottom: 0.6rem;
}
.hp-cat2-heading {
  text-align: center;
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  font-weight: 800;
  color: #1f2330;
  letter-spacing: -0.6px;
  margin: 0 0 0.7rem;
}
.hp-cat2-sub {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
  color: #7a7f8a;
  font-size: 0.95rem;
  line-height: 1.65;
}
.hp-cat2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.hp-cat2-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20,22,30,0.04);
  transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.hp-cat2-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px rgba(20,22,30,0.14);
  border-color: #e3e5ea;
  text-decoration: none;
  color: inherit;
}
.hp-cat2-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  padding: 1.4rem;
  border-bottom: 1px solid #f0f0f2;
}
.hp-cat2-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.8,0.25,1);
}
.hp-cat2-card:hover .hp-cat2-media img { transform: scale(1.07); }
.hp-cat2-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.45rem 1.5rem;
}
.hp-cat2-info h4 {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #1f2330 !important;
  letter-spacing: -0.2px !important;
  margin: 0 0 0.45rem !important;
  padding: 0 !important;
  text-transform: none !important;
}
.hp-cat2-info p {
  font-size: 0.85rem;
  color: #7a7f8a;
  line-height: 1.6;
  margin: 0 0 1.15rem;
  flex: 1;
}
.hp-cat2-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cof-grey);
  transition: gap 0.25s ease, color 0.25s ease;
}
.hp-cat2-cta i {
  color: var(--cof-green);
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}
.hp-cat2-card:hover .hp-cat2-cta { color: var(--cof-green); }
.hp-cat2-card:hover .hp-cat2-cta i { transform: translateX(5px); }

@media (max-width: 1199px) {
  .hp-cat2-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 850px) {
  .hp-cat2-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
}
@media (max-width: 480px) {
  #hp-products-v2 { padding: 3rem 1rem 3.25rem; }
  .hp-cat2-grid { gap: 0.75rem; }
  .hp-cat2-sub { margin-bottom: 2rem; }
  .hp-cat2-card { border-radius: 12px; }
  .hp-cat2-media { padding: 0.75rem; }
  .hp-cat2-info { padding: 0.85rem 0.85rem 1rem; }
  /* Title and a green arrow on one row; "View Range" text hidden */
  .hp-cat2-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .hp-cat2-info h4 { font-size: 0.92rem !important; line-height: 1.25 !important; margin: 0 !important; }
  .hp-cat2-info p { display: none; }
  .hp-cat2-cta { font-size: 0; gap: 0; flex-shrink: 0; }
  .hp-cat2-cta i { font-size: 0.8rem; }
}


/* ============================================================
   15. MOBILE HEADER AND FOOTER (homepage only)
   The header and footer markup and base styles are shared with
   the rest of the site (page-header.php, footer.php, master.css),
   so the mobile tidy-up lives here and applies to this page only.
   ============================================================ */
@media (max-width: 619px) {
  /* One slim bar: logo on the left, menu button on the right */
  header {
    justify-content: flex-start;
    height: 64px;
    padding: 0 1rem;
    margin: 0;
    border-bottom: 1px solid #ececef;
  }
  header .logo img {
    height: 44px;
    width: auto;
  }
  #nav .navbar-custom {
    position: relative;
  }
  /* Lift the menu button out of its dark strip into the header bar */
  #nav .navbar-custom .navbar-toggler {
    position: absolute;
    top: -57px;
    right: 0.5rem;
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.35rem;
    color: var(--cof-grey);
  }

  /* Footer: left aligned, two columns; room at the bottom for the Free Quote button */
  footer {
    padding: 2rem 1.25rem 4.5rem;
    font-size: 0.9rem;
  }
  footer > .pt-4 { padding-top: 0 !important; }
  footer .row.ml-5 {
    margin: 0 -0.5rem !important;
    padding: 0 !important;
  }
  footer .row.ml-5 > div {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem 1.5rem !important;
  }
  /* Trading hours lines are too long for half width */
  footer .row.ml-5 > div:nth-child(n+3) {
    flex: 0 0 100%;
    max-width: 100%;
  }
  footer h4 {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: var(--cof-green);
    margin-bottom: 0.6rem;
  }
  footer li { font-size: 0.9rem; line-height: 1.9; }
  footer p { font-size: 0.9rem; padding: 0; line-height: 1.7; margin: 0; }
  footer > .row { margin: 0; }
  footer > .row > div {
    text-align: left !important;
    padding: 1rem 0 0.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.14);
  }
  footer > .row p { font-size: 0.72rem; letter-spacing: 1px; color: #cfcfcf; }
}

/* ============================================================
   16. SERVICES: editorial numbered list (#hp-svcA)
   ============================================================ */
#hp-svcA { position: relative; background: #f6f5f0; padding: 5.5rem 1.5rem; }
.hp-svcA-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start;
}
.hp-svcA-intro { position: sticky; top: 90px; }
.hp-svcA-intro h3 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem) !important; font-weight: 800 !important;
  line-height: 1.02 !important; letter-spacing: -1.5px !important; color: #1f2330 !important;
  text-transform: none !important; margin: 0.6rem 0 1.25rem !important; padding: 0 !important;
}
.hp-svcA-intro h3 em { font-style: normal; color: var(--cof-green); }
.hp-svcA-intro p { font-size: 1rem; color: #6b6f78; line-height: 1.65; max-width: 380px; margin: 0 0 1.75rem; }
.hp-svcA-link {
  font-weight: 800; font-size: 0.8rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: #1f2330; border-bottom: 2px solid var(--cof-green); padding-bottom: 0.3rem; text-decoration: none;
}
.hp-svcA-link i { color: var(--cof-green); margin-left: 0.4rem; transition: transform 0.25s; }
.hp-svcA-link:hover { color: #1f2330; text-decoration: none; }
.hp-svcA-link:hover i { transform: translateX(4px); }
.hp-svcA-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #d9d8d0; }
.hp-svcA-row {
  display: grid; grid-template-columns: 4.5rem 1fr 1.3fr; gap: 1.5rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid #d9d8d0; position: relative;
  transition: padding-left 0.35s ease;
}
.hp-svcA-row::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--cof-green); transition: width 0.45s ease;
}
.hp-svcA-row:hover { padding-left: 0.75rem; }
.hp-svcA-row:hover::before { width: 100%; }
.hp-svcA-num {
  font-size: 2.2rem; font-weight: 300; line-height: 1; color: #c4c3b8; letter-spacing: -1px;
  transition: color 0.3s;
}
.hp-svcA-row:hover .hp-svcA-num { color: var(--cof-green); }
.hp-svcA-row h4 {
  font-size: 1.15rem !important; font-weight: 800 !important; color: #1f2330 !important;
  text-transform: none !important; letter-spacing: -0.3px !important; margin: 0 !important; padding: 0 !important; line-height: 1.25 !important;
}
.hp-svcA-row p { font-size: 0.88rem; color: #6b6f78; line-height: 1.6; margin: 0; }
@media (max-width: 991px) {
  .hp-svcA-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .hp-svcA-intro { position: static; }
}
@media (max-width: 575px) {
  #hp-svcA { padding: 3.5rem 1.25rem; }
  .hp-svcA-row { grid-template-columns: 3rem 1fr; gap: 0.35rem 1rem; padding: 1.25rem 0; }
  .hp-svcA-row p { grid-column: 2; }
  .hp-svcA-num { font-size: 1.6rem; }
  .hp-svcA-row:hover { padding-left: 0; }
}

/* ============================================================
   17. ABOUT (#hp-abA)
   ============================================================ */
#hp-abA h2, #hp-abA h4 { text-transform: none !important; padding: 0 !important; }
#hp-abA { background: #fff; padding: 5.5rem 1.5rem; }
.hp-abA-wrap { max-width: 1200px; margin: 0 auto; }
.hp-abA-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: center; }
.hp-abA-title {
  font-size: clamp(1.9rem, 4vw, 3.3rem) !important; font-weight: 800 !important; line-height: 1.08 !important;
  letter-spacing: -1.2px !important; color: #1f2330 !important; margin: 0.6rem 0 0 !important;
}
.hp-abA-title span { color: var(--cof-green); }
.hp-abA-photo { margin: 0; position: relative; }
.hp-abA-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px; display: block; }
.hp-abA-photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem; background: #fff; color: #1f2330; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.4rem 0.75rem; border-radius: 999px;
}
.hp-abA-stats {
  display: grid; grid-template-columns: auto auto auto 1fr; gap: 3rem; align-items: center;
  margin-top: 3rem; padding: 2rem 0; border-top: 1px solid #e6e7e1; border-bottom: 1px solid #e6e7e1;
}
.hp-abA-stats strong { display: block; font-size: 2.2rem; font-weight: 800; color: #1f2330; line-height: 1; letter-spacing: -1px; }
.hp-abA-stats span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8a8f80; margin-top: 0.4rem; }
.hp-abA-stats p { margin: 0; font-size: 0.92rem; color: #6b6f78; line-height: 1.65; }
.hp-abA-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.hp-abA-pillars > div { border-top: 3px solid var(--cof-green); padding-top: 1.1rem; }
.hp-abA-pillars span { font-size: 0.75rem; font-weight: 800; color: var(--cof-green); letter-spacing: 1px; }
.hp-abA-pillars h4 { font-size: 1.08rem !important; font-weight: 800 !important; color: #1f2330 !important; margin: 0.4rem 0 0.5rem !important; }
.hp-abA-pillars p { font-size: 0.85rem; color: #6b6f78; line-height: 1.6; margin: 0; }
.hp-abA-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 3rem; }
/* Pills on the white About background */
.hp-abA-actions .hp-pill-green:hover { background: var(--cof-green-darker, #97b410); }
.hp-pill-ghost-dark { border: 2px solid var(--cof-grey); color: var(--cof-grey) !important; background: transparent; }
.hp-pill-ghost-dark:hover { background: var(--cof-grey); color: #fff !important; }
@media (max-width: 991px) {
  .hp-abA-top { grid-template-columns: 1fr; gap: 2rem; }
  .hp-abA-photo img { aspect-ratio: 16/10; }
  .hp-abA-stats { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .hp-abA-stats p { grid-column: 1 / -1; }
  .hp-abA-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  #hp-abA { padding: 3.5rem 1.25rem; }
  .hp-abA-stats strong { font-size: 1.5rem; }
  .hp-abA-pillars { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   HERO (left-aligned, punchline, round buttons, Ken Burns carousel)
   ============================================================ */
.hp-mock { position: relative; overflow: hidden; background: #111; min-height: 520px; display: flex; }
.hp-mock .carousel, .hp-mock .carousel-inner, .hp-mock .carousel-item { position: absolute; inset: 0; height: 100%; }
.hp-mock .carousel-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1); transition: transform 7s ease-out, opacity 0.6s;
}
.hp-mock .carousel-item.active img { transform: scale(1.08); }
.hp-mock::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
}
.hp-mock-content {
  position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 4rem 1.5rem; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; text-align: left;
}
.hp-mock-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem) !important; font-weight: 800 !important;
  line-height: 1.08 !important; color: #fff !important; margin: 0 0 1.5rem !important;
  padding: 0 !important; text-transform: none !important; letter-spacing: -0.5px;
}
.hp-mock-title span { color: var(--cof-green); }
.hp-mock-kicker {
  color: rgba(255,255,255,0.8); font-size: 0.75rem; letter-spacing: 4px;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hp-mock-punch {
  color: #fff; font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 300; font-style: italic;
  max-width: 520px; margin: 0 0 2rem; line-height: 1.45;
}
.hp-mock-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hp-pill {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.85rem 2rem; min-width: 220px; text-decoration: none !important;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.hp-pill strong { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.hp-pill small { font-size: 0.72rem; opacity: 0.8; margin-top: 0.15rem; }
.hp-pill:hover { transform: translateY(-2px); }
.hp-pill-green { background: var(--cof-green); color: #000 !important; }
.hp-pill-green:hover { background: #fff; }
.hp-pill-ghost { border: 2px solid #fff; color: #fff !important; background: rgba(255,255,255,0.05); }
.hp-pill-ghost:hover { background: #fff; color: #000 !important; }

/* Neutralise the old #heroCarousel sizing */
#hp-hero #heroCarousel .carousel-item { max-height: none; }
#hp-hero #heroCarousel .carousel-item img { height: 100%; filter: none; }

@media (max-width: 575.98px) {
  .hp-mock { min-height: 600px; }
  .hp-mock::after { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.25) 100%); }
  .hp-mock-content { justify-content: flex-end; padding-bottom: 2.25rem; }
  .hp-mock-actions { flex-direction: column; align-self: stretch; }
  .hp-pill { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-mock .carousel-item img, .hp-mock .carousel-item.active img { transition: none; transform: none; }
}

/* ============================================================
   VALUE PROPS (Design / Create / Deliver with scroll colour wipe)
   ============================================================ */
.vp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
[class^="vp"] h3 { text-transform: none !important; padding: 0 !important; }
.vp-scroll { --p: 0; }

.vp10 { background: #fff; padding: 4rem 0; }
.vp10-row { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; }
.vp10-step { text-align: center; flex: 0 1 260px; }
.vp10-step h3 { font-size: clamp(1.8rem, 4vw, 3rem) !important; font-weight: 800 !important; color: #ddd !important; margin: 0 0 0.5rem !important; transition: color 0.4s; }
.vp10-step p { color: #666; margin: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s; }
.vp10-arrow { font-size: clamp(1.6rem, 3.5vw, 2.6rem); color: #ddd; line-height: 1.2; transition: color 0.4s; }
.vp-on1 .vp10-step.vp-s1 p, .vp-on2 .vp10-step.vp-s2 p, .vp-on3 .vp10-step.vp-s3 p { opacity: 1; transform: none; }
.vp-on2 .vp10-arrow.vp-s2, .vp-on3 .vp10-arrow.vp-s3 { color: var(--cof-green); }

/* Per-word colour wipe (10B) */
.vp10b .vp10-step { --w: clamp(0%, calc((var(--p) * 3 - var(--i)) * 100%), 100%); --ink: #111; }
.vp10b .vp10-step.vp-s3 { --ink: var(--cof-green); }
.vp10b .vp10-step h3 {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) calc(var(--w) - 8%), var(--cof-green) var(--w), #ddd calc(var(--w) + 1%), #ddd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important; transition: none;
}

#hp-value-props.vp10 { padding: 4rem 0; border-bottom: 1px solid #eee; }
@media (max-width: 767.98px) {
  .vp10-row { flex-direction: column; align-items: center; gap: 0.5rem; }
  .vp10-arrow { transform: rotate(90deg); }
  .vp10-step { flex: none; }
  #hp-value-props.vp10 { padding: 3rem 0; }
}

/* Browse Catalogue button under the product categories */
.hp-cat2-more { text-align: center; margin: 0 0 2.5rem; }
#hp-cta .hp-cta-actions { justify-content: center; }
