/**
 * Vietnam E-Bike Travel - Brand Typography
 * Typography styles and font configurations for consistent text styling
 */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Font Families */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --font-fallback: system-ui, -apple-system, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
}

/* Base Typography */
body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  font-weight: var(--font-normal);
}

/* Heading Styles */
.h1, h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.h2, h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.h3, h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.h4, h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.h5, h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.h6, h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Paragraph Styles */
.large-p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.p, p {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.small-p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Caption and Small Text */
.caption {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.small-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Button Text Styles */
.btn-text-lg {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: 1;
}

.btn-text-base {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: 1;
}

.btn-text-sm {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
}

.btn-text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
}

/* Brand Typography */
.brand-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.brand-tagline {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  color: var(--text-secondary);
}

/* Card Typography */
.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Body Text Styles */
.body-text {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

.text-base-custom {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* Footer Typography */
.footer-text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-light);
}

.footer-heading {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-white);
  margin-bottom: 1rem;
}

.footer-link {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-light);
  text-decoration: none;
  transition: color 300ms ease-in-out;
}

.footer-link:hover {
  color: var(--brand-primary);
}

/* Utility Classes */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* Responsive Typography */
@media (max-width: 768px) {
  .h1, h1 {
    font-size: var(--text-4xl);
    margin-bottom: 1rem;
  }
  .h2, h2 {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
  }
  .h3, h3 {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
  }
  .h4, h4 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
  }
  .h5, h5 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
  }
  .h6, h6 {
    font-size: var(--text-base);
    margin-bottom: 0.5rem;
  }

  /* Mobile adjustments for card typography */
  .card-title {
    font-size: var(--text-lg);
    line-height: var(--leading-tight);
  }

  .large-p {
    font-size: var(--text-base);
    margin-bottom: 0.75rem;
  }

  /* Mobile button text adjustments */
  .btn-text-lg {
    font-size: var(--text-base);
  }

  /* Mobile footer adjustments */
  .footer-heading {
    font-size: var(--text-base);
    margin-bottom: 0.75rem;
  }

  .footer-text {
    font-size: var(--text-xs);
  }

  .footer-link {
    font-size: var(--text-xs);
  }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  .h1, h1 {
    font-size: var(--text-3xl);
    margin-bottom: 0.75rem;
  }
  .h2, h2 {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
  }
  .h3, h3 {
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
  }

  .card-title {
    font-size: var(--text-base);
  }

  .brand-title {
    font-size: var(--text-lg);
  }
}

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  .h1, h1 {
    font-size: var(--text-6xl);
    margin-bottom: 2rem;
  }
  .h2, h2 {
    font-size: var(--text-5xl);
    margin-bottom: 1.5rem;
  }

  .large-p {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
  }
}
