@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ==========================================
   DESIGN TOKENS (xtremenailandlash.com_DESIGN_2.md)
   ========================================== */
:root {
  /* Font Families */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Font Sizes */
  --font-size-xs: 15px;
  --font-size-sm: 16px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 25px;
  --font-size-2xl: 30px;
  --font-size-3xl: 33px;
  --font-size-4xl: 35px;

  /* Colors */
  --color-text-primary: #333333;
  --color-text-secondary: #1f8093; /* Brand Teal */
  --color-text-tertiary: #ffffff;
  --color-text-inverse: #1b1c1d;
  
  --color-surface-base: #ffffff;
  --color-surface-dark: #000000;   /* Black base canvas or premium dark surfaces */
  --color-surface-raised: #8ed2f6; /* Light sky blue accent */
  --color-surface-strong: #251e1e; /* Deep rich chocolate/charcoal */
  --color-surface-neutral: #fcfbfa; /* Luxury light cream/white */

  /* Spacing */
  --space-1: 5px;
  --space-2: 7px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 14.4px;
  --space-6: 20px;
  --space-7: 50px;

  /* Radius, Shadow & Motion */
  --radius-xs: 20px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 10px 30px rgba(31, 128, 147, 0.15); /* Teal shadow */
  --motion-instant: 300ms;
  --transition-ease: all 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================
   BASE RESET & LAYOUT
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  background-color: var(--color-surface-neutral);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-4);
  text-align: center;
  display: block;
}

.section-title {
  font-size: var(--font-size-2xl);
  color: var(--color-text-inverse);
  text-align: center;
  margin-bottom: var(--space-7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-text-secondary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-xs);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-ease);
}

.btn-primary {
  background-color: var(--color-text-secondary);
  color: var(--color-text-tertiary);
}

.btn-primary:hover {
  background-color: var(--color-surface-strong);
  box-shadow: var(--shadow-premium);
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-surface-raised);
  outline-offset: 2px;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.promo-bar {
  background-color: var(--color-surface-dark);
  color: var(--color-text-tertiary);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  letter-spacing: 0.05em;
}

.promo-bar a {
  background-color: var(--color-text-secondary);
  color: var(--color-text-tertiary);
  padding: 4px 15px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
}

.promo-bar a:hover {
  background-color: var(--color-text-tertiary);
  color: var(--color-text-inverse);
}

.navbar {
  background-color: var(--color-surface-base);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: var(--transition-ease);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  transition: var(--transition-ease);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.nav-link {
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  letter-spacing: 0.05em;
  padding: 8px 12px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-text-secondary);
  transition: var(--transition-ease);
}

.nav-link:hover {
  color: var(--color-text-secondary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-inverse);
  margin: 5px 0;
  transition: var(--transition-ease);
}

/* ==========================================
   FOOTER & STICKY DETAILS
   ========================================== */
footer {
  background-color: var(--color-surface-strong);
  color: var(--color-text-tertiary);
  padding: 70px 0 20px;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
}

.footer-info h3, .footer-hours h3, .footer-map h3 {
  font-size: var(--font-size-md);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.footer-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: var(--space-5);
  font-size: 15px;
}

.footer-info-item i {
  color: var(--color-surface-raised);
  font-size: var(--font-size-md);
  margin-top: 3px;
}

.footer-info-item a:hover {
  color: var(--color-surface-raised);
  text-decoration: underline;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 15px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-sm);
  filter: grayscale(10%) invert(5%) contrast(95%);
  border: none;
}

.footer-bottom {
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 20px var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating Booking & Hotline */
.floating-booking {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 99;
  transition: var(--transition-ease);
}

.floating-booking img {
  width: 65px;
  height: auto;
  animation: wobble 2.5s infinite;
}

.floating-booking:hover {
  transform: scale(1.1);
}

.hotline-bar-wrap {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99;
  display: flex;
  align-items: center;
  background: rgba(221, 0, 0, 0.85);
  padding: 8px 20px 8px 45px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: white;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: var(--font-size-xs);
  transition: var(--transition-ease);
}

.hotline-icon-circle {
  position: absolute;
  left: -5px;
  width: 44px;
  height: 44px;
  background-color: #dd0000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 0 10px rgba(221, 0, 0, 0.15);
  animation: pulse 1.5s infinite;
}

.hotline-icon-circle img {
  width: 22px;
}

.hotline-bar-wrap:hover {
  background: #dd0000;
  transform: translateY(-2px);
}

/* Animations */
@keyframes wobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(221, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(221, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(221, 0, 0, 0); }
}

/* ==========================================
   POPUP VOUCHER FORM
   ========================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-ease);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background-color: var(--color-surface-base);
  border-radius: var(--radius-xs);
  width: 90%;
  max-width: 550px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: scale(0.8);
  transition: var(--transition-ease);
}

.popup-overlay.active .popup-container {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: var(--font-size-md);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: var(--transition-ease);
}

.popup-close:hover {
  background: var(--color-text-secondary);
}

.popup-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.popup-content {
  padding: 30px;
  text-align: center;
}

.popup-title {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.popup-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-inverse);
  margin-bottom: 25px;
  font-weight: 700;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #dddddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: var(--transition-ease);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-text-secondary);
  box-shadow: 0 0 0 3px rgba(31, 128, 147, 0.1);
}

/* ==========================================
   SERVICE PAGE TABS & TABLES
   ========================================== */
.services-tabs-container {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) 0;
  border-bottom: 1px solid #e0e0e0;
  max-width: 1200px;
  margin: 0 auto 50px;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.services-tabs-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.service-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 15px 25px;
  font-family: var(--font-accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-ease);
}

.service-tab:hover,
.service-tab.active {
  color: var(--color-text-secondary);
  border-bottom-color: var(--color-text-secondary);
}

.service-section-container {
  padding: 80px 0;
  border-bottom: 1px solid #eeeeee;
  background-color: var(--color-surface-base);
}

.service-section-container:nth-of-type(even) {
  background-color: var(--color-surface-neutral);
}

.service-layout-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.service-layout-grid.two-cols {
  grid-template-columns: 1.5fr 1fr;
}

/* Base Price Tables */
.tablepress_services {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: white;
  box-shadow: var(--shadow-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tablepress_services th {
  background-color: #f7f9fa;
  color: var(--color-text-inverse);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  padding: 15px 20px;
  text-align: left;
  border-bottom: 2px solid #eef2f5;
}

.tablepress_services td {
  padding: 14px 20px;
  font-size: 16px;
  color: #000000;
  font-weight: 700;
  border-bottom: 1px solid #eef2f5;
  text-align: left;
}

.tablepress_services tr:last-child td {
  border-bottom: none;
}

.tablepress_services td.column-1 {
  color: var(--color-text-primary);
  font-weight: 500;
}

.tablepress_services td.column-2,
.tablepress_services td.column-3 {
  color: var(--color-text-secondary);
}

.tablepress_services tbody tr:hover {
  background-color: rgba(31, 128, 147, 0.02);
}

/* Premium Headers Manicure/Pedicure tables */
.manicure_services_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.manicure_services_table th,
.manicure_services_table td {
  background: var(--color-text-secondary) !important;
  color: var(--color-text-tertiary) !important;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 20px;
  text-align: center;
  border: none;
  font-family: var(--font-accent);
}

.manicure_services_table td.manicure_services {
  text-align: left;
  font-size: 17px;
  text-transform: uppercase;
}

.service-description-block {
  margin-bottom: 40px;
  font-size: 15px;
}

.service-description-block p {
  color: var(--color-text-primary);
  margin-bottom: 15px;
  text-align: justify;
}

.service-description-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.service-description-block li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.service-description-block li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-text-secondary);
}

/* Wax Price List Component */
.elementor-price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.elementor-price-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed #dddddd;
}

.elementor-price-list-title {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-inverse);
}

.elementor-price-list-price {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* ==========================================
   GALLERIES GRID & LIGHTBOX
   ========================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 var(--space-6);
}

.gallery-grid-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition-ease);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-ease);
}

.gallery-grid-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

.gallery-grid-item:hover img {
  transform: scale(1.06);
}

/* Glassmorphism Lightbox Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-ease);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  width: 90%;
  max-width: 850px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-container img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: var(--transition-ease);
}

.lightbox-overlay.active .lightbox-container img {
  transform: scale(1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-ease);
  z-index: 2010;
}

.lightbox-nav-btn:hover {
  background: var(--color-text-secondary);
  border-color: var(--color-text-secondary);
  transform: translateY(-50%) scale(1.1);
}

#lightbox-prev-btn {
  left: -70px;
}

#lightbox-next-btn {
  right: -70px;
}

#lightbox-close-btn {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-ease);
  z-index: 2010;
}

#lightbox-close-btn:hover {
  background: #ff3333;
  border-color: #ff3333;
}

/* Responsive adjustment for galleries */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  #lightbox-prev-btn {
    left: 15px;
  }
  #lightbox-next-btn {
    right: 15px;
  }
  #lightbox-close-btn {
    top: 15px;
    right: 15px;
  }
}

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

/* Responsive adjustment for service components */
@media (max-width: 991px) {
  .service-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }
  .service-layout-grid .elementor-widget-wrap:empty {
    display: none;
  }
}

/* ==========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================== */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-map {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --space-7: 35px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 79px;
    right: -100%;
    width: 260px;
    height: calc(100vh - 79px);
    background-color: var(--color-surface-base);
    flex-direction: column;
    padding: 30px var(--space-6);
    box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-ease);
    gap: var(--space-4);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer-map {
    grid-column: span 1;
  }
  
  .promo-bar span {
    font-size: 12px;
  }
}

/* ==========================================
   ENHANCED MOBILE & UX STYLES
   ========================================== */

/* Improved Lightbox UX for Mobile */
@media (max-width: 768px) {
  #lightbox-close-btn {
    top: -45px;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }
  #lightbox-prev-btn { left: -10px; }
  #lightbox-next-btn { right: -10px; }
  .lightbox-container {
    width: 85%;
  }
}

/* Horizontal Swipe for Gallery Preview (Home) and Galleries */
@media (max-width: 768px) {
  .gallery-grid, .gallery-preview-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .gallery-grid::-webkit-scrollbar, .gallery-preview-grid::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  
  .gallery-grid-item, .gallery-preview-grid > div {
    flex: 0 0 calc(50% - 10px); /* 2 items per view */
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Card style */
    border: 1px solid rgba(0,0,0,0.05);
    height: 200px !important; /* Fixed card height */
  }
}

/* Sticky Service Category Navigation */
.services-sidebar {
  position: sticky;
  top: 90px; /* Below header */
  z-index: 90;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 991px) {
  .service-layout-grid {
    display: flex;
    flex-direction: column;
  }
  .services-sidebar {
    position: sticky;
    top: 70px;
    background: var(--color-surface-base);
    padding: 10px 0;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 0 -20px 20px -20px;
    width: calc(100% + 40px);
    overflow: hidden;
  }
  
  .services-sidebar ul {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 10px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-sidebar ul::-webkit-scrollbar { display: none; }
  
  .services-sidebar li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
  }
  
  .services-sidebar a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-surface-raised);
    border-radius: 20px;
    white-space: nowrap;
    border-left: none !important;
    text-align: center;
  }
  .services-sidebar a.active {
    background: var(--color-primary);
    color: white;
  }
}

/* Ensure tabs are sticky and scrollable on mobile */
.services-tabs-container {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: var(--color-surface-base, #fff);
  padding: 10px 0;
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.services-tabs-container::-webkit-scrollbar {
  display: none;
}
.service-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0 5px;
  white-space: nowrap;
}

/* ==========================================
   EXPERT MOBILE UI/UX OPTIMIZATIONS
   ========================================== */

/* 1. SERVICES PAGE (TABLE TO MOBILE PILL LAYOUT) */
@media (max-width: 768px) {
  /* Transform tables to blocks */
  .tablepress_services, 
  .tablepress_services tbody {
    display: block;
    width: 100%;
  }
  
  /* Hide table headers on mobile */
  .tablepress_services th {
    display: none;
  }
  
  /* Style each row as a clean minimalist block */
  .tablepress_services tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
  }
  
  /* Service Name */
  .tablepress_services td.column-1 {
    width: 100%;
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary, #d4a373);
    margin-bottom: 10px;
    border: none;
    padding: 0;
  }
  
  /* Card Price Pill */
  .tablepress_services td.column-2 {
    width: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-surface-raised, #f5f5f5);
    padding: 8px 5px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    border: none;
  }
  .tablepress_services td.column-2::before {
    content: 'CARD: ';
    margin-right: 4px;
    font-weight: 400;
    opacity: 0.8;
  }
  
  /* Cash Price Pill */
  .tablepress_services td.column-3 {
    width: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e8f5e9; /* Subtle green */
    color: #2e7d32;
    padding: 8px 5px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
  }
  .tablepress_services td.column-3::before {
    content: 'CASH: ';
    margin-right: 4px;
    font-weight: 400;
    opacity: 0.8;
  }
}

/* 2. GALLERIES PAGE (2-COLUMN GRID) */
@media (max-width: 768px) {
  #portfolio-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .gallery-grid-item {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
}

/* 3. HOME PAGE (HORIZONTAL SWIPE FOR PREVIEW ONLY) */
@media (max-width: 768px) {
  .gallery-preview-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
  }
  .gallery-preview-grid::-webkit-scrollbar {
    display: none;
  }
  .gallery-preview-grid > div {
    flex: 0 0 75%;
    scroll-snap-align: center;
    height: 220px !important;
  }
}

/* 4. SERVICES CATEGORY TABS (STICKY MOBILE NAV) */
.services-tabs-container {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: var(--color-surface-base, #fff);
  padding: 12px 0;
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.services-tabs-container::-webkit-scrollbar {
  display: none;
}
.service-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0 5px;
  white-space: nowrap;
}

/* HOME PAGE FEATURED SERVICES HORIZONTAL SWIPE */
@media (max-width: 991px) {
  .service-layout-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 20px;
    margin: 0 -20px; /* Stretch to screen edges */
    padding-left: 20px; /* Add initial scroll padding */
    padding-right: 20px;
  }
  .service-layout-grid::-webkit-scrollbar {
    display: none;
  }
  .service-card {
    flex: 0 0 80%; /* Peek effect */
    scroll-snap-align: center;
    max-width: 320px;
  }
}

/* ==========================================
   ENHANCED ACCESSIBILITY & CONTRAST
   ========================================== */

/* Fix Floating Button Overlap with Footer */
.floating-booking, .hotline-bar-wrap {
  z-index: 1000; /* Ensure on top */
  transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
}

/* On mobile, add padding to body so footer is not hidden by buttons */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px; 
  }
  
  /* Increase Touch Targets for Mobile */
  .nav-menu a, .footer-info-item a, .social-icons a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Improve Form Input Contrast & Touch Target */
  input[type="text"], input[type="email"], input[type="tel"], textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
    padding: 15px !important;
    border: 2px solid #ddd !important;
    background: #fafafa !important;
    color: #111 !important;
    border-radius: 8px !important;
  }
  input::placeholder, textarea::placeholder {
    color: #777 !important;
  }
  button[type="submit"] {
    min-height: 50px;
    font-size: 16px;
    font-weight: bold;
  }
  
  /* Map Iframe Mobile Ratio */
  .footer-map iframe, .contact-map iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
  }
}

/* Service Pill High Contrast */
@media (max-width: 768px) {
  .tablepress_services td.column-2 {
    background: #1f8093 !important; /* Brand Teal */
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .tablepress_services td.column-2::before {
    color: rgba(255,255,255,0.8);
  }
  .tablepress_services td.column-3 {
    background: #111111 !important; /* High contrast black/dark */
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .tablepress_services td.column-3::before {
    color: rgba(255,255,255,0.8);
  }
}

/* ==========================================
   INDEX.HTML MOBILE OVERRIDES (FIXING INLINE STYLES)
   ========================================== */

/* Fix inline grids forcing desktop layout on mobile */
@media (max-width: 991px) {
  /* Intro / About section on Home */
  div[style*="grid-template-columns: 1fr 1fr;"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }
  
  /* Services section on Home (Swipe) */
  .services-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 15px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 20px !important;
    margin: 0 -20px !important; /* Stretch to screen edges */
    padding-left: 20px !important; 
    padding-right: 20px !important;
  }
  .services-grid::-webkit-scrollbar {
    display: none !important;
  }
  .services-grid > div,
  .services-grid > .service-card {
    flex: 0 0 80% !important;
    scroll-snap-align: center !important;
    max-width: 320px !important;
  }

  /* Gallery Preview section on Home (Swipe) */
  .gallery-preview-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 15px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 20px !important;
    margin: 0 -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .gallery-preview-grid::-webkit-scrollbar {
    display: none !important;
  }
  .gallery-preview-grid > div {
    flex: 0 0 75% !important;
    scroll-snap-align: center !important;
  }
}

/* ==========================================
   GLOBAL MOBILE OVERFLOW FIX
   ========================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

/* Ensure padding doesn't cause overflow */
* {
  box-sizing: border-box !important;
}

/* Specific Services Container Fixes */
@media (max-width: 768px) {
  .service-section-container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    overflow: hidden;
  }
  
  .tablepress_services {
    max-width: 100% !important;
    overflow-x: hidden;
  }
  
  .tablepress_services td.column-2,
  .tablepress_services td.column-3 {
    padding: 8px 2px !important; /* Reduce horizontal padding to fit smaller screens */
    font-size: 0.8rem !important; /* Slightly smaller font to prevent text wrapping/overflow */
  }
}
