/* ==========================================================================
   Home page — section rhythm, cards and headings.
   Loaded after style.css and only on the home page, so everything here
   deliberately overrides the shared defaults.
   ========================================================================== */

.home-page {
  /* section surfaces, alternating light / cream / deep down the page */
  --hs-white: #FFFFFF;
  --hs-cream: #FAF6F2;
  --hs-deep-1: #33200F;
  --hs-deep-2: #1F1208;

  /* accent family — same six tones used by the Why Highstar tiles */
  --hs-gold: #C9A961;
  --hs-sage: #7C8B6F;
  --hs-terra: #B5715A;
  --hs-blue: #6B8E9F;
  --hs-brown: #8B5A3C;
  --hs-mauve: #A6789B;

  --hs-ink: #2C1810;
  --hs-muted: #6C757D;
  --hs-line: #EDE5DC;
  --hs-ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   0. Hero tucks under the floating navbar, so the bar sits over the image
   -------------------------------------------------------------------------- */
.home-page .hs-hero {
  margin-top: calc(-1 * var(--nav-h, 102px));
}

/* keep the headline clear of the bar overlapping the top */
.home-page .hs-hero__overlay {
  padding-top: calc(56px + var(--nav-h, 102px));
}

@media (max-width: 767px) {
  .home-page .hs-hero__overlay {
    padding-top: calc(44px + var(--nav-h, 84px));
  }
}

/* --------------------------------------------------------------------------
   1. Section backgrounds — a consistent light / cream / deep rhythm
   -------------------------------------------------------------------------- */
.home-page .carousel-section,
.home-page .categories-section {
  padding: 84px 0;
}

/* Special Offers keeps the rounded lip that overlaps the hero */
.home-page .sales-section {
  background: linear-gradient(180deg, var(--hs-cream) 0%, #F6F1EA 100%);
}

/* the two white-on-white sections the client flagged: this one goes deep */
.home-page .categories-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--hs-deep-1) 0%, var(--hs-deep-2) 100%);
}

.home-page .categories-section::before,
.home-page .categories-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.home-page .categories-section::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: rgba(201, 169, 97, .22);
}

.home-page .categories-section::after {
  width: 380px;
  height: 380px;
  bottom: -180px;
  right: -120px;
  background: rgba(107, 142, 159, .16);
}

.home-page .categories-section .container {
  position: relative;
  z-index: 2;
}

.home-page .best-sellers { background: var(--hs-white); }
.home-page .new-arrivals { background: var(--hs-cream); }
.home-page .our-projects { background: var(--hs-white); }

/* Why Highstar sat on its own off-white; bring it onto the shared cream */
.home-page .hs-why {
  background: linear-gradient(180deg, var(--hs-cream) 0%, #F6F1EA 100%);
}

.home-page .contact-section {
  background: linear-gradient(180deg, var(--hs-white) 0%, var(--hs-cream) 100%);
}

/* --------------------------------------------------------------------------
   2. Section headings
   -------------------------------------------------------------------------- */
.home-page .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.home-page .section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8A6B2F;
  background: rgba(201, 169, 97, .14);
  border: 1px solid rgba(201, 169, 97, .38);
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.home-page .section-header h2 {
  position: relative;
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  line-height: 1.15;
  color: var(--hs-ink);
  margin: 0 0 18px;
  padding-bottom: 18px;
}

/* short gradient rule under every section title */
.home-page .section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 62px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hs-gold), var(--hs-terra));
}

.home-page .section-header p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--hs-muted);
  margin: 0;
}

/* on the deep section */
.home-page .categories-section .section-eyebrow {
  color: #F0DDB4;
  background: rgba(201, 169, 97, .18);
  border-color: rgba(201, 169, 97, .5);
}

.home-page .categories-section .section-header h2 { color: #FFFFFF; }
.home-page .categories-section .section-header p { color: rgba(255, 255, 255, .74); }

/* --------------------------------------------------------------------------
   3. Category cards
   -------------------------------------------------------------------------- */
.home-page .category-col { margin-bottom: 26px; }

.home-page .category-card {
  position: relative;
  display: block;
  height: 290px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0;
  background: #241408;
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .45s var(--hs-ease), box-shadow .45s var(--hs-ease), border-color .45s var(--hs-ease);
}

.home-page .category-card img,
.home-page .category-card .no-image-found {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform .7s var(--hs-ease);
}

.home-page .category-card .no-image-found {
  background: #2E1B0F !important;
  color: rgba(255, 255, 255, .5) !important;
  border: 0 !important;
  font-weight: 500 !important;
}

/* scrim so the label stays readable on any photo */
.home-page .category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  /* heavy at the foot so white labels stay readable on pale photos */
  background: linear-gradient(180deg, rgba(20, 12, 6, .10) 0%, rgba(20, 12, 6, .42) 38%, rgba(18, 11, 5, .84) 72%, rgba(14, 8, 4, .96) 100%);
  transition: background .45s var(--hs-ease);
}

.home-page .category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 97, .65);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .45);
}

.home-page .category-card:hover img { transform: scale(1.07); }

.home-page .category-card:hover::after {
  background: linear-gradient(180deg, rgba(20, 12, 6, .04) 0%, rgba(20, 12, 6, .38) 35%, rgba(24, 14, 7, .86) 70%, rgba(18, 10, 5, .98) 100%);
}

.home-page .category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 22px;
  background: none;
  text-align: left;
}

.home-page .category-overlay h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.home-page .category-overlay .cat-go {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  color: #2C1810;
  background: var(--hs-gold);
  transform: translateX(-4px);
  opacity: 0;
  transition: opacity .35s var(--hs-ease), transform .35s var(--hs-ease);
}

.home-page .category-card:hover .cat-go {
  opacity: 1;
  transform: translateX(0);
}

/* thin colour bar that grows across the top on hover */
.home-page .category-card .cat-bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--tint, var(--hs-gold)), var(--hs-gold));
  transition: width .5s var(--hs-ease);
}

.home-page .category-card:hover .cat-bar { width: 100%; }

/* --------------------------------------------------------------------------
   4. Product cards (shared by .product-card and .sale-item)
   -------------------------------------------------------------------------- */
.home-page .product-card,
.home-page .sale-item {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--hs-white);
  border: 1px solid var(--hs-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(44, 24, 16, .05);
  transition: transform .4s var(--hs-ease), box-shadow .4s var(--hs-ease), border-color .4s var(--hs-ease);
}

.home-page .product-card:hover,
.home-page .sale-item:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--tint, #C9A961) 45%, transparent);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--tint, #C9A961) 22%, transparent);
}

/* tinted image bed — each card gets one of the six accents */
.home-page .product-image {
  position: relative;
  height: 215px;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%,
      color-mix(in srgb, var(--tint, #C9A961) 16%, #FFFFFF) 0%,
      color-mix(in srgb, var(--tint, #C9A961) 6%, #FFFFFF) 100%);
}

.home-page .product-image > a { display: block; height: 100%; }

.home-page .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--hs-ease);
}

.home-page .product-image .no-image-found {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--hs-muted) !important;
  font-size: 13px;
}

.home-page .product-card:hover .product-image img,
.home-page .sale-item:hover .product-image img { transform: scale(1.06); }

/* discount badge */
.home-page .sale-badge {
  top: 12px;
  left: 12px;
  right: auto;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 999px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #C0563F, #A8442F) !important;
  box-shadow: 0 6px 14px rgba(168, 68, 47, .3);
}

/* quick-view button */
.home-page .product-actions {
  top: 12px;
  right: 12px;
  left: auto;
  transform: none;
  opacity: 0;
  transition: opacity .35s var(--hs-ease);
}

.home-page .product-card:hover .product-actions,
.home-page .sale-item:hover .product-actions { opacity: 1; }

.home-page .action-btn {
  width: 38px;
  height: 38px;
  color: var(--hs-ink);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
  text-decoration: none;
}

.home-page .action-btn:hover {
  background: var(--hs-gold);
  color: #FFFFFF;
}

/* body */
.home-page .product-info,
.home-page .sale-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
}

.home-page .product-info h4,
.home-page .sale-content h5 {
  display: block;
  min-height: 0;
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--hs-ink);
  /* keep every card the same height regardless of title length */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-page .price-container,
.home-page .price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.home-page .price-inc-vat,
.home-page .sale-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hs-brown);
}

.home-page .price-inc-vat small,
.home-page .sale-price small {
  font-size: 11.5px;
  font-weight: 500;
}

.home-page .original-price,
.home-page .original-price s {
  font-size: 13px;
  color: #A79C93;
}

.home-page .price-exc-vat {
  font-size: 12px;
  color: var(--hs-muted);
}

/* footer call to action */
.home-page .hs-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--hs-ink);
  background: color-mix(in srgb, var(--tint, #C9A961) 16%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--tint, #C9A961) 38%, transparent);
  transition: background .3s var(--hs-ease), color .3s var(--hs-ease), box-shadow .3s var(--hs-ease);
}

.home-page .hs-card-cta i { transition: transform .3s var(--hs-ease); }

.home-page .hs-card-cta:hover {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--tint, #C9A961), color-mix(in srgb, var(--tint, #C9A961) 72%, #2C1810));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--tint, #C9A961) 34%, transparent);
}

.home-page .hs-card-cta:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Project cards — case-study style
   -------------------------------------------------------------------------- */
.home-page .our-projects .project-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #241408;
  text-decoration: none;
  border: 1px solid var(--hs-line);
  transition: transform .45s var(--hs-ease), box-shadow .45s var(--hs-ease);
}

.home-page .our-projects .project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(44, 24, 16, .24);
}

.home-page .project-media {
  position: relative;
  height: 330px;
  overflow: hidden;
}

.home-page .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--hs-ease);
}

.home-page .our-projects .project-card:hover .project-media img { transform: scale(1.08); }

.home-page .project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 6, .1) 0%, rgba(20, 12, 6, .58) 52%, rgba(20, 12, 6, .93) 100%);
  transition: background .45s var(--hs-ease);
}

.home-page .our-projects .project-card:hover .project-media::after {
  background: linear-gradient(180deg, rgba(20, 12, 6, .05) 0%, rgba(24, 14, 7, .66) 45%, rgba(24, 14, 7, .96) 100%);
}

.home-page .project-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 22px 24px;
  color: #FFFFFF;
}

.home-page .project-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #F0DDB4;
  background: rgba(201, 169, 97, .2);
  border: 1px solid rgba(201, 169, 97, .48);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.home-page .project-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.28;
  color: #FFFFFF;
  margin: 0 0 8px;
}

/* the blurb and link slide up on hover */
.home-page .project-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--hs-ease), opacity .35s var(--hs-ease);
}

.home-page .our-projects .project-card:hover .project-reveal {
  max-height: 140px;
  opacity: 1;
}

.home-page .project-body p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 12px;
}

.home-page .project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #F0DDB4;
}

.home-page .project-link i { transition: transform .3s var(--hs-ease); }
.home-page .our-projects .project-card:hover .project-link i { transform: translateX(4px); }

/* touch devices get no hover, so show everything up front */
@media (hover: none) {
  .home-page .project-reveal { max-height: 140px; opacity: 1; }
  .home-page .product-actions { opacity: 1; }
  .home-page .category-overlay .cat-go { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   6. Carousel controls
   -------------------------------------------------------------------------- */
.home-page .product-swiper { padding: 6px 4px 52px; }

.home-page .product-swiper .swiper-button-next,
.home-page .product-swiper .swiper-button-prev {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--hs-line);
  color: var(--hs-brown);
  box-shadow: 0 4px 14px rgba(44, 24, 16, .1);
  transition: background .3s var(--hs-ease), color .3s var(--hs-ease);
}

.home-page .product-swiper .swiper-button-next::after,
.home-page .product-swiper .swiper-button-prev::after {
  font-size: 15px;
  font-weight: 700;
}

.home-page .product-swiper .swiper-button-next:hover,
.home-page .product-swiper .swiper-button-prev:hover {
  background: var(--hs-gold);
  color: #FFFFFF;
}

.home-page .categories-section .product-swiper .swiper-button-next,
.home-page .categories-section .product-swiper .swiper-button-prev {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  color: #FFFFFF;
}

.home-page .product-swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #C9BCAE;
  opacity: 1;
}

.home-page .product-swiper .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 999px;
  background: var(--hs-gold);
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .home-page .carousel-section,
  .home-page .categories-section { padding: 64px 0; }

  .home-page .section-header { margin-bottom: 38px; }
  .home-page .project-media { height: 290px; }
}

@media (max-width: 767px) {
  .home-page .carousel-section,
  .home-page .categories-section { padding: 52px 0; }

  .home-page .category-card { height: 240px; }
  .home-page .product-image { height: 190px; }
  .home-page .project-media { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .product-card,
  .home-page .sale-item,
  .home-page .category-card,
  .home-page .our-projects .project-card,
  .home-page .product-image img,
  .home-page .project-media img { transition: none; }
}

/* Fallback for browsers without color-mix() */
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .home-page .product-image { background: #FBF8F4; }
  .home-page .hs-card-cta { background: rgba(201, 169, 97, .16); border-color: rgba(201, 169, 97, .4); }
  .home-page .hs-card-cta:hover { background: #C9A961; }
  .home-page .product-card:hover,
  .home-page .sale-item:hover { border-color: rgba(201, 169, 97, .5); box-shadow: 0 20px 40px rgba(44, 24, 16, .14); }
}
