/* --- ENERON BRAND VARIABLES --- */
:root {
  --eneron-navy: #0B1D3A;        /* matches logo mark — do not change */
  --eneron-navy-2: #14284D;      /* lighter navy, used for gradients   */
  --eneron-orange: #FF7A00;
  --eneron-orange-2: #FFB020;    /* warm gradient partner for orange   */
  --eneron-orange-dark: #E06A00;
  --accent-teal: #12B5A6;        /* modern secondary accent            */
  --accent-teal-dark: #0E9488;
  --white: #ffffff;

  /* Legacy aliases (kept so nothing that still references them breaks) */
  --bg-light: #F8FAFC;
  --text-dark: #1E293B;
  --text-gray: #475569;

  /* --- SEMANTIC THEME TOKENS (light = default) --- */
  --bg-page: #F7F9FC;
  --bg-surface: #ffffff;
  --bg-surface-alt: #F1F5F9;
  --text-heading: #0B1D3A;
  --text-body: #475569;
  --text-strong: #1E293B;
  --muted: #94a3b8;
  --border-color: #e2e8f0;
  --navbar-bg: rgba(255,255,255,0.78);
  --card-shadow: rgba(15,32,64,0.08);
  --btn-gradient: linear-gradient(135deg, var(--eneron-orange) 0%, var(--eneron-orange-2) 100%);
  --hero-gradient: linear-gradient(120deg, rgba(9,18,36,.92) 0%, rgba(11,29,58,.82) 55%, rgba(18,181,166,.35) 150%);
  --placeholder-bg: #eef2f7;
  --placeholder-bg-alt: #e6ecf3;
  --placeholder-border: #b8c4d4;
  --placeholder-text: #7c8aa0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

/* --- DARK THEME OVERRIDES --- */
[data-theme="dark"] {
  --bg-page: #0A121F;
  --bg-surface: #121B2C;
  --bg-surface-alt: #0E1826;
  --text-heading: #F1F5F9;
  --text-body: #B7C2D0;
  --text-strong: #E7ECF3;
  --muted: #93A2B8;
  --border-color: rgba(255,255,255,0.08);
  --navbar-bg: rgba(10,18,31,0.72);
  --card-shadow: rgba(0,0,0,0.45);
  --hero-gradient: linear-gradient(120deg, rgba(4,9,18,.94) 0%, rgba(8,17,33,.88) 55%, rgba(18,181,166,.22) 150%);
  --placeholder-bg: #16202f;
  --placeholder-bg-alt: #1b2637;
  --placeholder-border: #34455e;
  --placeholder-text: #93A2B8;
}

/* Smooth cross-fade when switching themes */
body, .navbar, .dropdown-menu, .image-card, .gallery-card, .modern-tabs,
.tab-controls, .tab-btn, .fab-label, .sidebar-nav-item, .detail-card,
.img-placeholder, .detail-title, .btn, .info-card, .contact-card {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* --- RESET & TYPOGRAPHY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--text-body); line-height: 1.7; background: var(--bg-page); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.bg-light { background-color: var(--bg-surface-alt); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--eneron-orange); outline-offset: 3px; border-radius: 4px; }

/* --- TOP BAR --- */
.top-bar { background: var(--eneron-navy); color: #cbd5e1; font-size: 0.85rem; padding: 12px 0; font-weight: 500; }
.top-bar .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; }
.contact-info span { margin-right: 25px; display: inline-block; }
.social-links { display: flex; align-items: center; gap: 14px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #cbd5e1; transition: all .25s ease; }
.social-links a svg { width: 15px; height: 15px; }
.social-links a:hover { background: var(--eneron-orange); color: var(--white); transform: translateY(-2px); }

/* --- NAVIGATION --- */
.navbar { background: var(--navbar-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s ease, background .3s ease, border-color .3s ease; }
.navbar.scrolled { box-shadow: 0 10px 30px rgba(11,29,58,0.1); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 90px; transition: height .3s ease; }
.navbar.scrolled .container { height: 74px; }
.logo-link { display: flex; align-items: center; height: 100%; }
.logo-badge { display: inline-flex; align-items: center; }
.logo-img { max-height: 60px; width: auto; object-fit: contain; transition: max-height .3s ease; }
.navbar.scrolled .logo-img { max-height: 48px; }
.logo-img-dark { display: none; }
[data-theme="dark"] .logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark { display: inline-block; }
.nav-links { display: flex; gap: 30px; height: 100%; align-items: center; }
.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-links > li > a { font-weight: 600; font-size: 0.95rem; color: var(--text-heading); transition: color 0.2s; position: relative; }
.nav-links > li > a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:2px; background: var(--eneron-orange); transition: width .25s ease; }
.nav-links > li > a:hover::after { width:100%; }
.nav-links > li > a:hover { color: var(--eneron-orange); }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-surface); min-width: 320px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-radius: 0 0 var(--radius-md) var(--radius-md); border-top: 4px solid var(--eneron-orange); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.nav-links li:hover .dropdown-menu { display: block; animation: slideUp 0.3s ease; }
.dropdown-menu li a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border-color); font-weight: 500; font-size: 0.9rem; color: var(--text-strong); transition: all 0.2s; }
.dropdown-menu li a:hover { background: var(--bg-surface-alt); color: var(--eneron-orange); padding-left: 30px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- HERO SECTION ---
   The background photo is controlled from images-config.js (see the
   "heroBackground" entry there). --hero-bg-image is set by JS on page
   load; the url('...') below is only a fallback shown for a split
   second before that JS runs (or if JS is disabled). */
.hero { position: relative; background: var(--hero-gradient), var(--hero-bg-image, url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1920&q=80')) center/cover; color: var(--white); padding: 160px 0; text-align: center; overflow: hidden; }
.hero > .container, .page-header > .container { position: relative; z-index: 2; }
.particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero h1 { font-size: 3.8rem; font-weight: 800; margin-bottom: 25px; line-height: 1.1; letter-spacing: -1px; }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px; color: #cbd5e1; font-weight: 300; }

/* --- BUTTONS --- */
.btn { display: inline-block; position: relative; overflow: hidden; background: var(--btn-gradient); color: var(--white); padding: 14px 32px; font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm); transition: all 0.35s cubic-bezier(.22,.61,.36,1); border: none; cursor: pointer; text-align: center; box-shadow: 0 6px 18px rgba(255, 122, 0, 0.28); }
.btn::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent); transform: translateX(-120%); transition: transform .6s ease; }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 122, 0, 0.38); }
.btn-secondary { width: 100%; margin-top: 15px; background: linear-gradient(135deg, var(--eneron-navy), var(--eneron-navy-2)); box-shadow: none; }
.btn-secondary:hover { box-shadow: 0 10px 25px rgba(11,29,58,0.3); }
.btn-white { background: var(--white); color: var(--eneron-navy); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-white:hover { background: #f8fafc; color: var(--eneron-orange); }

/* --- LAYOUT UTILITIES --- */
.section-padding { padding: 90px 0; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.gap-large { gap: 80px; align-items: start; }
@media(max-width: 900px) { .split-grid { grid-template-columns: 1fr; gap: 40px; } }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--text-heading); font-weight: 700; margin-bottom: 15px; }
.accent-line { height: 4px; width: 60px; background: var(--eneron-orange); margin: 0 auto; border-radius: 2px; }

/* --- WELCOME SECTION --- */
.badge { display: inline-block; background: rgba(255, 122, 0, 0.12); color: var(--eneron-orange); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; letter-spacing: 1px; border: 1px solid rgba(255,122,0,0.2); }
.main-heading { color: var(--text-heading); font-size: 2.4rem; font-weight: 800; margin-bottom: 25px; line-height: 1.2; }
.welcome-text p { font-size: 1.05rem; margin-bottom: 20px; }
.image-card { background: var(--bg-surface); padding: 15px; border-radius: 16px; box-shadow: 0 20px 50px var(--card-shadow); transition: box-shadow .35s ease; }
.image-card:hover { box-shadow: 0 25px 60px rgba(11,29,58,0.15); }
.img-placeholder { background: repeating-linear-gradient(135deg, var(--placeholder-bg), var(--placeholder-bg) 10px, var(--placeholder-bg-alt) 10px, var(--placeholder-bg-alt) 20px); border: 1.5px dotted var(--placeholder-border); width: 100%; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--placeholder-text); text-align: center; padding: 20px; }
.img-placeholder svg { width: 34px; height: 34px; opacity: .8; }
.img-placeholder span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.image-placeholder { height: 350px; }

/* --- PRODUCTS ROW (HOMEPAGE) --- */
.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.gallery-card { height: 260px; background: var(--bg-surface); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--border-color); border-bottom: 4px solid transparent; transition: all 0.4s cubic-bezier(.22,.61,.36,1); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.gallery-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px var(--card-shadow); border-bottom: 4px solid var(--eneron-orange); }
@media(max-width: 1024px) { .product-gallery { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .product-gallery { grid-template-columns: 1fr; } }

/* --- WHY US / ABOUT US --- */
.block-heading { color: var(--text-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 30px; }
.modern-tabs { background: var(--bg-surface); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid var(--border-color); }
.tab-controls { display: flex; background: var(--bg-surface-alt); padding: 10px; gap: 10px; border-bottom: 1px solid var(--border-color); }
.tab-btn { flex: 1; padding: 15px; border: none; background: transparent; font-weight: 600; font-size: 1rem; color: var(--text-body); border-radius: var(--radius-sm); cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: var(--bg-surface); color: var(--text-heading); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.tab-body { padding: 35px; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: slideUp 0.4s ease; }
.custom-list { padding-left: 5px; }
.custom-list li { position: relative; padding-left: 25px; margin-bottom: 15px; }
.custom-list li::before { content: "✓"; position: absolute; left: 0; color: var(--eneron-orange); font-weight: bold; }
.feature-list { display: flex; flex-direction: column; gap: 30px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-icon { background: linear-gradient(135deg, rgba(255,122,0,0.15), rgba(18,181,166,0.15)); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 1.5rem; flex-shrink: 0; }
.feature-item h4 { color: var(--text-heading); font-size: 1.2rem; margin-bottom: 8px; }

/* --- CTA BANNER --- */
.cta-banner { background: linear-gradient(135deg, var(--eneron-navy) 0%, #132b52 100%); padding: 60px 0; }
.cta-flex { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-text { display: flex; flex-direction: column; justify-content: center; }
.cta-text h3 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.cta-text p { color: #cbd5e1; font-size: 1.1rem; }
.cta-flex > .btn { align-self: center; flex-shrink: 0; }
@media(max-width: 900px) { .cta-flex { flex-direction: column; text-align: center; gap: 30px; } }

/* --- FOOTER --- */
.footer { position: relative; background: #071224; color: #94a3b8; padding-top: 80px; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--btn-gradient); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { margin-top: 15px; line-height: 1.75; }
.footer-logo { max-height: 55px; background: var(--white); padding: 8px 15px; border-radius: var(--radius-sm); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1; transition: all .25s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--btn-gradient); border-color: transparent; color: var(--white); transform: translateY(-3px); }
.footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 26px; text-transform: uppercase; letter-spacing: 1.2px; position: relative; padding-bottom: 14px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--eneron-orange); }
.footer-contact li { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 12px; }
.footer-contact .fc-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; margin-top: 1px;
  background: rgba(255,122,0,0.12); color: var(--eneron-orange);
  display: flex; align-items: center; justify-content: center;
}
.footer-contact .fc-icon svg { width: 15px; height: 15px; }
.footer-contact strong { color: var(--white); font-weight: 600; display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.footer-contact span { font-size: 0.92rem; line-height: 1.6; }
.footer-links li { margin-bottom: 14px; }
.footer-links a { position: relative; }
.footer-links a:hover { color: var(--eneron-orange); padding-left: 8px; transition: 0.2s; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; font-size: 0.88rem; color: #7c8aa0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
@media(max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } .flex-between { flex-direction: column; text-align: center; } }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- MODERN FLOATING CONTACT BUTTON (WhatsApp / Call / Email) --- */
.fab-wrap { position: fixed; right: 26px; bottom: 26px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab-item { display: flex; align-items: center; gap: 11px; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1), visibility .25s; }
.fab-wrap.open .fab-item { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab-wrap.open .fab-item:nth-child(1) { transition-delay: .06s; }
.fab-wrap.open .fab-item:nth-child(2) { transition-delay: .1s; }
.fab-wrap.open .fab-item:nth-child(3) { transition-delay: .14s; }
.fab-label { background: var(--bg-surface); color: var(--text-strong); font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 8px; box-shadow: 0 8px 24px rgba(11,29,58,0.15); white-space: nowrap; }
.fab-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,0.18); transition: transform .25s cubic-bezier(.34,1.56,.64,1); flex-shrink: 0; }
.fab-btn svg { width: 22px; height: 22px; }
.fab-item:hover .fab-btn { transform: scale(1.1); }
.fab-btn--wa { background: #25D366; }
.fab-btn--call { background: var(--eneron-navy); }
.fab-btn--email { background: var(--eneron-orange); }
.fab-main { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--eneron-orange); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(255,122,0,0.4); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease; }
.fab-main:hover { transform: scale(1.07); box-shadow: 0 14px 36px rgba(255,122,0,0.5); }
.fab-wrap.open .fab-main { background: var(--eneron-navy); box-shadow: 0 10px 30px rgba(11,29,58,0.4); }
.fab-main svg { width: 26px; height: 26px; position: absolute; transition: opacity .2s ease, transform .3s ease; }
.fab-main .ic-close { opacity: 0; transform: scale(.4) rotate(-45deg); }
.fab-wrap.open .fab-main .ic-chat { opacity: 0; transform: scale(.4) rotate(45deg); }
.fab-wrap.open .fab-main .ic-close { opacity: 1; transform: scale(1) rotate(0); }
.fab-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--eneron-orange); opacity: .55; animation: fabPulse 2.4s ease-out infinite; pointer-events: none; }
.fab-wrap.open .fab-pulse { display: none; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@media(max-width: 768px) {
  .fab-wrap { right: 18px; bottom: 18px; gap: 12px; }
  .fab-main { width: 56px; height: 56px; }
  .fab-btn { width: 44px; height: 44px; }
  .fab-btn svg { width: 20px; height: 20px; }
  .fab-label { font-size: 12px; padding: 7px 12px; }
}


/* ======================================================== */
/* --- PRODUCTS & SERVICES LAYOUT                        --- */
/* ======================================================== */

.products-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
}

.products-sidebar {
  /* Plain, ordinary content — flows and scrolls away with the rest of
     the page exactly like the details panel. No sticky pinning, so
     there's no boxed-off region at all. */
}
.sidebar-title { font-size: 1.6rem; color: var(--text-heading); margin-bottom: 20px; }
.sidebar-line { height: 3px; width: 50px; background: var(--eneron-orange); margin-top: 8px; }
.sidebar-nav { display: flex; flex-direction: column; }

/* Inactive Sidebar Item (Light Gray with Orange line) */
.sidebar-nav-item {
  display: block;
  background: var(--bg-surface-alt);
  padding: 16px 20px;
  margin-bottom: 5px;
  border-left: 4px solid var(--eneron-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-strong);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Active/Hover Sidebar Item (Navy Blue with White text) */
.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: var(--eneron-navy);
  color: var(--white);
  padding-left: 25px;
}

/* Both the sidebar and the details panel are part of the single, normal
   page scroll — nothing is boxed off separately. The JS in products.html
   only nudges the page scroll on its own when a newly-selected heading
   would otherwise be off-screen. */

@media(max-width: 900px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Right Side Content Styling */
.dynamic-section { animation: slideUp 0.4s ease; scroll-margin-top: 110px; /* keeps the heading/photo clear of the sticky navbar when scrolled into view */ }
.detail-card {
  background: var(--bg-surface);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.detail-title {
  font-size: 2.2rem;
  color: var(--text-heading);
  font-weight: 800;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  overflow-wrap: break-word;
}
.detail-text p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--text-body);
}

/* Clean Stacked Specification Layout */
.spec-grid {
  display: flex;
  flex-direction: column;
  gap: 35px;
  margin-top: 35px;
}
.spec-box { padding: 0; background: transparent; border: none; }
.spec-box h3 {
  font-size: 1.3rem;
  color: var(--text-strong);
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0px;
  text-transform: none; /* Allows the JS Title Case to render properly */
}
.numbered-list {
  list-style-type: decimal;
  padding-left: 20px;
}
.numbered-list li {
  margin-bottom: 12px;
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

@media(max-width: 768px) {
  .detail-card { padding: 30px 20px; }
}

/* ======================================================== */
/* --- THEME TOGGLE                                      --- */
/* ======================================================== */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 10px;
  transition: background .3s ease, border-color .3s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.08); border-color: var(--eneron-orange); }
.theme-toggle svg { width: 20px; height: 20px; position: absolute; transition: opacity .25s ease, transform .35s ease; }
.theme-toggle .ic-sun { opacity: 1; transform: scale(1) rotate(0); }
.theme-toggle .ic-moon { opacity: 0; transform: scale(.4) rotate(-90deg); }
[data-theme="dark"] .theme-toggle .ic-sun { opacity: 0; transform: scale(.4) rotate(90deg); }
[data-theme="dark"] .theme-toggle .ic-moon { opacity: 1; transform: scale(1) rotate(0); }
@media(max-width: 768px) {
  .theme-toggle { width: 38px; height: 38px; margin-left: 4px; }
  .theme-toggle svg { width: 18px; height: 18px; }
}

/* ======================================================== */
/* --- MOBILE NAVIGATION (hamburger + collapsible menu)  --- */
/* ======================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 8px;
  padding: 0;
}
.nav-toggle .bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text-heading); transition: transform .25s ease, opacity .2s ease; }
.navbar.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width: 900px) {
  .navbar .container { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.14);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .navbar.nav-open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; max-height: calc(100vh - 74px); }

  .nav-links > li { height: auto; width: 100%; display: block; }
  .nav-links > li > a { display: block; width: 100%; padding: 15px 25px; }
  .nav-links > li > a::after { display: none; }

  /* Products / Services become tap-to-expand accordions instead of hover flyouts */
  .nav-links li:hover .dropdown-menu { display: none; }
  .dropdown-menu { position: static; display: none; min-width: 0; box-shadow: none; border-radius: 0; border-top: none; max-height: none; overflow: visible; background: var(--bg-surface-alt); }
  .nav-links li.dropdown-open .dropdown-menu { display: block; animation: none; }
  .dropdown-menu li a { padding: 12px 25px 12px 40px; border-bottom: 1px solid var(--border-color); }

  body.nav-open-lock { overflow: hidden; }
}

/* ======================================================== */
/* --- BODY COPY: JUSTIFIED TEXT                         --- */
/* ======================================================== */
.welcome-text p,
.detail-text p,
.feature-item p,
.value-card p,
.footer-brand p,
.contact-form-card > p,
#mission p, #vision li, #mission li,
.timeline-item p,
.numbered-list li {
  text-align: justify;
  text-justify: inter-word;
}

/* ======================================================== */
/* --- INNER PAGE HEADER (About / Contact / Products)    --- */
/* ======================================================== */
.page-header {
  position: relative;
  background: var(--hero-gradient), linear-gradient(135deg, var(--eneron-navy) 0%, var(--eneron-navy-2) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}
.page-header h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.page-header p { color: #cbd5e1; font-size: 1.05rem; max-width: 620px; margin: 0 auto; font-weight: 300; }
.breadcrumb a:hover { text-decoration: underline; }

/* ======================================================== */
/* --- STAT CARDS (About page)                           --- */
/* ======================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 60px 0; }
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--card-shadow);
}
.stat-card .stat-number { font-size: 2.3rem; font-weight: 800; background: var(--btn-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .stat-label { color: var(--text-body); font-size: 0.9rem; font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
@media(max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ======================================================== */
/* --- VALUE / CARD GRID (About page)                    --- */
/* ======================================================== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px var(--card-shadow); border-color: var(--eneron-orange); }
.value-card .value-icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,122,0,0.15), rgba(18,181,166,0.15));
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px;
}
.value-card h4 { color: var(--text-heading); font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { color: var(--text-body); font-size: 0.95rem; }
@media(max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .value-grid { grid-template-columns: 1fr; } }

/* ======================================================== */
/* --- TIMELINE (About page)                             --- */
/* ======================================================== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 12px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--btn-gradient); box-shadow: 0 0 0 5px var(--bg-surface-alt); }
.timeline-item h4 { color: var(--text-heading); font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item .timeline-year { color: var(--eneron-orange); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; display: block; }
.timeline-item p { color: var(--text-body); font-size: 0.95rem; }

/* ======================================================== */
/* --- CONTACT PAGE                                      --- */
/* ======================================================== */
.contact-grid-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 60px; }
.contact-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px var(--card-shadow);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.contact-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--btn-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.contact-card:hover { transform: translateY(-8px); box-shadow: 0 22px 45px var(--card-shadow); border-color: rgba(255,122,0,0.3); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-card .contact-icon {
  position: relative;
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eneron-orange), var(--eneron-orange-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255,122,0,0.35);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.contact-card:hover .contact-icon { transform: scale(1.1) rotate(-6deg); }
.contact-card .contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { color: var(--text-heading); font-size: 1.05rem; margin-bottom: 10px; font-weight: 700; }
.contact-card p, .contact-card a { color: var(--text-body); font-size: 0.92rem; word-break: break-word; line-height: 1.6; }
.contact-card a:hover { color: var(--eneron-orange); }
@media(max-width: 900px) { .contact-grid-top { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 560px) { .contact-grid-top { grid-template-columns: 1fr; } }


.contact-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: start; }
@media(max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px var(--card-shadow);
}
.contact-form-card h3 { color: var(--text-heading); font-size: 1.5rem; margin-bottom: 8px; }
.contact-form-card > p { color: var(--text-body); margin-bottom: 28px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-strong); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--eneron-orange); box-shadow: 0 0 0 3px rgba(255,122,0,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

.contact-side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--card-shadow);
}
.map-wrapper { width: 100%; height: 280px; filter: grayscale(0.15); }
[data-theme="dark"] .map-wrapper { filter: grayscale(0.3) invert(0.92) contrast(0.9); }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-side-info { padding: 26px; }
.contact-side-info h4 { color: var(--text-heading); font-size: 1.05rem; margin-bottom: 14px; }
.contact-side-info ul li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-body); }
.contact-side-info ul li:last-child { border-bottom: none; }
.contact-side-info ul li strong { color: var(--text-strong); font-weight: 600; }
