/* ==========================================================================
   TerraGrow — sustainable agriculture services template
   Token layer derived from the reference design language
   ========================================================================== */
:root {
  --white: #fcfcfa;
  --black: #1a1a18;
  --grey: #40413e;
  --green: #5b7c00;
  --light-green: #d3e640;
  --dark-green: #394e00;
  --light-grey: #c9cac4;
  --subtle-grey: #f0f2ec;
  --line: rgba(26, 26, 24, 0.12);
  --line-soft: rgba(26, 26, 24, 0.08);
  --transparent-white: rgba(252, 252, 250, 0.25);
  --transparent-grey: rgba(64, 65, 62, 0.7);
  --shadow-soft: 0 24px 60px rgba(26, 26, 24, 0.08);

  --font-sans: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;

  --radius-pill: 4rem;
  --radius-card: 1.5rem;
  --radius-small: 0.75rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container: 1800px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

h4 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.16;
}

h5 {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.2;
}

h6 {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.3;
}

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

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

button {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  padding-block: clamp(4rem, 7vw, 8rem);
  overflow: clip;
}

.section--tight {
  padding-block: clamp(3rem, 4.5vw, 5rem);
}

.section--subtle {
  background-color: var(--subtle-grey);
}

.section--dark {
  background-color: var(--dark-green);
  color: var(--white);
}

.section--ink {
  background-color: var(--black);
  color: var(--white);
}

.stack {
  display: flex;
  flex-direction: column;
}

.text-muted {
  color: var(--transparent-grey);
}

.measure {
  max-width: 34rem;
}

.measure-wide {
  max-width: 46rem;
}

/* --------------------------------------------------------------------------
   Eyebrow / labels
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--light-green);
}

.eyebrow--light {
  color: var(--light-green);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 60rem;
}

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-7);
  align-items: end;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background-color: var(--green);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  background-color: var(--dark-green);
  transform: translateY(-1px);
}

.btn__arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--lime {
  background-color: var(--light-green);
  color: var(--black);
}

.btn--lime:hover {
  background-color: #e2f36a;
}

.btn--outline {
  background-color: transparent;
  border-color: var(--line);
  color: var(--black);
}

.btn--outline:hover {
  background-color: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn--ghost {
  background-color: rgba(252, 252, 250, 0.14);
  border-color: rgba(252, 252, 250, 0.32);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background-color: rgba(252, 252, 250, 0.24);
  border-color: rgba(252, 252, 250, 0.5);
  color: var(--white);
}

.btn--small {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--green);
}

.link-arrow svg {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 1rem;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background-color: var(--white);
  box-shadow: 0 10px 30px rgba(26, 26, 24, 0.06);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}

.nav-brand__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.nav-brand__divider {
  width: 1px;
  height: 1.4rem;
  background-color: var(--line);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  color: var(--grey);
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover {
  color: var(--black);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--black);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background-color: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: 1.25rem 1.5rem 2rem;
  background-color: var(--white);
  overflow-y: auto;
}

.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.mobile-drawer__close {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.mobile-drawer__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--transparent-grey);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 82vh, 52rem);
  margin-top: -5.25rem;
  padding-top: 9rem;
  padding-bottom: 3rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 24, 0.5) 0%,
    rgba(26, 26, 24, 0.18) 38%,
    rgba(26, 26, 24, 0.68) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--space-7);
  align-items: end;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: 0.5rem;
}

.hero__text {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(252, 252, 250, 0.88);
  max-width: 24rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(252, 252, 250, 0.24);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252, 252, 250, 0.72);
}

.page-hero {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-7);
  align-items: end;
}

.page-hero__title {
  margin-top: var(--space-4);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero__text {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   Partner strip
   -------------------------------------------------------------------------- */
.partners {
  padding-block: clamp(2rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
}

.partners__inner {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}

.partners__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--transparent-grey);
  flex: none;
}

.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex: 1;
}

.partners__item {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--grey);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Introduction
   -------------------------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.intro__statement {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: var(--space-5);
}

.intro__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  color: var(--grey);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.intro__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background-color: var(--subtle-grey);
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-soft);
}

.stat__value {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--transparent-grey);
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.feature-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 15rem;
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background-color: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 124, 0, 0.28);
  box-shadow: var(--shadow-soft);
}

.feature-card--wide {
  grid-column: span 3;
}

.feature-card--accent {
  background-color: var(--dark-green);
  border-color: var(--dark-green);
  color: var(--white);
}

.feature-card--accent .feature-card__text {
  color: rgba(252, 252, 250, 0.78);
}

.feature-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--green);
}

.feature-card--accent .feature-card__index {
  color: var(--light-green);
}

.feature-card__title {
  margin-top: auto;
}

.feature-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--transparent-grey);
}

/* --------------------------------------------------------------------------
   Service list
   -------------------------------------------------------------------------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background-color: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 124, 0, 0.3);
  box-shadow: var(--shadow-soft);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}

.service-card__index {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--transparent-grey);
}

.service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.service-card:hover .service-card__icon {
  background-color: var(--light-green);
  border-color: var(--light-green);
  color: var(--black);
}

.service-card__title {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.service-card__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--transparent-grey);
}

.service-card__link {
  margin-top: auto;
}

.service-card__media {
  border-radius: var(--radius-small);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--subtle-grey);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__media img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(252, 252, 250, 0.28);
}

.process-step__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--light-green);
}

.process-step__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(252, 252, 250, 0.75);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background-color: var(--white);
}

.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.6;
  color: var(--light-green);
}

.quote-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey);
}

.quote-card__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

.quote-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--subtle-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
}

.quote-card__name {
  font-size: 0.9375rem;
  font-weight: 500;
}

.quote-card__role {
  font-size: 0.8125rem;
  color: var(--transparent-grey);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius-card);
  isolation: isolate;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

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

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 26, 24, 0.86) 0%, rgba(57, 78, 0, 0.72) 100%);
}

.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-7);
  align-items: end;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}

.cta__title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 30ch;
  text-wrap: balance;
}

.cta__text {
  margin-top: var(--space-4);
  max-width: 30rem;
  color: rgba(252, 252, 250, 0.82);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Article / detail body
   -------------------------------------------------------------------------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.prose p {
  margin-bottom: var(--space-5);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--grey);
}

.prose p:last-child {
  margin-bottom: 0;
}

.detail-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--subtle-grey);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--grey);
}

.check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.check-list__mark {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.panel {
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background-color: var(--subtle-grey);
}

.panel--light {
  background-color: var(--white);
}

.panel__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey);
}

.field__label span {
  color: var(--green);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background-color: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(211, 230, 64, 0.35);
}

.textarea {
  min-height: 9rem;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2340413e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field__error {
  font-size: 0.8125rem;
  color: #9c2b12;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--transparent-grey);
}

.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-small);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-feedback--success {
  background-color: rgba(211, 230, 64, 0.22);
  border: 1px solid rgba(91, 124, 0, 0.35);
  color: var(--dark-green);
}

.form-feedback--error {
  background-color: #fdf1ee;
  border: 1px solid #e3b6ab;
  color: #8f2c14;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(252, 252, 250, 0.16);
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.footer-brand__text {
  margin-top: var(--space-4);
  max-width: 26rem;
  color: rgba(252, 252, 250, 0.72);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-newsletter__title {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-form .input {
  flex: 1 1 14rem;
  background-color: rgba(252, 252, 250, 0.06);
  border-color: rgba(252, 252, 250, 0.24);
  color: var(--white);
}

.newsletter-form .input::placeholder {
  color: rgba(252, 252, 250, 0.5);
}

.newsletter-feedback {
  font-size: 0.8125rem;
  min-height: 1.1rem;
  color: var(--light-green);
}

.newsletter-feedback--error {
  color: #f0b6a6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  padding-block: clamp(2rem, 3vw, 3rem);
}

.footer-col__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252, 252, 250, 0.5);
  margin-bottom: var(--space-4);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: rgba(252, 252, 250, 0.8);
}

.footer-col__links a:hover {
  color: var(--light-green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(252, 252, 250, 0.16);
  font-size: 0.8125rem;
  color: rgba(252, 252, 250, 0.55);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hero__inner,
  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .hero__aside {
    padding-bottom: 0;
  }

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

  .feature-card,
  .feature-card--wide {
    grid-column: span 2;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

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

@media (max-width: 991px) {
  .container {
    padding-inline: 1.5rem;
  }

  .nav-desktop {
    display: none;
  }

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

  .nav-actions .btn {
    display: none;
  }

  .nav-shell {
    padding-left: 1.25rem;
    justify-content: space-between;
  }

  .service-list,
  .intro__grid,
  .detail-grid,
  .section-head--split,
  .footer-top,
  .cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__inner {
    align-items: start;
    gap: var(--space-6);
  }

  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .section {
    padding-block: 3.5rem;
  }

  .hero {
    min-height: 36rem;
    padding-bottom: 2rem;
    margin-top: -4.75rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero__text {
    font-size: 1rem;
  }

  .hero__meta {
    gap: 0.5rem 1.25rem;
    font-size: 0.6875rem;
  }

  .feature-grid,
  .process-list,
  .stats,
  .form-grid,
  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card,
  .feature-card--wide {
    grid-column: auto;
    min-height: auto;
  }

  .feature-card__title {
    margin-top: var(--space-5);
  }

  .stats {
    gap: var(--space-5);
  }

  .partners__inner {
    gap: var(--space-4);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .container {
    padding-inline: 1.25rem;
  }

  .button-row,
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    justify-content: center;
  }

  .service-card,
  .feature-card,
  .quote-card,
  .panel {
    padding: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Utilities and dynamically rendered content
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section-head h2 {
  margin-top: var(--space-4);
}

.section--dark .text-muted,
.section--ink .text-muted {
  color: rgba(252, 252, 250, 0.75);
}

.service-list {
  counter-reset: service-index;
}

.service-card {
  counter-increment: service-index;
}

.service-card__index::before {
  content: counter(service-index, decimal-leading-zero);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--green);
  margin-top: 0.55rem;
}

[data-line-list]:not(.is-split) {
  white-space: pre-line;
}

.prose--pre {
  white-space: pre-line;
}

.detail-grid--spaced {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.panel__label--spaced {
  display: block;
  margin-top: var(--space-6);
}

.panel-facts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  color: var(--grey);
}

.panel .check-list {
  margin-top: var(--space-4);
}

.panel .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-6);
}

.service-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line-soft);
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.service-link:hover {
  color: var(--green);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-aside__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--subtle-grey);
}

.contact-aside__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form__title {
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}

.contact-form__title + .form-note {
  margin-bottom: var(--space-6);
}

.quote-card__name,
.quote-card__role {
  display: block;
}

@media (max-width: 991px) {
  .service-links {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* select-inset-fix:20261116:v1 */
/* Single native selects only; keep site colours, borders, sizing and interaction. */
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]){
 -webkit-appearance:none!important; -moz-appearance:none!important; appearance:none!important;
 padding-inline-end:44px!important;
 background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)!important;
 background-position:right 22px center,right 16px center!important;
 background-size:6px 6px,6px 6px!important; background-repeat:no-repeat!important;
}
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):dir(rtl){background-position:left 16px center,left 22px center!important}
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):is(.select){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2340413e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-position:right 16px center!important;background-size:14px 14px!important;background-repeat:no-repeat!important}
select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):is(.select):dir(rtl){background-position:left 16px center!important}
@media (forced-colors:active){select:not([multiple]):is(:not([size]),[size="0"],[size="1"]),select:not([multiple]):is(:not([size]),[size="0"],[size="1"]):is(.select){-webkit-appearance:auto!important;-moz-appearance:auto!important;appearance:auto!important;background-image:none!important}}
