/* ========================================
   Ellihan LLC — Brand Variables
   ======================================== */
:root {
  --mission-green: #1F3A2E;
  --gunmetal: #374151;
  --mission-gold: #D6A94A;
  --warm-stone: #A8A29E;
  --warm-off-white: #FAFAF9;

  --font-primary: "IBM Plex Sans", system-ui, sans-serif;
  --font-heading: "Space Grotesk", system-ui, sans-serif;

  --max-width: 1120px;
  --header-height: 72px;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gunmetal);
  background-color: var(--warm-off-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--mission-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--mission-gold);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--mission-green);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--warm-stone);
  font-size: 1.125rem;
  max-width: 600px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168, 162, 158, 0.25);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mission-green);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--mission-gold);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gunmetal);
}

.nav a:hover {
  color: var(--mission-gold);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--mission-gold);
  color: var(--mission-green);
  border-color: var(--mission-gold);
}

.btn-primary:hover {
  background: #c49a3f;
  border-color: #c49a3f;
  color: var(--mission-green);
}

.btn-secondary {
  background: transparent;
  color: var(--warm-off-white);
  border-color: rgba(250, 250, 249, 0.5);
}

.btn-secondary:hover {
  background: rgba(250, 250, 249, 0.1);
  border-color: var(--warm-off-white);
  color: var(--warm-off-white);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: var(--mission-green);
  color: var(--warm-off-white);
  padding: 6rem 0 5.5rem;
}

.hero-inner {
  max-width: 720px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mission-gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--warm-off-white);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(250, 250, 249, 0.85);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========================================
   Competency Cards
   ======================================== */
.competencies {
  background: var(--warm-off-white);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(168, 162, 158, 0.3);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--mission-gold);
  box-shadow: 0 4px 24px rgba(31, 58, 46, 0.08);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card > p {
  font-size: 0.9375rem;
  color: var(--gunmetal);
  margin-bottom: 1rem;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card li {
  font-size: 0.875rem;
  color: var(--warm-stone);
  padding-left: 1rem;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mission-gold);
}

/* ========================================
   Differentiators
   ======================================== */
.differentiators {
  background: #fff;
  border-top: 1px solid rgba(168, 162, 158, 0.2);
  border-bottom: 1px solid rgba(168, 162, 158, 0.2);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.diff-item {
  padding: 0.5rem 0;
}

.diff-icon {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--mission-gold);
  margin-bottom: 0.75rem;
}

.diff-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.diff-item p {
  font-size: 0.9375rem;
  color: var(--warm-stone);
}

/* ========================================
   Contact
   ======================================== */
.contact {
  background: var(--warm-off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.contact-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-stone);
  margin-bottom: 0.25rem;
}

.contact-details dd {
  font-size: 1rem;
  color: var(--gunmetal);
}

.contact-details a {
  font-weight: 500;
}

.contact-form {
  background: #fff;
  border: 1px solid rgba(168, 162, 158, 0.3);
  border-radius: 8px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gunmetal);
  margin-bottom: 0.375rem;
}

.required {
  color: var(--mission-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--gunmetal);
  background: var(--warm-off-white);
  border: 1px solid rgba(168, 162, 158, 0.4);
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mission-green);
  box-shadow: 0 0 0 3px rgba(31, 58, 46, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #b91c1c;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}

.form-status--success {
  color: var(--mission-green);
}

.form-status--error {
  color: #b91c1c;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========================================
   About
   ======================================== */
.about {
  background: var(--mission-green);
  color: rgba(250, 250, 249, 0.85);
}

.about .section-header h2 {
  color: var(--warm-off-white);
}

.about-inner {
  max-width: 720px;
}

.about-inner p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-inner p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #152921;
  color: rgba(250, 250, 249, 0.6);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-tag {
  color: var(--mission-gold);
  font-weight: 500;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Lead resources and a single, dismissible guide suggestion. */
.eyebrow, .resource-type { color: #776022; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; font-weight: 600; }
.eyebrow { margin-bottom: .8rem; }
.resources { background: #f0f2ee; border-bottom: 1px solid #d7ded7; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.resource-card { display: flex; flex-direction: column; }
.resource-type { margin-bottom: 1.2rem; }
.resource-card h3 { font-size: 1.35rem; }
.resource-card > p { flex: 1; }
.resource-link { font-weight: 600; margin: .6rem 0; }
.resource-download { font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.resource-discuss { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid #e1e5df; font-size: .85rem; }
.resource-note, .form-notice { font-size: .8rem; line-height: 1.6; color: #5c655e; }
.resource-note { margin-top: 1.5rem; max-width: 750px; }
.form-notice { margin-bottom: 1.2rem; }
.form-notice a { text-decoration: underline; }
.optional { font-weight: 400; color: #5c655e; }
.resource-context { color: var(--mission-green); background: #f0f2ee; border-left: 3px solid var(--mission-gold); padding: .8rem; margin-bottom: 1.5rem; font-size: .9rem; }
.guide-dialog { margin: auto; width: min(520px, calc(100% - 2rem)); padding: 2.5rem; border: 1px solid #d7ded7; border-radius: 12px; color: var(--gunmetal); background: var(--warm-off-white); box-shadow: 0 24px 80px #15292144; }
.guide-dialog::backdrop { background: #15292199; }
.guide-dialog h2 { font-size: 2rem; margin-bottom: 1rem; }
.guide-dialog > p:not(.eyebrow) { margin-bottom: 1.5rem; }
.dialog-close { position: absolute; top: .5rem; right: .7rem; background: none; border: none; font-size: 1.8rem; padding: .2rem .6rem; cursor: pointer; color: var(--mission-green); }
.dialog-secondary { display: block; margin-top: 1rem; font-size: .9rem; text-decoration: underline; }
.site-footer a { color: var(--warm-off-white); }
:focus-visible { outline: 3px solid #96701f; outline-offset: 4px; }
.section-header p, .card li, .diff-item p, .contact-details dt { color: #626960; }
@media (max-width: 900px) { .resource-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nav { gap: .65rem; } .nav a { font-size: .75rem; } .contact-form { padding: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
.verification-status { color: #5c655e; font-size: .8rem; margin: .5rem 0 1rem; }
.verification-retry { background: none; border: 0; color: var(--mission-green); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; margin-bottom: 1rem; }
#security-check { min-height: 65px; }
.privacy-document { max-width: 760px; margin: auto; padding: 4rem 1.5rem; }
.privacy-document h1 { margin: 1rem 0 2rem; }
.privacy-document h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.privacy-document p { margin-bottom: 1rem; }
