:root {
  --bg: #f4f2eb;
  --surface: rgba(255, 255, 255, 0.85);
  --ink: #18211d;
  --ink-soft: #41514a;
  --line: rgba(24, 33, 29, 0.08);
  --brand: #264d43;
  --brand-deep: #17312a;
  --accent: #9a6a3a;
  --stat-blue: #c2cfd3;
  --stat-tan: #e3c8b4;
  --stat-sage: #c5ccb5;
  --hero-panel: rgba(255, 250, 243, 0.92);
  --shadow: 0 20px 60px rgba(21, 34, 29, 0.1);
  --radius: 16px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.page-shell {
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 242, 235, 0.94);
  border-bottom: 1px solid rgba(24, 33, 29, 0.08);
}

.site-header .inner,
.site-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.brand img {
  width: 74px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-size: 0.84rem;
  max-width: 14rem;
  line-height: 1.1;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(38, 77, 67, 0.1);
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand-deep);
  color: white;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
}

.section {
  padding: 4.5rem 0;
}

.section.tight {
  padding-top: 2rem;
}

.eyebrow {
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}
.lede,
.intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52rem;
}

.hero-container {
  background: var(--bg);
  padding: 1.5rem 0;
}

.hero {
  border-radius: var(--radius);
  margin: 0 1rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  z-index: 2;
  position: relative;
  align-items: center;
}

.hero-content h1 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 25ch;
  margin-bottom: 1.5rem;
}

.hero-content .intro {
  color: rgba(255,255,255,0.9);
  max-width: 45ch;
  font-size: 1.1rem;
}

.eyebrow.white {
  color: #fff;
  opacity: 0.8;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel.translucent {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  color: white;
}

.panel.translucent .eyebrow {
  color: white;
  margin-bottom: 0.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: white;
}

.small {
  font-size: 0.85rem;
  line-height: 1.4;
}

.button-secondary.outline {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.button-secondary.outline:hover {
  background: white;
  color: var(--brand-deep);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem;
  text-align: left;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-card.dark-green {
  background: var(--brand);
  color: white;
}
.stat-card.light-blue {
  background: var(--stat-blue);
  color: var(--brand-deep);
}
.stat-card.tan {
  background: var(--stat-tan);
  color: var(--brand-deep);
}
.stat-card.sage {
  background: var(--stat-sage);
  color: var(--brand-deep);
}

.flagship-panel {
  background: var(--brand-deep);
  color: white;
  padding: 0;
  overflow: hidden;
}

.flagship-panel.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.flagship-content {
  padding: 4rem;
}

.flagship-panel h2, .flagship-panel p {
  color: white;
}

.flagship-image {
  height: 100%;
}

.flagship-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button.flagship-cta {
  background: var(--accent);
}

.button.flagship-cta:hover {
  background: #a87b4b; /* slightly lighter than --accent */
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
}

.case-studies-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel.translucent-dark {
  background: var(--brand);
  color: white;
  padding: 1.5rem;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.text-link.white {
  color: white;
  font-weight: 500;
  margin-top: 1rem;
  display: inline-block;
}

.solution-card {
  overflow: hidden;
  padding: 0 !important;
  background: white;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--line);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .hero-grid, .stat-grid, .flagship-grid, .case-studies-grid, .flagship-panel.split-screen {
    grid-template-columns: 1fr;
  }
  .flagship-content {
    padding: 2rem;
  }
  .flagship-image {
    height: 300px;
    order: -1; /* Image on top for mobile */
  }
}

.hero-copy h1 {
  max-width: 30ch;
  line-height: 0.98;
}

.hero-aside,
.stack {
  display: grid;
  gap: 1rem;
}

.hero-aside .panel {
  background: var(--hero-panel);
}

.hero-panel-title {
  margin-bottom: 0.55rem;
  font-size: 1.55rem;
  line-height: 1.08;
}

.case-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.case-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-card-content h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.case-card-content p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.case-card-content .button-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.panel.dark {
  background: linear-gradient(180deg, #19352e 0%, #122621 100%);
  color: #edf3ef;
}

.panel ul,
.solution-card ul,
.contact-card ul,
.timeline ul {
  padding-left: 1rem;
  margin: 0;
}

.actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.button {
  background: var(--brand-deep);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 49, 42, 0.2);
}

.button-secondary {
  background: rgba(38, 77, 67, 0.08);
  color: var(--brand-deep);
}

.hero-copy .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f8f5ef;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-secondary:hover {
  background: rgba(38, 77, 67, 0.15);
  transform: translateY(-2px);
}

.button-secondary.small {
  min-height: 2.2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
}

.stat-grid,
.card-grid,
.resource-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid.four,
  .card-grid.three {
    grid-template-columns: 1fr;
  }
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two,
.resource-grid {
  grid-template-columns: repeat(2, 1fr);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 2rem;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

.image-panel {
  overflow: hidden;
  min-height: 24rem;
}

.image-panel img {
  width: 100%;
  height: 100%;
}

.profile-placeholder {
  min-height: 15rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(145deg, rgba(38, 77, 67, 0.12), rgba(154, 106, 58, 0.14)),
    rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

.profile-placeholder strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-deep);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-step {
  padding-left: 1rem;
  border-left: 2px solid rgba(154, 106, 58, 0.45);
}

.page-hero {
  padding: 3.5rem 0 1.25rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.page-hero-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64)),
    linear-gradient(120deg, rgba(38, 77, 67, 0.16), rgba(154, 106, 58, 0.08));
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 33, 29, 0.16);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.86);
}

.contact-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(24, 33, 29, 0.08);
  background: rgba(250, 246, 238, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .contact-grid,
  .about-grid,
  .flagship-grid,
  .stat-grid,
  .card-grid.three,
  .card-grid.two,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .site-header .inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

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

  .site-nav a {
    border-radius: 16px;
  }

  .brand img {
    width: 60px;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .brand-subtitle {
    max-width: none;
  }
}
