/* ==========================================================================
   LiMon Brand Overrides
   Bootstrap 5.3 handles layout, grid, components, responsive.
   This file only adds brand-specific styling.
   Colors are generated from hugo.toml [params.colors] as inline :root vars.
   ========================================================================== */

/* ---------- Typography ---------- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-body-text, #2d3748);
}

code, pre, .font-mono {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
}

/* ---------- Navbar ---------- */
.navbar.bg-primary {
  background-color: var(--bs-primary) !important;
}

.navbar-brand img {
  transition: opacity 0.2s;
}

.navbar-brand:hover img {
  opacity: 0.85;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Accent Button ---------- */
.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #1a202c;
  font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #1a202c;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background-color: var(--bs-primary);
  background-image: linear-gradient(135deg, var(--bs-primary) 0%, var(--color-hero-gradient-end, #2a4a7f) 100%);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background-color: var(--bs-secondary);
  background-image: linear-gradient(135deg, var(--bs-secondary) 0%, var(--color-cta-gradient-end, #237276) 100%);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bs-primary);
  color: rgba(255, 255, 255, 0.7);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---------- Accent Text Utility ---------- */
.text-accent {
  color: var(--color-accent) !important;
}

/* ---------- Links ---------- */
a {
  color: var(--bs-secondary);
}

a:hover {
  color: var(--color-link-hover, #1f6b6f);
}

/* ---------- Cards ---------- */
.card {
  border-radius: 0.5rem;
}

/* ---------- Tables (pricing / features) ---------- */
.table th {
  background-color: var(--bs-primary);
  color: white;
  font-weight: 600;
}

/* ---------- Background utility ---------- */
.bg-light {
  background-color: var(--color-neutral) !important;
}

/* ---------- Theme Toggle Button ---------- */
.btn-theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* ---------- Language Switcher ---------- */
.lang-switcher .btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

/* ---------- Slideshow ---------- */
.limon-slideshow .carousel-caption {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 1.5rem 0 0;
  color: inherit;
}

.limon-slideshow .carousel-item img {
  max-height: 450px;
  object-fit: contain;
}

.limon-slideshow .carousel-indicators [data-bs-target] {
  background-color: var(--bs-secondary);
}

.limon-slideshow .carousel-control-prev-icon,
.limon-slideshow .carousel-control-next-icon {
  filter: none;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  padding: 1rem;
  background-size: 50%;
}

[data-bs-theme="dark"] .limon-slideshow .carousel-control-prev-icon,
[data-bs-theme="dark"] .limon-slideshow .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ---------- Dark Theme Overrides ---------- */
[data-bs-theme="dark"] body {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .hero-section {
  background-image: linear-gradient(135deg, #0f1f38 0%, #1a365d 100%);
}

[data-bs-theme="dark"] .cta-section {
  background-image: linear-gradient(135deg, #1a5c5f 0%, #2b8a8f 100%);
}

[data-bs-theme="dark"] .site-footer {
  background-color: #0f1f38;
}

[data-bs-theme="dark"] .card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-bs-theme="dark"] .card .text-muted {
  color: #94a3b8 !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #1a202c !important;
}

[data-bs-theme="dark"] .table th {
  background-color: #0f1f38;
}

[data-bs-theme="dark"] .btn-theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Forms ---------- */
.form-feedback {
  display: none;
}

.form-feedback.show {
  display: block;
}

/* ---------- Responsive fine-tuning ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-section .display-4 {
    font-size: 2rem;
  }
}
