/* ============================================
   BrickCheck — Marketing Site Styles
   LEGO-inspired design language
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* LEGO brand colors */
  --lego-red: #E3000B;
  --lego-red-dark: #B5000A;
  --lego-yellow: #FFD700;
  --lego-blue: #006CB7;
  --lego-green: #00852B;
  --lego-orange: #F57C20;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-500: #777777;
  --gray-700: #555555;
  --gray-900: #1A1A1A;

  /* Typography */
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 120px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Layout */
  --container-max: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--lego-red);
  color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 4px 0 var(--lego-red-dark), var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--lego-red-dark);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--lego-red-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--gray-900);
  padding: 12px 26px;
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 0 var(--gray-200);
}

.btn-secondary.btn-large {
  padding: 14px 34px;
}

.btn-secondary:hover {
  border-color: var(--gray-900);
  transform: translateY(1px);
}

.btn-white {
  background: var(--white);
  color: var(--lego-red);
  padding: 14px 28px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15), var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-white:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
}

.btn-large {
  font-size: 1.125rem;
  padding: 16px 36px;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 10px 20px;
}

/* --- Badge Pills --- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-yellow { background: #FFF3C4; color: #8B6914; }
.badge-red    { background: #FFE0E0; color: #C41E1E; }
.badge-blue   { background: #DBEAFE; color: #1E5AA8; }
.badge-green  { background: #D1FAE5; color: #166534; }
.badge-orange { background: #FFF0DB; color: #9A5B13; }

/* --- Images --- */
.hero-image img,
.feature-image img {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.placeholder-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  text-align: center;
  padding: var(--space-lg);
  border: 2px dashed var(--gray-200);
}

.placeholder-img::after {
  content: attr(data-label);
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-bottom-color: var(--gray-200);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo-icon {
  flex-shrink: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  text-align: center;
  padding: var(--space-2xl) 0 80px;
  background-image: url('assets/images/brick-pattern.svg');
  background-size: 48px 48px;
  background-repeat: repeat;
}

.hero h1 {
  margin-top: var(--space-md);
  max-width: 700px;
  margin-inline: auto;
}

.hero-subtitle {
  margin-top: var(--space-md);
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.2rem;
  color: var(--gray-500);
}

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

.hero-ctas .btn {
  min-width: 240px;
}

.hero-image {
  margin-top: var(--space-xl);
  max-width: 800px;
  margin-inline: auto;
}

.hero-image .placeholder-img {
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  background: var(--gray-900);
  padding: var(--space-lg) 0;
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
}

.trust-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.7;
}

.trust-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ============================================
   FEATURES
   ============================================ */
.feature {
  padding: 100px 0;
}

.feature:nth-child(even) {
  background: var(--gray-50);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.feature--reversed .feature-grid {
  direction: rtl;
}

.feature--reversed .feature-grid > * {
  direction: ltr;
}

.feature--text-only .feature-text {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.feature--text-only .feature-text p {
  max-width: 100%;
}

.feature-text .badge {
  margin-bottom: var(--space-md);
}

.feature-text h2 {
  margin-bottom: var(--space-md);
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 480px;
}

.feature-image .placeholder-img {
  box-shadow: var(--shadow-md);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 100px 0;
  text-align: center;
  background: var(--white);
}

.section-title {
  margin-bottom: var(--space-xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin-inline: auto;
}

.step {
  padding: var(--space-lg);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 auto var(--space-md);
  box-shadow:
    inset 0 -2px 4px rgba(0, 0, 0, 0.15),
    0 3px 8px rgba(0, 0, 0, 0.1);
}

.step:nth-child(1) .step-number { background: var(--lego-red); }
.step:nth-child(2) .step-number { background: var(--lego-blue); }
.step:nth-child(3) .step-number { background: var(--lego-green); }

.step h3 {
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--lego-red);
  background-image: url('assets/images/brick-pattern.svg');
  background-size: 48px 48px;
  background-repeat: repeat;
  color: var(--white);
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
}

.final-cta .btn {
  margin-bottom: var(--space-md);
}

.final-cta small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gray-900);
  padding: var(--space-lg) 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--gray-500);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

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

/* Tablet and below */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature--reversed .feature-grid {
    direction: ltr;
  }

  .feature-image {
    order: -1;
  }

  .feature-text p {
    max-width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .trust-strip .container {
    gap: var(--space-lg);
  }

  .hero {
    padding: 80px 0 60px;
  }

  .feature {
    padding: 60px 0;
  }

  .how-it-works {
    padding: 60px 0;
  }

  .final-cta {
    padding: 80px 0;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .trust-strip .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .logo span {
    font-size: 1rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
