/* ========================
   ASIAN ENERGY GROUP PTE LTD
   CSS Stylesheet
======================== */

:root {
  --navy: #0A2240;
  --gold: #C8A84B;
  --gold-light: #e8d08a;
  --red: #CC0000;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --text: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow: 0 2px 16px rgba(10,34,64,0.10);
  --shadow-lg: 0 8px 40px rgba(10,34,64,0.18);
  --radius: 6px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ======================== TOP BAR ======================== */
.top-bar {
  background: var(--navy);
  padding: 0;
  position: relative;
  z-index: 200;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: flex-end;
}
.top-links { display: flex; gap: 24px; }
.top-links a {
  color: #a0b0c0;
  font-size: 12.5px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
}
.top-links a:hover { color: var(--gold); }

.search-bar {
  background: var(--navy);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.search-bar input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  max-width: 500px;
}
.search-bar button {
  padding: 8px 18px;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background var(--transition);
}
.search-bar button:last-child { background: transparent; color: #aaa; }
.search-bar button:hover { background: var(--gold-light); }

/* ======================== NAVBAR ======================== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}
.logo-wrap { flex-shrink: 0; margin-right: 32px; }
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: 0.04em; }
.logo-sub { font-size: 10px; color: var(--gold); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: stretch; flex: 1; gap: 0; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 3px solid transparent;
  gap: 4px;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--navy); border-bottom-color: var(--gold); }
.caret { font-size: 10px; opacity: 0.5; }

/* Dropdowns */
.dropdown {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  min-width: 680px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 32px;
  gap: 32px;
  flex-direction: row;
  z-index: 200;
  animation: fadeDown 0.18s ease;
}
@keyframes fadeDown { from { opacity:0; transform:translateY(-6px);} to {opacity:1; transform:translateY(0);} }
.nav-item:hover .dropdown { display: flex; }
.dropdown-left { flex: 0 0 220px; }
.dropdown-left h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.dropdown-left h4 a { color: var(--navy); }
.dropdown-left ul li { margin-bottom: 6px; }
.dropdown-left ul li a { font-size: 13px; color: var(--text-mid); transition: color var(--transition); }
.dropdown-left ul li a:hover { color: var(--navy); text-decoration: underline; }
.dropdown-right { flex: 1; color: var(--text-mid); font-size: 13px; line-height: 1.7; }
.dropdown-right p { margin-bottom: 14px; }
.dropdown-cta { color: var(--navy); font-weight: 600; font-size: 13px; text-decoration: underline; }

.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--navy); margin-left: auto; }

/* ======================== MOBILE NAV ======================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 60px 32px 32px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav ul li a { display: block; padding: 16px 0; color: #fff; font-size: 17px; font-weight: 500; }
.close-mobile { position: absolute; top: 16px; right: 24px; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ======================== HERO ======================== */
.hero {
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 40%, #8B1A1A 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='800' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,400 800,200 800,400' fill='rgba(200,168,75,0.06)'/%3E%3Cpolygon points='0,0 400,400 0,400' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") center/cover;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,34,64,0.7) 0%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 32px;
  color: var(--white);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.hero-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ======================== SECTIONS ======================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 32px; }

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 11px 24px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-outline {
  display: inline-block;
  padding: 11px 24px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  transition: all var(--transition);
  margin-top: 24px;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ======================== HIGHLIGHTS ======================== */
.highlights { background: var(--white); }
.highlights-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.highlight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: block;
  position: relative;
}
.highlight-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.highlight-img { height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.highlight-info { padding: 14px; }
.tag { font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.highlight-info p { font-size: 13px; color: var(--text); line-height: 1.5; font-weight: 500; }
.new-tag::before { content: 'New'; position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 3px; font-weight: 700; }

/* ======================== ABOUT HOME ======================== */
.about-home { background: var(--light-bg); }
.about-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-home-text p { color: var(--text-mid); margin-bottom: 24px; font-size: 15px; line-height: 1.75; }
.img-placeholder { width: 100%; height: 100%; min-height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ======================== PRODUCTS HOME ======================== */
.products-home { background: var(--white); }
.products-layout { display: grid; grid-template-columns: 180px 1fr 260px; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.products-sidebar { background: var(--light-bg); padding: 0; }
.products-sidebar li {
  padding: 14px 20px;
  font-size: 13.5px;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text-mid);
  font-weight: 500;
}
.products-sidebar li:hover, .products-sidebar li.active {
  background: var(--white);
  border-left-color: var(--gold);
  color: var(--navy);
}
.products-content { padding: 28px 32px; }
.product-panel { display: none; }
.product-panel.active { display: block; }
.product-panel h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.product-panel h3 a { color: var(--navy); }
.product-panel p { color: var(--text-mid); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.product-panel a { display: inline-block; color: var(--navy); font-size: 13px; font-weight: 600; margin-bottom: 6px; text-decoration: underline; }
.products-img { background: var(--navy); }

/* ======================== SUSTAINABILITY HOME ======================== */
.sustainability-home { padding: 0; }
.sus-bg {
  background: linear-gradient(rgba(10,34,64,0.72), rgba(10,34,64,0.72)),
    url("data:image/svg+xml,%3Csvg width='1200' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='400' fill='%23234a20'/%3E%3Cellipse cx='600' cy='350' rx='700' ry='200' fill='%231a3a18'/%3E%3C/svg%3E") center/cover;
  padding: 64px 0;
  color: #fff;
}
.sus-bg h2, .sus-intro { color: #fff; }
.sus-intro { max-width: 700px; margin-bottom: 36px; color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.75; }
.sus-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 0; }
.sus-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  transition: background var(--transition);
}
.sus-card:hover { background: rgba(255,255,255,0.18); }
.sus-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.sus-card p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.82); }
.sus-bg .btn-outline { border-color: var(--gold); color: var(--gold); }
.sus-bg .btn-outline:hover { background: var(--gold); color: var(--navy); }

/* ======================== CAREERS HOME ======================== */
.careers-home { background: var(--light-bg); }
.careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.careers-text h2 { color: var(--navy); }
.careers-text p { color: var(--text-mid); margin-bottom: 24px; font-size: 15px; }

/* ======================== INVESTOR HOME ======================== */
.investor-home { background: var(--white); }
.investor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.investor-text h2 { color: var(--navy); }
.investor-text p { color: var(--text-mid); margin-bottom: 24px; font-size: 15px; }

/* ======================== PRESS HOME ======================== */
.press-home { background: var(--light-bg); }
.press-sub { color: var(--text-mid); margin-bottom: 24px; font-size: 14px; }
.press-list { border-top: 1px solid var(--border); }
.press-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.press-date { font-size: 12.5px; color: var(--text-light); white-space: nowrap; min-width: 90px; margin-top: 2px; }
.press-link { font-size: 14px; color: var(--navy); font-weight: 500; transition: color var(--transition); line-height: 1.5; }
.press-link:hover { color: var(--gold); text-decoration: underline; }

/* ======================== COMPANY DIR ======================== */
.company-dir { padding: 0; }
.dir-bg {
  background: linear-gradient(135deg, #0a1628 0%, var(--navy) 60%, #1a3a5c 100%);
  padding: 64px 0;
}
.dir-card {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.dir-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.dir-card p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }

/* ======================== NOTICES ======================== */
.notices-home { background: var(--white); }

/* ======================== FOOTER ======================== */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); }
.footer-top { padding: 56px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand { }
.footer-brand .logo-link { margin-bottom: 16px; display: flex; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 240px; }
.footer-col h5 { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-col h5 a { color: var(--gold); font-size: 12px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 12.5px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.footer-contact-item a { color: var(--gold); font-weight: 500; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

/* ======================== COOKIE BANNER ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(30,40,55,0.97);
  z-index: 9999;
  padding: 20px 32px;
}
.cookie-content { max-width: 1200px; margin: 0 auto; }
.cookie-content p { color: rgba(255,255,255,0.78); font-size: 12.5px; line-height: 1.6; margin-bottom: 14px; }
.cookie-content p a { color: var(--gold); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-buttons button {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  transition: all var(--transition);
}
.cookie-buttons button:hover { border-color: var(--gold); color: var(--gold); }
.cookie-buttons .accept-btn { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cookie-buttons .accept-btn:hover { background: var(--gold-light); }

/* ======================== INNER PAGES ======================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  padding: 56px 0;
  color: #fff;
}
.page-hero h1 { font-family: var(--font-display); font-size: 32px; color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 600px; }

.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.breadcrumb a { color: rgba(255,255,255,0.6); font-size: 12.5px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 6px; }

.section-light { background: var(--white); }
.section-gray { background: var(--light-bg); }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.content-grid.reverse .content-img { order: -1; }
.content-img .img-placeholder { min-height: 260px; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.card a { color: var(--navy); font-weight: 600; font-size: 13px; text-decoration: underline; display: inline-block; margin-top: 14px; }

/* Team / Officers Grid */
.officer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.officer-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.officer-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 26px;
  font-weight: 700;
}
.officer-card h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.officer-card p { font-size: 12px; color: var(--text-mid); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 18px; color: var(--navy); margin-bottom: 20px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { font-size: 22px; }
.contact-detail strong { display: block; font-size: 13.5px; color: var(--navy); margin-bottom: 2px; }
.contact-detail a, .contact-detail p { font-size: 14px; color: var(--text-mid); }
.contact-form { background: var(--light-bg); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form h3 { font-size: 18px; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 13px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; transition: background var(--transition); }
.form-submit:hover { background: var(--gold); color: var(--navy); }

/* Section headers */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-header h2 { margin-bottom: 0; }
.section-header a { font-size: 13.5px; color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Anchor targets */
[id] { scroll-margin-top: 80px; }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2,1fr); }
  .sus-cards { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .products-layout { grid-template-columns: 160px 1fr; }
  .products-img { display: none; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .hero-content h1 { font-size: 26px; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .about-home-grid, .content-grid, .careers-grid, .investor-grid, .contact-grid { grid-template-columns: 1fr; }
  .sus-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .officer-grid { grid-template-columns: repeat(2,1fr); }
  .card-grid { grid-template-columns: 1fr; }
  h2 { font-size: 23px; }
  .footer-contact { flex-direction: column; gap: 12px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .products-layout { grid-template-columns: 1fr; }
  .products-sidebar { display: flex; overflow-x: auto; white-space: nowrap; }
  .products-sidebar li { border-left: none; border-bottom: 3px solid transparent; }
  .products-sidebar li.active { border-bottom-color: var(--gold); }
}
@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .sus-cards { grid-template-columns: 1fr; }
  .top-links a:not(:last-child) { display: none; }
  section { padding: 40px 0; }
}
