/* ============================================
   PREMIUM STYLES & OFFICIAL BRAND PALETTE
   Shri Ram Buildtech (shrirambuildtech.in)
   ============================================ */

:root {
  --color-ink: #0F172A;
  --color-paper: #FAFCFF;
  --color-paper-alt: #E7F6FF;
  --color-muted: #364151;
  --color-faint: #64748B;
  --color-gold: #0067FF;
  --color-gold-dark: #005EE9;
  --color-line: #D1DAE5;
}

/* --- SCROLL REVEAL SYSTEM --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 {
  transition-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s;
}

.stagger-3 {
  transition-delay: 0.24s;
}

.stagger-4 {
  transition-delay: 0.32s;
}

.stagger-5 {
  transition-delay: 0.40s;
}

.stagger-6 {
  transition-delay: 0.48s;
}

.stagger-7 {
  transition-delay: 0.56s;
}

/* --- PRODUCT SLIDER SYSTEM --- */
.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.product-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.product-slider-track::-webkit-scrollbar {
  display: none;
}
.product-slider-track:active {
  cursor: grabbing;
}

.pslider-card {
  flex: 0 0 320px;
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .pslider-card {
    flex: 0 0 350px;
  }
}
@media (min-width: 1024px) {
  .pslider-card {
    flex: 0 0 380px;
  }
}
.pslider-card:hover {
  box-shadow: 0 16px 48px rgba(0, 103, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.pslider-card .card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--color-line);
}
.pslider-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pslider-card:hover .card-img-wrap img {
  transform: scale(1.08);
}
.pslider-card .card-img-wrap .card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 103, 255, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pslider-card .card-img-wrap .card-number {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-display, sans-serif);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}
.pslider-card .card-body {
  padding: 20px 24px 8px;
  flex: 1;
}
.pslider-card .card-body h3 {
  font-family: var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}
.pslider-card:hover .card-body h3 {
  color: var(--color-gold);
}
.pslider-card .card-body p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pslider-card .card-footer {
  padding: 14px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pslider-card .card-footer .cta-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pslider-card .card-footer .cta-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 103, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  transition: all 0.35s ease;
}
.pslider-card:hover .card-footer .cta-arrow {
  background: var(--color-gold);
  color: #fff;
  transform: translateX(3px);
}

/* Slider Wrapper & Side Hover Arrows */
.slider-wrapper {
  position: relative;
}

.slider-side-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease, color 0.25s ease;
}
.slider-side-prev {
  left: 8px;
}
.slider-side-next {
  right: 8px;
}
.slider-wrapper:hover .slider-side-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
.slider-side-btn:hover {
  background: var(--color-gold);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 103, 255, 0.3);
}

/* Slider Progress */
.slider-progress-wrap {
  width: 200px;
  height: 4px;
  background: var(--color-line);
  border-radius: 100px;
  overflow: hidden;
  margin: 32px auto 0;
}
.slider-progress-wrap .slider-progress-bar {
  height: 100%;
  width: 10%;
  background: var(--color-gold);
  border-radius: 100px;
  transition: width 0.3s ease;
}

.text-white {
  color: #ffffff !important;
}

.btn-primary {
  color: #ffffff !important;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transform: skewX(-25deg);
  animation: btn-shimmer 5s ease-in-out infinite;
}

@keyframes btn-shimmer {

  0%,
  100% {
    left: -60%;
  }

  50% {
    left: 120%;
  }
}

/* --- NAV LINK UNDERLINE --- */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  border-radius: 1px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-active::after {
  width: 100%;
}

/* --- HAMBURGER ANIMATION --- */
.hamburger-btn .hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.is-active .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

/* ============================================
   PREMIUM CIRCULAR ICON BADGES
   (Why uPVC & How It Works Sections)
   ============================================ */
.benefit-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 103, 255, 0.08),
    inset 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

/* Outer ring glow effect */
.benefit-circle::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 103, 255, 0.25);
}

.benefit-circle i,
.benefit-circle svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-circle:hover {
  box-shadow:
    0 8px 24px rgba(0, 103, 255, 0.18),
    inset 0 2px 8px rgba(0, 0, 0, 0.02);
  border-color: var(--color-gold-dark);
}

.benefit-circle-wrap:hover .benefit-circle i,
.benefit-circle-wrap:hover .benefit-circle svg,
.benefit-circle:hover i,
.benefit-circle:hover svg {
  transform: scale(1.2);
}

.benefit-circle-wrap {
  cursor: default;
  flex: 1 1 0px;
  min-width: 100px;
  max-width: 140px;
}

@media (min-width: 640px) {
  .benefit-circle {
    width: 110px;
    height: 110px;
  }
}

@media (min-width: 1024px) {
  .benefit-circle {
    width: 115px;
    height: 115px;
  }
}

/* --- PRODUCT CARD HOVER --- */
.product-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 35, 63, 0.18);
}

.product-card .product-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

/* --- GRADIENT TEXT --- */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.18em;
  padding-bottom: 0.05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- CLIENT LOGO MARQUEE STRIP (PREMIUM INFINITE SCROLL) --- */
.clients-marquee-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 10%,
      black 90%,
      transparent 100%);
}

.clients-marquee-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
}

.clients-marquee-track:hover .clients-marquee-inner {
  animation-play-state: paused;
}

@keyframes clients-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-card {
  background-color: #ffffff;
  border: 1.5px solid var(--color-line);
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(18, 35, 63, 0.05);
  flex-shrink: 0;
  width: 168px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.client-card:hover {
  transform: translateY(0px) scale(1.00);
  box-shadow: 0 14px 30px rgba(18, 35, 63, 0.10);
  border-color: var(--color-gold);
}

.client-logo {
  max-height: 56px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
}

.client-card:hover .client-logo {
  transform: scale(1.07);
}

/* --- CTA GRADIENT --- */
.cta-gradient {
  background: linear-gradient(-45deg, #12233F, #1a3158, #12233F, #0d1a2e);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- FORM INPUT FOCUS GLOW --- */
.input-premium {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-premium:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.12);
  outline: none;
}

/* --- SOCIAL ICON BUTTONS --- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 247, 249, 0.2);
  color: rgba(246, 247, 249, 0.85);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  transform: translateY(-2px);
}

/* --- HERO TEXT REVEAL --- */
.hero-text-reveal {
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-text-reveal.delay-1 {
  animation-delay: 0.15s;
}

.hero-text-reveal.delay-2 {
  animation-delay: 0.35s;
}

.hero-text-reveal.delay-3 {
  animation-delay: 0.6s;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* --- PROJECT CARD HOVER --- */
.project-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 35, 63, 0.1);
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  border: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-gold);
  color: var(--color-ink);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- WHY uPVC IMAGE & CARD UNIFORMITY --- */
.why-card-img-wrap {
  position: relative;
  height: 220px !important;
  width: 100% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.why-card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* --- COLORS SECTION HEADER SPACING --- */
.why-colors-header {
  margin-top: 5.5rem !important;
  margin-bottom: 3.5rem !important;
}

/* --- REASONS TABLE-LIKE GRID FRAME --- */
.reasons-table-frame {
  border: 1px solid var(--color-line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--color-paper);
}

.reasons-table-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .reasons-table-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reasons-table-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reason-table-cell {
  padding: 2.25rem 2rem;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  transition: background-color 0.3s ease;
}

.reason-table-cell:hover {
  background-color: rgba(246, 247, 249, 0.6);
}

@media (min-width: 640px) and (max-width: 1023px) {
  .reason-table-cell {
    border-right: 1px solid var(--color-line);
  }
  .reason-table-cell:nth-child(2n) {
    border-right: none;
  }
  .reason-table-cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .reason-table-cell {
    border-right: 1px solid var(--color-line);
  }
  .reason-table-cell:nth-child(3n) {
    border-right: none;
  }
  .reason-table-cell:nth-last-child(-n+3) {
    border-bottom: none;
  }
}

/* Rectangular Outline Icon Box Container (~70px tall, full cell width minus padding) */
.reason-icon-box {
  height: 70px;
  width: 100%;
  border: 1px solid rgba(0, 103, 255, 0.45);
  border-radius: 0.75rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  transition: border-color 0.35s ease, color 0.35s ease;
}

.reason-icon-box svg,
.reason-icon-box i {
  transition: transform 0.35s ease, color 0.35s ease;
}

/* Hover: icon box border & icon shift to deeper accent shade + icon nudges up 3px */
.reason-table-cell:hover .reason-icon-box {
  border-color: var(--color-gold-dark);
  color: var(--color-gold-dark);
}

.reason-table-cell:hover .reason-icon-box svg,
.reason-table-cell:hover .reason-icon-box i {
  transform: translateY(-3px);
  color: var(--color-gold-dark);
}

.why-color-card {
  background: var(--color-paper);
  border: 1px solid rgba(18, 35, 63, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(18, 35, 63, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.why-color-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(18, 35, 63, 0.08);
  border-color: rgba(0, 103, 255, 0.4);
}

.why-color-img-wrap {
  position: relative;
  height: 300px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(18, 35, 63, 0.06) !important;
  border-radius: 0.875rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.why-color-img-wrap img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.4s ease;
}
.why-color-card:hover .why-color-img-wrap img {
  transform: scale(1.03);
}

/* --- SUMMARY QUOTE BANNER --- */
.summary-quote-card {
  margin-top: 4.5rem !important;
  padding: 1.75rem 2.5rem !important;
  background: var(--color-paper) !important;
  border: none !important;
  border-left: 4px solid var(--color-gold) !important;
  border-radius: 0 1rem 1rem 0 !important;
  box-shadow: 0 8px 30px rgba(18, 35, 63, 0.04) !important;
}

/* --- BLOG GRID & CARD ALIGNMENT --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: 100%;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.blog-card-article {
  border: 1px solid var(--color-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  background: var(--color-paper);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-body {
  padding: 28px 28px 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes content and ensures alignment */
}

.blog-card-body p {
  margin-top: 8px;
  margin-bottom: 0;
  flex-grow: 1; /* Pushes the card footer to the very bottom */
}

.blog-card-footer {
  padding: 16px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(18, 35, 63, 0.03);
}