/* Loonjorin Energy Kenya – Lively bright theme (from hero image) */

:root {
  /* Logo gradient: vibrant yellow → orange */
  --brand-sun: #f59e0b;
  --brand-solar: #fbbf24;
  --brand-orange: #fb923c;
  --brand-gold: #fcd34d;
  --brand-accent: #fde047;
  /* Deep blue from logo */
  --brand-wind: #1e3a5f;
  --brand-deep: #0c1220;
  --brand-mid: #1e40af;
  /* Warm earthy (image background / tagline) */
  --earth-tan: #d6d3d1;
  --earth-beige: #a8a29e;
  --surface: #0f172a;
  --surface-elevated: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #e7e5e4;
  --text-muted: #a8a29e;
  --border-subtle: rgba(251, 191, 36, 0.12);
  --border-accent: rgba(251, 191, 36, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--brand-deep);
  color: var(--text-primary);
}

/* Typography */
.font-display {
  font-family: 'Syne', 'Outfit', system-ui, sans-serif;
}

/* Header: transparent on hero, solid on scroll or on inner pages */
.site-header {
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled,
.site-header.solid {
  background-color: rgba(12, 18, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Premium link and button styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px rgba(251, 191, 36, 0.5);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--brand-sun);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid var(--border-accent);
  color: var(--brand-accent);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  background: rgba(251, 191, 36, 0.12);
  color: var(--brand-gold);
}

/* Lively gradient primary (logo sun/orange arch) */
.btn-primary-gradient {
  background: linear-gradient(135deg, var(--brand-solar) 0%, var(--brand-orange) 100%);
  color: #0c1220;
  box-shadow: 0 4px 20px -4px rgba(251, 191, 36, 0.4);
}

.btn-primary-gradient:hover {
  box-shadow: 0 12px 40px -8px rgba(251, 146, 60, 0.5);
  filter: brightness(1.05);
}

/* Card hover lift */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

/* Explore grid cards */
.explore-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.5) 0%, rgba(12, 18, 32, 0.85) 100%);
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-card:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -12px rgba(251, 191, 36, 0.15);
}

.explore-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 18, 32, 0.92) 100%);
  pointer-events: none;
}

/* Page content container */
.page-content {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .page-content { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .page-content { padding-left: 2rem; padding-right: 2rem; }
}

/* Section titles */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

/* Focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-sun);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-lift:hover,
  .explore-card:hover,
  .btn-primary:hover { transform: none; }
}

/* Entrance animation for home explore cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    animation: none;
  }
}

@media print {
  .site-header {
    background: var(--brand-deep) !important;
    border-bottom: 1px solid var(--border-subtle);
  }
}
