/* ============================================================
   Dukinfield Energy Limited — Website Stylesheet
   Colours: Forest Green #1B3D1B | Gold #E8B84B | Cream #F8F5EC
   ============================================================ */

:root {
  --green-dark:  #1B3D1B;
  --green-mid:   #2A5C2A;
  --green-light: #3B7A3B;
  --gold:        #E8B84B;
  --gold-dark:   #C49A2A;
  --cream:       #F8F5EC;
  --cream-dark:  #EDE8D8;
  --white:       #FFFFFF;
  --text-dark:   #1A1A1A;
  --text-mid:    #3D4B3D;
  --text-light:  #6B7280;
  --border:      #D4D8CC;
  --shadow:      0 2px 16px rgba(27,61,27,0.10);
  --shadow-lg:   0 8px 40px rgba(27,61,27,0.16);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--gold-dark); }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.gold-text   { color: var(--gold); }
.green-text  { color: var(--green-dark); }
.white-text  { color: var(--white); }
.cream-text  { color: var(--cream); }

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section-header p { font-size: 1.05rem; color: var(--text-mid); margin-top: 0.75rem; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 61, 27, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(232, 184, 75, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 2rem;
  max-width: 1160px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo svg { flex-shrink: 0; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.nav-logo-tagline {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(232, 184, 75, 0.15);
}

.nav-links .nav-cta a {
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  padding: 0.45rem 1.1rem;
}

.nav-links .nav-cta a:hover {
  background: var(--gold-dark);
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  padding: 10rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(232,184,75,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(59,122,59,0.3) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin-bottom: 2rem; }

.hero-sub {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  padding: 0.6rem 0;
  margin-bottom: 0;
}
.hero-sub .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-sub-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-sub-item::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
}

/* Page heroes (non-home) */
.page-hero {
  background: var(--green-dark);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(232,184,75,0.07) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 640px; }
.page-hero .breadcrumb {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,184,75,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green-dark);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Stats Strip ── */
.stats-strip {
  background: var(--cream);
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--cream-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--cream-dark);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-value span { color: var(--gold-dark); font-size: 1.4rem; vertical-align: super; }

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  background: var(--green-dark);
  padding: 1.25rem 1.5rem;
  color: var(--white);
}
.card-header h3 { color: var(--white); font-size: 1.05rem; }
.card-header .tag {
  display: inline-block;
  background: rgba(232,184,75,0.2);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.card-body { padding: 1.5rem; }

.card-accent {
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.92rem; color: var(--text-light); margin: 0; }

/* ── Project Highlight Card ── */
.project-highlight {
  background: var(--green-dark);
  border-radius: 16px;
  overflow: hidden;
  color: var(--white);
}

.project-highlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-highlight-content {
  padding: 3rem;
}
.project-highlight-content h2 { color: var(--white); margin-bottom: 0.5rem; }
.project-highlight-content p { color: rgba(255,255,255,0.75); }

.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.project-stat {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem;
}
.project-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.project-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

.project-highlight-image {
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

/* ── Pipeline Section ── */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.pipeline-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border-top: 3px solid var(--green-dark);
}

.pipeline-item.active {
  border-top-color: var(--gold);
  background: var(--cream);
}

.pipeline-item-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-dark);
}

.pipeline-item.active .pipeline-item-num { color: var(--gold-dark); }

.pipeline-item-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ── Info List ── */
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-mid);
}
.info-list li::before {
  content: '▸';
  color: var(--gold-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Spec Table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.spec-table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.spec-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}
.spec-table tr:nth-child(even) td { background: var(--cream); }
.spec-table td:first-child { font-weight: 600; color: var(--text-dark); }
.spec-table td:last-child { font-weight: 700; color: var(--green-dark); }

/* ── PPA Badges ── */
.ppa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ppa-badge {
  background: var(--green-mid);
  color: var(--white);
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.ppa-badge:last-child { border-right: none; background: var(--gold-dark); }
.ppa-badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.ppa-badge-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-dark), var(--green-light));
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green-dark);
  border: 3px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 0 0 2px var(--green-dark);
  z-index: 1;
}

.timeline-dot.done { background: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold-dark); }

.timeline-content {
  padding-top: 0.2rem;
  flex: 1;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

/* ── Process Steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: steps;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  counter-increment: steps;
}

.process-step::before {
  content: counter(steps, decimal-leading-zero);
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  opacity: 0.6;
  margin-top: 0.1rem;
}

.process-step-text { flex: 1; }
.process-step-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
}
.process-step-text span { font-size: 0.82rem; color: var(--text-light); }

.step-done { background: var(--cream); border-color: var(--gold-dark); }

/* ── ESG Pillars ── */
.esg-pillar {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.esg-pillar-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.esg-pillar-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.esg-pillar-header h3 { color: var(--white); font-size: 1.05rem; }
.esg-pillar-body { padding: 1.5rem; }

/* ── Transaction structure ── */
.tx-box {
  background: var(--white);
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}
.tx-box-label { font-size: 0.75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.tx-box-name { font-size: 1rem; font-weight: 700; color: var(--green-dark); }
.tx-box.highlight { background: var(--green-dark); border-color: var(--gold); }
.tx-box.highlight .tx-box-name { color: var(--white); }
.tx-box.highlight .tx-box-label { color: var(--gold); }
.tx-box.gold { background: var(--gold); border-color: var(--gold-dark); }
.tx-box.gold .tx-box-name { color: var(--green-dark); }
.tx-box.gold .tx-box-label { color: var(--green-dark); }

/* ── Contact Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(27,61,27,0.1);
}
textarea.form-control { min-height: 130px; resize: vertical; }

/* ── Backgrounds ── */
.bg-cream      { background: var(--cream); }
.bg-green-dark { background: var(--green-dark); }
.bg-green-mid  { background: var(--green-mid); }
.bg-white      { background: var(--white); }

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.gap-lg { gap: 5rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Divider ── */
.divider-gold {
  width: 64px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-green { background: rgba(27,61,27,0.1); color: var(--green-dark); }
.badge-gold  { background: rgba(232,184,75,0.15); color: var(--gold-dark); }
.badge-done  { background: rgba(59,122,59,0.1); color: var(--green-light); }

/* ── Callout Box ── */
.callout {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout strong { color: var(--green-dark); display: block; margin-bottom: 0.3rem; }
.callout p { margin: 0; font-size: 0.93rem; color: var(--text-mid); }

/* ── Footer ── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }

.footer h4 {
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--gold);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ── SVG Logo ── */
.logo-svg { display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .three-col { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(3, 1fr); }
  .ppa-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .project-highlight-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
