/* ===== Variables ===== */
:root {
  --accent: #5fbb4b;
  --accent-dark: #4a9639;
  --danger: #c0392b;
  --text: #222222;
  --text-light: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f6f8f5;
  --border: #e3e6e1;
  --header-height: 80px;
  --max-width: 1100px;
}

/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

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

.padded {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/*section {
  padding: 3.5rem 0;
}*/

section.alt {
  background: var(--bg-alt);
}

/* ===== Header / Navbar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand:hover {
  text-decoration: none;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

/* Hamburger toggle (checkbox hack: no JS required, but we also add a tiny
   script.js for keyboard/aria support) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-links a {
  display: block;
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ===== Collapsible behavior (mobile) ===== */
@media (max-width: 760px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    border-left-color: var(--accent);
    background: var(--bg-alt);
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 60vh;
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ===== Hero banner (image on top of every page) ===== */
/* Each page sets its own background-image inline; this just sets how it's displayed. */
.hero-banner {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 13, 0.55);
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-banner .btn {
  background: #fff;
  color: var(--accent-dark);
}

.hero-banner .btn:hover {
  background: #eef7ec;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 3.5px solid #fff;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--accent-dark);
  text-decoration: none;
}

/* ===== Hero (text content, used inside .hero-banner) ===== */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.00rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.70rem 1.70rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background: var(--accent);
}

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

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== Cards / Grid ===== */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, 1fr);
}

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

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

.card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(95, 187, 75, 0.15);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-light);
}

.card-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Service cards (homepage, with background image media) ===== */
.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card .card-media {
  position: relative;
  height: 150px;
  background-size: cover;
  background-position: center;
}

.service-card .icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

/* ===== Service list (compact row layout) ===== */
.service-list {
  max-width: 820px;
  margin: 0 auto;
}

a.service-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  color: inherit;
  transition: background 0.2s ease;
}

.service-list a.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

a.service-row:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.service-row-media {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.service-row-body {
  flex: 1;
  min-width: 0;
}

.service-row-body h3 {
  margin-bottom: 0.35rem;
}

.service-row-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.service-row-arrow {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--accent-dark);
  transition: transform 0.2s ease;
}

a.service-row:hover .service-row-arrow {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  a.service-row {
    gap: 1rem;
    padding: 1.1rem 0.5rem;
  }

  .service-row-media {
    width: 68px;
    height: 68px;
  }

  .service-row-arrow {
    font-size: 1.1rem;
    margin-top: 0.15rem;
  }
}

/* ===== Section headings ===== */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-light);
}

/* ===== Scroll-in reveal (subtle motion as sections enter the viewport) ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Stats bar (homepage credibility strip) ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 0 1rem;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: left;
  }

  .stat-item {
    padding: 0.85rem 0;
  }

  .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  section:has(.stats-bar) {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ===== Experience / trust statement ===== */
.experience {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 3rem;
  align-items: center;

  padding-top: 3em;
  padding-bottom: 3em;
}

@media (max-width: 760px) {
  .experience {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.experience-image {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.experience-content {
  text-align: left;
}

.experience .eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  /*background: rgba(95, 187, 75, 0.15);*/
  padding: 0.3rem 0.00rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.experience h2 {
  font-size: 1.40rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.experience-text {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* ===== Page header (non-home pages) ===== */
.page-header {
  padding: 4.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-header p {
  color: rgba(255, 255, 255, 0.88);
}

/* ===== Forms (contact page) ===== */
.form-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 187, 75, 0.2);
}

input.field-error,
textarea.field-error {
  border-color: var(--danger);
}

input.field-error:focus,
textarea.field-error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.form-status[data-state="success"] {
  display: block;
  color: var(--accent-dark);
}

.form-status[data-state="error"] {
  display: block;
  color: var(--danger);
}

.contact-info {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 3rem;
  text-align: center;
}

@media (max-width: 760px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* ===== Tables (corporate governance) ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-alt);
  font-weight: 600;
}

.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.doc-list .tag {
  font-size: 0.8rem;
  color: var(--accent-dark);
  background: rgba(95, 187, 75, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ===== Feature list (service pages) ===== */
.feature-list {
  max-width: 720px;
  margin: 0 auto 1rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "\2713";
  color: var(--accent-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Chip list (tag-style items) ===== */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.chip:hover {
  border-color: var(--accent);
  background: rgba(95, 187, 75, 0.08);
  transform: translateY(-2px);
}

/* ===== Value columns (big typographic treatment) ===== */
.value-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 760px) {
  .value-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.value-block {
  position: relative;
  padding-top: 3rem;
}

.value-char {
  position: absolute;
  top: -1.75rem;
  left: -0.25rem;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(95, 187, 75, 0.16);
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.value-block h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

/* ===== Numbered section heading (governance page) ===== */
.gov-heading {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.gov-heading .gov-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(95, 187, 75, 0.25);
  flex-shrink: 0;
}

.gov-heading h2 {
  font-size: 1.7rem;
  margin: 0;
}

@media (max-width: 600px) {
  .gov-heading .gov-number {
    font-size: 2.25rem;
  }
}

.value-block p {
  position: relative;
  z-index: 1;
  color: var(--text-light);
}

/* ===== Feature rows (stacked, text-heavy items) ===== */
.feature-rows {
  max-width: 820px;
  margin: 0 auto;
}

/* ===== Accordion (collapsible list, text-heavy items) ===== */
.accordion {
  max-width: 760px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border);
}

.accordion-item summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary:hover {
  background-color: var(--bg-alt);
}

.accordion-item summary:hover .row-number,
.accordion-item summary:hover .accordion-title {
  color: var(--accent-dark);
}

.accordion-item .row-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.accordion-title {
  font-weight: 600;
  flex: 1;
  transition: color 0.2s ease;
}

.accordion-item[open] .accordion-title {
  color: var(--accent-dark);
}

/* Animated plus/minus icon: two bars that rotate into a single line */
.accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent-dark);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.accordion-item[open] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

/* Smoothly animate the content open/closed. include.js measures each
   item's real content height and transitions max-height to that exact
   value, so every item animates for its own correct duration regardless
   of how much text it has (a fixed max-height target makes short items
   reach their real height almost instantly instead of sliding; CSS
   grid-template-rows 0fr->1fr avoids that in theory but isn't reliably
   animatable across browsers). Once settled open, max-height:none lets
   content reflow naturally (e.g. on resize) without being clipped. */
.accordion-item .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-item[open] .accordion-content {
  max-height: none;
}

.accordion-content-inner {
  overflow: hidden;
}

.accordion-content-inner p {
  margin: 0;
  padding: 0 0.75rem 1.25rem 2.7rem;
  color: var(--text-light);
}

.feature-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:first-child {
  padding-top: 0;
}

.feature-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-row-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.feature-row .row-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.feature-row h3 {
  margin: 0;
}

.feature-row p {
  color: var(--text-light);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

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

.footer-grid h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
