/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

:root {
  /* Color Palette - Neutral with Subtle Accents */
  --color-background: #f5f5f7;
  --color-card: #ffffff;
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-accent: #0071e3;
  --color-accent-hover: #0077ed;
  --color-border: #e5e5e7;
  --color-quote-bg: #f8f9fa;
  --color-quote-border: #0071e3;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 18px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Container */
  --container-max-width: 1400px;

  /* Border Radius */
  --border-radius: 12px;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ========================================
   Page Container
   ======================================== */

.page-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-lg);
}

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

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  color: #ffffff;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.hero-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   Bento Grid Layout
   ======================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Grid Card Base Styles */
.grid-card {
  background: var(--color-card);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--color-border);
}

.grid-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-content h2,
.card-content h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  line-height: 1.3;
}

.card-content h2 {
  font-size: 2rem;
}

.card-content h3 {
  font-size: 1.5rem;
}

.card-content p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.card-content p:last-child {
  margin-bottom: 0;
}

.card-content ul {
  list-style: none;
  padding-left: 0;
}

.card-content ul li {
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.card-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 600;
}

/* Grid Card Size Variants - Asymmetric Bento Grid */

.card-full {
  grid-column: span 12;
}

.card-wide {
  grid-column: span 8;
}

.card-large {
  grid-column: span 6;
}

.card-medium {
  grid-column: span 4;
}

.card-small {
  grid-column: span 3;
}

/* Quote Cards - Special Styling */
.quote-card {
  background: var(--color-quote-bg);
  border-left: 4px solid var(--color-quote-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-card blockquote {
  margin: 0;
  font-style: italic;
}

.quote-card blockquote p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.quote-card blockquote footer {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ========================================
   Call-to-Action Section
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  color: #ffffff;
}

.cta-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.cta-text {
  flex: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: var(--color-text-primary);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Footer
   ======================================== */

.page-footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  /* Adjust grid for tablets */
  .card-wide {
    grid-column: span 12;
  }

  .card-large {
    grid-column: span 6;
  }

  .card-medium {
    grid-column: span 6;
  }

  .card-small {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: var(--spacing-md);
  }

  .hero {
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  /* Stack all cards on mobile */
  .card-full,
  .card-wide,
  .card-large,
  .card-medium,
  .card-small {
    grid-column: span 12;
  }

  .bento-grid {
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .grid-card {
    padding: var(--spacing-md);
  }

  .card-content h2 {
    font-size: 1.5rem;
  }

  .card-content h3 {
    font-size: 1.25rem;
  }

  /* CTA Section Mobile */
  .cta-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .cta-image {
    width: 140px;
    height: 140px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  body {
    background: white;
    color: black;
  }

  .page-container {
    max-width: 100%;
    padding: 0;
  }

  .hero {
    background: white;
    color: black;
    border: 2px solid black;
  }

  .grid-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .cta-section {
    background: white;
    color: black;
    border: 2px solid black;
  }

  .cta-button {
    background: white;
    color: black;
    border: 2px solid black;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
