/* ============================================
   SV-Ganserer MODERN — Swiss Modernism 2.0
   Trust & Authority Design System
   ============================================ */

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/lexend-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/lexend-latin-wght-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/source-sans-3-latin-wght-normal.woff2) format('woff2');
}

:root {
  /* Color System */
  --primary: #0F172A;
  --primary-light: #1E293B;
  --secondary: #334155;
  --accent: #0369A1;
  --accent-hover: #0284C7;
  --accent-light: #E0F2FE;

  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --footer-bg: #0F172A;
  --footer-text: #94A3B8;
  --footer-text-hover: #E2E8F0;

  --success: #059669;
  --destructive: #DC2626;

  /* Typography */
  --font-heading: 'Lexend', -apple-system, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;

  /* Type Scale (1.25 ratio) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;

  /* Spacing (8dp system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--primary);
}

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

a:hover {
  color: var(--accent-hover);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ---- Top Bar ---- */
.topbar {
  background: var(--primary);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--footer-text);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.topbar a {
  color: var(--footer-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition);
}

.topbar a:hover {
  color: #ffffff;
}

.topbar-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* ---- Header ---- */
.header {
  background: var(--card);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
}

.logo-icon {
  width: 56px;
  height: 56px;
}

.logo-icon svg {
  width: 56px;
  height: 56px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.logo-text span {
  display: block;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links li a {
  display: block;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.nav-links li a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-links li a.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-3);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: var(--card);
}

.hero-image {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

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

.hero-image .placeholder {
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-12);
}

.hero-content h1 {
  font-size: var(--text-4xl);
  font-weight: 300;
  color: var(--primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: var(--space-6);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--primary);
  padding: var(--space-10) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  color: #ffffff;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---- Sections ---- */
.section {
  padding: var(--space-20) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto var(--space-6);
  border-radius: 2px;
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-slow);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-2px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent);
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--primary);
}

.service-card p {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.service-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.55em;
}

/* ---- Team Section ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-slow);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-2px);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  margin-bottom: var(--space-5);
  display: block;
  border-radius: var(--radius-md);
}


.team-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.team-card .role {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.team-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(3, 105, 161, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(3, 105, 161, 0.1) 0%, transparent 50%);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.cta-banner p {
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: var(--space-8);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-10);
  background: #ffffff;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--accent);
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
}

.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-info h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-6);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail p {
  font-size: var(--text-base);
  color: var(--text);
  line-height: 1.6;
}

.contact-detail a {
  color: var(--accent);
}

/* ---- Contact Form ---- */
.contact-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-cta h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.contact-cta > p {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.contact-cta-actions .btn-primary {
  margin-top: 0;
}

.contact-cta .contact-cta-note {
  margin-top: var(--space-6);
  margin-bottom: 0;
  font-size: var(--text-sm);
}

/* ---- Footer ---- */
.footer {
  background: var(--footer-bg);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-12);
}

.footer-brand {
  margin-bottom: var(--space-6);
}

.footer-brand .logo-text {
  color: #ffffff;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.footer-brand .logo-text span {
  display: block;
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--footer-text);
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 2;
  min-width: 16px;
}

.footer-contact-list a {
  color: var(--footer-text);
  transition: color var(--transition);
}

.footer-contact-list a:hover {
  color: var(--footer-text-hover);
}

.footer-links h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--footer-text-hover);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  padding: var(--space-2) 0;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--footer-text);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* ---- Legal Pages ---- */
.breadcrumb {
  background: var(--bg-alt);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
}

.legal-section {
  padding: var(--space-16) 0;
}

.legal-section h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-8);
}

.legal-section h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--primary);
  margin: var(--space-8) 0 var(--space-3);
}

.legal-section p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 280px;
  }

  .hero-content {
    padding: var(--space-10) var(--space-6);
  }

  .hero-content h1 {
    font-size: var(--text-3xl);
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    padding: var(--space-4) 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-2);
  }

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

  .nav-links li a {
    padding: var(--space-4) var(--space-5);
  }

  .nav-inner {
    position: relative;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }


  .header-inner {
    flex-direction: column;
    gap: var(--space-3);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-5);
  }

  .hero-content h1 {
    font-size: var(--text-2xl);
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
