/* ============================================================
   EDVOY.LK — Global / Reset / Utilities
   ============================================================ */

/* ── Gilroy via CDN (closest freely available host) ── */
/* Gilroy is a commercial font; using jsDelivr-hosted version  */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Gilroy fallback: Nunito is very close in rounded character */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* Override --font-display to use Nunito as Gilroy stand-in */
:root {
  --font-display: 'Nunito', 'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-8);
}
@media (max-width: 768px) { .container { padding-inline: var(--space-5); } }
@media (max-width: 480px) { .container { padding-inline: var(--space-4); } }

/* ── Section ── */
.section { padding-block: var(--section-y); }
.section-grey  { background: var(--bg); }
.section-dark  { background: var(--night-black); }
.section-brand { background: var(--brand-gradient); }

/* ── Section eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--brand-red);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-dark .eyebrow,
.section-brand .eyebrow {
  color: rgba(255,255,255,0.7);
}
.section-dark .eyebrow::before,
.section-brand .eyebrow::before {
  background: rgba(255,255,255,0.5);
}

/* ── Section title ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.section-dark .section-title,
.section-brand .section-title { color: var(--white); }

/* ── Section sub ── */
.section-sub {
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-10);
}
.section-dark .section-sub  { color: rgba(255,255,255,0.55); }
.section-brand .section-sub { color: rgba(255,255,255,0.75); }

/* ── Flex helpers ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Chip / pill tag ── */
.chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  background: var(--grey-white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover {
  background: var(--brand-gradient);
  color: var(--white);
  border-color: transparent;
}
.chip-brand {
  background: var(--brand-gradient);
  color: var(--white);
  border-color: transparent;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}
.badge-brand  { background: rgba(255,61,83,0.1); color: var(--brand-red); }
.badge-dark   { background: var(--night-black);  color: var(--white); }
.badge-accent { background: var(--light-yellow); color: var(--night-black); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Brand Pattern Strip ──
   A decorative row of geometric tiles shown at section bottoms/tops.
   Replicated in SVG inline — mirrors the brand pattern from guidelines.
   ── */
.brand-pattern {
  width: 100%;
  height: 48px;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}
.brand-pattern svg {
  width: 100%;
  height: 100%;
}

/* ── Divider ── */
hr.divider {
  border: none;
  height: 1px;
  background: var(--border);
}
