/* ============================================================================
   Kember.co CSS Design System
   ============================================================================ */

/* CSS Variables (Design Tokens) */
:root {
  /* Colors */
  --color-primary: #2D5A47;
  --color-secondary: #7A9E7E;
  --color-accent: #F5F1EB;
  --color-text: #2C2C2C;
  --color-highlights: #C4A962;
  --color-white: #FFFFFF;
  --color-medium-gray: #6B6B6B;
  --color-light-gray: #E8E6E2;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'DM Sans', sans-serif;
  --font-size-xs: 14px;
  --font-size-sm: 16px;
  --font-size-base: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;
  --font-size-xxxl: 48px;
  --font-size-hero: 72px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: 80px;
  --grid-gap: 24px;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

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

#app {
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-hero);
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-xxxl);
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Utility Classes */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-medium-gray); }
.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }
.bg-white { background-color: var(--color-white); }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Process Cards Hover Effect */
.process-card {
  cursor: pointer;
}

.process-card:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(0) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Hide connecting line decoration on tablet and mobile (when grid is not 4 columns) */
@media (max-width: 1024px) {
  .process-connecting-line {
    display: none !important;
  }
}

/* Responsive Grid Utilities */
.responsive-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}

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

@media (max-width: 768px) {
  .responsive-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Responsive Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 !important;
  }
}

/* Mobile Navigation */
.mobile-menu-button {
  display: none;
}

.desktop-nav {
  display: flex;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex !important;
  }

  .desktop-nav {
    display: none !important;
  }
}

/* Hero Section Responsive */
.hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 64px;
  align-items: center;
}

.hero-grid h1 span {
  display: block;
  white-space: nowrap;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons button {
    width: 100%;
  }

  .hero-image-column {
    display: none;
  }

  /* Allow hero text to wrap on mobile */
  h1 span {
    white-space: normal !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --container-padding: 24px;
    --font-size-hero: 36px;
    --font-size-xxxl: 28px;
    --font-size-xxl: 22px;
    --font-size-xl: 20px;
    --font-size-lg: 18px;
    --spacing-xxxl: 48px;
  }

  body {
    font-size: 16px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
    --font-size-hero: 26px;
    --font-size-xxxl: 24px;
    --font-size-xxl: 20px;
    --font-size-xl: 18px;
    --font-size-lg: 16px;
    --spacing-xs: 6px;
    --spacing-sm: 10px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-xxl: 28px;
    --spacing-xxxl: 36px;
  }

  .hero-grid {
    gap: 20px;
    padding: 32px 0 !important;
  }

  /* Override hero section wrapper min-height on mobile */
  .hero-section-wrapper {
    min-height: auto !important;
    padding: 40px 0 !important;
  }

  .hero-buttons {
    gap: 12px;
    margin-bottom: 0 !important;
  }

  /* Make hero text vertically stacked on small screens */
  .hero-grid h1 {
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .hero-grid h1 span {
    display: block !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* Reduce paragraph sizes in hero section */
  .hero-grid p {
    font-size: 15px !important;
    line-height: 1.5;
  }

  /* Make badge smaller on mobile */
  .hero-grid .kember-badge {
    font-size: 13px !important;
    padding: 8px 14px !important;
    margin-bottom: 8px !important;
  }

  /* Remove top margin from first element in hero */
  .hero-grid > div > *:first-child {
    margin-top: 0 !important;
  }

  /* Value Props section typography */
  h2 {
    font-size: 24px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  /* Reduce section padding on mobile */
  section > div {
    padding: 40px 0 !important;
  }

  /* Hide process section decorative line and dots on mobile */
  .responsive-grid-4 + div,
  div[style*="position: relative"][style*="height: 0"] {
    display: none !important;
  }
}

/* Ultra small screens (iPhone SE, small Android) */
@media (max-width: 360px) {
  :root {
    --container-padding: 12px;
    --font-size-hero: 26px;
    --font-size-xxxl: 20px;
    --font-size-xxl: 18px;
    --font-size-xl: 16px;
    --font-size-lg: 15px;
    --font-size-base: 14px;
  }

  .hero-grid {
    gap: 14px;
  }

  /* Make hero text display inline instead of block to allow natural wrapping */
  .hero-grid h1 span {
    display: inline !important;
    white-space: normal !important;
  }

  /* Add spacing between the color-coded phrases */
  .hero-grid h1 span:not(:last-child)::after {
    content: " ";
  }

  /* Reduce button padding for ultra-small screens */
  .hero-buttons button {
    font-size: 14px;
    padding: 10px 20px;
  }
}
