/* style.css - Complete WEC Engineering Stylesheet */
:root {
  --wec-blue: #1B4978;
  --wec-dark: #0F2B48;
  --wec-red: #C82333;
  --bg-light: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #475569;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--bg-light); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Containers */
.max-w-7xl { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Top Bar */
body > div:first-of-type { background: var(--wec-dark); color: #E2E8F0; font-size: 12px; padding: 8px 0; }
body > div:first-of-type .max-w-7xl { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Header & Navigation */
header { background: #FFFFFF; box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 50; }
header .max-w-7xl { display: flex; justify-content: space-between; align-items: center; height: 80px; }
header a.flex { display: flex; align-items: center; gap: 12px; }
header img { height: 54px; width: auto; object-fit: contain; }
header span.block.font-bold { display: block; font-weight: 800; color: var(--wec-blue); font-size: 18px; line-height: 1.1; }
header span.block.text-xs { display: block; font-size: 11px; font-weight: 700; color: #64748B; letter-spacing: 1px; }
header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; color: #334155; }
header nav a:hover { color: var(--wec-blue); }
header nav a:last-child { background: var(--wec-blue); color: #FFFFFF; padding: 10px 20px; border-radius: 6px; }
header nav a:last-child:hover { background: var(--wec-dark); }

/* Hero & Page Headers */
/* 3. International EPC Hero Section */
section:first-of-type {
  background:
    linear-gradient(115deg, rgba(7, 21, 40, 0.90) 0%, rgba(14, 41, 75, 0.80) 55%, rgba(11, 31, 58, 0.65) 100%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 84px 0 76px;
  position: relative;
  border-bottom: 3px solid #D9232E;
}
section:first-of-type .grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
section:first-of-type span.inline-block { display: inline-block; background: var(--wec-red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 5px 12px; border-radius: 4px; margin-bottom: 16px; }
section:first-of-type h1 { font-size: 40px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
section:first-of-type p { font-size: 16px; color: #E2E8F0; margin-bottom: 28px; }
section:first-of-type .flex.flex-wrap { display: flex; flex-wrap: wrap; gap: 14px; }
section:first-of-type .flex.flex-wrap a:first-child { background: var(--wec-red); color: #fff; font-weight: 700; padding: 14px 26px; border-radius: 6px; }
section:first-of-type .flex.flex-wrap a:last-child { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-weight: 600; padding: 14px 26px; border-radius: 6px; }

/* Hero Right Box */
section:first-of-type .backdrop-blur-sm { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); padding: 28px; border-radius: 12px; }
section:first-of-type .backdrop-blur-sm h3 { font-size: 19px; font-weight: 700; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.2); }
section:first-of-type .backdrop-blur-sm li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; color: #F1F5F9; }
section:first-of-type .backdrop-blur-sm li span { color: #FF6B6B; font-weight: 900; font-size: 16px; }
section:first-of-type .backdrop-blur-sm strong { display: block; color: #FFFFFF; font-size: 15px; }

/* Main Content & Cards */
section.py-20, main { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.text-center h2 { font-size: 30px; font-weight: 800; color: var(--wec-dark); margin-bottom: 10px; }
.grid.md\:grid-cols-2, .grid.lg\:grid-cols-4, .grid.md\:grid-cols-3, .grid.lg\:grid-cols-3, .grid.lg\:grid-cols-2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.bg-white.p-6, .bg-white.p-8, .bg-white.rounded-xl {
  background: #FFFFFF; padding: 24px; border-radius: 10px; box-shadow: 0 4px 14px rgba(15, 43, 72, 0.06);
  border-top: 4px solid var(--wec-blue);
}
.bg-white h3 { font-size: 18px; font-weight: 700; color: var(--wec-dark); margin-bottom: 10px; }
.bg-white p, .bg-white li { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.bg-white a { color: var(--wec-red); font-weight: 700; font-size: 14px; }

/* CTA Banner */
section.bg-wecBlue { background: var(--wec-blue); color: #FFFFFF; padding: 48px 0; }
section.bg-wecBlue .max-w-7xl { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
section.bg-wecBlue h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
section.bg-wecBlue a { background: var(--wec-red); color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 6px; }

/* Forms & Inputs */
input, select, textarea { width: 100%; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 6px; margin-top: 4px; margin-bottom: 14px; font-size: 14px; }
button[type="submit"] { width: 100%; background: var(--wec-blue); color: #fff; font-weight: 700; padding: 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 15px; }
button[type="submit"]:hover { background: var(--wec-dark); }

/* Footer */
footer { background: var(--wec-dark); color: #CBD5E1; padding: 48px 0; font-size: 14px; }
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
footer h4 { color: #FFFFFF; font-weight: 700; margin-bottom: 12px; }

/* Mobile */
@media (max-width: 768px) {
  header nav { display: none; }
  section:first-of-type .grid { grid-template-columns: 1fr; }
  section:first-of-type h1 { font-size: 30px; }

/* Product Badges & Bullet Lists */
.bg-wecBlue.text-xs, .bg-wecRed.text-xs { display: inline-block; background: var(--wec-blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; }
.bg-wecRed.text-xs { background: var(--wec-red); }
.list-disc { list-style-type: disc; padding-left: 18px; }
.border-b-2 { border-bottom: 2px solid var(--wec-blue); padding-bottom: 8px; margin-bottom: 24px; margin-top: 36px; }

/* Product & Project Photo Frames */
main img { width: 100%; height: 190px; object-fit: contain; background: #F8FAFC; border-radius: 6px; padding: 8px; margin-bottom: 12px; display: block; }

/* Fix Image Sizing Inside All Cards */
main img {
  width: 100%;
  height: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
  display: block;
}

/* Hide Duplicate Mobile Menu on Desktop */
#mobile-menu-btn, #mobile-nav { display: none; }
@media (max-width: 820px) {
  #mobile-menu-btn { display: block; background: none; border: none; color: var(--wec-navy); cursor: pointer; }
  #mobile-nav:not(.hidden) { display: block; background: #fff; padding: 16px 28px; border-top: 1px solid #E2E8F0; }
  #mobile-nav a { display: block; padding: 10px 0; font-weight: 600; color: var(--text-dark); }

/* =========================================
   WEC UPGRADES: CALCULATOR & PROCUREMENT
   ========================================= */
:root {
  --wec-navy: #1a2b56;
  --wec-navy-dark: #111d3b;
  --wec-red: #b91c2e;
  --wec-red-hover: #961524;
  --wec-light-bg: #f4f6fa;
  --wec-border: #d8e0ed;
  --wec-text: #1f2937;
}

.wec-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
  color: var(--wec-text);
}

.wec-badge {
  display: inline-block;
  background: rgba(185, 28, 46, 0.12);
  color: var(--wec-red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* --- Hybrid Savings Calculator --- */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-card, .results-card {
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(26, 43, 86, 0.08);
}

.calc-card {
  background: #ffffff;
  border: 1px solid var(--wec-border);
}

.results-card {
  background: var(--wec-navy);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--wec-navy);
}

.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--wec-border);
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input[type="range"] {
  width: 100%;
  accent-color: var(--wec-red);
  cursor: pointer;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--wec-red);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.stat-box span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.stat-box strong {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-wec-red {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--wec-red);
  color: #ffffff;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-wec-red:hover {
  background: var(--wec-red-hover);
}

/* --- Procurement & HSE Hub --- */
.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--wec-light-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--wec-border);
  margin-bottom: 2rem;
}

.doc-sheet {
  background: #ffffff;
  border: 1px solid var(--wec-border);
  border-top: 6px solid var(--wec-navy);
  border-radius: 6px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--wec-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.compliance-item {
  background: var(--wec-light-bg);
  padding: 1rem;
  border-radius: 5px;
  border-left: 3px solid var(--wec-navy);
}

.hse-list {
  padding-left: 1.25rem;
  line-height: 1.7;
}

.hse-list li {
  margin-bottom: 0.65rem;
}

/* --- Print / PDF Export Formatting --- */
@media print {
  header, nav, footer, .doc-toolbar, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
  }
  .wec-section {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .doc-sheet {
    border: none !important;
    padding: 0 !important;
    page-break-after: always;
  }
}

