/* Premium Service Details CSS - Mobile-First for 390x844 */
/* Core Variables for 390x844 Mobile Optimization */
:root {
  /* Mobile-First Breakpoints */
  --mobile-width: 390px;
  --mobile-height: 844px;
  --tablet-min: 768px;
  --desktop-min: 1024px;
  --large-min: 1280px;

  /* Metallic Grey + Gold Premium Color Palette */
  --primary-gold: #d4a017;
  --primary-gold-light: #e8b830;
  --primary-gold-dark: #b8860b;
  --metal-dark: #2a2d35;
  --metal-mid: #3a3d45;
  --metal-light: #8a8d95;
  --metal-surface: #e8e9eb;
  --metal-bg: #f4f4f5;
  --text-dark: #1a1d23;
  --text-light: #6b6f78;
  --bg-light: #f4f4f5;
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #f4f4f5 0%, #e8e9eb 100%);

  /* Typography Scale - Mobile Optimized */
  --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
  --font-size-base: clamp(1rem, 3vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
  --font-size-3xl: clamp(2rem, 6vw, 2.5rem);
  --font-size-4xl: clamp(2.5rem, 7vw, 3rem);

  /* Spacing Scale - Mobile-First */
  --spacing-xs: clamp(0.5rem, 1.5vw, 0.75rem);
  --spacing-sm: clamp(0.75rem, 2vw, 1rem);
  --spacing-md: clamp(1rem, 2.5vw, 1.5rem);
  --spacing-lg: clamp(1.5rem, 3vw, 2rem);
  --spacing-xl: clamp(2rem, 4vw, 3rem);
  --spacing-2xl: clamp(3rem, 5vw, 4rem);
  --spacing-3xl: clamp(4rem, 6vw, 6rem);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* Shadows - Metallic Premium */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(212, 160, 23, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===== MOBILE-FIRST BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== MOBILE CONTAINER SYSTEM ===== */
.container {
  width: 100%;
  max-width: var(--mobile-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* ===== PREMIUM SERVICE HERO ===== */
.service-hero {
  background: var(--bg-gradient);
  padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 160, 23, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.service-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.service-hero-left h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.service-hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.service-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-hero-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  animation: float 3s ease-in-out infinite;
}

.service-hero-icon i {
  font-size: 3rem;
  color: white;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ===== UNIFIED CARD STYLES ===== */
.service-portfolio {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  font-size: 16px;
  color: #6b6f78;
  max-width: 500px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.portfolio-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-expand-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-expand-icon {
  opacity: 1;
}

.portfolio-content {
  padding: 20px;
}

.portfolio-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.portfolio-content p {
  font-size: 14px;
  color: #6b6f78;
  line-height: 1.5;
  margin-bottom: 14px;
}

.portfolio-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #e8e9eb;
  color: #2a2d35;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 10px;
}

.portfolio-metrics {
  display: flex;
  gap: 20px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 18px;
  font-weight: 800;
  color: #d4a017;
}

.metric-label {
  font-size: 12px;
  color: #8a8d95;
  font-weight: 500;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #d4a017 0%, #e8b830 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 2px 10px rgba(212, 160, 23, 0.25);
}

.service-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
  background: linear-gradient(135deg, #e8b830 0%, #f0c840 100%);
}

.service-link:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.2);
}

.service-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(4px);
}

/* ===== SERVICE OVERVIEW ===== */
.service-overview {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
}

.overview-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.overview-text h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-lg);
}

.overview-text p {
  font-size: var(--font-size-base);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.overview-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-gold);
}

.feature-item i {
  color: var(--primary-gold);
  font-size: var(--font-size-xl);
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.feature-item p {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== RECOMMENDATIONS ===== */
.service-portfolio-recommendations,
.service-portfolio-viewed {
  padding: var(--spacing-2xl) 0;
}

.service-portfolio-recommendations {
  background: var(--bg-white);
}

.service-portfolio-viewed {
  background: var(--bg-light);
}

/* ===== WHY CHOOSE US ===== */
.service-why-choose-us {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px; /* Increased min-height for better aspect ratio */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); /* Softer initial shadow */
}
  
.feature-card:hover {
  transform: translateY(-5px); /* More pronounced lift on hover */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); /* Enhanced hover shadow */
  border-color: #d4a017; /* Gold border on hover */
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d4a017 0%, #e8b830 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.2); /* Subtle shadow for icon */
}

.feature-icon i {
  font-size: 26px;
  color: #2a2d35;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1d23;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #6b6f78;
  line-height: 1.6;
}

/* ===== CTA SECTION (Service Pages + Homepage) ===== */
.service-cta-section,
.services-cta-section {
  padding: 24px 0;
  background: linear-gradient(135deg, #2a2d35 0%, #3a3d45 100%);
  color: white;
  text-align: center;
}

.service-cta-section h2,
.services-cta-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.service-cta-section p,
.services-cta-section p {
  font-size: 12px;
  margin-bottom: 12px;
  opacity: 0.9;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 200px;
  margin: 0 auto;
}

.cta-buttons .btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--primary-gold);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--primary-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--spacing-lg);
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-light);
  font-weight: 500;
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) {
  .service-hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .overview-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .overview-features {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: row;
    max-width: none;
  }

  .cta-buttons .btn {
    flex: 1;
  }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
  .service-hero {
    padding: var(--spacing-3xl) 0 var(--spacing-3xl);
  }

  .service-hero-left h1 {
    font-size: var(--font-size-4xl);
  }

  .service-hero-icon {
    width: 160px;
    height: 160px;
  }

  .service-hero-icon i {
    font-size: 4rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LARGE DESKTOP STYLES ===== */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* ===== ANIMATIONS & MICRO-INTERACTIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: none;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* Stagger animations for lists */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }

/* ===== SHARED IMAGE SLIDER STYLES ===== */
/* Universal slider class (used on index.html) */
.slider-container,
.bob-slider-container,
.mf-off-slider-container,
.mb-slider-container,
.cd-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}

.slider-img,
.bob-slide,
.mf-off-slide,
.mb-slide,
.cd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slider-img.active,
.bob-slide.active,
.mf-off-slide.active,
.mb-slide.active,
.cd-slide.active {
    opacity: 1;
    pointer-events: none;
}

.cd-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cd-slide .city-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffd700;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    pointer-events: none;
    z-index: 2;
}

.bob-slider-btn,
.mf-off-slider-btn,
.mb-slider-btn,
.cd-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    opacity: 0;
}

.bob-slider-card:hover .bob-slider-btn,
.mf-off-slider-card:hover .mf-off-slider-btn,
.mb-slider-card:hover .mb-slider-btn,
.cd-slider-card:hover .cd-slider-btn {
    opacity: 1;
}

.bob-slider-btn:hover,
.mf-off-slider-btn:hover,
.mb-slider-btn:hover,
.cd-slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.bob-slider-btn.prev,
.mf-off-slider-btn.prev,
.mb-slider-btn.prev,
.cd-slider-btn.prev {
    left: 8px;
}

.bob-slider-btn.next,
.mf-off-slider-btn.next,
.mb-slider-btn.next,
.cd-slider-btn.next {
    right: 8px;
}

.bob-slider-dots,
.mf-off-slider-dots,
.mb-slider-dots,
.cd-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.bob-slider-dot,
.mf-off-slider-dot,
.mb-slider-dot,
.cd-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.bob-slider-dot.active,
.mf-off-slider-dot.active,
.mb-slider-dot.active,
.cd-slider-dot.active {
    background: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.bob-slider-dot:hover,
.mf-off-slider-dot:hover,
.mb-slider-dot:hover,
.cd-slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
    .bob-slider-btn,
    .mf-off-slider-btn,
    .mb-slider-btn,
    .cd-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        opacity: 0.6;
    }
    .bob-slider-dot,
    .mf-off-slider-dot,
    .mb-slider-dot,
    .cd-slider-dot {
        width: 6px;
        height: 6px;
    }
    .cd-slide .city-label {
        font-size: 10px;
        padding: 3px 10px;
        top: 8px;
        right: 8px;
    }
}

/* ===== LAZY LOADING ===== */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.btn:focus,
.carousel-nav:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-gold: #ffd700;
    --bg-light: #ffffff;
    --text-dark: #000000;
  }
}