/**
 * Home Page Styles
 * 
 * Complete styles for the home page template
 * Exact replica of original landing page design
 * 
 * @package Siahus
 */

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.siahus-home .animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.siahus-home .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.siahus-home .animate-delay-1 { transition-delay: 0.1s; }
.siahus-home .animate-delay-2 { transition-delay: 0.2s; }
.siahus-home .animate-delay-3 { transition-delay: 0.3s; }

/* ========================================
   HOME PAGE - Remove extra padding since hero handles it
   ======================================== */
.siahus-home .site-main {
  padding-top: 0;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  padding-top: calc(var(--header-height) + var(--utility-bar-height));
  overflow: hidden;
}


.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.8rem;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  padding: var(--space-xl);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
}

.hero__product {
  animation: slideInLeft 1s ease-out;
}

.hero__product-image {
  max-height: 715px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(44, 41, 37, 0.2));
  transition: transform var(--transition-slow);
}

.hero__product:hover .hero__product-image {
  transform: translateY(-10px) scale(1.02);
}


@media (max-width: 900px) {
  .hero__product {
    order: 2;
  }
  .hero__product-image {
    max-height: 455px;
    margin: 0 auto;
  }
}

.hero__content {
  animation: fadeInUp 1s ease-out;
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

@media (max-width: 900px) {
  .hero__content {
    order: 1;
  }
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
  display: block;
}

.hero__title {
  font-size: clamp(2.25rem, 3.5vw, 4.5rem);
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero__title em {
  color: var(--color-coral);
  font-style: italic;
}

.hero__description {
  font-size: 1.225rem;
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__cta {
    justify-content: center;
  }
}

/* ========================================
   VALUE PROPOSITIONS
   ======================================== */
.values {
  background: var(--color-warm-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .values__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.value-card {
  text-align: center;
  padding: var(--space-lg);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  opacity: 0.8;
  color: var(--color-sage);
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.value-card__description {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ========================================
   FEATURED PRODUCTS
   ======================================== */
.products {
  background: var(--color-cream);
}

.products__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

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

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

/* ========================================
   STORY SECTION
   ======================================== */
.story {
  background: var(--color-cream-dark);
  position: relative;
  overflow: hidden;
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 900px) {
  .story__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.story__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(44, 41, 37, 0.15);
}

.story__video::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-coral);
  border-radius: 8px;
  opacity: 0.3;
  z-index: -1;
}

.story__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.story__content {
  padding: var(--space-lg) 0;
}

.story__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
  display: block;
}

.story__title {
  margin-bottom: var(--space-lg);
}

.story__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.story__quote {
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-coral);
  margin: var(--space-lg) 0;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-coral);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.home-testimonials {
  background: var(--color-warm-white);
  position: relative;
}

.home-testimonials__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.home-testimonials__video {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.home-testimonials__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(44, 41, 37, 0.1);
}

.home-testimonials__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .home-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

.home-testimonial-card {
  background: var(--color-cream);
  padding: var(--space-xl);
  border-radius: 8px;
  position: relative;
}

.home-testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-coral);
  opacity: 0.2;
  line-height: 1;
}

.home-testimonial-card__text {
  /* Uses global .testimonial-quote styles from components.css */
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1.225rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.home-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.home-testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-warm-white);
}

.home-testimonial-card__name {
  font-weight: 500;
  font-size: 0.9rem;
}

.home-testimonial-card__location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
  background: #3D3A35;
  color: var(--color-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter__inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter__title {
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.newsletter__description {
  color: rgba(250, 248, 245, 0.7);
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
}

@media (max-width: 500px) {
  .newsletter__form {
    flex-direction: column;
  }
}

.newsletter__input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(250, 248, 245, 0.2);
  border-radius: 50px;
  background: transparent;
  color: var(--color-cream);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder {
  color: rgba(250, 248, 245, 0.5);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-coral);
}

.newsletter__btn {
  padding: 1rem 2rem;
  background: var(--color-coral);
  color: var(--color-warm-white);
  border: none;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.newsletter__btn:hover {
  background: var(--color-coral-light);
  transform: translateY(-2px);
}

/* ========================================
   OUR GUARANTEE + CHIEF SUNSTAR
   ======================================== */
.guarantee {
  background: var(--color-cream);
  text-align: center;
}

.guarantee__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.guarantee__quote {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee__blockquote {
  position: relative;
  padding: var(--space-xl);
  background: var(--color-warm-white);
  border-radius: 12px;
  border-left: 4px solid var(--color-sage);
  box-shadow: 0 4px 20px rgba(44, 41, 37, 0.06);
}

.guarantee__blockquote p {
  font-size: 1.2rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.guarantee__cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--color-sage);
  font-size: 1rem;
}

.guarantee__title {
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.guarantee__text {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.guarantee__text:last-child {
  margin-bottom: 0;
}

.guarantee__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.guarantee__disclaimer {
  max-width: 800px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(44, 41, 37, 0.1);
}

.guarantee__disclaimer p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .guarantee__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .guarantee__blockquote {
    border-left: none;
    border-top: 4px solid var(--color-sage);
  }

  .guarantee__content {
    text-align: left;
  }
}

/* ========================================
   HOME PAGE Z-INDEX OVERRIDES
   Allow foliage to show over most content
   ======================================== */

/* Reset site-main z-index on home page so foliage shows through */
.siahus-home .site-main {
  z-index: auto;
}

.siahus-home .site-main > * {
  position: relative;
  z-index: auto;
}

/* Sections stay at z-index: auto so children can escape stacking context
   Foliage (z-index: 100) will show over these sections
   But children with z-index: 101 will appear above foliage */
.siahus-home .hero,
.siahus-home .values,
.siahus-home .products,
.siahus-home .story,
.siahus-home .home-testimonials,
.siahus-home .guarantee,
.siahus-home .newsletter {
  position: relative;
  z-index: auto;
}

/* Product cards and their container ABOVE foliage */
.siahus-home .product-card {
  position: relative;
  z-index: 101;
}

.siahus-home .products__header {
  position: relative;
  z-index: 101;
}

.siahus-home .products__grid {
  position: relative;
  z-index: 101;
}

/* Video containers ABOVE foliage */
.siahus-home .story__video,
.siahus-home .story__media,
.siahus-home .story__grid,
.siahus-home .video-container,
.siahus-home .home-testimonials__video,
.siahus-home .video-wrapper,
.siahus-home .video-facade {
  position: relative;
  z-index: 101;
}

.siahus-home iframe,
.siahus-home video {
  position: relative;
  z-index: 101;
}

/* Interactive buttons above foliage for clickability */
.siahus-home .btn,
.siahus-home .button,
.siahus-home a.btn,
.siahus-home .hero__cta {
  position: relative;
  z-index: 101;
}

/* Newsletter form above foliage */
.siahus-home .newsletter__form,
.siahus-home .newsletter__inner {
  position: relative;
  z-index: 101;
}


/* ========================================
   VIDEO FACADE - YouTube Thumbnail with Play Button
   ======================================== */
.video-facade {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: var(--color-cream-dark);
}

.video-facade__thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-facade:hover .video-facade__thumbnail {
  transform: scale(1.02);
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-facade:hover .video-facade__play {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-facade__play svg {
  display: block;
}

.video-facade__play-bg {
  transition: fill 0.2s ease;
}

.video-facade:hover .video-facade__play-bg {
  fill: #cc0000;
}

.video-facade--playing {
  cursor: default;
}

.video-facade--playing .video-facade__thumbnail,
.video-facade--playing .video-facade__play {
  display: none;
}

.video-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.story__video .video-facade,
.home-testimonials__video .video-facade {
  box-shadow: 0 20px 40px rgba(44, 41, 37, 0.15);
}

.story__video {
  position: relative;
}

.story__video::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-coral);
  border-radius: 8px;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

.siahus-home .video-facade,
.siahus-home .home-testimonials__video {
  position: relative;
  z-index: 101;
}
