/* ============================================================
   BASE.CSS — Design tokens, reset, typography
   Vidai AG · vidai.ch
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  /* Brand colours */
  --red:          #c0392b;
  --red-dark:     #8b1a10;
  --green:        #2d5a3d;
  --green-light:  #3d7a52;
  --black:        #111111;
  --charcoal:     #2c2c2c;
  --mid:          #555555;
  --stone:        #8a8a8a;
  --light:        #eeece6;
  --white:        #f7f6f2;

  /* Spacing */
  --pad:          100px 64px;
  --pad-mobile:   60px 24px;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  /* Transitions */
  --ease:         0.2s ease;
}

/* ── RESET ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ── SECTION BASE ── */
section {
  padding: var(--pad);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── SHARED LABELS ── */
.s-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.s-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
}

.s-label.red        { color: var(--red); }
.s-label.red::before { background: var(--red); }
.s-label.green        { color: var(--green); }
.s-label.green::before { background: var(--green); }
.s-label.white        { color: rgba(247,246,242,0.5); }
.s-label.white::before { background: rgba(247,246,242,0.3); }

/* ── SHARED TITLES ── */
.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 16px;
}

.s-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--mid);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 13px 30px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--ease), transform var(--ease);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid rgba(247,246,242,0.3);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--ease), border-color var(--ease);
}

.btn-white:hover {
  background: rgba(247,246,242,0.08);
  border-color: rgba(247,246,242,0.6);
}

/* ── FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section {
    padding: var(--pad-mobile);
  }

  .s-sub {
    margin-bottom: 36px;
  }
}
