/* Kestrel Energy Services — brand palette
   Navy #0A2A4A · Ocean Blue #1B4F7A · Gold #D4A73C · Sand Grey #E5E7EB */

:root {
  --navy: #0A2A4A;
  --ocean: #1B4F7A;
  --gold: #D4A73C;
  --sand: #E5E7EB;
  --text: #22282f;
  --muted: #5b6572;
  --line: #dfe3e8;
  --white: #ffffff;
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 14px; }
a { color: var(--ocean); }

/* ---------- Brand lockup ---------- */
.brand, .footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .12em; color: var(--navy); }
.brand-sub { font-size: 9.5px; font-weight: 500; letter-spacing: .28em; color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}
.hero-inner { padding: 92px 24px 88px; max-width: 780px; margin: 0 auto; }
.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-sub { color: #c9d3de; font-size: 17px; max-width: 620px; margin-bottom: 30px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--gold); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--sand); }
.section h2 { font-size: clamp(22px, 2.6vw, 28px); }
.section h2::after {
  content: ""; display: block; width: 52px; height: 2px;
  background: var(--gold); margin-top: 14px;
}
.section-lead { color: var(--muted); max-width: 620px; margin: 18px 0 40px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 26px 24px;
}
.card h3 { font-size: 16.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.about { max-width: 720px; }
.about p { color: var(--muted); }
.about h2 { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d3de; padding: 56px 0 0; }
.site-footer .brand-name { color: var(--white); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 12px;
}
.footer-col p { font-size: 14.5px; margin: 0; }
.footer-col a { color: var(--gold); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; padding-bottom: 24px; }
.footer-bottom p { font-size: 12.5px; color: #93a2b3; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle-label {
    display: block; width: 26px; height: 20px; position: relative; cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block; position: absolute; height: 2px; width: 26px; background: var(--navy); content: "";
  }
  .nav-toggle-label span { top: 9px; }
  .nav-toggle-label span::before { top: -7px; }
  .nav-toggle-label span::after { top: 7px; }

  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .header-inner { position: relative; }

  .hero-inner { padding: 64px 24px 60px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
