/* ============================================
   BASE TYPOGRAPHY
   ============================================ */

body {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--color-text-primary);
  background: var(--color-surface);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
}

h1 { font-size: 64px; letter-spacing: -2.5px; }
h2 { font-size: 44px; letter-spacing: -1.5px; }
h3 { font-size: 26px; letter-spacing: -0.5px; }
h4 { font-size: 18px; letter-spacing: -0.3px; }

p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: normal;
}

.accent-light { color: var(--color-accent-light); }

.text-large {
  font-size: 20px;
  font-weight: 200;
  line-height: 1.8;
  letter-spacing: -0.2px;
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-brand);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 400;
}

.skip-link:focus {
  top: 16px;
}

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

html {
  scroll-padding-top: 80px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: var(--section-padding);
}

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

.section-dark {
  background: var(--color-sectors);
  color: var(--color-text-on-dark);
}

.section-dark p {
  color: var(--color-text-on-dark-muted);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

/* ============================================
   SECTION LABEL
   ============================================ */

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-brand);
  flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-brand);
  padding: 0;
  min-height: auto;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  position: relative;
}

.btn-ghost::after {
  content: ' →';
  transition: var(--transition-default);
  display: inline-block;
}

.btn-ghost:hover {
  color: var(--color-brand-hover);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-height: 48px;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-surface);
  padding: 48px;
  transition: var(--transition-default);
  border-radius: var(--radius-md);
  border: none;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: var(--color-border);
}

.card:hover {
  background: var(--color-surface-alt);
}

/* Service card */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-brand);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
  height: 100%;
}

.service-card .card-number {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-tertiary);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.service-card .card-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Card link */
.service-card .card-link {
  opacity: 0.5;
  transition: var(--transition-default);
}

.service-card:hover .card-link {
  opacity: 1;
}

/* ============================================
   LINK UNDERLINE ANIMATION
   ============================================ */

a.animated-link {
  position: relative;
}

a.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a.animated-link:hover::after {
  width: 100%;
}

/* ============================================
   STATS
   ============================================ */

.stat {
  text-align: left;
}

.stat-number {
  font-size: 64px;
  font-weight: 200;
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: -2px;
  transition: color 0.5s ease;
}

.stat-label {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-top: 12px;
}

.stat:hover .stat-number {
  color: var(--color-brand);
  transition: color 0.5s ease;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  background: var(--color-sectors);
  padding: var(--space-2xl) 48px;
  text-align: center;
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-brand), transparent);
}

.cta-banner h2 {
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin-bottom: 40px;
  color: #fff;
  margin-top: 40px;
}

.cta-banner .accent {
  color: var(--color-accent-light);
}

/* ============================================
   PILL / BADGE
   ============================================ */

.pill {
  display: inline-block;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  color: var(--color-brand);
}

/* ============================================
   DIVIDER ELEMENTS
   ============================================ */

.section-divider {
  width: 48px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto;
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
  background: rgba(2, 116, 190, 0.12);
  color: var(--color-text-primary);
}

/* ============================================
   SMOOTH PAGE LOAD (JS adds .loaded to body)
   ============================================ */

body.loaded .reveal.revealed {
  /* Ensure reveals work after page load */
}

/* ============================================
   FOOTER SEPARATOR
   ============================================ */

.site-footer {
  border-top: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
  .section { padding: var(--section-padding-tablet); }
  .container { padding: 0 32px; }
  h1 { font-size: 48px; letter-spacing: -2px; }
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
}

@media (max-width: 767px) {
  .section { padding: var(--section-padding-mobile); }
  .container { padding: 0 20px; }
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .cta-banner { padding: 80px 20px; }
  .cta-banner h2 { font-size: 30px; }
  .btn { min-height: 48px; }
  .stat-number { font-size: 48px; }
}

/* ============================================
   FOCUS VISIBLE (Accessibility)
   ============================================ */

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
