:root {
  --teal: #0b7a66;
  --teal-light: #16b395;
  --teal-dark: #053c32;
  --ink: #202b37;
  --muted: #414141;
  --gray: #a7a7a6;
  --gray-light: #d4d4d2;
  --paper: #ffffff;
  --paper-soft: #f7f8f9;
  --white: #fcfcfc;
  --black: #080808;
  --header-h: 80px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", Avenir, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--white);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1040px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(65, 65, 65, 0.1);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

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

.site-nav a {
  display: block;
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(11, 122, 102, 0.12);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(65, 65, 65, 0.15);
  border-radius: 10px;
  background: var(--paper);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(460px, 72vh, 620px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
  filter: brightness(1.08) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 8, 8, 0.28) 0%, rgba(8, 8, 8, 0.12) 55%, rgba(8, 8, 8, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.05) 0%, rgba(8, 8, 8, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 4rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  margin: 0;
  max-width: 38ch;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Sections shared */
.section {
  padding: 5rem 0;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

.section-intro,
.about-lead {
  margin: 0 auto 3rem;
  max-width: 52rem;
  font-size: 1.08rem;
  line-height: 1.8;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

/* About */
.about {
  background: linear-gradient(180deg, #4a4a4a 0%, var(--muted) 100%);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(176, 169, 134, 0.3);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 179, 149, 0.45);
}

.pillar h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--teal-light);
}

.pillar p,
.pillar li {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.pillar li + li {
  margin-top: 0.4rem;
}

/* Services */
.services {
  background:
    linear-gradient(180deg, rgba(32, 43, 55, 0.88), rgba(11, 122, 102, 0.45)),
    url("../assets/page-bg.jpg") center / cover fixed;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 179, 149, 0.5);
  background: rgba(11, 122, 102, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.service-card--wide {
  grid-column: 1 / -1;
  max-width: 34rem;
  justify-self: center;
  width: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--teal-light);
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.service-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* Clients */
.clients {
  background: var(--paper-soft);
  color: var(--ink);
}

.clients .section-title {
  color: var(--ink);
}

.clients .section-intro {
  color: #555;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1.5rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  min-height: 120px;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.client-logo img {
  width: auto;
  height: 64px;
  max-width: 280px;
  object-fit: contain;
}

.client-logo--banrural {
  padding: 1.1rem 1.15rem;
}

.client-logo--banrural img {
  height: 76px;
  max-width: 270px;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand .logo-image--footer {
  height: 46px;
  max-width: 180px;
  filter: brightness(0) invert(1);
}

.footer-contact h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.footer-contact p {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact a {
  color: var(--teal-light);
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .pillars,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card--wide {
    grid-column: span 2;
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
  }

  .client-logo {
    width: auto;
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(65, 65, 65, 0.1);
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 280px;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 0.15rem;
  }

  .site-nav a {
    text-align: center;
  }

  .pillars,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card--wide {
    grid-column: auto;
  }

  .hero-content {
    padding-block: 5.5rem 3.5rem;
  }

  .client-logo {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .pillar,
  .client-logo,
  .nav-toggle span {
    transition: none;
  }
}
