.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(18, 79, 66, 0.07);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(15, 64, 52, 0.09); }

.site-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--green-800);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand img { width: 34px; height: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}
.nav__link {
  position: relative;
  display: block;
  padding: 26px 2px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 550;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--green-700); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 700; }

.btn--nav { justify-self: end; }
.nav-toggle,
.nav__cta-mobile { display: none; }

@media (max-width: 960px) {
  .site-header__bar { display: flex; justify-content: space-between; }
  .btn--nav { margin-left: auto; }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--green-800);
    transition: background-color 0.2s;
  }
  .nav-toggle:hover { background: var(--mint-100); }
  .nav-toggle .icon--close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
  .nav-toggle[aria-expanded="true"] .icon--close { display: block; }

  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    padding: 6px var(--gutter) 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 34px rgba(15, 64, 52, 0.12);
  }
  .nav.is-open { display: block; animation: nav-drop 0.22s ease; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__cta-mobile { padding-top: 18px; }
  .nav__cta-mobile .btn { width: 100%; }
}
@media (max-width: 380px) {
  .site-header .btn--nav { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav__cta-mobile { display: block; }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s, transform 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-800); box-shadow: 0 10px 22px rgba(18, 79, 66, 0.28); }

.btn--outline { background: #fff; border-color: var(--green-600); color: var(--green-700); }
.btn--outline:hover { background: var(--mint-100); }

.btn--light { background: #fff; color: var(--green-800); border-radius: 999px; }
.btn--light:hover { background: var(--mint-100); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; border-radius: 8px; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

.btn--sm { min-height: 38px; padding: 0 16px; border-radius: 8px; font-size: 0.8rem; }
.btn--nav { min-height: 42px; padding: 0 20px; border-radius: 8px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--green-600);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.2s; }
.link-arrow:hover { color: var(--green-800); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb [aria-hidden="true"] { opacity: 0.55; }

/* ---------- Cards & icon badges ---------- */
.card {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) {
  .card--hover:hover {
    transform: translateY(-4px);
    border-color: var(--mint-300);
    box-shadow: var(--shadow-md);
  }
}
.card__title { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }
.card__text { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mint-200);
  color: var(--green-600);
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge--sm { width: 38px; height: 38px; }
.icon-badge--sm .icon { width: 19px; height: 19px; }
.icon-badge--lg { width: 52px; height: 52px; }
.icon-badge--lg .icon { width: 24px; height: 24px; }
.icon-badge--square { border-radius: 11px; }
.icon-badge--solid { background: var(--green-600); color: #fff; }

/* Avatar (letter or initials) */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

/* ---------- Image frame (photos and illustrations) ---------- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--mint-200);
  box-shadow: 0 18px 44px rgba(15, 64, 52, 0.16);
}
.frame > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Terminal block (services / projects hero) ---------- */
.terminal {
  padding: 18px 22px 20px;
  border-radius: var(--radius-md);
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-mono);
  box-shadow: 0 16px 34px rgba(18, 79, 66, 0.24);
}
.terminal__cmd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.terminal__cmd .icon { width: 17px; height: 17px; opacity: 0.9; }
.terminal__list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: 6px 20px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
@media (min-width: 981px) and (max-width: 1200px), (max-width: 700px) {
  .terminal__list { grid-template-columns: repeat(2, max-content); }
}
@media (max-width: 430px) {
  .terminal__list { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #1f7a5e 0%, #17604e 55%, #1b6b54 100%);
  color: #fff;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: rgba(255, 255, 255, 0.075);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cta::before { width: 190px; height: 214px; right: -34px; top: -46px; }
.cta::after { width: 132px; height: 150px; right: 150px; bottom: -74px; background: rgba(255, 255, 255, 0.05); }

.cta__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px clamp(24px, 4vw, 54px);
}
.cta__icon { width: 44px; height: 44px; color: rgba(255, 255, 255, 0.92); }
.cta__divider { width: 1px; height: 62px; background: rgba(255, 255, 255, 0.3); }
.cta__title {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.22;
}
.cta__title small {
  display: block;
  margin-top: 6px;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.92);
}
.cta-section { padding-block: 8px clamp(40px, 5vw, 64px); }

/* Full-width band used on the home page */
.cta--band { border-radius: 0; background: linear-gradient(90deg, #1b6b54 0%, #14574a 100%); }
.cta--band .cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 13vw, 240px);
  padding-block: clamp(36px, 4vw, 48px);
}
.cta--band .cta__title { max-width: 16em; }

@media (max-width: 860px) {
  .cta__inner { grid-template-columns: auto 1fr; gap: 18px 22px; }
  .cta__divider { display: none; }
  .cta__title { grid-column: 2; }
  .cta__inner .btn { grid-column: 1 / -1; justify-self: start; }
  .cta--band .cta__inner { flex-direction: column; text-align: center; gap: 22px; }
}
@media (max-width: 520px) {
  .cta__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta__icon { width: 38px; height: 38px; }
  .cta__title { grid-column: 1; }
  .cta__inner .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: 56px 44px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.footer__brand img { width: 34px; }
.footer__about { max-width: 250px; line-height: 1.6; }

.footer__title { margin-bottom: 18px; color: #fff; font-size: 0.95rem; letter-spacing: 0; }
.footer__links { display: grid; gap: 11px; }
.footer__links a { transition: color 0.2s; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer__contact { display: grid; gap: 13px; }
.footer__contact li { display: flex; align-items: center; gap: 12px; }
.footer__contact .icon { width: 17px; height: 17px; color: rgba(255, 255, 255, 0.9); }
.footer__contact a { word-break: break-word; transition: color 0.2s; }
.footer__contact a:hover { color: #fff; }

.social { display: flex; gap: 14px; margin-top: 22px; }
.social a {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s, transform 0.2s;
}
.social a:hover { color: #fff; transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}
.footer__made { display: inline-flex; align-items: center; gap: 6px; }
.footer__made .icon { width: 13px; height: 13px; color: #fff; }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 44px 32px;
    text-align: center;
  }
  .footer__brand { justify-content: center; }
  .footer__about { max-width: 30ch; margin-inline: auto; }
  .footer__links { justify-items: center; }
  .footer__contact { justify-items: center; }
  .footer__contact li { justify-content: center; }
  .social { justify-content: center; }
  .footer__bar-inner { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
}

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 64, 52, 0.1);
}
.badge .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.badge--live { background: var(--green-600); color: #fff; }
.badge__pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7cf0c0;
}
.badge__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #7cf0c0;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.5); opacity: 0.9; }
  to { transform: scale(1.5); opacity: 0; }
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.chip:hover { border-color: var(--green-400); color: var(--green-700); }
.chip[aria-pressed="true"] {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: 0 8px 18px rgba(27, 107, 84, 0.24);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field__label { color: var(--ink); font-size: 0.86rem; font-weight: 650; }
.field__label abbr { margin-left: 2px; color: var(--green-600); text-decoration: none; }

.input,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1.5px solid #cfe3da;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.textarea { min-height: 148px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: #93a5ad; }
.input:hover,
.textarea:hover { border-color: var(--green-400); }
.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(31, 122, 94, 0.16);
}
.field.has-error .input,
.field.has-error .textarea { border-color: var(--danger); background: #fff8f7; }
.field.has-error .input:focus,
.field.has-error .textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14); }
.field__error { min-height: 0; color: var(--danger); font-size: 0.8rem; font-weight: 550; }
.field__error:empty { display: none; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}
