/* ========================================
   Aces High AI - Styles
   ======================================== */

/* CSS Custom Properties */
:root {
  --colour-bg: #0a0a0a;
  --colour-text: #ffffff;
  --colour-text-muted: rgba(255, 255, 255, 0.7);
  --colour-accent: #f5f5f5;
  --colour-overlay: rgba(0, 0, 0, 0.55);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--colour-bg);
  color: var(--colour-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Snap Container */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Section Base */
.section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--colour-bg);
}

/* Section Background Images - Desktop */
.section--hero .section__bg {
  background-image: url('images/hero-desktop.jpg');
}

.section--services .section__bg {
  background-image: url('images/services-desktop.jpg');
}

.section--proof .section__bg {
  background-image: url('images/proof-desktop.jpg');
}

.section--contact .section__bg {
  background-image: url('images/contact-desktop.jpg');
}

.section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    var(--colour-overlay) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.section__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: var(--space-md);
  text-align: center;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

/* ========================================
   Hero Section
   ======================================== */

.hero__headline {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.hero__subhead {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--colour-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  margin-bottom: var(--space-md);
}

.hero__proof {
  font-size: 0.9rem;
  color: var(--colour-text-muted);
  font-style: italic;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background-color: var(--colour-text);
  color: var(--colour-bg);
}

.btn--primary:hover {
  background-color: var(--colour-accent);
  transform: translateY(-2px);
}

.btn--large {
  font-size: 1.25rem;
  padding: var(--space-sm) var(--space-lg);
}

/* ========================================
   Services Section
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service {
  text-align: center;
  padding: var(--space-md);
}

.service__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.service__desc {
  font-size: 0.9rem;
  color: var(--colour-text-muted);
  line-height: 1.5;
}

/* ========================================
   Proof Section
   ======================================== */

.proof__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--colour-text-muted);
  margin-bottom: var(--space-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.9rem;
  color: var(--colour-text-muted);
}

/* ========================================
   Contact Section
   ======================================== */

.contact__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--colour-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.team {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.team__member {
  text-align: center;
}

.team__member strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.team__member span {
  font-size: 0.9rem;
  color: var(--colour-text-muted);
}

.contact__location {
  font-size: 0.9rem;
  color: var(--colour-text-muted);
}

/* ========================================
   Responsive - Tablet
   ======================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
  }
}

/* ========================================
   Responsive - Mobile
   ======================================== */

@media (max-width: 640px) {
  /* Mobile Background Images */
  .section--hero .section__bg {
    background-image: url('images/hero-mobile.jpg');
  }

  .section--services .section__bg {
    background-image: url('images/services-mobile.jpg');
  }

  .section--proof .section__bg {
    background-image: url('images/proof-mobile.jpg');
  }

  .section--contact .section__bg {
    background-image: url('images/contact-mobile.jpg');
  }

  .section__content {
    padding: var(--space-sm);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .service {
    padding: var(--space-sm);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .team {
    flex-direction: column;
    gap: var(--space-md);
  }

  .btn--large {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-md);
  }
}

/* ========================================
   Scroll Snap Touch Improvements
   ======================================== */

@supports (-webkit-overflow-scrolling: touch) {
  .snap-container {
    -webkit-overflow-scrolling: touch;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snap-container {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
