/* ==========================================================================
   SS & MS FABRICATOR — HOMEPAGE-ONLY STYLES
   Loaded only on the homepage via @push('styles') in home/index.blade.php.
   Extends the design system in style.css — does NOT override existing rules.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* HERO V2 — two column layout with visual side + animated shapes         */
/* ---------------------------------------------------------------------- */
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  width: 100%;
}
@media (max-width: 991.98px){
  .hero-grid{ grid-template-columns: 1fr; text-align: center; }
  .hero-grid .hero-visual{ order: -1; max-width: 460px; margin-inline: auto; justify-self: center; }
  .hero-grid .hero-stats-row,
  .hero-grid .hero-btn-row{ justify-content: center; }
}

.hero-visual{
  position: relative;
  width: 100%;
  max-width: 640px;
  justify-self: end;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(212,175,55,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(212,175,55,0.25);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual-frame i{
  font-size: 7rem;
  color: var(--color-secondary);
  opacity: 0.9;
}

/* Product slider inside the hero frame — gold gradient border + inner hairline */
.hero-visual-frame.hero-visual-frame--slider{
  padding: 10px;
  background: linear-gradient(145deg, rgba(212,175,55,0.95), rgba(212,175,55,0.18) 40%, rgba(255,255,255,0.08) 60%, rgba(212,175,55,0.85));
  border: 0;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 0 1px rgba(212,175,55,0.35), 0 0 40px rgba(212,175,55,0.18);
}
@media (max-width: 991.98px){
  /* Slider sits first on small screens — keep it clear of the fixed navbar */
  .hero-section .hero-content{ padding-top: calc(var(--navbar-height) + 1.25rem); padding-bottom: 2.5rem; }
}
.hero-product-carousel{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: #0b1020;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.hero-product-carousel .carousel-inner,
.hero-product-carousel .carousel-item{ height: 100%; }
.hero-product-slide{ position: relative; display: block; width: 100%; height: 100%; color: #fff; }
.hero-product-slide img{
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04);
  transition: transform 3.5s ease;
}
.hero-product-carousel .carousel-item.active .hero-product-slide img{ transform: scale(1); }
.hero-product-caption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3.5rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, rgba(11,16,32,0) 0%, rgba(11,16,32,0.88) 100%);
  display: flex; flex-direction: column; gap: 0.2rem; text-align: left;
}
.hero-product-cat{
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-secondary); font-weight: 600;
}
.hero-product-name{ font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.hero-product-nav{
  width: 42px; height: 42px; top: 50%; transform: translateY(-50%);
  margin: 0 10px; border-radius: 50%;
  background: rgba(11,16,32,0.55); border: 1px solid rgba(212,175,55,0.6);
  color: var(--color-secondary); opacity: 0; transition: opacity var(--transition);
}
.hero-product-nav i{ font-size: 1.1rem; }
.hero-product-carousel:hover .hero-product-nav,
.hero-product-nav:focus-visible{ opacity: 1; }
@media (hover: none){ .hero-product-nav{ opacity: 0.85; } }

.hero-shape{
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.35);
  pointer-events: none;
}
.hero-shape-1{ width: 140px; height: 140px; top: -30px; right: -20px; animation: shape-float 6s ease-in-out infinite; }
.hero-shape-2{ width: 90px; height: 90px; bottom: -20px; left: -20px; border-color: rgba(255,255,255,0.15); animation: shape-float 8s ease-in-out infinite reverse; }
.hero-shape-3{ width: 46px; height: 46px; top: 40%; right: -30px; background: rgba(212,175,55,0.12); border-color: transparent; animation: shape-float 5s ease-in-out infinite; }

@keyframes shape-float{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-16px) rotate(8deg); }
}

.hero-stats-row{ display: flex; gap: var(--space-6); flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* GLASSMORPHISM UTILITY                                                  */
/* ---------------------------------------------------------------------- */
.glass-panel{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
.glass-panel-light{
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------- */
/* GRADIENT BUTTON VARIANT                                                */
/* ---------------------------------------------------------------------- */
.btn-gradient-gold{
  background: linear-gradient(120deg, var(--color-secondary-light), var(--color-secondary) 55%, var(--color-secondary-dark));
  color: var(--color-primary);
  border-color: transparent;
  background-size: 200% auto;
}
.btn-gradient-gold:hover{
  background-position: right center;
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------- */
/* COMPANY INTRO                                                          */
/* ---------------------------------------------------------------------- */
.intro-image-wrap{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--color-primary), #1c2c47 60%, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.intro-image-wrap i{ font-size: 5rem; color: var(--color-secondary); opacity: 0.85; }

.intro-badge-float{
  position: absolute;
  bottom: -24px;
  right: -18px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  border: 1px solid var(--color-border);
}
.intro-badge-float .num{ font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--color-secondary-dark); line-height: 1; }

.highlight-pill{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-pill:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.highlight-pill i{ font-size: 1.4rem; color: var(--color-secondary); }

/* ---------------------------------------------------------------------- */
/* CATEGORY CARDS (with image placeholder + arrow hover)                  */
/* ---------------------------------------------------------------------- */
.category-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.category-card:hover{ transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.category-card-image{
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--color-primary) 0%, #23324d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.category-card-image i{
  font-size: 2.6rem;
  color: var(--color-secondary);
  transition: transform var(--transition);
}
.category-card:hover .category-card-image i{ transform: scale(1.15) rotate(-5deg); }

.category-card-body{
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.category-card-arrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  transition: all var(--transition);
}
.category-card:hover .category-card-arrow{
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary);
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------- */
/* PRODUCT CARDS (featured products, with zoom hover)                     */
/* ---------------------------------------------------------------------- */
.product-card{
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-card-image{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, var(--color-silver), #f1f3f6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-image i{
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.35;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image i{ transform: scale(1.25); }

.product-card-image img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image img{ transform: scale(1.1); }

.product-card-badge{
  position: absolute;
  top: 12px; left: 12px;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.product-card-body{ padding: var(--space-4); display: flex; flex-direction: column; flex-grow: 1; }
.product-card-meta{ font-size: 0.8rem; color: var(--color-text-muted); }
.product-card-price{ font-family: var(--font-heading); font-weight: 700; color: var(--color-secondary-dark); font-size: 1.05rem; }

/* ---------------------------------------------------------------------- */
/* PROCESS TIMELINE                                                       */
/* ---------------------------------------------------------------------- */
.process-timeline{
  position: relative;
}
.process-timeline::before{
  content: '';
  position: absolute;
  top: 34px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border) 8%, var(--color-border) 92%, transparent);
}
@media (max-width: 767.98px){
  .process-timeline::before{ display: none; }
}
.process-step{ position: relative; text-align: center; }
.process-step-num{
  width: 68px; height: 68px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 2px solid var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.process-step:hover .process-step-num{
  background-color: var(--color-secondary);
  transform: scale(1.08);
  box-shadow: var(--shadow-gold);
}

/* ---------------------------------------------------------------------- */
/* STATS / COUNTER SECTION                                                */
/* ---------------------------------------------------------------------- */
.counter-number{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-secondary);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

/* ---------------------------------------------------------------------- */
/* RECENT PROJECTS GALLERY                                                */
/* ---------------------------------------------------------------------- */
.project-gallery-item{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: linear-gradient(155deg, var(--color-primary), #223250 65%, var(--color-primary));
  box-shadow: var(--shadow-sm);
}
.project-gallery-item i.bg-icon{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  color: rgba(212,175,55,0.25);
}
.project-gallery-item img.bg-photo{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-gallery-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  opacity: 0.92;
  transform: translateY(0);
  transition: all var(--transition);
}
.project-gallery-item:hover .project-gallery-overlay{ opacity: 1; background: linear-gradient(0deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.4) 70%, rgba(15,23,42,0.05) 100%); }
.project-gallery-overlay h6{ color: var(--color-white); margin-bottom: 0.15rem; }
.project-gallery-overlay .loc{ color: var(--color-silver); font-size: 0.82rem; }
.project-gallery-overlay .view-link{
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: var(--space-2);
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition);
}
.project-gallery-item:hover .view-link{ opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* TESTIMONIALS                                                           */
/* ---------------------------------------------------------------------- */
.testimonial-card{
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.testimonial-avatar{
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-primary), #2a3a58);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  color: var(--color-secondary);
  font-size: 1.6rem;
  border: 3px solid var(--color-secondary-light);
  overflow: hidden;
}
.testimonial-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.testimonial-stars{ color: var(--color-secondary); font-size: 1rem; margin-bottom: var(--space-3); }
.testimonial-quote{ font-size: 1.1rem; font-style: italic; color: var(--color-text); margin-bottom: var(--space-4); }

#testimonialCarousel .carousel-indicators{ position: static; margin-top: var(--space-5); }
#testimonialCarousel .carousel-indicators [data-bs-target]{
  width: 9px; height: 9px; border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  opacity: 1;
}
#testimonialCarousel .carousel-indicators .active{ background-color: var(--color-secondary); width: 24px; border-radius: var(--radius-pill); }

/* ---------------------------------------------------------------------- */
/* BRANDS / LOGO MARQUEE                                                  */
/* ---------------------------------------------------------------------- */
.brands-marquee{
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track{
  display: flex;
  gap: var(--space-8);
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.brands-marquee:hover .brands-track{ animation-play-state: paused; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.brand-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}
.brand-chip:hover{ opacity: 1; color: var(--color-primary); }
.brand-chip i{ font-size: 1.4rem; color: var(--color-secondary); }

/* ---------------------------------------------------------------------- */
/* FAQ ACCORDION                                                          */
/* ---------------------------------------------------------------------- */
.faq-accordion .accordion-item{
  border: 1px solid var(--color-border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.faq-accordion .accordion-button{
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-white);
}
.faq-accordion .accordion-button:not(.collapsed){
  background-color: rgba(212,175,55,0.08);
  color: var(--color-secondary-dark);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus{ box-shadow: none; border-color: var(--color-secondary); }
.faq-accordion .accordion-button::after{ filter: sepia(1) saturate(3) hue-rotate(360deg); }
.faq-accordion .accordion-body{ padding: var(--space-4) var(--space-5) var(--space-5); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------- */
/* GENERIC LAZY IMAGE FADE-IN (for future real <img loading="lazy">)      */
/* ---------------------------------------------------------------------- */
img[loading="lazy"]{ transition: opacity 0.4s ease; }

/* ---------------------------------------------------------------------- */
/* CLICKABLE CARDS (category + featured product)                          */
/* ---------------------------------------------------------------------- */
a.category-card-link{ display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.category-card-link:hover{ color: inherit; }
a.category-card-link:focus-visible{ outline: 3px solid var(--color-secondary); outline-offset: 3px; }
.category-card-image.has-image img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.category-card:hover .category-card-image.has-image img{ transform: scale(1.08); }

a.product-card-image{ cursor: pointer; text-decoration: none; }
.product-card-title-link{ color: inherit; text-decoration: none; }
.product-card-title-link:hover{ color: var(--color-secondary-dark); }
