/* ============================================================
   ECOVETSERVICE — Reset & Base  v2
   ============================================================ */

*, *::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-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); font-size: var(--fs-base); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-snug);
  color: var(--color-navy);
}

p { line-height: var(--lh-relaxed); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--sm  { max-width: var(--container-sm); }
.container--md  { max-width: var(--container-md); }
.container--lg  { max-width: var(--container-lg); }
.container--2xl { max-width: var(--container-2xl); }

/* ── Section spacing ── */
.section { padding-block: clamp(var(--sp-16), 8vw, var(--sp-32)); }
.section--sm { padding-block: clamp(var(--sp-10), 5vw, var(--sp-20)); }
.section--lg { padding-block: clamp(var(--sp-20), 10vw, var(--sp-40)); }

/* ── Section header ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--sp-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-teal);
}

.section-label--gold { color: var(--color-gold); }
.section-label--gold::before { background: var(--color-gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}
.section-title em {
  font-style: normal;
  color: var(--color-teal);
}
.section-title--light { color: var(--color-white); }
.section-title--light em { color: var(--color-gold); }

.section-subtitle {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-md));
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 580px;
  font-weight: var(--fw-regular);
}
.section-subtitle--light { color: rgba(255,255,255,0.6); }

.section-header { margin-bottom: clamp(var(--sp-10), 5vw, var(--sp-16)); }
.section-header--center { text-align: center; }
.section-header--center .section-label { justify-content: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.text-gold   { color: var(--color-gold) !important; }
.text-teal   { color: var(--color-teal) !important; }
.text-muted  { color: var(--color-text-muted) !important; }
.bg-navy   { background-color: var(--color-navy); }
.bg-alt    { background-color: var(--color-bg-alt); }
.bg-panel  { background-color: var(--color-bg-panel); }
.mt-auto   { margin-top: auto; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
  border-radius: 2px;
  margin-block: var(--sp-5);
}
.divider--gold {
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}
.divider--center { margin-inline: auto; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }
.reveal--delay-5 { transition-delay: 400ms; }
.reveal--delay-6 { transition-delay: 480ms; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-grey-100); }
::-webkit-scrollbar-thumb { background: var(--color-grey-300); border-radius: var(--radius-full); }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Thin border ── */
.border-top { border-top: var(--border-thin); }
.border-bottom { border-bottom: var(--border-thin); }
