/*
 * global.css — BYY Global Reset + Base Styles + Button System
 * Source: Build 0 spec — bestyearyet.com Homepage Build Queue
 *         Visual Design Addendum — spacing, typography scale, buttons
 *
 * Import order: tokens.css must be loaded before this file.
 * In HTML: <link rel="stylesheet" href="styles/tokens.css">
 *          <link rel="stylesheet" href="styles/global.css">
 */

@import url('tokens.css');


/* ================================================================
 * ACCESSIBILITY
 * ================================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}


/* ================================================================
 * BOX MODEL RESET
 * ================================================================ */

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


/* ================================================================
 * ROOT + BODY
 * ================================================================ */

html {
  scroll-behavior: auto; /* Lenis (init.js) overrides this */
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
 * MEDIA DEFAULTS
 * ================================================================ */

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


/* ================================================================
 * LINK DEFAULTS
 * ================================================================ */

a {
  color: inherit;
  text-decoration: none;
}


/* ================================================================
 * TYPOGRAPHY DEFAULTS
 * Headings use Catamaran; body elements use Arial (system font)
 * ================================================================ */

h1,
h2,
h3,
h4,
h5,
h6,
.stat-number,
.step-number,
.badge {
  font-family: var(--font-heading);
}

body,
p,
li,
span,
a,
input,
button,
textarea,
select {
  font-family: var(--font-body);
}


/* ================================================================
 * SECTION LAYOUT
 * ================================================================ */

.section {
  width: 100%;
  position: relative;
  overflow: hidden; /* Contain animated or decorative elements */
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-padded {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-content {
    padding: 0 24px;
  }

  .section-padded {
    padding: 80px 0;
  }
}


/* ================================================================
 * BODY TEXT UTILITY
 * Text blocks are never wider than 640px — line-length discipline
 * ================================================================ */

.body-text {
  font-size: 18px;
  line-height: 1.75;
  max-width: 640px;
  color: var(--color-text-primary);
}

@media (max-width: 768px) {
  .body-text {
    font-size: 16px;
  }
}


/* ================================================================
 * TYPOGRAPHY SCALE
 * ================================================================ */

/* Hero H1 — first thing anyone sees; this is a visual element */
.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-align prefix and conclusion by default */
}

/* Large section headline — methodology story, stats section */
.section-headline-lg {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* Standard section headline — all other sections */
.section-headline {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Stat number/label styles moved to stats.css */

/* Section label — small all-caps overlines */
.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-purple-900);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-label-light {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);   /* teal — glows beautifully on dark/navy backgrounds */
  margin-bottom: 16px;
  font-weight: 600;
}


/* ================================================================
 * BUTTON SYSTEM
 * ================================================================ */

/* Primary — main conversion action */
.btn-primary {
  background: var(--color-red);
  color: var(--color-off-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 63, 47, 0.30); /* Colored red shadow — premium feel */
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Inverted — white button with red text, for use on dark/red sections */
.btn-primary-inverted {
  background: var(--color-off-white);
  color: var(--color-red);
}

.btn-primary-inverted:hover {
  background: var(--color-light-gray);
  box-shadow: 0 8px 24px rgba(250, 249, 246, 0.20);
}

/* Secondary — free tour / text link style CTA */
.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(72, 72, 73, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
  padding: 0;
  display: inline;
}

.btn-secondary:hover {
  text-decoration-color: rgba(72, 72, 73, 0.8);
}


/* ================================================================
 * CARD BASE
 * ================================================================ */

.card {
  padding: 40px 36px;
  border-radius: var(--radius-card);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
}


/* ================================================================
 * SECTION DARK (Navy)
 * Methodology, Testimonials
 * ================================================================ */

.section-dark {
  background: var(--color-navy);
  color: var(--color-off-white);
  padding: 120px 0;
}

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

.section-dark p {
  color: rgba(250, 249, 246, 0.8);
}

.section-dark .pull-quote {
  color: var(--color-teal);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  font-style: italic;
}


/* Stats section styles moved to stats.css */


/* ================================================================
 * ANIMATION PREP
 * Elements use [data-animate] for JS targeting; start visible so
 * they render correctly if JS hasn't loaded yet.
 * ================================================================ */

[data-animate] {
  will-change: transform, opacity;
}
