/* ================================================================
   websurfers.ch — Stylesheet
   Aesthetic: Schweizer Welle, hell und warm
   ================================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FAF7F1;
  --bg-card: #FFFFFF;
  --bg-warm: #F4EDDD;
  --bg-sand: #ECE2C9;

  --ink: #0F1B2E;
  --ink-soft: #4A5468;
  --ink-mute: #8E96A4;
  --ink-faint: #BDC2CC;

  --border: #E8E2D3;
  --border-strong: #D6CDB7;

  --wave: #2EBFB8;
  --wave-soft: #DCF2F0;
  --wave-deep: #1E8F8A;

  --coral: #FF6B47;
  --coral-soft: #FFE0D6;
  --coral-deep: #E85D3C;

  --shadow-sm: 0 1px 2px rgba(15, 27, 46, 0.04), 0 2px 6px rgba(15, 27, 46, 0.04);
  --shadow: 0 4px 12px rgba(15, 27, 46, 0.06), 0 12px 32px rgba(15, 27, 46, 0.04);
  --shadow-lg: 0 8px 24px rgba(15, 27, 46, 0.08), 0 24px 64px rgba(15, 27, 46, 0.08);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- Atmospheric backdrop ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 90% -10%, rgba(46, 191, 184, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at -5% 30%, rgba(255, 107, 71, 0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 600px) { .container { padding: 0 20px; } }
section { padding: 110px 0; position: relative; }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 107, 71, 0.3);
}
.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 71, 0.4);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg-card);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(250, 247, 241, 0.85);
  border-bottom: 1px solid rgba(232, 226, 211, 0.6);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  padding: 9px 18px !important;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg) !important;
  font-weight: 500;
  font-size: 14px !important;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--coral) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* mobile menu */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s;
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: flex; }
}

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wave-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wave-deep);
  font-weight: 600;
}
.eyebrow.coral {
  background: var(--coral-soft);
  color: var(--coral-deep);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--wave);
  border-radius: 50%;
}

.section-head {
  margin-bottom: 64px;
  max-width: 760px;
}
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-head h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  color: var(--wave-deep);
}
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 20px;
  line-height: 1.6;
  max-width: 620px;
}

/* ---------- Wave divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0 auto;
  opacity: 0.35;
}

/* ---------- Trust strip ---------- */
.trust {
  padding: 38px 0 !important;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-item svg { width: 18px; height: 18px; color: var(--wave); flex-shrink: 0; }

/* ---------- Card base ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

/* ---------- Footer ---------- */
.footer {
  padding: 72px 0 32px;
  background: var(--ink);
  color: var(--bg);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer .logo-inverted {
  filter: brightness(0) invert(1);
  height: 42px;
  width: auto;
}
.footer-tagline {
  margin-top: 18px;
  color: var(--ink-mute);
  font-size: 14.5px;
  max-width: 320px;
  line-height: 1.6;
}
.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wave);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { padding: 4px 0; }
.footer li a {
  color: rgba(250, 247, 241, 0.85);
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer li a:hover { color: var(--wave); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 247, 241, 0.1);
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--ink-mute); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--wave); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 20px;
  transform: translateY(120%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible {
  display: flex;
  transform: translateY(0);
}
.cookie-banner-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  flex: 1;
}
.cookie-banner-text strong {
  color: var(--ink);
  font-weight: 600;
}
.cookie-banner-text a {
  color: var(--wave-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-accept {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-accept:hover {
  background: var(--wave-deep);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 18px 20px;
  }
  .cookie-accept { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
