/* CSS Variables - Design System */
:root {
  /* Colors */
  --color-primary: hsl(142, 76%, 36%);
  --color-primary-dark: hsl(142, 86%, 28%);
  --color-primary-light: hsl(142, 76%, 98%);
  --color-background: hsl(0, 0%, 100%);
  --color-foreground: hsl(222, 47%, 11%);
  --color-muted: hsl(210, 40%, 96%);
  --color-muted-foreground: hsl(215, 16%, 47%);
  --color-border: hsl(214, 32%, 91%);
  --color-accent: hsl(142, 76%, 60%);
  --color-accent-foreground: hsl(0, 0%, 100%);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, 
    hsla(222, 47%, 11%, 0.8), 
    hsla(222, 47%, 11%, 0.4));
  --gradient-subtle: linear-gradient(180deg, 
    hsl(0, 0%, 100%), 
    hsl(142, 76%, 98%));
  --gradient-primary: linear-gradient(135deg, 
    hsl(142, 76%, 36%), 
    hsl(142, 86%, 28%));
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* 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);
  --shadow-glow: 0 0 30px hsl(142, 76%, 36%)30;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max-width: 1400px;
  --header-height: 80px;
}

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header Styles */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--spacing-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--color-foreground);
  transition: var(--transition-fast);
}

.logo:hover {
  color: var(--color-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: var(--font-size-xl);
}

.logo-text {
  color: var(--color-foreground);
}

/* Navigation */
.nav-desktop {
  display: none;
  gap: var(--spacing-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--color-muted-foreground);
  transition: var(--transition-fast);
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: var(--spacing-md);
}

.phone-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.phone-link:hover {
  color: var(--color-primary-dark);
}

.phone-link i {
  font-size: var(--font-size-lg);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-foreground);
  font-size: var(--font-size-xl);
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) 0;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}

.mobile-menu .nav-link {
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-lg);
}

.phone-link-mobile {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-primary);
  font-weight: 600;
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-lg);
}

.mobile-menu .btn {
  margin-top: var(--spacing-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.625rem var(--spacing-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

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

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--color-primary);
}

.btn-lg {
  padding: 0.875rem var(--spacing-xl);
  font-size: var(--font-size-base);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-tall {
  min-height: 70vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.hero-content h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Section Styles */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-muted {
  background: var(--color-muted);
}

.section-primary {
  background: var(--gradient-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

/* Card Styles */
.card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: var(--spacing-sm);
}

.card-description {
  color: var(--color-muted-foreground);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.card-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-foreground);
}

.card-feature i {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  background: var(--gradient-primary);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
}

.stat-card {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* Form Styles */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-foreground);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: var(--transition-fast);
  background: var(--color-background);
  color: var(--color-foreground);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px hsla(142, 76%, 36%, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
  max-width: 400px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-left: 4px solid var(--color-primary);
}

.toast-error {
  border-left: 4px solid hsl(0, 84%, 60%);
}

.toast strong {
  display: block;
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
  color: var(--color-foreground);
}

.toast p {
  color: var(--color-muted-foreground);
  font-size: var(--font-size-sm);
}

/* Footer */
.footer {
  background: var(--color-foreground);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-col h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin: var(--spacing-md) 0;
  line-height: 1.7;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-col ul li {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-col ul li:hover,
.footer-col ul li a:hover {
  color: white;
}

.contact-info li {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.contact-info i {
  color: var(--color-primary);
  margin-top: 0.25rem;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 30px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10000;
}

.modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

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

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-content h1 {
    font-size: var(--font-size-5xl);
  }
  
  .section-title {
    font-size: var(--font-size-5xl);
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .nav-desktop {
    display: flex;
  }
  
  .header-actions {
    display: flex;
  }
  
  .mobile-menu {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: var(--font-size-6xl);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
