/* ===== Spoterix Marketing Website — style.css ===== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --brand:       #1d6de8;
  --brand-hover: #1558c0;
  --text:        #182235;
  --bg:          #f3f5f9;
  --surface:     #ffffff;
  --surface-2:   #f6f8fc;
  --muted:       #667085;
  --line:        #e1e7f0;
  --danger:      #b42318;
  --swiss-red:   #d52b1e;
  --brand-gradient: linear-gradient(135deg, #1d6de8, #2f9bff);
  --status-open-text:      #184f9f;
  --status-open-bg:        #eaf2ff;
  --status-open-border:    #c7dcff;
  --status-awarded-text:   #14532d;
  --status-awarded-bg:     #dcfce7;
  --status-awarded-border: #86efac;
  --shadow:       0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 34px rgba(21, 36, 66, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition: all 0.16s ease;
}

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

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

body {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.3; }

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: #ffffff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-secondary:hover {
  background: var(--brand);
  color: #ffffff;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.navbar-brand img { height: 36px; width: auto; }
.navbar-brand:hover { color: var(--text); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--brand); }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switcher a {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.lang-switcher a:hover { color: var(--brand); background: var(--surface-2); }
.lang-switcher a.active {
  background: var(--brand);
  color: #ffffff;
}

.nav-signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 1001;
  padding: 80px 32px 32px;
  transition: right 0.3s ease;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu .lang-switcher {
  margin-top: 20px;
  align-self: flex-start;
  gap: 6px;
}
.mobile-menu .lang-switcher a {
  padding: 8px 16px;
  font-size: 0.9rem;
}
.mobile-menu .btn-primary { margin-top: 20px; text-align: center; }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}
.mobile-overlay.open { display: block; }

.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  opacity: 0.05;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-screenshot {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading .pill {
  display: inline-block;
  background: var(--status-open-bg);
  color: var(--status-open-text);
  border: 1px solid var(--status-open-border);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-heading h2 { margin-bottom: 12px; }
.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-2); }
.section-white { background: var(--surface); }

/* --- Value Cards (Home) --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.value-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--brand);
}
.value-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.value-card p { color: var(--muted); font-size: 0.95rem; }

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: transparent;
}
.feature-card .icon {
  width: 40px;
  height: 40px;
  color: var(--brand);
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.feature-card .learn-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* --- How It Works Steps (Home mini) --- */
.steps-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  position: relative;
}
.steps-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.step-card {
  text-align: center;
  flex: 1;
  max-width: 300px;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.92rem; }

/* --- Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.stat-counter { text-align: center; }
.stat-counter .number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.stat-counter .label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.stat-counter .swiss-quality {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

/* --- Swiss Badge (Footer) --- */
.swiss-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
}
.site-footer .swiss-badge {
  color: rgba(255,255,255,0.6);
}
.swiss-badge svg {
  flex-shrink: 0;
}

.swiss-badge svg rect:first-child,
.swiss-quality svg rect:first-child {
  fill: var(--swiss-red);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--brand-gradient);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 24px;
}
.cta-banner .btn-primary {
  background: #ffffff;
  color: var(--brand);
  font-size: 1rem;
  padding: 14px 36px;
}
.cta-banner .btn-primary:hover {
  background: #f0f0f0;
  color: var(--brand-hover);
}

/* --- Timeline (How It Works page) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding: 0 0 48px 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-number {
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
.contact-form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
  margin-bottom: 18px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 109, 232, 0.12);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.contact-form .consent-row input[type="checkbox"] {
  width: auto;
  margin: 4px 0 0;
}
.contact-form .consent-row label {
  font-size: 0.85rem;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--muted);
}
.form-success {
  display: none;
  padding: 16px;
  background: var(--status-awarded-bg);
  border: 1px solid var(--status-awarded-border);
  color: var(--status-awarded-text);
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-top: 16px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  padding: 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b42318;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-top: 16px;
}
.form-error.show { display: block; }

.contact-info h3 { margin-bottom: 16px; }
.contact-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info .info-item svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Accordion (FAQ) --- */
.accordion { max-width: 720px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.accordion-header svg { transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-item.open .accordion-header svg { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-body-inner {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 120px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Feature Section (Features page alternating) --- */
.feature-section { padding: 64px 0; }
.feature-section:nth-child(even) { background: var(--surface-2); }
.feature-section:nth-child(odd) { background: var(--surface); }
.feature-section-header {
  margin-bottom: 32px;
}
.feature-section-header h2 { margin-bottom: 8px; }
.feature-section-header p { color: var(--muted); font-size: 1rem; }

/* --- Legal pages --- */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  margin-bottom: 12px;
  color: var(--muted);
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-content ul li {
  color: var(--muted);
  margin-bottom: 6px;
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 0.88rem;
  line-height: 1.65;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding: 4px 0;
}
.footer-col a:hover { color: #ffffff; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand img { height: 32px; filter: brightness(0) invert(1); }
.footer-brand span { color: #ffffff; font-weight: 700; font-size: 1.1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .lang-switcher a {
  color: rgba(255,255,255,0.5);
}
.footer-bottom .lang-switcher a:hover { color: #ffffff; background: rgba(255,255,255,0.1); }
.footer-bottom .lang-switcher a.active { background: var(--brand); color: #ffffff; }

/* --- Trust Strip (Homepage) --- */
.trust-strip {
  background: var(--surface);
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.trust-badge svg { color: var(--brand); flex-shrink: 0; }
.trust-badge span { line-height: 1.3; }

/* --- Security Table --- */
.security-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.92rem;
}
.security-table th,
.security-table td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
.security-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text);
}
.security-table tr:hover td { background: var(--surface-2); }
.security-table td { color: var(--muted); }
.security-table td:first-child { font-weight: 600; color: var(--text); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar-nav,
  .navbar-right .nav-signin,
  .navbar-right .lang-switcher,
  .navbar-right .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero { min-height: auto; padding: 120px 0 60px; }

  .value-grid { grid-template-columns: 1fr; }
  .feature-grid,
  .feature-grid.cols-2,
  .feature-grid.cols-4 { grid-template-columns: 1fr; }

  .steps-row { flex-direction: column; align-items: center; gap: 32px; }
  .steps-row::before { display: none; }

  .stats-row { gap: 32px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section { padding: 56px 0; }
  .page-header { padding: 100px 0 36px; }
}
