/* home.css - Maderra visual landing home */

.home-landing {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--warm-white);
}

/* HERO */

.home-hero {
  position: relative !important;
  width: 100% !important;
  height: 580px !important;
  min-height: 580px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #111 !important;
  border-bottom: 3px solid #e8e4de;
}

.home-hero-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 1 !important;
}

/* Hero video — inherits all .home-hero-img styles, just ensure no controls show */
.home-hero-video {
  pointer-events: none;
  /* Remove iOS Safari native play button overlay */
  -webkit-media-controls: none;
  object-fit: cover !important;
  object-position: center center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
}

/* Remove iOS Safari play button and all media controls */
.home-hero-video::-webkit-media-controls {
  display: none !important;
}
.home-hero-video::-webkit-media-controls-enclosure {
  display: none !important;
}
.home-hero-video::-webkit-media-controls-panel {
  display: none !important;
}
.home-hero-video::-webkit-media-controls-play-button {
  display: none !important;
}
.home-hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* On mobile, ensure video fills the hero with no black bars */
@media (max-width: 768px) {
  .home-hero-video {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    min-width: 177.78vh !important; /* 16:9 ratio trick to always cover */
    left: 50% !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
  }
}

.home-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.62) 28%,
    rgba(0, 0, 0, 0.30) 55%,
    rgba(0, 0, 0, 0.04) 100%
  ) !important;
}

.home-hero-content {
  position: absolute !important;
  z-index: 3 !important;
  top: 50% !important;
  left: 12% !important;
  transform: translateY(-50%) !important;
  width: 390px !important;
  text-align: center !important;
  color: #fff !important;
}

.home-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 24px;
  font-weight: 400;
}

.home-hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.18;
  font-weight: 400;
  color: #fff;
  margin: 0 0 26px;
  letter-spacing: 0.5px;
}

.home-hero-title-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.home-hero-title-link .home-hero-title {
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.home-hero-title-link:hover .home-hero-title {
  color: #f3eadc;
  opacity: 0.95;
  transform: translateY(-3px);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.18),
    0 4px 18px rgba(0, 0, 0, 0.55);
}

.home-hero-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.4px;
}

/* CATEGORY STRIP */

.category-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 3px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #e8e4de !important;
}

.category-tile {
  position: relative !important;
  display: block !important;
  height: 300px !important;
  overflow: hidden !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category-tile > img:first-child {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  transition: transform 0.6s ease !important;
  z-index: 1 !important;
}

.category-tile:hover > img:first-child {
  transform: scale(1.045);
}

.category-tile-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  background: rgba(0, 0, 0, 0.30) !important;
  transition: background 0.3s ease;
}

.category-tile:hover .category-tile-overlay {
  background: rgba(0, 0, 0, 0.44) !important;
}

.category-tile-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-top: 36px !important;
  text-align: center !important;
}

.category-tile-name {
  font-family: var(--font-serif);
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .home-hero-content {
    left: 12% !important;
  }

  .category-tile {
    height: 260px !important;
  }
}

@media (max-width: 960px) {
  .home-hero {
    height: 540px !important;
    min-height: 540px !important;
  }

  .home-hero-content {
    left: 24px !important;
    width: calc(100% - 48px) !important;
  }

  .home-hero-title {
    font-size: 2.5rem;
  }

  .category-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .category-tile {
    height: 260px !important;
  }
}

@media (max-width: 600px) {
  .home-hero {
    height: 500px !important;
    min-height: 500px !important;
  }

  .home-hero-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 4px;
  }

  .home-hero-title {
    font-size: 2.2rem;
  }

  .home-hero-body {
    font-size: 0.88rem;
  }

  .category-tile {
    height: 220px !important;
  }

  .category-tile-name {
    font-size: 1.75rem;
  }
}

@media (max-width: 420px) {
  .category-strip {
    grid-template-columns: 1fr !important;
  }

  .category-tile {
    height: 230px !important;
  }
}