/* --- Global Variables --- */
:root {
  --primary-cyan: #00bcd4;
  --primary-green: #52992d;
  --primary-green-hover: #438023;
  --quote-green: #7fad6c;
  --light-cream-bg: #f8f6f3;
  --header-bg: #ffffff;
  --footer-bg: #131913;
  --footer-bottom-bg: #0b0f0b;
  --text-dark: #1f2937;
  --text-muted: #5e6670;
  --border-color: #e5e7eb;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: #f7f3ed;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.section-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.section-container-wide {
  max-width: 1720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= MAIN SHOWROOM IVORY BEIGE MARBLE BACKGROUND ================= */
.marble-showroom-area {
  position: relative;
  width: 100%;
  background-color: #f7f3ed;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    url('../assets/ivory-beige-marble.jpg');
  background-repeat: repeat;
  background-size: 850px auto;
  background-position: top center;
  background-attachment: scroll;
}

/* Ensure sections inside the showroom area inherit the marble background */
.marble-showroom-area .about-hero-section,
.marble-showroom-area .showroom-banner-section,
.marble-showroom-area .story-section,
.marble-showroom-area .gallery-section {
  background-color: transparent !important;
}

/* Subtle, elegant warm dividers between showroom sections */
.marble-showroom-area .showroom-banner-section,
.marble-showroom-area .story-section,
.marble-showroom-area .gallery-section {
  border-top: 1px solid rgba(195, 175, 155, 0.35);
}

/* Ensure high-contrast solid white backgrounds on cards with warm drop shadow */
.marble-showroom-area .gallery-card {
  background-color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(90, 70, 50, 0.08);
}

.marble-showroom-area .gallery-card:hover {
  box-shadow: 0 12px 28px rgba(90, 70, 50, 0.14);
}

/* Header */
.site-header {
  background-color: var(--header-bg);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  color: var(--primary-cyan);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
  filter: brightness(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--primary-green);
}

.nav-link.active {
  color: var(--primary-green);
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #1f2937;
  font-size: 1.5rem;
  cursor: pointer;
}

/* About Intro */
.about-hero-section {
  background-color: var(--light-cream-bg);
  padding: 90px 0 75px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 50px;
  align-items: flex-start;
}

.page-main-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  font-weight: 400;
  color: #111827;
  line-height: 1.05;
}

.green-accent-line {
  width: 44px;
  height: 2.5px;
  background-color: var(--primary-green);
  margin-bottom: 28px;
}

.about-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.45;
  margin-bottom: 24px;
}

.about-p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Showroom Video Banner */
.showroom-banner-section {
  background-color: var(--light-cream-bg);
  padding: 10px 0 60px;
}

.video-banner-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  background-color: #000;
}

.banner-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-banner-wrapper:hover .banner-preview-img {
  transform: scale(1.02);
}

.banner-video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-banner-wrapper.playing .banner-video {
  display: block;
}

.video-banner-wrapper.playing .banner-preview-img,
.video-banner-wrapper.playing .play-circle-btn {
  display: none;
}

.play-circle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  transition: var(--transition);
  z-index: 5;
}

.play-circle-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 255, 255, 0.45);
}

.play-icon-triangle {
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid #ffffff;
  margin-left: 4px;
}

/* Our Story */
.story-section {
  background-color: var(--light-cream-bg);
  padding: 50px 0 80px;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 50px;
  align-items: flex-start;
}

.section-sub-label {
  display: inline-block;
  font-size: 0.84rem;
  letter-spacing: 2px;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 4px;
}

.story-p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 18px;
}

.quote-block {
  margin-top: 28px;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 0.7;
  color: var(--quote-green);
  margin-bottom: 14px;
  user-select: none;
}

.story-quote {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Gallery Grid */
.gallery-section {
  padding: 80px 0 90px;
  background-color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 45px;
}

.gallery-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gallery-img-box {
  position: relative;
  width: 100%;
  height: 310px;
  background-color: #f3f4f6;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #ffffff;
  font-size: 1.8rem;
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-green {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 11px 34px;
}

.btn-green:hover {
  background-color: var(--primary-green-hover);
  box-shadow: 0 4px 12px rgba(82, 153, 45, 0.35);
}

.btn-center-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1051;
  max-width: 90%;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Footer Section */
.site-footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 24px 60px;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 50px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #ffffff;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1f2820;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.05rem;
  transition: var(--transition);
}

.social-circle-btn:hover {
  background-color: #1877f2;
  border-color: #1877f2;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-menu a {
  color: #d1d5db;
  font-size: 0.94rem;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: var(--primary-cyan);
  padding-left: 4px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
}

.contact-detail-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-detail-row:first-child {
  padding-top: 0;
}

.contact-detail-row:last-child {
  border-bottom: none;
}

.contact-detail-row p,
.contact-detail-row a {
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.6;
  transition: var(--transition);
}

.contact-detail-row a:hover {
  color: var(--primary-cyan);
}

.footer-bottom-bar {
  background-color: var(--footer-bottom-bg);
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text,
.credits-text {
  font-size: 0.88rem;
  color: #9ca3af;
}

.heart-icon {
  color: #ef4444;
}

/* Floating Contact Widget & Modal */
/* ================= FLOATING CONTACT SPEED DIAL WIDGET ================= */
.floating-contact-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 9999;
}

/* Speed Dial Action Menu (Phone & WhatsApp) */
.floating-action-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
  transform-origin: bottom center;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              visibility 0.28s ease;
}

.floating-contact-widget.active .floating-action-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Individual Floating Action Circular Buttons */
.floating-action-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  position: relative;
}

.floating-action-btn:hover {
  transform: scale(1.1);
}

.floating-action-btn:active {
  transform: scale(0.96);
}

/* 1. Phone Button (Top) */
.floating-action-btn.action-phone {
  background-color: #03E78B;
  box-shadow: 0 4px 14px rgba(3, 231, 139, 0.45);
}

.floating-action-btn.action-phone:hover {
  box-shadow: 0 6px 20px rgba(3, 231, 139, 0.6);
}

.floating-action-btn.action-phone i {
  font-size: 1.35rem;
  color: #ffffff;
}

/* 2. WhatsApp Button (Middle) */
.floating-action-btn.action-whatsapp {
  background-color: #49E670;
  box-shadow: 0 4px 14px rgba(73, 230, 112, 0.45);
}

.floating-action-btn.action-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(73, 230, 112, 0.6);
}

.floating-action-btn.action-whatsapp i {
  font-size: 1.75rem;
  color: #ffffff;
}

/* Trigger Wrap (Pill + Bottom Circle Button) */
.floating-trigger-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contact Us Pill Button */
.contact-pill-btn {
  background: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  white-space: nowrap;
}

.contact-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.floating-contact-widget.active .contact-pill-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px) scale(0.9);
}

/* 3. Bottom Trigger Button (Chat bubble -> White X) */
.chat-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #000000;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.chat-circle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.chat-circle-btn:active {
  transform: scale(0.96);
}

.chat-circle-btn .icon-chat {
  font-size: 1.3rem;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.chat-circle-btn .icon-close {
  font-size: 1.6rem;
  font-weight: 700;
  display: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* When widget is active (opened), show the X icon */
.floating-contact-widget.active .chat-circle-btn .icon-chat {
  display: none;
}

.floating-contact-widget.active .chat-circle-btn .icon-close {
  display: block;
  animation: fabIconPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.contact-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #0f172a;
}

.modal-desc {
  font-size: 0.88rem;
  color: #64748b;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-card-link:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.contact-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.phone-box {
  background-color: #eff6ff;
  color: #2563eb;
}

.whatsapp-box {
  background-color: #ecfdf5;
  color: #10b981;
}

.contact-card-link strong {
  font-size: 0.94rem;
  color: #1e293b;
  display: block;
}

.contact-card-link p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-banner-wrapper {
    height: 420px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    flex-direction: column;
    padding: 22px 20px;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    z-index: 9999;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
    z-index: 10000;
  }

  .about-hero-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .video-banner-wrapper {
    height: 300px;
  }

  .play-circle-btn {
    width: 62px;
    height: 62px;
  }

  .play-icon-triangle {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #ffffff;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-img-box {
    height: 260px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about-hero-section {
    padding: 60px 0 45px;
  }

  .floating-contact-widget {
    bottom: 16px;
    right: 16px;
  }
}

/* ================= 9. SCROLL-BASED GALLERY ANIMATIONS ================= */
.gallery-section {
  overflow-x: hidden;
}

/* Progressive enhancement: initial hidden and shifted state applied only after JS initializes */
.js-scroll-anim {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-scroll-anim.scroll-fade-left {
  transform: translateX(-45px);
}

.js-scroll-anim.scroll-fade-right {
  transform: translateX(45px);
}

.js-scroll-anim.scroll-fade-left.is-animated,
.js-scroll-anim.scroll-fade-right.is-animated {
  opacity: 1;
  transform: translateX(0);
}

/* Retain gallery card hover effects smoothly after scroll animation completes */
.gallery-card.js-scroll-anim.is-animated:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Accessibility: respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .js-scroll-anim,
  .js-scroll-anim.scroll-fade-left,
  .js-scroll-anim.scroll-fade-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}