/* ===========================================================
   Lisa Kelley, LLC. — Water, Wastewater & Environmental
   Regulatory Advisors — Site Stylesheet
   =========================================================== */

:root {
  --navy: #1c3a52;
  --navy-light: #2c5170;
  --sage: #84a07c;
  --sage-light: #aac0a3;
  --cream: #f6f4ee;
  --tan: #ddd8c8;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --max-width: 1100px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: var(--navy-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Header / Nav ---------- */

header.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--sage);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img.logo {
  height: 48px;
  width: auto;
}

.brand-text h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--navy);
}

.brand-text p {
  margin: 0;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--sage);
  border-bottom-color: var(--sage);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 72px 0;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.hero h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0;
  line-height: 1.25;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #dfe7ea;
}

.hero .tagline {
  font-style: italic;
  color: var(--sage-light);
  font-size: 1.05rem;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 4px;
  margin-top: 12px;
  width: fit-content;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--sage-light);
  text-decoration: none;
  color: var(--navy);
}

.btn.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

section.alt {
  background: #ffffff;
}

h2.section-title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.9rem;
  margin-top: 0;
  margin-bottom: 8px;
}

p.section-sub {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 32px;
  max-width: 720px;
}

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--tan);
  border-top: 4px solid var(--sage);
  border-radius: 6px;
  padding: 24px;
}

.card h3 {
  font-family: var(--serif);
  color: var(--navy);
  margin-top: 0;
  font-size: 1.25rem;
}

.card .price-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  background: #eef3ec;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card ul {
  padding-left: 20px;
  margin: 0;
}

.card ul li {
  margin-bottom: 6px;
}

/* ---------- Value list ---------- */

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.value-list li {
  background: var(--cream);
  border-left: 4px solid var(--sage);
  padding: 16px 18px;
  border-radius: 4px;
}

/* ---------- Quote / callout ---------- */

.callout {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 32px;
  margin-top: 40px;
}

.callout p {
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}

.callout .signature {
  font-style: normal;
  font-weight: 700;
  color: var(--sage-light);
}

/* ---------- About page specifics ---------- */

.timeline {
  border-left: 3px solid var(--sage);
  padding-left: 24px;
  margin-left: 6px;
}

.timeline .item {
  margin-bottom: 28px;
  position: relative;
}

.timeline .item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--sage);
  border-radius: 50%;
  border: 3px solid var(--cream);
}

.timeline .item h4 {
  margin: 0 0 4px 0;
  font-family: var(--serif);
  color: var(--navy);
}

.timeline .item .years {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--tan);
  border-radius: 6px;
  padding: 28px;
}

.contact-card h3 {
  font-family: var(--serif);
  color: var(--navy);
  margin-top: 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.contact-method .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

form.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.92rem;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--tan);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--cream);
}

form.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

form.contact-form button {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}

form.contact-form .field-error {
  display: block;
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: -12px;
  margin-bottom: 16px;
}

.form-message {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.form-message[hidden] {
  display: none;
}

.form-message-success {
  background: #eef3ec;
  color: var(--navy);
  border: 1px solid var(--sage);
}

.form-message-error {
  background: #fbeaea;
  color: #b3261e;
  border: 1px solid #e0a0a0;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: #cdd9df;
  padding: 32px 0;
  margin-top: 24px;
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

footer.site-footer a {
  color: #fff;
}

footer.site-footer .tagline {
  font-style: italic;
  color: var(--sage-light);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.main-nav ul {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

  section {
    padding: 40px 0;
  }
}
