/* =============================================
   DE Energy Consultants — Main Stylesheet
   Inspired by Arup / Thornton Tomasetti / SOM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-page:         #f0f5f5;   /* very light teal-grey                       */
  --bg-dark:         #0d1f24;   /* deep slate                                 */
  --bg-card:         #ffffff;
  --bg-nav:          #0d1f24;   /* slate nav                                  */
  --accent:          #0d9488;   /* teal                                       */
  --accent-light:    #2dd4bf;   /* bright teal — hover states                 */
  --accent-tint:     rgba(13,148,136,0.08);
  --text-primary:    #152a2e;   /* dark slate-tinted charcoal                 */
  --text-muted:      #446068;   /* muted slate                                */
  --text-on-dark:    #cce8e6;   /* soft teal-white for dark sections          */
  --text-muted-dark: #6aada8;   /* muted on dark                              */
  --border:          rgba(0,0,0,0.08);
  --border-dark:     rgba(255,255,255,0.08);
  --max-width:       1100px;
  --radius:          8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
}

h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  letter-spacing: -0.2px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

/* =============================================
   NAV — dark, like top A/E firms
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-dark);
  z-index: 100;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

/* Logo image */
.nav-logo-img {
  height: 28px;
  width: auto;
  opacity: 0.95;
}

/* Fallback SVG logo (shown if image not available) */
.nav-logo {
  width: 34px;
  height: 34px;
  opacity: 0.9;
}

.nav-brand-text {
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-left: 14px;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.80em;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

/* ─── Icons (Lucide) ──────────────────────────── */
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}
.contact-detail-icon [data-lucide],
.credential-pill-icon [data-lucide],
.cert-badge [data-lucide],
.affiliation-badge-icon [data-lucide] { width: 20px; height: 20px; }
.resource-icon [data-lucide] { width: 16px; height: 16px; opacity: 0.5; }
.response-badge-icon [data-lucide] { width: 24px; height: 24px; }
.expertise-icon [data-lucide] { width: 22px; height: 22px; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1541336032412-2048a678540d?w=1920&q=85');
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Directional overlay: heavy dark on left (text side), fades right */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 16, 24, 0.88) 0%,
    rgba(10, 16, 24, 0.72) 35%,
    rgba(10, 16, 24, 0.30) 60%,
    rgba(10, 16, 24, 0.08) 100%
  );
}

/* Subtle blueprint grid */
.hero-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,145,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,145,58,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridScroll 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0;
  padding: 0 0 0 8%;
}

.hero-eyebrow {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4em, 5vw, 4.2em);
  font-weight: 300;
  line-height: 1.15;
  color: #ffffff;
  max-width: 700px;
  margin-bottom: 26px;
  letter-spacing: -0.5px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 1.05em;
  font-weight: 300;
  color: rgba(255,255,255,0.68);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.75;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.80em;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #0d1f24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.35);
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
  margin-left: 14px;
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

/* =============================================
   SECTIONS (light)
   ============================================= */
section {
  padding: 100px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-label {
  font-size: 0.70em;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7em, 3vw, 2.6em);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 0.97em;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 60px;
  line-height: 1.8;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}

/* =============================================
   SERVICES — light background
   ============================================= */
.services-bg {
  background: var(--bg-page);
  padding: 100px 48px;
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-top-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.service-card:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.service-icon {
  font-size: 1.6em;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.0em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.service-card p {
  font-size: 0.91em;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

.service-card a.learn-more {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.service-card a.learn-more:hover {
  border-bottom-color: var(--accent);
}

/* =============================================
   "OUR APPROACH" — dark section (alternating)
   ============================================= */
.approach-bg {
  background: var(--bg-dark);
  padding: 100px 48px;
}

.approach-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.approach-bg .section-title {
  color: var(--text-on-dark);
}

.approach-bg .section-sub {
  color: var(--text-muted-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-top: 20px;
}

.value-item h4 {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.value-item p {
  font-size: 0.88em;
  color: var(--text-muted-dark);
  line-height: 1.8;
  font-weight: 300;
}

/* =============================================
   LL97 CTA BANNER
   ============================================= */
.ll97-cta {
  background: linear-gradient(135deg, #071518 0%, #0d2a2e 100%);
  border-top: 3px solid var(--accent);
  padding: 80px 48px;
}

.ll97-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
}

.ll97-cta .section-label { color: var(--accent-light); }

.ll97-cta h2 {
  font-size: 1.9em;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 12px;
}

.ll97-cta p {
  color: var(--text-muted-dark);
  font-size: 0.95em;
  max-width: 500px;
  font-weight: 300;
}

/* =============================================
   CONTACT — light background
   ============================================= */
.contact-bg {
  background: var(--bg-page);
  padding: 100px 48px;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.93em;
  font-weight: 300;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.10);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.contact-info h3 {
  font-size: 1.5em;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 0.95em;
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9em;
  color: var(--text-muted);
}

.contact-detail span:first-child { font-size: 1.1em; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 52px 48px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-size: 0.80em;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 0.80em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-copy {
  font-size: 0.75em;
  color: rgba(255,255,255,0.22);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .hero-content { padding: 0 24px; max-width: 100%; }
  section { padding: 70px 24px; }
  .services-bg, .contact-bg, .approach-bg { padding: 70px 24px; }
  .ll97-cta { padding: 60px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn-outline { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
}
