:root {
  --dark-green: #375954;
  --sand: #dacec4;
  --clay: #a86752;
  --stone: #c6b79a;
  --light-green: #3f7f79;
  --bg: #f8f5f3;
  --white: #ffffff;
  --beige: #908479;
  --black: #08070b;
  --dark: rgb(53, 52, 52);
  --cards-bg: #2b4a46;
  --container: min(1440px, 100% - 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background: var(--bg);
  font-family: "neue-haas-unica", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.heading-xl {
  margin: 0;
  font-size: clamp(49px, 6vw, 61px);
  font-weight: 300;
  line-height: 1.1;
}

.heading-lg {
  margin: 0;
  font-size: clamp(31px, 4vw, 41px);
  font-weight: 300;
  line-height: 1.2;
}

.body-lg,
.body-md {
  margin: 0;
}

.body-lg {
  font-size: 16px;
  line-height: 1.6;
}

.body-md {
  font-size: 14px;
  line-height: 1.6;
}

.label {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

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

.btn--white:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--outline {
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--dark-green);
}

.btn--small {
  min-height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 24px 0 36px;
  background: var(--dark-green);
  color: var(--white);
}

.site-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-header__left,
.site-header__right {
  display: flex;
  align-items: center;
}

.site-header__right {
  justify-content: flex-end;
}

.site-header__logo {
  justify-self: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--dark-green);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.site-nav a {
  position: relative;
  padding-bottom: 7px;
  overflow: hidden;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.site-nav a:hover::after {
  transform: translateX(0);
}

.site-nav__left,
.site-nav__right {
  display: flex;
  gap: 24px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--dark-green);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 388px;
  background: linear-gradient(0deg, var(--bg) 21.53%, rgba(248, 245, 243, 0) 100%);
  pointer-events: none;
}

.hero::before {
  top: 0;
  transform: rotate(-180deg);
}

.hero::after {
  bottom: 0;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(55, 89, 84, 0.08) 0 80px, transparent 81px),
    radial-gradient(circle at 60% 20%, rgba(55, 89, 84, 0.06) 0 120px, transparent 121px),
    radial-gradient(circle at 80% 70%, rgba(55, 89, 84, 0.07) 0 100px, transparent 101px),
    radial-gradient(circle at 30% 80%, rgba(55, 89, 84, 0.05) 0 140px, transparent 141px);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 120px;
}

.hero__line {
  margin: 0;
  font-size: clamp(61px, 14vw, 170px);
  font-weight: 400;
  line-height: 0.95;
  white-space: nowrap;
}

.hero__line--left {
  align-self: flex-start;
}

.hero__line--right {
  margin-top: 23px;
  align-self: flex-end;
}

/* Story */
.story {
  margin-bottom: 16px;
  padding: 0 12px;
}

.story__bg {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 736px;
  padding-bottom: 84px;
  border-radius: 50px;
  overflow: hidden;
  color: var(--white);
  background: url("/images/clouds-bg.jpg") center / cover no-repeat;
}

.story__bg::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: min(932px, 70%);
  border-radius: 50px 0 0 50px;
  background: linear-gradient(90deg, #000 -8.72%, rgba(0, 0, 0, 0) 82.09%);
  opacity: 0.8;
}

.story__inner {
  position: relative;
  z-index: 1;
  max-width: 446px;
  margin-left: clamp(22px, 6vw, 94px);
}

.story__inner p {
  margin: 14px 0 33px;
}

.story__cloud {
  position: absolute;
  right: -1200px;
  opacity: 0.2;
  pointer-events: none;
  animation: cloud-drift 25s linear infinite;
}

.story__cloud--1 {
  top: 0;
}

.story__cloud--2 {
  bottom: 0;
}

@keyframes cloud-drift {
  from { transform: translateX(100%); }
  to { transform: translateX(-2400px); }
}

/* Slides */
.slides {
  background: var(--dark-green);
  color: var(--white);
}

.slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.slide__content {
  display: flex;
  align-items: center;
  padding: 120px 24px 120px clamp(24px, 6vw, 118px);
}

.slide__text {
  max-width: 496px;
}

.slide__text p {
  margin: 19px 0 41px;
}

.slide__media {
  min-height: 100vh;
}

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

.slide:not(:last-child) .slide__media {
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding-top: 34px;
  background: var(--dark-green);
  color: var(--white);
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 86px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--cards-bg);
}

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 26px;
  text-align: center;
}

.cta-card:nth-child(2)::before,
.cta-card:nth-child(2)::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--white);
  opacity: 0.2;
}

.cta-card:nth-child(2)::before {
  left: 0;
}

.cta-card:nth-child(2)::after {
  right: 0;
}

.cta-card__inner {
  max-width: 322px;
}

.cta-card p {
  margin: 11px 0 21px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 84px;
}

.footer-tagline {
  margin: 12px 0 0;
  font-size: clamp(36px, 8vw, 92px);
  font-weight: 300;
  line-height: 1;
}

.footer-links {
  display: flex;
  gap: 48px;
  padding: 48px 0 51px;
  border-top: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
}

.footer-links__left {
  width: 28%;
}

.footer-links__left p,
.footer-col a {
  margin: 0 0 11px;
}

.footer-contact strong,
.footer-col strong,
.footer-trelli strong {
  display: block;
  margin-bottom: 11px;
  font-weight: 500;
}

.footer-social {
  display: flex;
  gap: 18px;
  margin: 23px 0 31px;
}

.footer-links__right {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0 19px;
}

.footer-bottom__links {
  display: flex;
  gap: 15px;
}

.footer-bottom__links a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-left: 15px;
  background: var(--white);
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .slide__content {
    padding: 120px 24px;
    border-radius: 0 0 50px 50px;
  }

  .slide__media {
    min-height: 542px;
    margin-top: -50px;
  }

  .cta-cards {
    margin-bottom: 80px;
  }

  .footer-links {
    flex-direction: column;
  }

  .footer-links__left,
  .footer-links__right {
    width: 100%;
  }

  .footer-links__right {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .hero__line {
    white-space: normal;
  }

  .story__bg {
    min-height: 616px;
  }

  .cta-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-inline: auto;
  }

  .cta-card:nth-child(2)::before,
  .cta-card:nth-child(2)::after {
    width: 100%;
    height: 1px;
  }

  .cta-card:nth-child(2)::before {
    top: 0;
    left: 0;
  }

  .cta-card:nth-child(2)::after {
    top: auto;
    bottom: 0;
    right: auto;
  }

  .footer-tagline {
    line-height: 1.1;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* Content pages & lists */
.page {
  padding: 220px 0 120px;
}

.page__inner {
  max-width: 820px;
}

.page__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 61px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark-green);
}

.page__date {
  display: block;
  margin-bottom: 24px;
  color: var(--beige);
}

.page__image {
  width: 100%;
  border-radius: 24px;
  margin: 24px 0 32px;
}

.page__body {
  font-size: 17px;
  line-height: 1.7;
}

.page__body p {
  margin: 0 0 20px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 24px rgba(8, 7, 11, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(8, 7, 11, 0.12);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.post-card__body {
  padding: 24px;
}

.post-card__body time {
  color: var(--beige);
  font-size: 13px;
}

.post-card__body h2 {
  margin: 8px 0 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--dark-green);
}

.post-card__body p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .page {
    padding: 160px 0 80px;
  }

  .post-list {
    grid-template-columns: 1fr;
  }
}
