/*
Theme Name: COMEG Energy WordPress Theme Updated
Theme URI: https://comegenergy.com/
Author: OpenAI
Description: Custom WordPress theme for COMEG Energy with branded EPC service imagery.
Version: 1.1
Text Domain: comeg-energy
*/

:root {
  --navy: #0f2341;
  --navy-2: #18345f;
  --gold: #c7a24a;
  --gold-2: #e4cb84;
  --light: #f5f7fb;
  --text: #1b2330;
  --muted: #5d687b;
  --line: #e3e9f2;
  --white: #ffffff;
  --success: #1f6d52;
  --shadow: 0 18px 45px rgba(9, 19, 38, 0.1);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar { background: var(--navy); color: #dbe6fb; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 10px 0; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid #edf1f7; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(135deg, var(--navy), #2a518b); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.brand-mark::before { content: ""; width: 26px; height: 26px; border: 3px solid var(--gold-2); border-top-color: transparent; border-radius: 50%; transform: rotate(45deg); display: block; }
.brand h1 { margin: 0; font-size: 20px; color: var(--navy); }
.brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.main-nav a { font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; transition: 0.2s ease; cursor: pointer; }
.btn-primary { background: var(--gold); color: #1e1a12; }
.btn-primary:hover { background: var(--gold-2); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.hero { background: linear-gradient(120deg, rgba(15, 35, 65, 0.97), rgba(24, 52, 95, 0.93)), radial-gradient(circle at top right, rgba(199,162,74,0.2), transparent 30%); color: var(--white); padding: 88px 0 74px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.09); color: var(--gold-2); font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; margin-bottom: 18px; }
.hero h2 { margin: 0 0 16px; font-size: 54px; line-height: 1.04; max-width: 760px; }
.hero p { margin: 0 0 26px; color: #e6eefc; font-size: 18px; max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.11); border-radius: 18px; padding: 18px; }
.stat strong { display: block; font-size: 24px; color: var(--gold-2); }
.stat span { display: block; margin-top: 4px; color: #d6deef; font-size: 14px; }
.hero-card, .card, .panel, .contact-card, form, .cta { background: var(--white); border: 1px solid #e8edf6; border-radius: 22px; padding: 26px; box-shadow: 0 10px 30px rgba(17,31,58,0.06); }
.hero-card { background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); border: 1px solid rgba(255,255,255,0.13); color: var(--white); }
.bullet { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.bullet:last-child { border-bottom: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); margin-top: 8px; flex: 0 0 10px; }
section { padding: 76px 0; }
.band { background: var(--light); border-top: 1px solid #eef2f8; border-bottom: 1px solid #eef2f8; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h3 { margin: 0; font-size: 38px; color: var(--navy); }
.section-head p { margin: 10px 0 0; max-width: 760px; color: var(--muted); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { overflow: hidden; padding: 0; }
.card-body { padding: 22px; }
.card-image { aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid #e8edf6; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(199,162,74,0.18), rgba(15,35,65,0.12)); color: var(--navy); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.card p, .panel p { color: var(--muted); }
.card ul, .panel ul { margin: 0; padding-left: 18px; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showcase-item { background: #fff; border: 1px solid #e8edf6; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(17,31,58,0.06); }
.showcase-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.showcase-caption { padding: 18px 20px; font-weight: 700; color: var(--navy); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 34px; align-items: start; }
.checklist { display: grid; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check b { width: 22px; height: 22px; border-radius: 50%; background: rgba(31,109,82,0.12); color: var(--success); display: grid; place-items: center; font-size: 13px; flex: 0 0 22px; }
.process { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--white); border: 1px solid #e8edf7; border-radius: 18px; padding: 18px; }
.num { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.step h5 { margin: 4px 0 6px; font-size: 20px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; }
.contact-card { background: var(--navy); color: var(--white); }
.contact-card .item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-card .item:last-child { border-bottom: none; }
.contact-card span { display: block; font-size: 13px; color: #b9c7e6; text-transform: uppercase; letter-spacing: 1px; }
.contact-card strong { display: block; margin-top: 4px; font-size: 18px; }
label { display: block; margin-bottom: 7px; font-weight: 700; color: var(--navy); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid #d8e0ed; background: var(--white); color: var(--text); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--white); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; border-color: rgba(255,255,255,0.08); }
.cta h3 { margin: 0 0 10px; font-size: 36px; }
.cta p { margin: 0; color: #dce6fb; }
.floating { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 999; }
.floating a { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 58px; padding: 0 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 16px 34px rgba(11,21,40,0.18); }
.wa { background: #25d366; color: #0b2015; }
.quote { background: var(--gold); color: #1e1a12; }
.site-footer { background: #091427; color: #d2ddf2; padding: 36px 0; }
@media (max-width: 1100px) { .showcase-grid { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 1024px) { .hero-grid, .split, .contact-grid, .cta { grid-template-columns: 1fr; } .hero h2 { font-size: 44px; } .hero-stats, .cards { grid-template-columns: 1fr; } .showcase-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 760px) { .container { width: min(var(--max), calc(100% - 24px)); } .main-nav { display: none; } .hero { padding-top: 58px; } .hero h2 { font-size: 36px; } .section-head h3 { font-size: 30px; } form, .showcase-grid { grid-template-columns: 1fr; } }


/* Simple full-width hero banner */
.hero-banner {
  position: relative;
  height: 90vh;
  background: url('assets/images/construction.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(10, 31, 68, 0.85),
    rgba(10, 31, 68, 0.75)
  );
  display: flex;
  align-items: center;
}

.hero-banner h1 {
  color: #ffffff;
  font-size: 52px;
  max-width: 700px;
  margin-bottom: 20px;
  line-height: 1.08;
}

.hero-banner p {
  color: #dbe6fb;
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 25px;
}

@media (max-width: 1024px) {
  .hero-banner {
    height: 75vh;
  }
  .hero-banner h1 {
    font-size: 42px;
  }
}

@media (max-width: 760px) {
  .hero-banner {
    height: 68vh;
    min-height: 520px;
  }
  .hero-banner h1 {
    font-size: 34px;
  }
  .hero-banner p {
    font-size: 16px;
  }
}
