/* ==========================================================================
   JASA ENERGIES - COMMON DESIGN SYSTEM & MASTER STYLESHEET
   ========================================================================== */

:root {
  --font-heading: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Colors */
  --color-emerald-brand: #059669;
  --color-emerald-light: #10B981;
  --color-emerald-pale: #D1FAE5;
  --color-emerald-hover: #047857;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);

  /* Neutrals */
  --color-dark: #0F172A;
  --color-dark-soft: #1E293B;
  --color-muted: #64748B;
  --color-muted-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --color-bg: #FAFBFC;
  --color-white: #FFFFFF;

  /* Footer Colors */
  --footer-card-bg: #F4F4F0;
  --footer-text-black: #0A0A0A;
  --footer-text-muted: #404040;
  --footer-border: #E2E2DE;
}

/* === GLOBAL RESETS === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--color-dark);
}

p {
  color: var(--color-dark-soft);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
}

/* === SELECTION & SCROLLBAR === */
::selection {
  background: var(--color-emerald-brand);
  color: #FFFFFF;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* === LAYOUT CONTAINERS === */
.section-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Background patterns */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Text Gradients */
.text-gradient-dark {
  background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #0F172A;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0F172A;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  color: #FFFFFF;
}

/* === CARD STYLES === */
.card-white {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-white:hover {
  border-color: #E2E8F0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* Badge Pill */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-emerald {
  background: #F0FDF4;
  color: #059669;
  border: 1px solid #D1FAE5;
}

/* === PAGE HERO SECTION === */
.page-hero {
  padding-top: 150px;
  padding-bottom: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16,185,129,.12), transparent), radial-gradient(ellipse 60% 40% at 80% 50%, rgba(5,150,105,.08), transparent), linear-gradient(180deg, #FFFFFF, #FAFBFC);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid #D1FAE5;
  background: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.page-hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.page-hero-tag span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #059669;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 20px;
  line-height: 1.15;
}

.page-hero p {
  font-size: 1.125rem;
  color: #64748B;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   COMMON HEADER / NAVBAR STYLES
   ========================================================================== */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 0;
  background: rgba(240, 253, 244, 0.90);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(209, 250, 229, 0.8);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.03);
}

.site-navbar.scrolled {
  padding: 10px 0;
  background: rgba(240, 253, 244, 0.96);
  border-bottom: 1px solid #D1FAE5;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Desktop Navigation Pill */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid #D1FAE5;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.05);
  position: relative;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: #059669;
  background: rgba(240, 253, 244, 0.8);
}

.nav-link.active {
  color: #FFFFFF;
  background: #059669;
}

/* Nav Item with Dropdown */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding-top: 10px;
  min-width: 270px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu,
.nav-dropdown-wrapper.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #D1FAE5;
  box-shadow: 0 12px 30px -5px rgba(5, 150, 105, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
  display: block;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: #F0FDF4;
  color: #059669;
}

/* Desktop CTA */
.desktop-cta {
  display: flex;
  align-items: center;
}

.desktop-cta .btn-green {
  padding: 11px 26px;
  font-size: 12px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #A7F3D0;
  background: #F0FDF4;
  cursor: pointer;
  color: #065F46;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #065F46;
  stroke-width: 2.5;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  display: none;
  background: rgba(240, 253, 244, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid #D1FAE5;
  border-bottom: 1px solid #D1FAE5;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.1);
  padding: 16px 24px 24px;
  animation: slideDown 0.25s ease forwards;
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1E293B;
  margin-bottom: 4px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #065F46;
  background: #DCFCE7;
}

.mobile-sub-links {
  padding-left: 20px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-sub-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.mobile-sub-link:hover,
.mobile-sub-link.active {
  color: #059669;
  background: #DCFCE7;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar Media Queries */
@media (max-width: 1023px) {
  .desktop-nav,
  .desktop-cta {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .desktop-nav,
  .desktop-cta {
    display: flex !important;
  }
  .mobile-toggle,
  .mobile-menu-drawer {
    display: none !important;
  }
}

/* ==========================================================================
   COMMON FOOTER STYLES
   ========================================================================== */
.site-footer {
  background: #000000;
  padding: 48px 16px 48px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.site-footer-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner-card {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--footer-card-bg);
  border-radius: 32px;
  padding: 60px 40px 40px;
  color: var(--footer-text-black);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 32px 10px 40px;
  }
  .footer-inner-card {
    border-radius: 20px;
    padding: 36px 18px 28px;
  }
  .footer-grid {
    gap: 32px;
    margin-bottom: 36px;
  }
  .footer-link-item {
    font-size: 13px;
    word-break: break-word;
  }
  .footer-contact-row {
    gap: 10px;
  }
  .footer-contact-text {
    font-size: 12.5px;
    line-height: 1.5;
    word-break: break-word;
  }
  .footer-contact-link {
    font-size: 12.5px;
    word-break: break-all;
  }
}

@media (max-width: 360px) {
  .section-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-footer {
    padding: 24px 6px 32px;
  }
  .footer-inner-card {
    padding: 28px 12px 24px;
    border-radius: 16px;
  }
  .footer-brand-title {
    font-size: 28px;
  }
  .footer-desc {
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-link-item {
    font-size: 12.5px;
  }
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1.1fr 1fr 1.2fr;
    gap: 40px;
  }
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--footer-text-black);
  line-height: 1;
  letter-spacing: -0.02em;
}

.footer-brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #10B981;
  margin-top: 4px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--footer-text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--footer-text-black);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--footer-text-muted);
  transition: all 0.2s ease;
  font-weight: 500;
}

.footer-link-item svg {
  color: #10B981;
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.footer-link-item:hover {
  color: var(--footer-text-black);
  transform: translateX(4px);
}

.footer-link-item:hover svg {
  transform: translateX(2px);
}

/* Footer Contact Details */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--footer-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-icon svg {
  width: 14px;
  height: 14px;
  color: #10B981;
}

.footer-contact-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--footer-text-muted);
}

.footer-contact-link {
  font-size: 13px;
  color: var(--footer-text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-contact-link:hover {
  color: var(--footer-text-black);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--footer-text-muted);
  letter-spacing: 0.02em;
}

.scroll-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.scroll-top-btn:hover {
  background: #10B981;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.powered-by-tag {
  text-align: center;
  color: #FFFFFF;
  font-size: 12px;
  margin-top: 24px;
  opacity: 0.9;
}
