/* CSS Variables - Swiss Professional Luxury Theme */
:root {
  /* Color Palette */
  --primary: #1E3A8A;
  --primary-light: #3B5FCC;
  --primary-dark: #142A66;
  --secondary: #D97706;
  --secondary-light: #F59E0B;
  --secondary-dark: #B65D00;
  --neutral-light: #F3F4F6;
  --neutral-dark: #111827;
  --body-bg: #FFFFFF;
  --text: #111827;
  --text-light: #6B7280;
  --link: #2563EB;
  --link-hover: #1D4ED8;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --text-base: 1rem;
  --text-scale: 1.25;
  --text-xs: calc(var(--text-base) / var(--text-scale));
  --text-sm: var(--text-base);
  --text-md: calc(var(--text-base) * var(--text-scale));
  --text-lg: calc(var(--text-md) * var(--text-scale));
  --text-xl: calc(var(--text-lg) * var(--text-scale));
  --text-xxl: calc(var(--text-xl) * var(--text-scale));
  
  /* Spacing */
  --space-unit: 1rem;
  --space-xs: calc(var(--space-unit) / 2);
  --space-sm: var(--space-unit);
  --space-md: calc(var(--space-unit) * 1.5);
  --space-lg: calc(var(--space-unit) * 2);
  --space-xl: calc(var(--space-unit) * 3);
  
  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --border: 1px solid var(--neutral-light);
  
  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
  font-family: var(--font-primary);
  color: var(--text);
  background-color: var(--body-bg);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--neutral-dark);
}

h1 { font-size: var(--text-xxl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-sm); }
h6 { font-size: var(--text-xs); }

p {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  max-width: 65ch;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 500;
  line-height: 1.5;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}
.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-1px);
}

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

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-md);
  border-bottom: var(--border);
}
.card-body {
  padding: var(--space-md);
}
.card-footer {
  padding: var(--space-md);
  border-top: var(--border);
}

/* Slider Component */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-md);
}

.slider-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.slider-btn:hover {
  background-color: white;
}

/* Accordion */
.accordion {
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-item {
  border-bottom: var(--border);
}
.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: var(--space-md);
  background-color: var(--neutral-light);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.accordion-header:hover {
  background-color: rgba(243, 244, 246, 0.7);
}

.accordion-content {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: var(--space-md);
  max-height: 1000px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-container {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-md);
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: var(--space-md);
}

.modal-footer {
  padding: var(--space-md);
  border-top: var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  color: var(--neutral-dark);
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}
.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover:after {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--neutral-light);
  color: var(--neutral-dark);
  padding: var(--space-xl) 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: var(--neutral-dark);
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: white;
  transition: var(--transition);
}
.social-icon:hover {
  background-color: var(--primary);
  color: white;
}

.copyright {
  margin-top: var(--space-xl);
  text-align: center;
  color: var(--text-light);
  font-size: var(--text-xs);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Swiss Luxury Touches */
::selection {
  background-color: var(--primary);
  color: white;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--neutral-light);
  margin: var(--space-md) 0;
}

blockquote {
  border-left: 4px solid var(--primary);
  padding-left: var(--space-md);
  margin-left: 0;
  font-style: italic;
  color: var(--text-light);
}