:root {
  --teal-dark: #0F6E56;
  --teal-mid: #1D9E75;
  --teal-light: #5DCAA5;
  --ink: #1A1A1A;
  --warm-gray: #5F5E5A;
  --muted-gray: #888780;
  --card: #E2E0D8;
  --white: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: 85px; /* clears the fixed .site-header (14px+14px padding + 56px logo + 1px border) */
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 1em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 720px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--card);
  padding: 14px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo img { height: 56px; width: auto; }

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.site-nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 100%;
}

.site-nav__menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.site-nav__menu a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav__menu a:hover { color: var(--teal-dark); text-decoration: none; }
.site-nav__menu a[aria-current="page"] { color: var(--teal-dark); }

@media (max-width: 680px) {
  .site-nav__toggle { display: flex; }
  .site-nav__menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    left: 0; right: 0;
    top: 85px;
    background: var(--white);
    border-bottom: 1px solid var(--card);
    padding: 8px 20px 16px;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
  }
  .site-nav__menu.is-open { display: flex; }
  .site-nav__menu li { border-top: 1px solid var(--card); }
  .site-nav__menu a { display: block; padding: 12px 0; }
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--card) 0%, var(--white) 100%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.hero__logo {
  width: 220px;
  height: auto;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--warm-gray);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero__lede {
  font-size: 1.15rem;
  color: var(--warm-gray);
  max-width: 46em;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
@media (max-width: 680px) {
  .hero__logo { width: 170px; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--teal-dark);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-mid); }
.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1px solid var(--teal-dark);
}
.btn--ghost:hover { background: var(--card); }

/* Services teaser (home) */
.services-teaser { padding: 48px 0; }
.services-teaser__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 780px) {
  .services-teaser__grid { grid-template-columns: 1fr; }
}
.service-card {
  border: 1px solid var(--card);
  border-radius: 8px;
  padding: 24px;
}
.service-card__byline,
.service-detail__byline {
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

/* CTA band */
.cta-band {
  background: var(--teal-dark);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 42em; margin-left: auto; margin-right: auto; }
.cta-band .btn--primary { background: var(--white); color: var(--teal-dark); }
.cta-band .btn--primary:hover { background: var(--card); }

/* Page header (services/about/contact/jobs/posts) */
.page-header { padding: 48px 0 24px; }
.page-header__lede { color: var(--warm-gray); font-size: 1.1rem; max-width: 46em; }

/* Services detail */
.service-detail { padding: 24px 0 48px; }
.service-detail__item {
  padding: 24px 0;
  border-top: 1px solid var(--card);
}
.service-detail__item:first-child { border-top: none; }

/* Prose (about) */
.prose-section { padding: 8px 0 56px; }
.prose-section p, .prose p { color: var(--ink); }

/* Contact */
.contact-details { padding: 8px 0 56px; }
.contact-details__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.contact-details__label {
  display: inline-block;
  min-width: 110px;
  color: var(--warm-gray);
  font-weight: 600;
}

/* Jobs grid */
.jobs-grid-section { padding: 8px 0 56px; }
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.job-card {
  color: var(--ink);
  border: 1px solid var(--card);
  border-radius: 8px;
  overflow: hidden;
  display: block;
}
.job-card:hover { text-decoration: none; border-color: var(--teal-light); }
.job-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--card);
}
.job-card__body { padding: 12px 14px; }
.job-card__body h2 { font-size: 1rem; margin-bottom: 4px; }
.job-card__date { color: var(--muted-gray); font-size: 0.85rem; margin: 0; }

/* Job single */
.job-single { padding: 40px 0 64px; }
.job-single__date { color: var(--muted-gray); margin-bottom: 4px; }
.job-single__description { color: var(--warm-gray); font-size: 1.05rem; }
.job-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.job-gallery__item { margin: 0; }
.job-gallery__item img { border-radius: 6px; }
.job-gallery__item figcaption {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin-top: 6px;
}
.byline {
  color: var(--muted-gray);
  font-size: 0.9rem;
  font-style: italic;
}

/* Posts */
.posts-list-section { padding: 8px 0 56px; }
.posts-list { list-style: none; margin: 0; padding: 0; }
.posts-list__item {
  padding: 20px 0;
  border-top: 1px solid var(--card);
}
.posts-list__item:first-child { border-top: none; }
.posts-list__date { color: var(--muted-gray); font-size: 0.85rem; }
.post-single { padding: 40px 0 64px; }
.post-single__date { color: var(--muted-gray); margin-bottom: 4px; }
.post-single__image { border-radius: 8px; margin: 16px 0; }

.empty-state {
  color: var(--muted-gray);
  padding: 32px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--card);
  padding: 32px 0;
  margin-top: 32px;
  background: var(--card);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.site-footer__logo { opacity: 0.85; height: 96px; width: auto; max-width: 100%; min-width: 0; }
.site-footer__details p { margin: 0 0 4px; color: var(--warm-gray); font-size: 0.9rem; }
.site-footer__tagline {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--teal-dark) !important;
}

@media (max-width: 480px) {
  .site-footer__logo { height: 56px; }
}
