/* GLASSMAX homepage — premium UK architectural glazing (index only) */

body.page-home {
  --font-home-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --home-quote-bg: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2400&q=85");
  --font-home-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --home-accent: #a67c52;
  --header-h: 68px;
  background: #ffffff;
  color: #1a1a1a;
  font-family: var(--font-home-body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

body.page-home .home-section .btn:not(.btn-enquire) {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  font-family: var(--font-home-body);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.page-home .home-section .btn:not(.btn-enquire):hover {
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}

body.page-home .home-section .btn--ghost {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
  font-family: var(--font-home-body);
}

body.page-home .home-section .btn--ghost:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ----- Hero (full-viewport slideshow + overlay, premium minimal type) ----- */
.home-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  height: 100vh;
  height: -webkit-fill-available;
  height: 100svh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.home-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  pointer-events: none;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Readability: ~45% equivalent dark layer */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(8, 8, 10, 0.62) 0%,
    rgba(12, 12, 14, 0.45) 45%,
    rgba(10, 10, 12, 0.38) 100%
  );
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--container, 1240px) + 3rem);
  margin-inline: auto;
  padding: calc(var(--header-h, 76px) + clamp(2rem, 5vw, 3.5rem)) var(--space-md) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: inherit;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-hero__inner {
    padding-inline: var(--space-lg);
  }
}

.home-hero__content {
  max-width: min(48rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.home-hero__heading {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 clamp(1rem, 2.5vw, 1.35rem);
  color: #faf9f7;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(30px);
  filter: blur(5px);
  letter-spacing: 0.07em;
  animation: homeHeroTitleLux 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform, filter;
}

.home-hero__subtitle {
  font-family: var(--font-home-body);
  font-size: clamp(0.95rem, 1.65vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 auto;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(30px);
  animation: homeHeroSubtitleLux 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
  will-change: opacity, transform;
}

@keyframes homeHeroTitleLux {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0.02em;
  }
}

@keyframes homeHeroSubtitleLux {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__heading,
  .home-hero__subtitle {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: 0.02em;
  }

  .home-hero__slide {
    transition: none;
  }
}

/* ----- Section shells ----- */
.home-section {
  padding-block: clamp(3.25rem, 6vw, 5rem);
}

.home-section--muted {
  background: #f5f5f4;
  border-top: 1px solid #e3e3e0;
  border-bottom: 1px solid #e3e3e0;
}

.home-section .container {
  max-width: var(--container, 1240px);
}

.home-section__label {
  font-family: var(--font-home-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5c4d;
  margin: 0 0 var(--space-sm);
}

.home-section__title {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-xl);
  color: #1a1a1a;
}

/* ----- Products — equal cards, gaps, aligned ----- */
.home-products--premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .home-products--premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .home-products--premium {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.35rem;
  }
}

.home-products--premium .home-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 15, 15, 0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-products--premium .home-product:hover {
  box-shadow: 0 20px 56px rgba(15, 15, 15, 0.1);
}

.home-products--premium .home-product__image {
  position: relative;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
  background: #eaeae8;
}

.home-products--premium .home-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 0.12, 0.2, 1);
}

.home-products--premium .home-product:hover .home-product__image img {
  transform: scale(1.06);
}

.home-product__media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.42);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-products--premium .home-product:hover .home-product__media-overlay {
  opacity: 1;
  pointer-events: auto;
}

.home-product__enquiry-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-home-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #121212;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(8px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

.home-products--premium .home-product:hover .home-product__enquiry-cta {
  transform: translateY(0);
}

.home-product__enquiry-cta:hover {
  background: #fff;
  text-decoration: none;
  color: #000;
}

.home-products--premium .home-product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-top: 1px solid #e8e8e6;
  background: #fff;
}

.home-products--premium .home-product__name {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-xs);
  color: #1a1a1a;
}

.home-products--premium .home-product__desc {
  font-family: var(--font-home-body);
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  color: #4a4a48;
  line-height: 1.65;
  flex: 1;
}

.home-products--premium .product-actions {
  margin-top: auto;
}

/* ----- Full-bleed image sections (Why choose us / Services) ----- */
.home-section--visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6.25rem, 10vw, 8.75rem);
  border: 0;
}

.home-section--visual .home-section__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-section--visual .home-section__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-section--visual .home-section__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.home-section--visual .home-section__layer {
  position: relative;
  z-index: 2;
  max-width: var(--container, 1240px);
}

.home-section--visual .home-section__intro {
  text-align: left;
  max-width: 38rem;
}

.home-section--visual .home-section__label {
  margin: 0 0 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #5a5248;
}

.home-section--visual .home-section__title {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: clamp(1.95rem, 3.4vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: none;
  text-align: left;
  color: #141312;
}

.home-section__rule {
  width: 3rem;
  height: 2px;
  margin: 0 0 1.25rem;
  background: var(--home-accent);
  border-radius: 1px;
}

.home-section__lead {
  font-family: var(--font-home-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: #4a4a48;
  margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
  max-width: 36rem;
}

.home-section--services .home-section__label {
  color: #5a5248;
}

.home-section--services .home-section__title {
  color: #141312;
  text-shadow: none;
}

.home-section--services .home-section__lead {
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

/* ----- Why choose us — 4 columns ----- */
.home-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .home-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .home-features {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.home-section--visual .home-features {
  gap: clamp(1.5rem, 2.2vw, 2rem);
}

.home-features__card {
  background: #ffffff;
  border: 1px solid #e3e3e0;
  border-radius: 2px;
  padding: var(--space-lg) var(--space-md);
  min-height: 100%;
}

.home-section--visual .home-features__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2vw, 1.5rem);
  border: 1px solid rgba(230, 228, 224, 0.98);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 28px rgba(26, 26, 26, 0.06),
    0 20px 48px rgba(26, 26, 26, 0.045);
}

.home-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 1.15rem;
  color: var(--home-accent);
}

.home-features__icon svg {
  display: block;
}

.home-features__title {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-xs);
  color: #1a1a1a;
}

.home-section--visual .home-features__title {
  font-family: var(--font-home-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.home-features__text {
  font-family: var(--font-home-body);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4a4a48;
}

.home-section--visual .home-features__text {
  flex: 1 1 auto;
  text-align: center;
}

/* ----- Services — gap grid, cards ----- */
.home-services--premium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .home-services--premium {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .home-services--premium {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.home-section--visual .home-services--premium {
  gap: clamp(1.5rem, 2.2vw, 2rem);
}

.home-services--premium .home-service {
  background: #ffffff;
  border: 1px solid #e3e3e0;
  border-radius: 2px;
  padding: var(--space-lg) var(--space-md);
  margin: 0;
}

.home-section--visual .home-services--premium .home-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2vw, 1.5rem);
  border: 1px solid rgba(230, 228, 224, 0.98);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 28px rgba(26, 26, 26, 0.06),
    0 20px 48px rgba(26, 26, 26, 0.045);
}

.home-service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 1.15rem;
  color: var(--home-accent);
}

.home-service__icon svg {
  display: block;
}

.home-services--premium .home-service h3 {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-xs);
  color: #1a1a1a;
}

.home-section--visual .home-services--premium .home-service h3 {
  font-family: var(--font-home-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.home-services--premium .home-service p {
  font-family: var(--font-home-body);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4a4a48;
}

.home-section--visual .home-services--premium .home-service p {
  flex: 1 1 auto;
  text-align: center;
}

/* ----- Final CTA (full-bleed luxury) ----- */
.home-final {
  position: relative;
  text-align: center;
  padding-block: clamp(4rem, 9vw, 5.75rem);
  overflow: hidden;
  border-top: none;
}

.home-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--home-quote-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.home-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(6, 8, 10, 0.82) 0%,
    rgba(6, 8, 10, 0.5) 50%,
    rgba(6, 8, 10, 0.78) 100%
  );
}

.home-final__inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin-inline: auto;
}

.home-final h2 {
  font-family: var(--font-home-heading);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 var(--space-md);
  color: #f7f6f4;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.home-final .btn {
  margin-top: var(--space-sm);
  font-family: var(--font-home-body);
  border-radius: 2px;
  background: #f7f6f4;
  color: #0c0d0e;
  border-color: #f7f6f4;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.home-final .btn:hover {
  background: transparent;
  color: #f7f6f4;
  border-color: rgba(247, 246, 244, 0.9);
}
