/* Kenfore Energy - Custom Styles */

/* CSS Custom Properties (Brand Colors) */
:root {
  /* Primary Brand Colors */
  --color-navy-900: #2c3a8f;
  --color-navy-800: #3d4db0;
  --color-navy-700: #4e60d1;
  --color-blue-600: #34a1db;
  --color-blue-500: #4fb3e8;
  --color-blue-400: #6ac5f5;
  --color-green-500: #08a64e;
  --color-green-400: #2bb96a;
  --color-green-300: #4ecb86;
  
  /* Neutral Palette */
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Semantic Colors */
  --color-success: #08a64e;
  --color-error: #dc2626;
  --color-warning: #f59e0b;
  --color-info: #34a1db;
}

.text-white{
  color: white!important;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Component Styles */
.header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Ensure header stays sticky */
body > .header,
body > header.header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
}

/* Skip Navigation Link - Hidden by default, visible on focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2c3a8f;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #34a1db;
  outline-offset: 2px;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo Styles */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

/* Navigation Styles */
.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-navy-900);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-blue-600);
}

.nav-link.active {
  color: var(--color-blue-600);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-blue-600);
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  background-color: var(--color-blue-600);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-blue-500);
  transform: scale(1.05);
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  color: var(--color-navy-900);
}

.hamburger-menu svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
  .hamburger-menu {
    display: none !important;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}

/* Show mobile menu when display is set to block via JS */
.mobile-menu[style*="display: block"] {
  display: block !important;
}

.mobile-menu-content {
  padding: 2rem 1.5rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  color: var(--color-navy-900);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--color-gray-50);
  color: var(--color-blue-600);
}

.mobile-cta {
  margin-top: 2rem;
  width: 100%;
  text-align: center;
}

/* Mobile Menu Overlay - Not used with current implementation */

/* Desktop Navigation - Show on Large Screens */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
  
  .hamburger-menu {
    display: none;
  }
  
  .header-logo img {
    height: 56px;
  }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-content {
    height: 72px;
  }
  
  .header-logo img {
    height: 44px;
  }
  
  .mobile-menu {
    max-width: 350px;
  }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .header-content {
    height: 64px;
  }
  
  .header-logo img {
    height: 40px;
  }
  
  .mobile-menu {
    max-width: 100%;
    top: 64px;
    height: calc(100vh - 64px);
  }
  
  .mobile-overlay {
    top: 64px;
  }
}

/* ============================================
   MODERN COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(44, 58, 143, 0.2), 
              0 0 0 1px rgba(44, 58, 143, 0.08);
  z-index: 9999;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.cookie-container {
  padding: 28px;
}

.cookie-content {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.cookie-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #34a1db 0%, #2c3a8f 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(52, 161, 219, 0.3);
}

.cookie-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cookie-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #2c3a8f;
  margin: 0 0 10px 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
}

.cookie-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.cookie-text a {
  color: #34a1db;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.cookie-text a:hover {
  color: #2c3a8f;
  border-bottom-color: #2c3a8f;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #08a64e 0%, #2bb96a 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(8, 166, 78, 0.35);
  position: relative;
  overflow: hidden;
}

.cookie-btn-accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.cookie-btn-accept:hover::before {
  left: 100%;
}

.cookie-btn-accept:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(8, 166, 78, 0.45);
}

.cookie-btn-accept:active {
  transform: translateY(-1px);
}

.cookie-btn-decline {
  background: white;
  color: #4b5563;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cookie-btn-decline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookie-btn-decline:active {
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
    border-radius: 16px;
  }
  
  .cookie-container {
    padding: 24px;
  }
  
  .cookie-content {
    flex-direction: row;
    gap: 16px;
  }
  
  .cookie-icon {
    width: 44px;
    height: 44px;
  }
  
  .cookie-text h3 {
    font-size: 16px;
  }
  
  .cookie-text p {
    font-size: 13px;
  }
  
  .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .cookie-btn {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-icon {
    margin: 0 auto;
  }
}

/* Responsive Cookie Banner */
@media (min-width: 768px) {
  .cookie-consent-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .cookie-consent-text {
    flex: 1;
    margin-right: 2rem;
  }
  
  .cookie-consent-actions {
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .cookie-consent-banner {
    padding: 1.25rem 1rem;
  }
  
  .cookie-consent-text {
    font-size: 0.875rem;
  }
  
  .btn-accept-cookies,
  .btn-decline-cookies {
    width: 100%;
    max-width: 300px;
  }
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}
