/* ================================================================
   css/enhancements.css — BrookWood Furniture
   New & improved: Navbar, Services Slider, Load More, Lazy Images
================================================================ */

/* =========================================================
   IMPROVED NAVBAR
========================================================= */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#navbar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,18,30,0.7) 0%, transparent 100%);
  transition: opacity 0.4s ease;
  z-index: -1;
}
#navbar.scrolled::before { opacity: 0; }
#navbar.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 4px 30px rgba(49,59,80,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: var(--transition);
  line-height: 1;
}
.navbar-brand-text span { color: var(--secondary); }
.nav-tagline { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; font-family: var(--font-body); font-weight: 400; transition: var(--transition); }
#navbar.scrolled .navbar-brand-text { color: var(--primary); }
#navbar.scrolled .nav-tagline { color: var(--text-light); }

/* Desktop nav links */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link-custom {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9) !important;
  padding: 8px 14px !important;
  text-decoration: none;
  position: relative;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link-custom::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after { width: 55%; }
.nav-link-custom:hover { color: var(--secondary) !important; }
.nav-link-custom.active { color: var(--secondary) !important; }
#navbar.scrolled .nav-link-custom { color: var(--primary) !important; }
#navbar.scrolled .nav-link-custom:hover,
#navbar.scrolled .nav-link-custom.active { color: var(--secondary) !important; }

/* CTA button in nav */
.btn-nav-cta {
  background: var(--secondary) !important;
  color: var(--primary) !important;
  font-weight: 800 !important;
  padding: 9px 22px !important;
  border-radius: 30px;
  border: 2px solid var(--secondary);
  transition: var(--transition) !important;
}
.btn-nav-cta::after { display: none !important; }
.btn-nav-cta:hover {
  background: transparent !important;
  color: var(--secondary) !important;
  border-color: var(--secondary);
}
#navbar.scrolled .btn-nav-cta:hover { color: var(--secondary) !important; }

/* Nav chevron */
.nav-chevron {
  font-size: 0.55rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
  display: inline-block;
}

/* =========================================================
   MEGA DROPDOWN MENU
========================================================= */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-wrap:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-wrap:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -110%;
  transform: translateX(-50%) translateY(-8px);
  width: 780px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(49,59,80,0.18), 0 0 0 1px rgba(49,59,80,0.06);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 200;
  padding: 24px;
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mega-item { }

.mega-link {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1.5px solid var(--warm-grey);
  transition: all 0.3s ease;
  height: 100%;
}
.mega-link:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(49,59,80,0.1);
}
.mega-img-wrap {
  height: 110px;
  overflow: hidden;
}
.mega-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mega-link:hover .mega-img-wrap img { transform: scale(1.08); }
.mega-content {
  padding: 14px 16px;
  background: #fff;
  flex: 1;
}
.mega-icon {
  width: 32px; height: 32px;
  background: rgba(243,189,77,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.mega-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  line-height: 1.3;
}
.mega-desc {
  font-size: 0.75rem;
  color: var(--text-mid);
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .mega-menu { width: 600px; }
  .mega-menu-inner { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   MOBILE MENU
========================================================= */
.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}
@media (min-width: 1024px) { .nav-mobile-toggle { display: none; } }

.toggle-bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
#navbar.scrolled .toggle-bar { background: var(--primary); }
.nav-mobile-toggle.open .toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.open .toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.open .toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open { max-height: 600px; }
.mobile-menu-inner {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 8px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}
.mobile-link i { font-size: 0.9rem; color: var(--secondary); flex-shrink: 0; }
.mobile-link:hover, .mobile-link.active { background: rgba(49,59,80,0.06); color: var(--primary); }
.mobile-link-cta { background: var(--secondary) !important; color: var(--primary) !important; margin-top: 8px; justify-content: center; border-radius: 30px; font-weight: 800; }
.mobile-link-cta:hover { background: var(--secondary-dark) !important; }

/* Mobile accordion */
.mobile-accordion { }
.mobile-acc-toggle { justify-content: space-between; }
.mobile-acc-icon { margin-left: auto; font-size: 0.6rem !important; color: var(--text-light) !important; transition: transform 0.3s ease; }
.mobile-accordion.open .mobile-acc-icon { transform: rotate(180deg); }
.mobile-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding-left: 20px; }
.mobile-accordion.open .mobile-acc-body { max-height: 400px; }
.mobile-sub-link { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--text-mid); text-decoration: none; font-size: 0.82rem; font-weight: 600; border-radius: 8px; transition: var(--transition); }
.mobile-sub-link i { color: var(--secondary); font-size: 0.8rem; }
.mobile-sub-link:hover { background: rgba(49,59,80,0.05); color: var(--primary); }

/* =========================================================
   IMPROVED SERVICES SWIPER / SLIDER
========================================================= */
#services { background: var(--cream); overflow: hidden; }

.services-slider-section { background: var(--cream); }

/* Container for swiper with custom controls */
.service-swiper-wrap {
  position: relative;
  padding-bottom: 80px;
}

/* Swiper navigation arrows — relocated to sides */
.servicesSwiper .swiper-button-next,
.servicesSwiper .swiper-button-prev {
  width: 52px; height: 52px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(49,59,80,0.14);
  color: var(--primary);
  border: 1.5px solid var(--warm-grey);
  transition: var(--transition);
  top: 38%;
}
.servicesSwiper .swiper-button-next::after,
.servicesSwiper .swiper-button-prev::after {
  font-size: 0.85rem;
  font-weight: 900;
}
.servicesSwiper .swiper-button-next:hover,
.servicesSwiper .swiper-button-prev:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  transform: scale(1.08);
}
.servicesSwiper .swiper-button-prev { left: -26px; }
.servicesSwiper .swiper-button-next { right: -26px; }

/* Custom pagination — progress bar style */
.services-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  z-index: 10;
}

.servicesSwiper .swiper-pagination {
  bottom: 18px;
}
.servicesSwiper .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: rgba(49,59,80,0.2);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.4s ease;
  cursor: pointer;
  margin: 0 4px;
}
.servicesSwiper .swiper-pagination-bullet-active {
  background: var(--secondary);
  width: 36px;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(243,189,77,0.5);
}

/* Service card enhancements */
.service-card {
  border: 1px solid var(--warm-grey);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(243,189,77,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-body { position: relative; z-index: 2; }

/* Progress indicator below section title */
.services-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}
.services-progress-track {
  width: 200px; height: 3px;
  background: var(--warm-grey);
  border-radius: 2px;
  overflow: hidden;
}
.services-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}
.services-slide-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
}
.services-slide-count .current { color: var(--secondary); font-size: 1rem; }

/* =========================================================
   WORLD-CLASS PRODUCT LOAD MORE
========================================================= */
/* Product card skeleton animation */
.product-card-skeleton {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--warm-grey);
}
.skeleton-img {
  height: 240px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton-body { padding: 20px 22px; }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  margin-bottom: 10px;
}
.skeleton-line.short { width: 55%; }
.skeleton-line.xs    { width: 35%; margin-top: 18px; }

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Product cards entering animation */
.product-card {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.product-card.card-entering {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}
.product-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Load more button — enhanced */
.load-more-wrap {
  text-align: center;
  margin-top: 56px;
  position: relative;
}
.btn-load-more {
  position: relative;
  overflow: hidden;
  min-width: 220px;
  justify-content: center;
}
.btn-load-more .btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(49,59,80,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: bwSpin 0.7s linear infinite;
}
.btn-load-more.loading .btn-spinner { display: block; }
.btn-load-more.loading .btn-text  { opacity: 0.5; }
@keyframes bwSpin { to { transform: rotate(360deg); } }

/* Products loaded indicator */
.products-count-bar {
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.products-count-bar .bar-track {
  display: inline-block;
  width: 160px; height: 3px;
  background: var(--warm-grey);
  border-radius: 2px;
  vertical-align: middle;
  margin: 0 10px;
  overflow: hidden;
}
.products-count-bar .bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.34, 1.1, 0.64, 1);
}

/* =========================================================
   LAZY LOADING IMAGES
========================================================= */
img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease, filter 0.5s ease;
  filter: blur(4px);
}
img.lazy.loaded {
  opacity: 1;
  filter: blur(0);
}

/* Image placeholder while loading */
.img-placeholder {
  background: linear-gradient(135deg, var(--warm-grey) 0%, #e0dbd3 50%, var(--warm-grey) 100%);
  background-size: 300% 300%;
  animation: gradientShift 2s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* =========================================================
   ABOUT / INNER PAGE HERO
========================================================= */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 72px;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,20,35,0.88) 0%, rgba(15,20,35,0.5) 60%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.page-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.06em; transition: var(--transition); }
.page-breadcrumb a:hover { color: var(--secondary); }
.page-breadcrumb span { color: rgba(255,255,255,0.3); font-size: 0.6rem; }
.page-breadcrumb .current { color: var(--secondary); font-size: 0.78rem; font-weight: 600; }

/* =========================================================
   CONTACT FORM STYLES
========================================================= */
.contact-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-card); }
.form-control-bw {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--warm-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}
.form-control-bw:focus { border-color: var(--secondary); background: var(--white); box-shadow: 0 0 0 3px rgba(243,189,77,0.15); }
.form-label-bw { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; display: block; }
.btn-submit-bw { background: var(--primary); color: var(--white); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 40px; border-radius: 4px; border: 2px solid var(--primary); cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 10px; }
.btn-submit-bw:hover { background: transparent; color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* Alert messages */
.alert-bw { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* =========================================================
   TOAST
========================================================= */
.bw-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary); color: #fff;
  padding: 14px 28px;
  border-radius: 30px; font-size: 0.88rem; font-weight: 600;
  font-family: var(--font-body);
  z-index: 99999; opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 12px 40px rgba(49,59,80,0.3);
  white-space: nowrap;
  border-left: 4px solid var(--secondary);
  pointer-events: none;
}
.bw-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   LOGIN / REGISTER PAGE
========================================================= */
.auth-page { min-height: 100vh; background: var(--primary); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card  { background: var(--white); border-radius: var(--radius-lg); padding: 48px 40px; width: 100%; max-width: 440px; box-shadow: 0 30px 80px rgba(0,0,0,0.3); }
.auth-logo  { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 8px; }
.auth-logo span { color: var(--secondary); }
.auth-subtitle { text-align: center; color: var(--text-mid); font-size: 0.88rem; margin-bottom: 36px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; color: var(--text-light); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--warm-grey); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* =========================================================
   ADMIN-STYLE NAV IN DASHBOARD
========================================================= */
.admin-sidebar { background: var(--primary); color: #fff; min-height: 100vh; width: 260px; position: fixed; left: 0; top: 0; z-index: 500; overflow-y: auto; transition: var(--transition); }
.admin-sidebar-header { padding: 28px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-brand  { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.admin-sidebar-brand span { color: var(--secondary); }
.admin-nav-link  { display: flex; align-items: center; gap: 12px; padding: 13px 24px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: var(--transition); border-left: 3px solid transparent; }
.admin-nav-link i { width: 18px; text-align: center; font-size: 1rem; }
.admin-nav-link:hover, .admin-nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); border-left-color: var(--secondary); }
.admin-nav-section { padding: 20px 24px 8px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.25); }
.admin-main   { margin-left: 260px; min-height: 100vh; background: #f4f6fb; }
.admin-topbar { background: var(--white); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 12px rgba(49,59,80,0.06); position: sticky; top: 0; z-index: 100; }
.admin-topbar-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.admin-content { padding: 32px; }

/* Admin stat cards */
.stat-card  { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 2px 12px rgba(49,59,80,0.06); border-left: 4px solid var(--secondary); }
.stat-card .stat-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-icon  { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* Admin table */
.admin-table { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(49,59,80,0.06); }
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #f8f9fc; padding: 14px 18px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); text-align: left; border-bottom: 1px solid var(--warm-grey); }
.admin-table td { padding: 16px 18px; border-bottom: 1px solid rgba(232,228,220,0.5); font-size: 0.88rem; color: var(--text-mid); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(243,189,77,0.03); }

/* Badge styles in admin */
.badge-status { padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-new-enq     { background: rgba(243,189,77,0.15); color: #b45309; }
.badge-read-enq    { background: rgba(49,59,80,0.08); color: var(--text-mid); }
.badge-replied-enq { background: #dcfce7; color: #166534; }
.badge-closed-enq  { background: #fee2e2; color: #991b1b; }

/* Responsive admin */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* =========================================================
   INNER PAGE GENERAL
========================================================= */
.inner-section { padding: 80px 0; }
.inner-section:nth-child(even) { background: var(--cream); }

/* Service detail page hero */
.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 450px;
}
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }

/* Process timeline for service pages */
.process-timeline { position: relative; padding-left: 40px; }
.process-timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--secondary), var(--warm-grey)); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--secondary); border: 3px solid var(--white); box-shadow: 0 0 0 3px rgba(243,189,77,0.3); }
.timeline-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.timeline-text  { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }

/* ================================================================
   hamburger.css — BrookWood Furniture
   Hamburger toggle + mobile menu overhaul
   Add AFTER enhancements.css in <head>
================================================================ */

/* =========================================================
   HAMBURGER TOGGLE BUTTON
========================================================= */

/* Always-visible pill container for the toggle */
.nav-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;                         /* gaps handled by bar margins */
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 12px;
  width: 48px;
  height: 44px;
  z-index: 1100;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
  position: relative;
}

/* When navbar has scrolled the background becomes light — flip to dark pill */
#navbar.scrolled .nav-mobile-toggle {
  background: rgba(49,59,80,0.08);
  border-color: rgba(49,59,80,0.18);
}

.nav-mobile-toggle:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 4px 18px rgba(243,189,77,0.30);
}

@media (min-width: 1024px) {
  .nav-mobile-toggle { display: none !important; }
}

/* Three bars */
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);          /* visible on dark / transparent navbar */
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              opacity   0.25s ease,
              width     0.38s ease,
              background 0.35s ease;
  transform-origin: center;
}

#navbar.scrolled .toggle-bar {
  background: var(--primary);        /* dark bars on white navbar */
}

.nav-mobile-toggle:hover .toggle-bar {
  background: var(--primary);        /* dark bars on gold hover */
}

/* X animation when open */
.nav-mobile-toggle.open .toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-mobile-toggle.open .toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-mobile-toggle.open .toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Remove the old open-state bg change so hover gold rule wins */
.nav-mobile-toggle.open {
  background: rgba(243,189,77,0.18);
  border-color: rgba(243,189,77,0.45);
}
#navbar.scrolled .nav-mobile-toggle.open {
  background: rgba(49,59,80,0.12);
  border-color: rgba(49,59,80,0.3);
}

/* =========================================================
   FULL-SCREEN OVERLAY BACKDROP (mobile)
========================================================= */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,20,35,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.mobile-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   MOBILE MENU — REDESIGNED SLIDE-DOWN PANEL
========================================================= */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  z-index: 1050;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enough room for all items + expanded accordion */
.mobile-menu.open {
  max-height: 900px;
}

.mobile-menu-inner {
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 10px 12px 20px;
  margin: 0;
  box-shadow: 0 24px 60px rgba(49,59,80,0.18), 0 4px 0 var(--secondary);
  border-top: 1px solid var(--warm-grey);
}

/* Section divider inside mobile menu */
.mobile-menu-divider {
  height: 1px;
  background: var(--warm-grey);
  margin: 8px 8px;
  border: none;
}

/* Individual link rows */
.mobile-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  letter-spacing: 0.02em;
}

/* Icon pill */
.mobile-link .m-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(243,189,77,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--secondary);
  transition: background 0.2s ease;
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(49,59,80,0.05);
  padding-left: 18px;
}
.mobile-link:hover .m-icon,
.mobile-link.active .m-icon {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-link.active {
  color: var(--primary);
}
.mobile-link.active .m-icon {
  background: var(--secondary);
}

/* CTA row */
.mobile-link-cta {
  background: var(--secondary) !important;
  color: var(--primary) !important;
  margin-top: 10px;
  justify-content: center;
  border-radius: 30px;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  padding: 13px 14px !important;
}
.mobile-link-cta:hover {
  background: var(--secondary-dark) !important;
  padding-left: 14px !important;   /* prevent left-shift on CTA */
}
.mobile-link-cta .m-icon {
  background: rgba(49,59,80,0.15) !important;
  color: var(--primary) !important;
}

/* =========================================================
   MOBILE ACCORDION (Services)
========================================================= */
.mobile-accordion { }

.mobile-acc-toggle {
  justify-content: space-between;
}

.mobile-acc-chevron {
  margin-left: auto;
  font-size: 0.6rem !important;
  color: var(--text-light) !important;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.mobile-accordion.open .mobile-acc-chevron {
  transform: rotate(180deg);
}

.mobile-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding-left: 12px;
}
.mobile-accordion.open .mobile-acc-body {
  max-height: 480px;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  border-left: 2px solid transparent;
  margin-bottom: 2px;
}
.mobile-sub-link i {
  color: var(--secondary);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.mobile-sub-link:hover {
  background: rgba(243,189,77,0.08);
  color: var(--primary);
  border-left-color: var(--secondary);
  padding-left: 16px;
}
