/* ══════════════════════════════════════
   SECTION 1 — HERO BANNER
══════════════════════════════════════ */
.res-hero {
  position: relative;
  width: 100%;
  height: 200px;
  background-image: url('../img/sectionsbgimage.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}
.res-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(20,17,12,0.62); */
}
.res-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.res-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.res-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.res-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.res-breadcrumb a:hover { color: #e30613; }
.res-breadcrumb span    { color: #e30613; }
.res-breadcrumb-dot     { color: #e30613; font-size: 16px; }


/* ══════════════════════════════════════
   SECTION 2 — SLIDER + TEXT
══════════════════════════════════════ */
.res-intro {
  background: #fff;
  padding: 80px 48px;
  font-family: 'Poppins', sans-serif;
}
.res-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Slider */
.res-slider { position: relative; }
.res-slides {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.res-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.res-slide.active { opacity: 1; }
.res-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}

/* Dots */
.res-slider-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px;
}
.res-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffe2e4; border: none; cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.res-dot.active { background: #e30613; transform: scale(1.3); }

/* Arrows */
.res-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9); border: 1px solid #ffd6d9;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s; z-index: 5;
}
.res-arrow:hover { background: #e30613; border-color: #e30613; }
.res-arrow:hover svg { stroke: #fff; }
.res-arrow svg { width: 16px; height: 16px; fill: none; stroke: #181818; stroke-width: 2; }
.res-arrow-prev { left: 12px; }
.res-arrow-next { right: 12px; }

/* Right text */
.res-intro-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: #e30613; margin-bottom: 16px;
}
.res-intro-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 44px; font-weight: 400; color: #181818;
  line-height: 1.1; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}
.res-intro-heading span { color: #e30613; font-style: italic; text-transform: none; }
.res-intro-divider { width: 48px; height: 2px; background: #e30613; margin-bottom: 24px; }
.res-intro-desc { font-size: 14px; color: #666; line-height: 1.9; letter-spacing: 0.3px; }


/* ══════════════════════════════════════
   SECTION 3 — FEATURE CARDS
   DEFAULT: sirf title visible (bottom mein)
   HOVER: desc slide up, title bhi upar
══════════════════════════════════════ */
.res-features { background: #fff7f7; padding: 0; }

.res-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 100%;
}

.res-feat-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 480px;
}

/* Image */
.res-feat-img-wrap { width: 100%; height: 100%; overflow: hidden; }
.res-feat-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transition: transform 0.5s ease;
}
.res-feat-card:hover .res-feat-img-wrap img { transform: scale(1.05); }

/* Gradient overlay — stronger at bottom */
.res-feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(20,17,12,0.82) 0%,
    rgba(20,17,12,0.0) 55%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: background 0.35s ease;
}
.res-feat-card:hover .res-feat-overlay {
  background: linear-gradient(to top,
    rgba(20,17,12,0.92) 0%,
    rgba(20,17,12,0.2) 70%
  );
}

/* Text wrapper */
.res-feat-text {
  width: 100%;
}

/* Title — hamesha visible */
.res-feat-title {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0;
  transition: margin-bottom 0.35s ease;
}
.res-feat-card:hover .res-feat-title {
  margin-bottom: 10px;
}

/* Description — DEFAULT hidden, hover pe aata hai */
.res-feat-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  letter-spacing: 0.3px;
  max-width: 320px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}
.res-feat-card:hover .res-feat-desc {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  transition: 0.5s;
}

/* Gold bottom line on hover */
.res-feat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: #e30613;
  transition: height 0.3s ease;
}
.res-feat-card:hover::after { height: 3px; }


/* ══════════════════════════════════════
   SECTION 4 — VIEWS / VIDEO
══════════════════════════════════════ */
.res-views {
  background: #fff;
  padding: 80px 48px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.res-views-header { max-width: 680px; margin: 0 auto 48px; }
.res-views-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: #e30613; margin-bottom: 12px;
}
.res-views-title {
  font-family: 'Poppins', sans-serif;
  font-size: 42px; font-weight: 400; color: #181818;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 18px;
}
.res-views-desc { font-size: 14px; color: #888; line-height: 1.8; letter-spacing: 0.3px; }

.res-views-media { max-width: 720px; margin: 0 auto; }
.res-views-img-wrap { position: relative; width: 100%; overflow: hidden; }
.res-views-img-wrap img,
.res-views-img-wrap video {
  width: 100%; height: 420px; object-fit: cover; display: block;
}

/* Play button */
.res-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.92); border: none; border-radius: 50%;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.res-play-btn:hover {
  background: #e30613;
  transform: translate(-50%, -50%) scale(1.08);
}
.res-play-btn svg { width: 20px; height: 20px; fill: #181818; }
.res-play-btn:hover svg { fill: #fff; }
.res-play-btn span {
  font-family: 'Poppins', sans-serif; font-size: 9px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #181818;
}
.res-play-btn:hover span { color: #fff; }


/* ══════════════════════════════════════
   SECTION 5 — GALLERY GRID + LIGHTBOX
   Hover: magnifier (search+) icon
══════════════════════════════════════ */
.res-gallery {
  background: #fff7f7;
  padding: 80px 48px;
  font-family: 'Poppins', sans-serif;
}
.res-gallery-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.res-gallery-title {
  font-family: 'Poppins', sans-serif;
  font-size: 38px; font-weight: 400; color: #181818;
  margin-bottom: 18px; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 2px;
}
.res-gallery-title span { color: #e30613; font-style: italic; text-transform: none; }
.res-gallery-desc { font-size: 14px; color: #888; line-height: 1.8; letter-spacing: 0.3px; }

.res-gallery-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 4px;
}

/* Gallery item */
.res-gal-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.res-gal-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  transition: transform 0.8s ease, filter 0.4s ease;
}
.res-gal-item:hover img {
  transform: scale(1.3);
  filter: brightness(0.65);
}

/* Overlay */
.res-gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,17,12,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}
.res-gal-item:hover .res-gal-overlay {
  background: rgba(20,17,12,0.3);
}

/* Magnifier icon */
.res-gal-icon {
  width: 54px; height: 54px;
  /* border: 2px solid #fff; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.res-gal-item:hover .res-gal-icon {
  opacity: 1;
  transform: scale(1);
}
.res-gal-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ══ GALLERY LIGHTBOX ══ */
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gal-lightbox.active {
  visibility: visible;
  opacity: 1;
}
.gal-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  border: 2px solid #e30613;
}
.gal-lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid rgba(184,168,130,0.5);
  color: #e30613;
  font-size: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}
.gal-lightbox-close:hover { background: #e30613; color: #ffffff; }


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1000px) {
  .res-intro-inner    { grid-template-columns: 1fr; gap: 40px; }
  .res-slides         { height: 360px; }
  .res-intro-heading  { font-size: 36px; }
  .res-features-grid  { grid-template-columns: 1fr; }
  .res-feat-card      { height: 360px; }
  .res-gallery-grid   { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 240px); }
  .res-intro, .res-views, .res-gallery { padding: 60px 28px; }
}

@media (max-width: 600px) {
  .res-hero           { height: 160px; }
  .res-hero-title     { font-size: 28px; }
  .res-intro-heading  { font-size: 28px; }
  .res-slides         { height: 280px; }
  .res-feat-card      { height: 280px; }
  .res-views-img-wrap img { height: 280px; }
  .res-gallery-grid   { grid-template-columns: 1fr; grid-template-rows: repeat(6, 220px); }
  .res-gallery-title  { font-size: 26px; }
  .res-intro, .res-views, .res-gallery { padding: 44px 18px; }
}

/* Viaan Infra red brand theme update */
:root{
  --viaan-red:#e30613;
  --viaan-red-dark:#b8000a;
  --viaan-red-soft:#fff2f3;
  --viaan-dark:#181818;
  --viaan-text:#222222;
}
html, body{font-family:'Poppins', Arial, sans-serif !important;background:#ffffff;color:var(--viaan-text);}
h1,h2,h3,h4,h5,h6,.bld-hero-title,.hero-title,.section-title,.about-title{font-family:'Poppins', Arial, sans-serif !important;font-weight:800;letter-spacing:-0.03em;}
p,li,a,span,button,input,textarea,select{font-family:'Poppins', Arial, sans-serif !important;}
.nav-logo img,.footer-logo img{max-height:82px;object-fit:contain;}
.navbar,.nav-header,.header,.main-header{background:#ffffff !important;border-color:#ffd6d9 !important;box-shadow:0 8px 28px rgba(227,6,19,.08) !important;}
.nav-menu a,.nav-link,.mobile-menu a{color:var(--viaan-dark) !important;font-weight:600;}
.nav-menu a:hover,.nav-link:hover,.nav-menu .active,.nav-link.active{color:var(--viaan-red) !important;}
.bld-hero,.hero,.main-hero,.page-banner,.banner,.inner-banner{background-color:var(--viaan-dark) !important;}
.bld-hero::before,.hero::before,.main-hero::before,.page-banner::before,.banner::before{background:linear-gradient(90deg,rgba(24,24,24,.88),rgba(227,6,19,.55),rgba(24,24,24,.25)) !important;}
.bld-hero-overlay,.hero-overlay,.banner-overlay{background:linear-gradient(90deg,rgba(24,24,24,.86),rgba(227,6,19,.52)) !important;}
.bld-hero-title,.hero-title,.banner-title{color:#ffffff !important;text-shadow:0 4px 18px rgba(0,0,0,.35);}
.bld-hero-subtitle,.hero-subtitle,.banner-subtitle{color:#ffe2e4 !important;}
.btn,.button,.theme-btn,.primary-btn,.read-more,.cta-btn,button[type='submit'],input[type='submit']{background:var(--viaan-red) !important;color:#ffffff !important;border-color:var(--viaan-red) !important;border-radius:6px !important;font-weight:700 !important;box-shadow:0 10px 24px rgba(227,6,19,.22) !important;}
.btn:hover,.button:hover,.theme-btn:hover,.primary-btn:hover,.read-more:hover,.cta-btn:hover,button[type='submit']:hover,input[type='submit']:hover{background:var(--viaan-red-dark) !important;border-color:var(--viaan-red-dark) !important;color:#ffffff !important;}
a{color:var(--viaan-red);} a:hover{color:var(--viaan-red-dark);}
.section-label,.eyebrow,.about-hero-eyebrow,.subtitle,.tagline,.logo-tagline{color:var(--viaan-red) !important;font-weight:700 !important;}
.title-underline,.section-title:after,.heading-line,.divider,.bld-hero-divider{background:var(--viaan-red) !important;border-color:var(--viaan-red) !important;}
.card,.project-card,.service-card,.feature-card,.faq-item,.amenity-card,.blog-card,.contact-card,.team-card{border-color:#ffd6d9 !important;box-shadow:0 12px 32px rgba(227,6,19,.08) !important;}
.card:hover,.project-card:hover,.service-card:hover,.feature-card:hover,.blog-card:hover{box-shadow:0 18px 44px rgba(227,6,19,.16) !important;transform:translateY(-3px);}
.icon,.service-icon,.feature-icon,.contact-icon,i{color:var(--viaan-red) !important;}
footer,.footer{background:#181818 !important;color:#ffffff !important;}
footer a,.footer a{color:#ffe2e4 !important;} footer a:hover,.footer a:hover{color:#ffffff !important;}
footer h1,footer h2,footer h3,footer h4,.footer h1,.footer h2,.footer h3,.footer h4{color:#ffffff !important;}
.footer-bottom,.copyright{border-color:rgba(227,6,19,.35) !important;}
.social-icon, .social a{background:rgba(227,6,19,.12) !important;color:#ffffff !important;border-color:rgba(227,6,19,.35) !important;}
.social-icon:hover,.social a:hover{background:var(--viaan-red) !important;}
input:focus,textarea:focus,select:focus{border-color:var(--viaan-red) !important;box-shadow:0 0 0 3px rgba(227,6,19,.12) !important;outline:none;}
.badge,.counter,.count,.project-status,.highlight{background:var(--viaan-red-soft) !important;color:var(--viaan-red) !important;border-color:#ffd6d9 !important;}
::selection{background:var(--viaan-red);color:#ffffff;}
