/* ============================================================
   KMP Energy — base.css
   Variables, reset, typography, global utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── CSS Variables ── */
:root {
  --green-dark:    #1A3C2E;
  --green-mid:     #2D6A4F;
  --green-accent:  #52B788;
  --green-light:   #95D5B2;
  --green-pale:    #D8F3DC;
  --green-faint:   #EDF7EE;
  --cream:         #F6FBF7;
  --white:         #FFFFFF;
  --charcoal:      #1A2E1E;
  --mid:           #4A6358;
  --light-text:    #7A9082;
  --gold:          #B8860B;
  --gold-light:    #F5E6A3;
  --border:        #C8E6C9;
  --border-light:  #E8F5E0;

  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 4px rgba(26,60,46,0.06);
  --shadow-md:  0 4px 16px rgba(26,60,46,0.08);
  --shadow-lg:  0 8px 32px rgba(26,60,46,0.12);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

/* ── Utility: Eyebrow label ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-accent);
  flex-shrink: 0;
}

/* ── Utility: Section title ── */
.section-title {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--green-accent);
}

/* ── Utility: Section subtitle ── */
.section-sub {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.8;
  font-weight: 300;
  max-width: 580px;
}

/* ── Utility: Tag pill ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--green-pale);
  color: var(--green-mid);
}

/* ── Utility: Buttons ── */
.btn-primary {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--green-mid); }

.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--green-faint); }

.btn-gold {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-gold:hover { background: #9a6f09; }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Utility: Top accent bar ── */
.top-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-accent) 50%, var(--green-light) 100%);
}

/* ── Utility: Pulse animation ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Responsive breakpoint ── */
@media (max-width: 900px) {
  .section-title { font-size: 28px; }
  .section-sub   { font-size: 15px; }
}
