/* AirPeak Switzerland - Web Document Styles */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Swiss Color Palette - Light Mode */
  --swiss-red: #dc2626;
  --swiss-red-dark: #b91c1c;
  --swiss-red-light: #ef4444;
  --alpine-sky: #0284c7;

  --bg-color: #fafafc;
  --bg-gradient: linear-gradient(135deg, #fff5f5 0%, #f0f9ff 45%, #f8fafc 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(226, 232, 240, 0.85);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  
  /* Accents */
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-glow: rgba(220, 38, 38, 0.10);
  --accent-teal: #0d9488;
  --accent-blue: #0284c7;
  --header-bg: rgba(255, 255, 255, 0.90);

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(220, 38, 38, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(220, 38, 38, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 28px -6px rgba(220, 38, 38, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --swiss-red: #ef4444;
    --swiss-red-dark: #dc2626;
    --swiss-red-light: #f87171;
    --alpine-sky: #38bdf8;

    --bg-color: #0d1117;
    --bg-gradient: linear-gradient(135deg, #180b0e 0%, #0f172a 55%, #1e1b2e 100%);
    --card-bg: rgba(30, 41, 59, 0.82);
    --card-border: rgba(51, 65, 85, 0.75);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    
    --primary: #ef4444;
    --primary-hover: #f87171;
    --primary-glow: rgba(239, 68, 68, 0.16);
    --accent-teal: #2dd4bf;
    --accent-blue: #38bdf8;
    --header-bg: rgba(15, 23, 42, 0.92);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.18rem;
  min-height: 44px;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 50%, #991b1b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--text-main);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Nav links list */
.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-glow);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-glow);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

/* Main Layout */
main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 1.5rem auto 3rem auto;
  padding: 0 1.25rem;
}

/* Page Hero Header */
.hero-section {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeIn 0.5s ease-out;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(220, 38, 38, 0.25);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-main) 35%, var(--swiss-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.5vw, 1.15rem);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Card Content */
.content-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.75rem;
  animation: slideUp 0.5s ease-out;
}

.section-block {
  margin-bottom: 2rem;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-block h2 {
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.35;
}

.section-block h2 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.section-block p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.section-block p:last-child {
  margin-bottom: 0;
}

.section-block ul {
  list-style-type: none;
  margin: 0.75rem 0 1rem 0;
}

.section-block li {
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.section-block li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3rem;
  position: absolute;
  left: 0.4rem;
  top: -0.15rem;
}

/* Highlights Box */
.highlight-box {
  background: var(--primary-glow);
  border-left: 4px solid var(--primary);
  padding: 1.1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0;
}

.highlight-box p {
  color: var(--text-main);
  font-weight: 500;
  margin: 0;
  font-size: 0.98rem;
}

/* Cards Grid for Index Landing Page */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.nav-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.nav-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.nav-card-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.nav-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nav-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nav-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
}

.nav-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.nav-card-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.nav-card:hover .nav-card-link svg {
  transform: translateX(4px);
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.contact-info {
  flex: 1;
  min-width: 200px;
}

.contact-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--swiss-red);
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  min-height: 44px;
  white-space: nowrap;
}

.contact-btn:hover {
  background: var(--swiss-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* FAQ Items */
.faq-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  background-color: var(--header-bg);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile & Responsive Rules */
@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--card-border);
    flex-direction: column;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .contact-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .contact-btn {
    width: 100%;
  }
}
