/* Eldredge Management Consulting — base styles */

:root {
  /* Logo-driven palette: deep royal navy + warm gold */
  --color-navy-deep: #0a1240;
  --color-navy: #1a2574;
  --color-navy-mid: #2a3890;
  --color-gold: #eeb840;
  --color-gold-soft: #f5d37a;
  --color-gold-deep: #c88a1f;

  --color-ink: #0f1845;
  --color-ink-soft: #3d4879;
  --color-muted: #6c75a1;
  --color-bg: #fbfaf4;
  --color-bg-alt: #f2eedf;
  --color-line: #e1dcc7;
  --color-accent: var(--color-navy);
  --color-accent-dark: var(--color-navy-deep);
  --color-accent-soft: #e4e6f3;
  --color-highlight: var(--color-gold);

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 64, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 18, 64, 0.12);

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-serif: "Source Serif Pro", "Georgia", "Times New Roman", serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
  font-weight: 600;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-navy);
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 0 1px rgba(238, 184, 64, 0.4);
}

.brand-text { font-size: 16px; letter-spacing: 0.1px; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--color-ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--color-accent-dark); }

@media (max-width: 680px) {
  .brand-text { display: none; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(238, 184, 64, 0.18), transparent 60%),
    linear-gradient(180deg, #10195a 0%, #0a1240 100%);
  color: #f5f2e4;
  border-bottom: 3px solid var(--color-gold);
}

.hero h1 { color: #ffffff; }
.hero .lede { color: rgba(245, 242, 228, 0.85); }
.hero .eyebrow { color: var(--color-gold); }

.hero-inner { max-width: 820px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--color-ink-soft);
  letter-spacing: -0.01em;
}

.lede {
  font-size: 20px;
  color: var(--color-ink-soft);
  margin: 0 0 36px;
  max-width: 720px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}
.btn-primary:hover {
  background: var(--color-gold-soft);
  color: var(--color-navy-deep);
}

.btn-ghost {
  background: transparent;
  color: #f5f2e4;
  border-color: rgba(245, 242, 228, 0.4);
}
.btn-ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.tagline {
  font-style: italic;
  color: var(--color-navy-deep);
  position: relative;
  padding-bottom: 14px;
}
.tagline::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-top: 14px;
}

.section-lede {
  color: var(--color-ink-soft);
  font-size: 18px;
  max-width: 720px;
  margin: 0 0 48px;
}

/* ---------- Service Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-accent {
  border-top: 4px solid var(--color-gold);
}
.card:first-child { border-top: 4px solid var(--color-navy); }

.card-icon {
  font-size: 28px;
  color: var(--color-gold-deep);
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 12px;
}

.card-list {
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--color-ink-soft);
  font-size: 15px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Two-column Approach ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col p {
  color: var(--color-ink-soft);
  font-size: 17px;
}

@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-highlight);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.pillar h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
}
.pillar p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Verticals ---------- */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.vertical {
  background: #fff;
  color: var(--color-navy-deep);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 500;
  font-size: 15px;
}
.vertical-note {
  color: var(--color-muted);
  font-style: italic;
}

/* ---------- Contact ---------- */
/* The cowboy PNG IS the banner — stretched edge-to-edge across the bottom
   of the page. Its navy sky is dark enough on its own to host white text,
   and a subtle top-down dark overlay guarantees contrast on narrower
   viewports where the image is cropped more aggressively. */
.section-contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  border-top: 3px solid var(--color-gold);
  background-color: #0a1240; /* matches PNG sky — prevents flash before image loads */
  background-image:
    linear-gradient(180deg, rgba(10, 18, 64, 0.55) 0%, rgba(10, 18, 64, 0.0) 55%),
    url("assets/cowboy-lasso.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center bottom;
  background-size: 100% 100%, 100% auto;
  /* Keep an aspect ratio that lets the full image show without being
     cropped, while staying tall enough to host the contact copy. */
  min-height: clamp(360px, 32vw, 540px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.contact-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.section-contact .section-title { color: #fff; }
.section-contact p { color: rgba(255,255,255,0.82); margin-bottom: 28px; }
.section-contact .btn-primary {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}
.section-contact .btn-primary:hover {
  background: var(--color-gold-soft);
  color: var(--color-navy-deep);
}
.contact-meta {
  margin-top: 24px !important;
  font-size: 14px;
  color: rgba(255,255,255,0.6) !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 28px 0;
  font-size: 14px;
  border-top: 1px solid rgba(238, 184, 64, 0.25);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-meta { color: rgba(255,255,255,0.45); margin: 0; }
.site-footer p { margin: 0; }
