/* EA Consulting & Training - single page matching reference layout */
:root {
  --color-bg-page: #f5f0e8;
  --color-bg-light: #e5ddc9;
  --color-bg-olive: #5c5a45;
  --color-text-main: #2e2b25;
  --color-text-muted: #8f8a7a;
  --color-border-soft: rgba(0, 0, 0, 0.15);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --pad-mobile: 1.5rem;
  --pad-desktop: 2.3rem;
}

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

body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("media/background.jpg") center/cover repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 0.9rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.list {
  margin: 0 0 0.5rem 1.2rem;
  padding: 0;
}

.list li {
  margin-bottom: 0.35rem;
}

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

/* Layout helpers */
.container {
  width: 100%;
  margin: 0 auto;
}

.inner-hero {
  width: min(90vw, 1300px);
  margin: 0 auto;
}

.content-row {
  padding: 0;
}

.content-inner {
  width: 100vw;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.content-inner .image-block {
  order: 1;
}

.content-inner .text-block {
  order: 2;
}

.hide-mobile {
  display: none;
}

.text-block {
  padding: var(--pad-mobile);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  text-align: left;
  min-height: 40vh;
}

.text-block .btn {
  margin-top: 0.3rem;
}

.image-block {
  min-height: 40vh;
  background-size: 105%;
  background-position: center;
  transition: background-size 0.8s ease;
}

.image-block:hover,
.image-block:focus-visible {
  background-size: 112%;
}
.tall {
  min-height: 50vh;
}

.olive {
  background: var(--color-bg-olive);
  color: #f7f4ec;
}

.olive p,
.olive li {
  color: rgba(247, 244, 236, 0.88);
}

.beige {
  background: var(--color-bg-light);
  color: var(--color-text-main);
}

.beige-alt {
  background: #eae2cf;
  color: var(--color-text-main);
}

.beige-deep {
  background: #e0d5bd;
  color: var(--color-text-main);
}

.beige-soft {
  background: #eee6d6;
  color: var(--color-text-main);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  background: transparent;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  width: 100vw;
  margin: 0 auto;
  background: transparent;
}

.hero-left,
.hero-right {
  padding: 0;
  min-height: 40vh;
}

.hero-left {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-right {
  background: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border-soft);
  background: transparent;
  color: inherit;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(92, 90, 69, 0.08);
  transform: translateY(-1px);
}

.btn.light {
  background: #f3ecde;
  border-color: rgba(247, 244, 236, 0.7);
  color: #2e2b25;
}

.btn.light:hover,
.btn.light:focus-visible {
  background: #efe6d5;
}

.button-group .btn {
  width: auto;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg-olive);
  color: #f7f4ec;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.brand small {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  color: rgba(247, 244, 236, 0.75);
}

.menu-toggle {
  background: transparent;
  color: #f7f4ec;
  border: 1px solid rgba(247, 244, 236, 0.5);
  border-radius: 4px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.nav-links a {
  padding: 0.55rem 0.3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #f7f4ec;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-links.open {
  display: flex;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--color-border-soft);
  background: #ffffff;
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  min-height: 130px;
}

/* Footer */
.footer {
  background: var(--color-bg-olive);
  color: #f7f4ec;
  text-align: center;
  padding: 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
}

.fade-in.animate {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop adjustments */
@media (min-width: 820px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: auto;
  }

  .hero-split {
    grid-template-columns: 1fr 1fr;
    width: 80vw;
  }

  .content-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 80vw;
  }

  /* reset ordering on desktop */
  .content-inner > * {
    order: 0;
  }

  .hide-mobile {
    display: block;
  }

  .hero-left,
  .hero-right,
  .text-block {
    padding: var(--pad-desktop);
  }

  .hero-left {
    justify-items: start;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button-group .btn {
    width: auto;
  }
}
