/**
 * MODERN DESIGN SYSTEM - Apple-Inspired Minimalistic Style
 * Created: 2026-02-20
 * Theme: White/Black with accent colors from images
 */

/* ==========================================
   CSS VARIABLES - Design Tokens
   ========================================== */
:root {
  /* Colors - Minimalistic Palette */
  --color-primary: #000000;
  --color-secondary: #1d1d1f;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-bg: #ffffff;
  --color-bg-secondary: #f5f5f7;
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;
  --color-success: #30d158;
  --color-warning: #ff9500;
  --color-error: #ff3b30;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-secondary: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  
  /* Spacing */
  --space-1: 0.25rem;      /* 4px */
  --space-2: 0.5rem;       /* 8px */
  --space-3: 0.75rem;      /* 12px */
  --space-4: 1rem;         /* 16px */
  --space-5: 1.25rem;      /* 20px */
  --space-6: 1.5rem;       /* 24px */
  --space-8: 2rem;         /* 32px */
  --space-10: 2.5rem;      /* 40px */
  --space-12: 3rem;        /* 48px */
  --space-16: 4rem;        /* 64px */
  --space-20: 5rem;        /* 80px */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================
   GLOBAL RESETS & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-4xl); font-weight: 600; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 500; }
h6 { font-size: var(--text-lg); font-weight: 500; }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Links that should be subtle */
.link-subtle {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.link-subtle:hover {
  color: var(--color-primary);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   HEADER & NAVIGATION - Modern Minimal
   ========================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-modern {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo-modern:hover {
  opacity: 0.8;
}

/* Navigation */
.nav-modern {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-modern ul {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.nav-modern a {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 400;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-modern a:hover,
.nav-modern a.active {
  color: var(--color-primary);
  background: #ff8994;
}

/* CTA Button */
.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: white;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary-modern:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu Toggle */
.mobile-nav-toggle-modern {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-2xl);
}

/* ==========================================
   HERO SECTION - Modern & Clean
   ========================================== */
.hero-modern {
  min-height: calc(100vh - 72px);
  margin-top: 72px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  padding: var(--space-20) var(--space-6);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text h1 {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero-text .subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

/* ==========================================
   CALCULATOR SECTION - Interactive & Modern
   ========================================== */
.calculator-modern {
  padding: var(--space-20) var(--space-6);
  background: var(--color-bg);
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
}

.calculator-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.calculator-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

.calculator-header p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* Calculator Card */
.calculator-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
}

/* Steps Navigation */
.calculator-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  position: relative;
}

.calculator-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: white;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
}

.step.active .step-number {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.step.completed .step-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.step-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: center;
}

/* Form Groups */
.form-group-modern {
  margin-bottom: var(--space-8);
}

.form-label-modern {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.form-select-modern,
.form-input-modern {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  appearance: none;
  cursor: pointer;
}

.form-select-modern:hover,
.form-input-modern:hover {
  background: var(--color-bg);
  border-color: var(--color-border);
}

.form-select-modern:focus,
.form-input-modern:focus {
  outline: none;
  background: white;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Smart Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-pill {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background: white;
  border-color: var(--color-border);
  color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary);
  color: white;
}

/* Model Grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.model-card {
  background: var(--color-bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.model-card:hover {
  background: white;
  border-color: var(--color-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.model-card.selected {
  border-color: var(--color-accent);
  background: rgba(0, 113, 227, 0.05);
}

.model-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto var(--space-3);
}

.model-card .model-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

/* Price Results */
.price-results {
  background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-8);
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5);
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  transition: all var(--transition-fast);
}

.price-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.price-item .service-name {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-base);
}

.price-item .price-value {
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-xl);
}

.price-item .price-note {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-modern {
  padding: var(--space-20) var(--space-6);
  background: var(--color-bg-secondary);
}

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.service-card-modern {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

.service-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-3xl);
}

.service-card-modern h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.service-card-modern p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 1. Add this near your other grid styles (outside any @media block) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Side-by-side for PC */
    gap: var(--space-12);
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   RESPONSIVE DESIGN - Mobile First
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  
  .hero-text h1 {
    font-size: var(--text-5xl);
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}


@media (max-width: 768px) {

    .contact-grid {
        grid-template-columns: 1fr; /* Stacked for Mobile */
        gap: var(--space-8);
    }

  .header-container {
    padding: 0 var(--space-4);
  }
  
  .nav-modern {
    display: none;
  }
  
  .mobile-nav-toggle-modern {
    display: block;
  }
  
  .hero-modern {
    padding: var(--space-12) var(--space-4);
  }
  
  .hero-text h1 {
    font-size: var(--text-4xl);
  }
  
  .hero-text .subtitle {
    font-size: var(--text-base);
  }
  
  .calculator-card {
    padding: var(--space-6);
  }
  
  .calculator-steps {
    overflow-x: auto;
    padding-bottom: var(--space-4);
  }
  
  .step-label {
    display: none;
  }
  
  .model-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: var(--text-3xl);
  }
  
  .calculator-header h2 {
    font-size: var(--text-3xl);
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn-primary-modern {
    width: 100%;
  }
  
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container-modern {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn var(--transition-base) ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slideInLeft {
  animation: slideInLeft var(--transition-base) ease-out;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* ==========================================
   PREMIUM DROPDOWN MENU
========================================== */

.nav-menu {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav-menu li {
  position: relative;
  list-style: none;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dropdown-menu a {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--color-bg-secondary);
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================
   MOBILE MENU
========================================== */

.mobile-menu-modern {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-2xl);
  transition: left var(--transition-base);
  z-index: var(--z-modal);
  padding: var(--space-8);
}

.mobile-menu-modern.active {
  left: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-menu-content a {
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: var(--z-modal-backdrop);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   MOBILE GROUPED MENU (Accordion)
========================================== */

.mobile-link {
  font-size: var(--text-lg);
  color: var(--color-primary);
  padding: var(--space-3) 0;
}

.mobile-group {
  border-bottom: 1px solid var(--color-border-light);
  padding: var(--space-3) 0;
}

.mobile-group-toggle {
  width: 100%;
  background: none;
  border: none;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: var(--space-2) 0;
}

.mobile-group-toggle .arrow {
  transition: transform var(--transition-base);
}

.mobile-group.active .arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-4);
  transition: max-height var(--transition-base);
}

.mobile-submenu a {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
}

.mobile-submenu a:hover {
  color: var(--color-primary);
}

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
}

/* Ensure header never exceeds screen width */
#header {
  width: 100%;
  max-width: 100%;
}

/* Fix header container on small screens */
@media (max-width: 768px) {

    .header-container {
    position: relative;
  }

  .logo-modern {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  /* Hide desktop nav completely */
  .nav-modern {
    display: none !important;
  }

  /* Proper mobile toggle alignment */
  .mobile-nav-toggle-modern {
    display: block;
    font-size: 28px;
  }

}.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
