/* Our Services Page Specific Styles */


.our-services-page #site-header {
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(248,248,248,0.001); /* Add subtle shadow */
  position: fixed;
  transition: background-color 300ms ease, box-shadow 300ms ease;
  display: flex;
  justify-content: flex-end;
  padding-right: 24px;
  z-index: 50;
}

/* Ensure nav is properly aligned */
.our-services-page #desktopNav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 0;
}

.our-services-page #desktopNav .nav-item {
  display: inline-block;
}

.our-services-page #desktopNav .nav-link {
  margin-left: 24px;
}

.header-spacer {
  flex: 1;
}

.our-services-page #site-header .logo {
  display: none; /* Hide logo in header */
}

.our-services-page::before {
  content: "";
  position: fixed;
  top: var(--header-h-desktop);
  left: 0;
  right: 0;
  height: 0px; /* Adjust fade distance */
  background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  z-index: 99; /* Below header but above content */
}


/* Main Layout Structure */
.services-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Left Sidebar */
.services-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 18vw;
  height: 100vh;
  background-color: #000;
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  margin-bottom: 60px;
}

.sidebar-logo img {
  height: 40px;
  width: auto;
}

.sidebar-nav {
  flex: 1;
}

/* Main Content Area */
.services-content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  background: #f8f8f8;
  padding-top: 8vh;
  min-height: 100vh;
  min-width: 80vw;
  /* Prevent side scrolling on laptop*/
  max-width: 82vw;
  box-sizing: border-box;
}

.services-page-wrapper {
  margin-left: 18vw;
  position: relative;
}



.sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 30px;
  color: #fff;
  cursor: default;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #999;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 250ms ease;
  position: relative;
  padding: 1px 0;
}


.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
}





/* Services Header */
.services-header {
  text-align: center;
  padding: 80px 40px 60px;
  background: #fff;
}

.services-header h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #111;
}

.services-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}




/* Interior Design Section Layout */
.service-layout {
  display: flex;
  gap: 40px;
  align-items: stretch;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}



/* Center: Vertical Icons */
.service-icons-vertical {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 50px;
  padding: 0 40px;
}




.service-secondary-image {
  margin-left: auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 400px;
  aspect-ratio: 3.5/5;
}

.service-secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.service-secondary-image:hover img {
  transform: scale(1.05);
}

/* Standard grid layout for other sections */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.alt-layout .service-grid {
  direction: ltr;
}

.alt-layout .service-content {
  direction: ltr;
}

.service-image {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.service-image:hover img {
  transform: scale(1.05);
}

.image-hover-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffa500;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.service-image:hover .image-hover-text,
.image-hover-text,
.service-secondary-image:hover .image-hover-text {
  opacity: 1;
}

.service-content {
  padding: 40px;
}

.service-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #111;
}

.service-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
}

/* Service Icons */







/* Mobile menu trigger - hide on Our Services page */
.our-services-page .menu-toggle {
  display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .services-sidebar {
    width: 30vw;
    padding: 25px;
  }

  .services-content {
    margin-left: 30vw;
  }
}

@media (max-width: 992px) {
  .services-sidebar {
    transform: translateX(-100%);
    transition: transform 300ms ease;
  }

  .services-sidebar.active {
    transform: translateX(0);
  }

  .services-content {
    margin-left: 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .alt-layout .service-grid {
    direction: ltr;
  }

  .service-content {
    padding: 20px;
  }

  .service-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .services-hero {
    height: 50vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    padding: 0 20px;
  }
  .service-content h2 {
    font-size: 2rem;
  }
}

/* Sidebar Toggle Button (for mobile) */
.sidebar-toggle {
  display: none;
  position: fixed;
  left: 20px;
  top: 80px;
  z-index: 101;
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
}

@media (max-width: 992px) {
  .sidebar-toggle {
    display: block;
  }

  .our-services-page #site-header {
    padding-left: 70px;
  }
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =======================
   Sidebar Dropdown Functionality
   ======================= */

/* Update existing sidebar link to support dropdown */
.sidebar-menu li.has-dropdown {
  margin-bottom: 8px;
}

.sidebar-menu li.has-dropdown .sidebar-link {
  justify-content: space-between;
  cursor: pointer;
}

/* Dropdown arrow styling */
.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 250ms ease;
  color: var(--brand-accent, #58c4c0);
  margin-left: auto;
}

.has-dropdown.expanded .dropdown-arrow {
  transform: rotate(180deg);
}

/* Submenu styling */
.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease, opacity 250ms ease;
  opacity: 0;
}

.sidebar-submenu.expanded {
  max-height: 500px; /* Adjust based on number of items */
  opacity: 1;
}

.sidebar-submenu li {
  margin-bottom: 4px;
}

.sidebar-sublink {
  display: block;
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 250ms ease;
  position: relative;
  line-height: 1.3;
}

.sidebar-sublink:hover {
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-sublink.active {
  color: var(--brand-accent, #58c4c0);
  background: rgba(88, 196, 192, 0.1);
  font-weight: 600;
}

.sidebar-sublink.active::before {
  content: "▶";
  position: absolute;
  left: -8px;
  font-size: 0.7rem;
  color: var(--brand-accent, #58c4c0);
}

/* Mobile responsive adjustments for dropdown */
@media (max-width: 992px) {
  .sidebar-submenu.expanded {
    max-height: 400px;
  }

  .sidebar-sublink {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

nav a {
  line-height: 25px; /* Unerline below the left nav bar menus on our services page */
}

/* Services Overview Section */
.services-overview-section {
    min-height: 93vh;
    display: flex;
    align-items: flex-start;
    background: #f8f8f8;
    backdrop-filter: blur(4px);
}

.services-overview-section .container {
    padding-top: 8vh;
    padding-bottom: 8vh;
    padding-left: 8%;
    padding-right: 8%;
    width: 100%;
}



.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4%;
    margin-top: var(--space-4);
}

.service-overview-card {
    background: #f8f8f8;
    transition: box-shadow 250ms ease, transform 250ms ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-overview-card:hover {
    transform: translateY(-3px);
    cursor: pointer;
}

.service-overview-card h3 {
    font-size: 1.25rem;
    letter-spacing: .4px;
    color: #111;
    margin-bottom: 8px;
    text-align: center;
    padding-top: var(--space-2);
    pointer-events: none;
}

.overview-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 0;
}

.overview-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 450ms ease;
}

.overview-image-wrap:hover img {
    transform: scale(1.06);
}


/* Responsive for overview grid */
@media (max-width: 1024px) {
    .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .services-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* Adjust spacing between overview and interior design sections */
#services-overview {
    margin-bottom: 0;
    padding-bottom: var(--space-4);
}

#interior-design {
    margin-top: 0;
    padding-top: var(--space-1);
}

#turnkey-execution {
    margin-top: 0;
    padding-top: var(--space-1);
}

/* Product Supply Overview Section */
.product-supply-overview-section {
    background: #f8f8f8;
    padding: var(--space-1) 0;
    margin: 0;
}

.product-supply-header {
    text-align: center;
    margin-bottom: var(--space-3);
}

.product-supply-header h1 {
    font-size: 1.5rem;
    letter-spacing: .6px;
    margin-bottom: 0;
    color: #111;
}

.product-supply-grid {
    padding-left: 100px;
    padding-right: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12%;
    row-gap: var(--space-1);
    align-items: start;
}

.product-supply-card {
    background: #f8f8f8;
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: center;
    overflow: hidden;
}

.product-supply-card:hover {
    transform: translateY(-3px) scale(1.02);
}

.product-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 4;
    overflow: hidden;
    background: #f4f4f4;
    margin-bottom: 0;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    object-position: center;
    transition: transform 420ms ease;
}

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

.product-supply-card h3 {
    font-size: 0.75rem;
    letter-spacing: .3px;
    color: #222;
    line-height: 1.2;
    padding: var(--space-1) var(--space-1) var(--space-2);
    margin: 0;
    font-weight: 600;
}


.product-supply-grid {
    padding-left: 100px;
    padding-right: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12%;
    row-gap: var(--space-1);
    align-items: start;
}


/* Responsive Design for Product Supply Grid */

@media (max-width: 1600px) {
    .product-supply-card h3 {
            font-size: 0.6rem;
    }
    .product-supply-grid {
        row-gap: 1.7vh;
    }
    .sidebar-title {
      font-size: 1.2rem;
    }
    .sidebar-link {
      font-size: 0.82rem;
    }
}

@media (max-width: 1200px) {
    .product-supply-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4%;
    }
    .product-supply-card h3 {
            font-size: 0.6rem;
        }
}

@media (max-width: 900px) {
    .product-supply-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5%;
    }

    .product-supply-card h3 {
        font-size: 0.55rem;
    }
}

@media (max-width: 600px) {
    .product-supply-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4%;
    }

    .product-supply-card h3 {
        font-size: 0.5rem;
        padding: 8px 6px 12px;
    }
}



.product-supply-overview-section {
    padding-top: var(--space-1);
    padding-bottom: var(--space-1);
}

/* Make product cards work as clickable links */
a.product-supply-card {
    text-decoration: none;
    color: inherit;
    display: block;
}