/* =========================================================
   Aegis Standard, stylesheet
   Organized by: variables, resets, layout helpers, header/nav,
   hero, services, about, forms, contact, footer, responsive.
   ========================================================= */

:root {
  /* Brand palette (do not change hex values when reskinning colors) */
  --bg: #05070d;
  --bg-raised: #0b1210;
  --green-deep: #1e5522;
  --green-mid: #2e931b;
  --green-bright: #3bc814;
  --green-light: #77d35f;
  --green-pale: #b2deab;

  --text-body: var(--green-pale);
  --text-muted: #7fa079;

  --font-display: 'Space Mono', 'Courier New', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap-width: 1180px;
  --radius: 4px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: #f2f9ef;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--green-bright);
  color: #05070d;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  z-index: 1000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-kicker {
  font-family: var(--font-display);
  color: var(--green-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}

.section-lead {
  max-width: 60ch;
  color: var(--text-body);
}

/* Subtle scan-line / grid texture used behind the hero */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 200, 20, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 200, 20, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at top, black, transparent 75%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green-bright);
  color: #04150a;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 rgba(59, 200, 20, 0);
}

.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  box-shadow: 0 0 24px rgba(59, 200, 20, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--green-light);
  border-color: var(--green-mid);
}

.btn-outline:hover {
  border-color: var(--green-light);
  box-shadow: 0 0 16px rgba(119, 211, 95, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--green-light);
}

.btn-small {
  padding: 0.55rem 1.7rem;
  font-size: 0.8rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f2f9ef;
}

.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--green-bright);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.logo-text-accent {
  color: var(--green-bright);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav ul {
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  color: var(--text-body);
  font-size: 0.95rem;
  padding: 0.25rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.primary-nav a:hover {
  color: var(--green-light);
  border-color: var(--green-mid);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--green-deep);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--green-light);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--green-deep);
}

.hero-inner {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  color: var(--green-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 18ch;
  color: #f2f9ef;
}

.hero-sub {
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--green-deep);
}

.hero-stat dt {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-stat dd {
  margin: 0;
  font-family: var(--font-display);
  color: var(--green-bright);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services {
  padding: 5rem 0;
  border-bottom: 1px solid var(--green-deep);
}

.services h2,
.about h2,
.book-event h2,
.contact h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  max-width: 24ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--green-mid);
  box-shadow: 0 0 22px rgba(46, 147, 27, 0.25);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.card p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- About ---------- */
.about {
  padding: 5rem 0;
  border-bottom: 1px solid var(--green-deep);
}

.about-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-media img {
  border-radius: var(--radius);
  border: 1px solid var(--green-deep);
}

.about-credentials {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.about-credentials li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

.about-credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
}

/* ---------- Book an Event ---------- */
.book-event {
  padding: 5rem 0;
  border-bottom: 1px solid var(--green-deep);
}

.book-event-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.book-event-intro {
  position: sticky;
  top: 6rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Forms ---------- */
.event-form {
  background: var(--bg-raised);
  border: 1px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--green-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--green-deep);
  border-radius: var(--radius);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--green-mid);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(59, 200, 20, 0.18);
  outline: none;
}

.form-field input:invalid[data-touched="true"],
.form-field select:invalid[data-touched="true"] {
  border-color: #d3554a;
}

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

.form-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-status.success {
  color: var(--green-light);
}

.form-status.error {
  color: #e08a80;
}

/* ---------- Contact / Schedule a Conversation ---------- */
.contact {
  padding: 5rem 0 6rem;
}

.contact-inner {
  max-width: 62ch;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.75rem 0 2rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-body);
  border-left: 2px solid var(--green-deep);
  padding-left: 0.9rem;
  transition: border-color var(--transition);
}

.contact-link:hover {
  border-color: var(--green-bright);
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-value {
  color: var(--green-light);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--green-deep);
  padding: 4rem 0 0;
  background: var(--bg-raised);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-body);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--green-light);
}

.footer-social {
  display: flex !important;
  flex-direction: row;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-deep);
  border-radius: var(--radius);
  color: var(--text-body);
  transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--green-deep);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-media img {
    width: 220px;
    height: 220px;
  }

  .book-event-inner {
    grid-template-columns: 1fr;
  }

  .book-event-intro {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--green-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav ul li {
    border-bottom: 1px solid var(--green-deep);
  }

  .primary-nav ul li a {
    display: block;
    padding: 0.9rem 0.1rem;
  }

  .primary-nav .btn {
    margin-top: 1rem;
    width: 100%;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
