/* ============================================
   I90 Theme Styles
   ============================================ */

/* --------------------------------------------
   1. CSS Variables (Easy theming)
   -------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #10b981; /* Emerald 500 */
  --color-primary-dark: #059669; /* Emerald 700 */
  --color-dark: #1f2937; /* Gray 800 */
  --color-light: #f7fafc; /* Gray 50 */
  --color-text: #1f2937;

  /* Shadows */
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Spacing */
  --container-max: 1200px;
  --spacing-section: 4rem;
}

/* --------------------------------------------
   2. Base Styles
   -------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

footer a {
  color: var(--color-light);
}

/* --------------------------------------------
   3. Utility Classes (Custom additions)
   -------------------------------------------- */
.cta-primary {
  background-color: var(--color-primary);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.card-shadow {
  box-shadow: var(--shadow-card);
}

.container-custom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------
   4. Page-Specific Styles
   -------------------------------------------- */

/* Homepage / Landing */
.i90-landing .hero-section {
  background-image: url("/user/dist/shared-assets/img/common/jumbotron/hero-american.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Static Pages (Terms, Privacy, etc.) */
.prose span img,
.prose span {
  display: inline-block;
  vertical-align: middle;
}

/* Ensure images in paragraphs align properly */
.prose p span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Form Pages */
.i90-form .form-container {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Page */
.i90-faq .faq-item {
  margin-bottom: 1.5rem;
}

/* Contact Page */
.i90-contact .contact-info {
  /* Contact-specific styles */
}

/* --------------------------------------------
   5. Component Styles (Reusable)
   -------------------------------------------- */

/* Buttons */
.btn-secondary {
  background-color: var(--color-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #374151;
}

/* Cards */
.info-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-4px);
}

/* Icons */
.icon-wrapper {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: white;
}

/* --------------------------------------------
   6. Responsive Overrides
   -------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --spacing-section: 2rem;
  }

  .container-custom {
    padding: 0 1rem;
  }
}

/* --------------------------------------------
   7. Print Styles (for forms/documents)
   -------------------------------------------- */
@media print {
  .no-print {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* --------------------------------------------
   8. Accessibility
   -------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus states */
a:focus,
button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------
   9. Animations (Optional)
   -------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

/* --------------------------------------------
   10. Dark Mode (Future-proofing)
   -------------------------------------------- */
@media (prefers-color-scheme: dark) {
  /* Add dark mode overrides if needed */
  /* Currently using light mode only */
}
.legal-page h2 {
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 24px;
  font-weight: bold;
}
.legal-page p {
  margin-bottom: 1rem;
}
.legal-page strong {
  font-weight: bold;
}

.legal-page ul,
.legal-page ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}
.legal-page ul {
  list-style-type: disc;
}
.legal-page ol {
  list-style-type: decimal;
}
.legal-page th,
.legal-page td {
  padding: 0.5rem;
  border: 1px solid #e0e0e0;
}
.legal-page a {text-decoration: underline;}