/* ==========================================================================
   JC CONSTRUCTION AND MASTER PLUMBING, INC.
   Custom Overrides & Enhancements for Optik Webflow Template
   ========================================================================== */

/* 1. Ensure Webflow inline hidden styles are reset */
[style*="opacity: 0"]:not(.scroll-reveal),
[style*="opacity:0"]:not(.scroll-reveal) {
  opacity: 1 !important;
  transform: none !important;
}

/* 2. Google Fonts Enforcement */
body, html {
  font-family: 'Urbanist', sans-serif !important;
  background-color: #f7f7f7 !important;
  color: rgba(0, 0, 0, 0.8) !important;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.about-section-title,
.portfolio-section-title,
.service-section-title,
.awards-section-title,
.big-title,
.counter-item-text,
.awards-item-buttom-17-text {
  font-family: 'Phudu', sans-serif !important;
  font-weight: 700 !important;
}

/* 2.5 Header Enhancements: Larger Logo & Language Switcher */
.header-item-left {
  width: auto !important;
  min-width: 280px !important;
  display: flex !important;
  align-items: center !important;
}

.header-logo-wrap {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.header-logo {
  height: 56px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  transition: transform 0.25s ease !important;
  display: block !important;
}

.header-logo:hover {
  transform: scale(1.02);
}

@media (max-width: 991px) {
  .header-item-left {
    min-width: unset !important;
  }
  .header-logo {
    height: 44px !important;
  }
}

.header-item-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}

/* Nav Menu Consistency & Balanced Spacing for Desktop */
@media (min-width: 768px) {
  .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important; /* Balanced spacing so menu items stay together cleanly */
    margin: 0 auto !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .header-item-right .call-link,
  .header-item-right-text-wrap {
    display: flex !important;
  }
}

.navigation {
  font-family: 'Urbanist', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important; /* NEVER wrap to a second line */
  padding: 6px 4px !important;
  color: #222222 !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
  display: inline-block !important;
  line-height: 1.2 !important;
}

.navigation:hover,
.navigation.w--current {
  color: #000000 !important;
  opacity: 1 !important;
}

.lang-switch-wrap {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 9999px !important;
  padding: 3px 5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.lang-btn {
  background: none !important;
  border: none !important;
  font-family: 'Phudu', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #71717A !important;
  padding: 6px 12px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

.lang-btn.active {
  background-color: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
}

.lang-sep {
  color: rgba(0, 0, 0, 0.18) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  user-select: none !important;
}

/* 2.6 Page Load & Scroll-Triggered Entrance Animations */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroHouseEnter {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-btn-wrap {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-title-wrap {
  animation: heroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* Smooth Scroll Reveal System */
.scroll-reveal {
  opacity: 0 !important;
  transform: translateY(32px) !important;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }

/* 3. Hero Layout Restored */
.hero {
  position: relative !important;
  overflow: hidden !important;
  height: 830px !important;
  padding-top: 220px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  background-color: #f7f7f7 !important;
  display: block !important;
}

.hero-row {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
}

.hero-img {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  height: 100% !important;
  width: auto !important;
  max-width: 1100px !important;
  object-fit: cover !important;
  object-position: right bottom !important;
  pointer-events: none !important;
  z-index: 1 !important;
  animation: heroHouseEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both !important;
}

.hero-ovelay {
  position: absolute !important;
  inset: auto 0% 0% !important;
  height: 360px !important;
  background-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%),
                    linear-gradient(90deg, transparent 38%, rgba(0, 0, 0, 0.4) 100%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
  filter: blur(20px) !important;
}

.hero-title {
  font-size: clamp(56px, 11vw, 160px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase !important;
  background-image: linear-gradient(90deg, #111111 38%, #ffffff 38%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-top: 10px;
  word-break: break-word;
}



/* 4. Partner Section / Marquee Continuous Sliding */
.patner-section {
  background-color: #2d2d2de8;
  padding: 30px 0;
  overflow: hidden;
}

.ticket-wrap {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.client-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: partnerMarquee 25s linear infinite;
  flex-shrink: 0;
  padding-right: 40px;
}

@keyframes partnerMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.client-img {
  height: 34px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.partner-text-tag {
  font-family: 'Phudu', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-text-tag::after {
  content: '•';
  color: #c59b27;
  font-size: 18px;
}

/* 5. About Section */
.abou-right {
  position: relative;
}

.about-c {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

.abou-img-wrap {
  position: relative;
  z-index: 2;
}

.counter-wrap {
  position: relative;
  z-index: 3;
}

/* 6. Portfolio / Projects Gallery - preserve Optik flex staggered layout */
.portfolio-item-wrap {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 991px) {
  .portfolio-item-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.portfolio-collection-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-collection-wrap:hover .portfolio-collection-img-wrap img {
  transform: scale(1.06);
}

.location-wrap {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.location-wrap img {
  width: 14px;
  height: 14px;
}

/* 7. Services List (Exact Optik Hover Preview) */
.service-collection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.service-collection-item:hover {
  padding-left: 16px;
  padding-right: 16px;
  background-color: rgba(0, 0, 0, 0.02);
}

.service-collection-item-img-wrap {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(0.85) !important;
  width: 220px !important;
  height: 145px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 25 !important;
}

.service-collection-item:hover .service-collection-item-img-wrap {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.service-collection-item-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  display: block !important;
}

@media (max-width: 991px) {
  .service-collection-item-img-wrap {
    display: none !important;
  }
}

/* 8. Big Text Continuous Banner (Optik Style with Overlapping Floating Photos) */
.big-text {
  background-color: #111111 !important;
  padding: 80px 0 90px 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.big-text-row {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
}

.big-title-wrap {
  display: flex !important;
  width: max-content !important;
  animation: bigTextSlide 35s linear infinite !important;
  position: relative !important;
  align-items: center !important;
  will-change: transform !important;
}

.big-title {
  color: #ffffff !important;
  white-space: nowrap !important;
  font-size: clamp(64px, 12vw, 150px) !important;
  padding: 0 40px !important;
  margin: 0 !important;
  opacity: 0.9 !important;
  font-family: 'Phudu', sans-serif !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  transform: none !important; /* CRITICAL: Webflow JS tries to animate children individually, causing collisions. This locks them in a single row */
}

@keyframes bigTextSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.big-img-wrap {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 220px !important;
  height: 250px !important;
  z-index: 10 !important;
  pointer-events: none;
}

.big-img {
  position: absolute !important;
  width: 185px !important;
  height: 240px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65) !important;
  transform: rotate(-7deg) !important;
  left: 0 !important;
  top: 0 !important;
}

.big-img._02 {
  transform: rotate(9deg) translate(30px, 12px) !important;
}

@media (max-width: 767px) {
  .big-img-wrap {
    display: none !important;
  }
}

/* 9. Contact Section Form Styling (Optik Aesthetic) */
.contact-section-optik {
  padding: 100px 0;
  background-color: #ffffff;
}

.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 991px) {
  .contact-box-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-card-info {
  background-color: #f7f7f7;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.contact-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-circle svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.contact-form-optik {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 767px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  background-color: #f7f7f7;
  color: #111111;
  outline: none;
  transition: all 0.2s ease;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  border-color: #111111;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.contact-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* 9.5 Blog / Insights Grid (Optik Layout) */
.blog-collection-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

@media (max-width: 991px) {
  .blog-collection-list {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

.blog-collection-img-wrap {
  width: 100% !important;
  height: 280px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.blog-collection-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.blog-collection-wrap:hover .blog-collection-img {
  transform: scale(1.08) !important;
}

/* 10. Footer Polish (Exact Optik House & Giant Watermark) */
.footer-img-wrap {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 60px !important;
  width: 100% !important;
  padding-bottom: 20px !important;
}

.footer-img {
  position: relative !important;
  z-index: 1 !important;
  max-width: 920px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.footer-logo {
  position: absolute !important;
  bottom: 0px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: 1036px !important;
  width: 95% !important;
  height: auto !important;
  z-index: 2 !important;
  pointer-events: none !important;
  display: block !important;
}

/* Footer Company Logo (Above Phone & Email) */
.footer-right {
  max-width: 380px !important;
  width: auto !important;
}

.footer-link-item-2._02 {
  align-items: flex-start !important;
}

.footer-logo-link {
  display: block !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
}

.image-9,
.footer-logo-link img {
  height: 60px !important;
  width: auto !important;
  max-width: 360px !important;
  max-height: none !important;
  display: block !important;
  transition: transform 0.25s ease !important;
}

.footer-logo-link:hover img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .footer-right {
    max-width: 100% !important;
    width: 100% !important;
  }
  .image-9,
  .footer-logo-link img {
    height: 48px !important;
    max-width: 290px !important;
  }
}

/* Lightbox Modal */
.optik-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.optik-lightbox.active {
  display: flex;
}

.optik-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.optik-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 38px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile Sticky Call Bar */
.optik-mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(20, 20, 22, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 767px) {
  .optik-mobile-call-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

.optik-call-btn {
  flex: 1;
  background-color: #c59b27;
  color: #ffffff;
  font-family: 'Phudu', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 9999px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.optik-estimate-btn {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Phudu', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 9999px;
  text-decoration: none;
}

/* ==========================================================================
   11. Real Projects Comprehensive Gallery Section
   ========================================================================== */
.gallery-section {
  padding: 110px 0 130px 0;
  background-color: #f7f7f7;
  position: relative;
}

.gallery-header-wrap {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-section-title {
  font-family: 'Phudu', sans-serif !important;
  font-size: clamp(34px, 5vw, 60px) !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-top: 18px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.gallery-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #666666;
  max-width: 680px;
}

/* Category Filter Tabs */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.gallery-filter-btn {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #555555;
  padding: 11px 24px;
  border-radius: 9999px;
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  outline: none;
}

.gallery-filter-btn:hover {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-filter-btn.active {
  background-color: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Responsive Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Gallery Card Design */
.gallery-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.08);
}

.gallery-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border-radius: 9999px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-title {
  color: #ffffff;
  font-family: 'Phudu', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.25;
}

.gallery-card-loc {
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-card.hidden {
  display: none !important;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1040px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin-top: 18px;
  text-align: center;
  color: #ffffff;
}

.lightbox-title {
  font-family: 'Phudu', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox-loc {
  font-family: 'Urbanist', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #ffffff;
  color: #111111;
  transform: scale(1.1);
}

/* ==========================================================================
   12. COMPREHENSIVE RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Prevent any horizontal overflow across all viewports */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* --- MOBILE PHONES (< 768px) ONLY --- */
@media (max-width: 767px) {
  .w-container,
  .container,
  .header-container {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Header & Navigation */
  .header-section {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(247, 247, 247, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 10px 0 !important;
  }

  .header-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
  }

  .header-item-left {
    min-width: unset !important;
    width: auto !important;
    flex: 0 1 auto !important;
  }

  .header-logo {
    height: 38px !important;
    width: auto !important;
    max-width: 180px !important;
    display: block !important;
  }

  .header-item-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    margin-right: 10px !important;
  }

  /* Hide desktop phone widget on mobile header to avoid crowding */
  .header-item-right .call-link {
    display: none !important;
  }

  .lang-switch-wrap {
    padding: 2px 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  }

  .lang-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* Hamburger Toggle Button */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    z-index: 1005 !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
  }

  .mobile-menu-btn:active {
    transform: scale(0.95) !important;
  }

  .mobile-menu-icon {
    display: block !important;
    width: 18px !important;
    height: 14px !important;
    position: relative !important;
    background: transparent !important;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #111111 !important;
    border-radius: 2px !important;
    transition: all 0.25s ease !important;
  }

  .mobile-menu-icon::before {
    top: 0 !important;
    box-shadow: 0 6px 0 #111111 !important;
  }

  .mobile-menu-icon::after {
    bottom: 0 !important;
  }

  /* Hamburger transform when menu is active */
  .mobile-menu-btn.is-active .mobile-menu-icon::before {
    top: 6px !important;
    box-shadow: none !important;
    transform: rotate(45deg) !important;
  }

  .mobile-menu-btn.is-active .mobile-menu-icon::after {
    bottom: 6px !important;
    transform: rotate(-45deg) !important;
  }

  /* Mobile Navigation Dropdown & Webflow Overlay Reset */
  .w-nav-overlay {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 1003 !important;
  }

  .nav-menu {
    display: none !important;
    position: relative !important;
    top: 8px !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    padding: 16px 12px !important;
    flex-direction: column !important;
    gap: 6px !important;
    z-index: 1004 !important;
    box-sizing: border-box !important;
  }

  .nav-menu.is-open {
    display: flex !important;
    animation: mobileNavFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  }

  @keyframes mobileNavFadeIn {
    0% {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .navigation {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
    color: #111111 !important;
    background-color: #f8f8f8 !important;
    transition: background 0.18s ease, color 0.18s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .navigation:hover,
  .navigation:active,
  .navigation.w--current {
    background-color: #111111 !important;
    color: #ffffff !important;
  }

  /* Hero Section Mobile */
  .hero {
    height: auto !important;
    min-height: unset !important;
    padding-top: 36px !important;
    padding-bottom: 40px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 5 !important;
    gap: 16px !important;
  }

  .hero-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    text-align: center !important;
    color: rgba(0, 0, 0, 0.72) !important;
  }

  .hero-title-wrap {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .hero-title {
    font-size: clamp(34px, 10.5vw, 60px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
    margin: 0 auto !important;
    word-break: break-word !important;
  }

  .hero-btn-wrap {
    margin-top: 8px !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Restore Hero House Image on mobile (Webflow set display:none) */
  .hero-img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 360px !important;
    height: 230px !important;
    margin: 24px auto 0 !important;
    object-fit: contain !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.16)) !important;
    z-index: 3 !important;
  }

  .hero-ovelay {
    display: none !important;
  }

  /* Marquee Banner */
  .big-text {
    display: block !important; /* CRITICAL: Webflow hid this on <479px */
    padding: 36px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .big-title {
    font-size: clamp(28px, 8vw, 48px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .big-text-item {
    width: 120px !important;
    height: 160px !important;
  }

  /* About Section */
  .about-section {
    padding: 60px 0 !important;
  }

  .about-row {
    flex-direction: column !important;
    gap: 32px !important;
  }

  .about-col-left,
  .about-col-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-section-title {
    font-size: clamp(26px, 7vw, 42px) !important;
    line-height: 1.15 !important;
  }

  .about-counter-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-top: 24px !important;
  }

  .counter-item-text {
    font-size: clamp(24px, 6vw, 36px) !important;
  }

  .counter-text {
    font-size: 12px !important;
  }

  /* Services Section (CRITICAL Webflow override: was display:none on <479px) */
  .service-section {
    padding: 60px 0 !important;
  }

  .service-row {
    flex-direction: column !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }

  .service-section-title {
    font-size: clamp(26px, 7vw, 42px) !important;
    line-height: 1.15 !important;
  }

  .service-item-wrap {
    display: block !important; /* Forces visible on all mobile screens */
    width: 100% !important;
  }

  .service-collection-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .service-collection-item {
    width: 100% !important;
    padding: 24px 20px !important;
    border-radius: 18px !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  .service-heading {
    font-size: 20px !important;
  }

  .service-text {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  /* Portfolio Section (Fix flattened cards) */
  .portfolio-section {
    padding: 60px 0 !important;
  }

  .portfolio-section-title {
    font-size: clamp(26px, 7vw, 42px) !important;
    line-height: 1.15 !important;
  }

  .portfolio-collection-list-wrapper {
    width: 100% !important;
  }

  .portfolio-collection-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .portfolio-collection-item {
    width: 100% !important;
  }

  .portfolio-collection-img-wrap {
    width: 100% !important;
    height: 240px !important; /* CRITICAL: Fixes squished card images */
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .portfolio-collection-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Gallery Section Mobile */
  .gallery-section {
    padding: 60px 0 !important;
  }

  .gallery-filter-wrap {
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 12px !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    scrollbar-width: none !important;
  }
  .gallery-filter-wrap::-webkit-scrollbar {
    display: none !important;
  }

  .gallery-filter-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .gallery-card {
    height: 240px !important;
  }

  /* Awards & Credentials Section */
  .awards-section {
    padding: 60px 0 !important;
  }

  .awards-section-title {
    font-size: clamp(26px, 7vw, 42px) !important;
    line-height: 1.15 !important;
  }

  .awards-row {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .awards-collection-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .awards-collection-item {
    width: 100% !important;
  }

  .awards-item-buttom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }

  /* Blog / Insights Section (CRITICAL Webflow override: was display:none on <479px) */
  .blog-section {
    padding: 60px 0 !important;
  }

  .blog-item-wrap {
    display: block !important; /* CRITICAL: Webflow had display:none on <479px */
    width: 100% !important;
  }

  .blog-collection-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .blog-collection-item {
    width: 100% !important;
  }

  .blog-collection-img-wrap {
    height: 220px !important;
    width: 100% !important;
  }

  /* Testimonials & Contact */
  .testimonial-section,
  .contact-section-optik {
    padding: 60px 0 !important;
  }

  .contact-box-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .contact-card-info,
  .contact-form-optik {
    padding: 24px 20px !important;
  }

  .contact-form-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Footer */
  .footer {
    padding: 50px 0 30px 0 !important;
  }

  .footer-row {
    flex-direction: column !important;
    gap: 36px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-left,
  .footer-right {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-link-item-2._02 {
    align-items: center !important;
  }

  .footer-logo-link {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .image-9,
  .footer-logo-link img {
    height: 48px !important;
    max-width: 280px !important;
    margin: 0 auto 12px auto !important;
  }

  .footer-call-link {
    justify-content: center !important;
  }

  .footer-buttom {
    flex-direction: column !important;
    gap: 14px !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-img-wrap {
    margin-top: 30px !important;
  }

  .footer-img {
    max-width: 360px !important;
    height: auto !important;
  }

  .footer-logo {
    max-width: 360px !important;
    width: 90% !important;
  }
}

/* Extra small screens adjustments */
@media (max-width: 479px) {
  .hero-title {
    font-size: 34px !important;
  }
  .about-counter-wrap {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  .counter-item-text {
    font-size: 22px !important;
  }
  .counter-text {
    font-size: 11px !important;
  }
}

