/* ==========================================================================
   Bassinet AU - Authority Site Styles
   A modern, trustworthy design for Australian parents
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --primary: #1e3a5f;
  --primary-light: #2d5a8a;
  --primary-dark: #0f1f33;
  --accent: #e07b4a;
  --accent-light: #f5a67a;
  --accent-dark: #c45f30;

  /* Backgrounds */
  --bg-light: #fafbfc;
  --bg-cream: #f8f6f3;
  --card: #ffffff;
  --card-hover: #fcfcfc;

  /* Text Colors */
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;

  /* Semantic Colors */
  --success: #2d8a5f;
  --success-light: #d4edda;
  --info: #3182ce;
  --info-light: #bee3f8;
  --warning: #d69e2e;
  --warning-light: #fefcbf;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);

  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::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-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

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

.container--narrow {
  max-width: var(--content-width);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--cream {
  background: var(--bg-cream);
}

.section--white {
  background: var(--card);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  box-shadow: var(--shadow-lg);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  text-decoration: none;
}

.site-logo__icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.site-logo__text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}

.site-logo__tagline {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav__link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav__link:hover {
  color: white;
}

.main-nav__link:hover::after {
  width: 100%;
}

.main-nav__link--active {
  color: white;
}

.main-nav__link--active::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__link {
    padding: var(--space-sm);
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  .main-nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.site-footer__brand {
  max-width: 300px;
}

.site-footer__brand-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.site-footer__brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.site-footer__heading {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: var(--space-xs);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: white;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__disclosure {
  background: rgba(255, 255, 255, 0.08);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.site-footer__copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .site-footer__brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: 3.25rem;
  color: white;
  margin-bottom: var(--space-md);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
  max-width: 540px;
  line-height: 1.7;
}

.hero__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.hero__features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__features {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(224, 123, 74, 0.4);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 123, 74, 0.5);
  color: white;
}

.btn--secondary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn--secondary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  color: var(--primary);
}

.btn--outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn--large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.card--flat {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card--flat:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

/* Product Cards */
.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  align-self: flex-start;
}

.product-card__title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__tag {
  background: var(--info-light);
  color: var(--info);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.product-card__cta {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Blog Cards
   -------------------------------------------------------------------------- */
.blog-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-card__image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

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

.blog-card__category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card__title a {
  color: var(--text-primary);
}

.blog-card__title a:hover {
  color: var(--accent);
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.blog-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Grid Layouts
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header__title {
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
}

.section-header__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Info Boxes (for articles)
   -------------------------------------------------------------------------- */
.info-box {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.info-box--tip {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-left: 4px solid var(--success);
}

.info-box--warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid var(--warning);
}

.info-box--info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left: 4px solid var(--info);
}

.info-box--important {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border-left: 4px solid #db2777;
}

.info-box__title {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.info-box__content {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.info-box__content:last-child {
  margin-bottom: 0;
}

/* Key Takeaway Card */
.key-takeaway {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  position: relative;
}

.key-takeaway::before {
  content: 'Key Takeaway';
  position: absolute;
  top: -12px;
  left: var(--space-md);
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.key-takeaway p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Article Styles
   -------------------------------------------------------------------------- */
.article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

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

.article__category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.article__title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.article__reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article__content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.article__content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article__content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.article__content li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

/* Author Bio */
.author-bio {
  display: flex;
  gap: var(--space-md);
  background: var(--bg-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
}

.author-bio__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-bio__content {
  flex: 1;
}

.author-bio__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.author-bio__title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.author-bio__description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Filters & Controls
   -------------------------------------------------------------------------- */
.filters {
  background: var(--card);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.filters__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.filters__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Comparison Table
   -------------------------------------------------------------------------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: var(--bg-cream);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-light);
}

/* --------------------------------------------------------------------------
   Quiz Section
   -------------------------------------------------------------------------- */
.quiz {
  background: var(--card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.quiz__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.quiz__result {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border: 2px solid #22d3ee;
}

/* --------------------------------------------------------------------------
   Page Hero (for inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: var(--space-2xl) 0;
  text-align: center;
}

.page-hero__title {
  color: white;
  font-size: 2.75rem;
  margin-bottom: var(--space-sm);
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: var(--space-md) 0;
  background: var(--bg-cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
}

.breadcrumbs__item::after {
  content: '/';
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

.breadcrumbs__item:last-child::after {
  display: none;
}

.breadcrumbs__link {
  color: var(--text-muted);
}

.breadcrumbs__link:hover {
  color: var(--primary);
}

.breadcrumbs__current {
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
