/* ============================================
   CLEAN STAR - Premium Main Stylesheet
   Modern, Vibrant, Professional Design
   ============================================ */

/* CSS Variables - Premium Design Tokens */
:root {
  /* Brand Colors - Professional & Modern */
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-primary-light: #06b6d4;
  --color-secondary: #f97316;
  --color-secondary-dark: #ea580c;
  --color-accent: #fbbf24;
  --color-success: #22c55e;
  --color-whatsapp: #25d366;
  
  /* Neutral Colors - Refined */
  --color-text: #0f172a;
  --color-text-light: #475569;
  --color-text-muted: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-border: #e2e8f0;
  
  /* Gradients - Subtle & Elegant */
  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Typography - Modern & Readable */
  --font-primary: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --line-height-base: 1.7;
  --line-height-heading: 1.3;
  
  /* Spacing - Generous & Balanced */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* Shadows - Refined & Professional */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 200ms 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);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Typography - Bold & Clear */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section Spacing */
.section {
  padding: var(--space-xl) 0;
}

.section-lg {
  padding: var(--space-xxl) 0;
}

/* Grid System - Responsive */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-light { color: var(--color-text-light); }
.text-muted { color: var(--color-text-muted); }

.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Background Utilities */
.bg-light {
  background-color: var(--color-bg-light);
}

.bg-alt {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.bg-primary {
  background: var(--gradient-primary);
  color: white;
}

.bg-secondary {
  background: var(--gradient-warm);
  color: white;
}

/* Spacing Utilities */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Visibility */
.mobile-only { display: block; }
.desktop-only { display: none; }

/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --space-xl: 5rem;
    --space-xxl: 7rem;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Service page layout - wider content, narrower sidebar */
  .service-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
  
  .service-layout > div:last-child {
    max-width: 350px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
