/* ============================================================
   JELEOSINMI — BASE STYLES
   /assets/css/base.css
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── GRAIN TEXTURE ──────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
/* Fredoka tops out at 700, so headings use 700 (renders crisp
   instead of silently clamping a 900 request). Sizes are bumped
   so headings clearly out-size body text. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--dark);
}

h1 { font-size: clamp(36px, 4.6vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
h3 { font-size: clamp(21px, 2.4vw, 30px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--red);
  text-decoration: none;
  transition: var(--ease);
}
a:hover { color: var(--red-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* List reset for nav/UI only — prose lists restored by scoped rules */
ul, ol { list-style: none; margin: 0; padding: 0; }
/* Restore bullets/numbers inside rich-text content areas */
.svc-body-content ul,
.prose ul,
.body-content ul,
.blog-content ul  { list-style: disc outside; padding-left: 24px; }
.svc-body-content ol,
.prose ol,
.body-content ol,
.blog-content ol  { list-style: decimal outside; padding-left: 24px; }
.svc-body-content li,
.prose li,
.body-content li,
.blog-content li  { display: list-item; margin-bottom: 5px; }

/* ── UTILITY ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.text-red    { color: var(--red); }
.text-green  { color: var(--green); }
.text-yellow { color: var(--yellow); }
.text-mid    { color: var(--mid); }
.text-gray   { color: var(--gray); }
.text-white  { color: var(--white); }

.italic { font-style: italic; }
.bold   { font-weight: 700; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── EYEBROW ────────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,0,60,0.15) 0%, transparent 70%);
}

.page-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.page-hero-eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--yellow);
}

.page-hero-eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.page-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
}

/* ── BLINK DOT ──────────────────────────────────────────────── */
.blink {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.25} }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn   { from{opacity:0}            to{opacity:1} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes barIn    { from{transform:scaleX(0)} to{transform:scaleX(1)} }

/* ── RESPONSIVE CONTAINER ───────────────────────────────────── */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .section    { padding: 60px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section    { padding: 40px 0; }
}