:root {
  --ink: #18211f;
  --muted: #5d6965;
  --paper: #f7f8f3;
  --white: #ffffff;
  --line: #dbe0d7;
  --forest: #1d6f58;
  --moss: #7aa35d;
  --amber: #d3a23f;
  --charcoal: #101716;
  --shadow: 0 24px 70px rgba(22, 31, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 23, 22, 0.82), rgba(16, 23, 22, 0));
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  text-decoration: none;
}

.brand-logo {
  width: clamp(172px, 18vw, 228px);
  height: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
  object-position: center;
}

.site-nav {
  gap: clamp(14px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 112px clamp(20px, 6vw, 82px) 72px;
}

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

.hero-media {
  background-image: url("assets/fortera-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 23, 22, 0.9) 0%, rgba(16, 23, 22, 0.72) 42%, rgba(16, 23, 22, 0.2) 100%),
    linear-gradient(180deg, rgba(16, 23, 22, 0.25) 0%, rgba(16, 23, 22, 0.68) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: #e8efe8;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.48);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  background: #eef3e8;
  transform: translateY(-2px);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 82px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.stacked-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.stacked-copy p:last-child,
.service-card p:last-child,
.why-grid p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.services {
  background: var(--white);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 36px;
}

.section-heading h2 {
  max-width: 850px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 292px;
  padding: 28px;
  background: var(--white);
}

.service-card p,
.why-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}

.accent-card {
  color: var(--white);
  background: var(--forest);
}

.accent-card p {
  color: rgba(255, 255, 255, 0.82);
}

.why {
  background:
    linear-gradient(180deg, rgba(247, 248, 243, 0.96), rgba(247, 248, 243, 0.96)),
    linear-gradient(120deg, var(--moss), var(--amber));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.why-grid article {
  padding-top: 24px;
  border-top: 3px solid var(--forest);
}

.number {
  display: block;
  margin-bottom: 24px;
  color: var(--amber);
  font-weight: 800;
}

.contact {
  color: var(--white);
  background: var(--charcoal);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 7vw, 96px);
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}

.contact-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-copy a {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 26px clamp(20px, 6vw, 82px);
  color: rgba(255, 255, 255, 0.66);
  background: #0b100f;
  font-size: 0.9rem;
}

.site-footer p {
  width: min(1180px, 100%);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(16, 23, 22, 0.92), rgba(16, 23, 22, 0.58)),
      linear-gradient(180deg, rgba(16, 23, 22, 0.18), rgba(16, 23, 22, 0.76));
  }

  .section-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand-logo {
    width: 176px;
  }

  .hero {
    min-height: 86vh;
    padding: 104px 20px 52px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .hero-copy,
  .stacked-copy,
  .contact-copy {
    font-size: 1rem;
  }

  .section {
    padding: 64px 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }
}
