/* ===================================
   GLOBAL STYLES — YCF Website
   Base typography, layout, sections
   =================================== */

/* ── Base ── */

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-body);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ── Container ── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ── Sections ── */

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--cream {
  background-color: var(--color-cream);
}

.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.section--accent {
  background-color: var(--color-cta-bg);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ── Typography ── */

.heading-hero {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 600;
  line-height: 1.0;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.heading-page {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.heading-statement {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-black);
  max-width: 900px;
}

.heading-statement--grey {
  color: var(--color-text-body);
}

.heading-section {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-black);
}

.heading-card {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-black);
}

.label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-black);
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 480px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.body-text--white {
  color: rgba(255, 255, 255, 0.8);
}

.caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-light);
}

/* ── Links ── */

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
  transition: gap var(--duration-fast) var(--ease-default);
}

.arrow-link:hover {
  gap: 12px;
}

.arrow-link .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-default);
  font-size: 18px;
}

.arrow-link--white {
  color: var(--color-white);
}

/* ── Scroll Animations ── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-default),
              transform var(--duration-slow) var(--ease-default);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger > .fade-up:nth-child(2) { transition-delay: 0.08s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.16s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.24s; }
.stagger > .fade-up:nth-child(5) { transition-delay: 0.32s; }
.stagger > .fade-up:nth-child(6) { transition-delay: 0.4s; }
.stagger > .fade-up:nth-child(7) { transition-delay: 0.48s; }
.stagger > .fade-up:nth-child(8) { transition-delay: 0.56s; }

/* ── Utility ── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
