* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(2, 6, 3, 0.48), rgba(2, 6, 3, 0.62)),
    url("../assets/images/backgrounds/leaf-tile.png") top center / 520px auto repeat,
    #07100b;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1rem 4rem;
}

.top-contact {
  margin-bottom: 1.25rem;
  text-align: center;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.top-contact p {
  margin: 0;
}

.top-contact a,
.top-contact a:visited,
.top-contact a:hover,
.top-contact a:active {
  color: #ffffff;
}

.top-contact a[x-apple-data-detectors],
.top-contact a[x-apple-data-detectors]:visited,
.top-contact a[x-apple-data-detectors]:hover,
.top-contact a[x-apple-data-detectors]:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.top-logo {
  width: min(88vw, 920px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.top-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.mailing-address {
  width: min(88vw, 920px);
  margin-top: -5.25rem;
  display: flex;
  justify-content: flex-end;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.mailing-address div {
  text-align: left;
}

.mailing-address p {
  margin: 0;
}

.tagline {
  width: 100%;
  margin-top: 3.5rem;
  text-align: center;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.55rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.tagline p {
  margin: 0;
}

.availability-row {
  width: min(88vw, 920px);
  margin-top: 9rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.availability-row p {
  margin: 0;
}

.content-card {
  width: 100%;
  margin-top: 2.5rem;
  background: #202f2d;
  border-radius: 28px;
}

.content-card--first {
  padding: 2.5rem 2rem 2.75rem;
}

.content-card--second {
  margin-top: 2rem;
  padding: 2.75rem 2rem 3rem;
  background: #536449;
}

.content-card--third {
  margin-top: 2rem;
  padding: 1.25rem 0 0.5rem;
  background: transparent;
}

.content-card--fourth {
  margin-top: 2rem;
  min-height: 16rem;
  padding: 2.75rem 2rem 3rem;
  background: #536449;
}

.history-card {
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
}

.history-card__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
  line-height: 1;
}

.history-card__body {
  max-width: 72rem;
  margin: 1.6rem auto 0;
  text-align: left;
}

.history-card__body p {
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.52;
  text-indent: 2.6rem;
}

.history-card__body p + p {
  margin-top: 1.25rem;
}

.history-card__sources {
  margin-top: 1.75rem;
  text-align: center;
}

.history-card__sources p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.4;
  text-indent: 0;
}

.aftercare-card {
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
}

.aftercare-card__title {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
}

.aftercare-card__title span {
  display: block;
}

.aftercare-list {
  margin-top: 2rem;
  display: grid;
  gap: 1.35rem;
}

.aftercare-list--before {
  margin-bottom: 2.2rem;
}

.aftercare-item {
  position: relative;
  padding-left: 1.35rem;
}

.aftercare-item::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.08rem;
  font-size: 1.2rem;
}

.aftercare-item:not(:last-child) {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(244, 239, 226, 0.18);
}

.aftercare-item h3,
.aftercare-item p {
  margin: 0;
}

.aftercare-item h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.aftercare-item p {
  margin-top: 0.35rem;
  color: rgba(244, 239, 226, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.32;
}

.techniques-card {
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
}

.techniques-card__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1;
}

.techniques-card__curve {
  margin-top: 1.25rem;
}

.techniques-card__curve svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.techniques-card__curve text {
  fill: #f4efe2;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.techniques-layout {
  margin-top: -0.25rem;
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
}

.techniques-item {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.techniques-item--center {
  text-align: center;
}

.techniques-row--split {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.techniques-item--left {
  justify-self: start;
  text-align: left;
}

.techniques-item--right {
  justify-self: end;
  text-align: right;
}

.techniques-layout > .techniques-item--center,
.techniques-focus {
  margin-top: 1rem;
}

.techniques-focus {
  text-align: center;
}

.techniques-focus__subline {
  margin: 0.35rem 0 0;
  color: rgba(244, 239, 226, 0.96);
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.2;
}

.benefits-card {
  color: #f4efe2;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.benefits-card__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
  line-height: 1;
}

.benefits-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: start;
}

.benefits-block--right {
  justify-self: end;
  width: min(100%, 24rem);
}

.benefits-block h3,
.benefits-block ul {
  margin: 0;
}

.benefits-block h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
}

.benefits-block ul {
  margin-top: 0.7rem;
  padding-left: 1.25rem;
}

.benefits-block li {
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.35;
}

.benefits-block--center {
  width: max-content;
  max-width: min(72%, 720px);
  margin: 1rem auto 0;
  text-align: left;
  transform: translateX(1.75rem);
}

.benefits-block--center h3 {
  display: block;
  width: auto;
}

.benefits-block--center ul {
  display: block;
  text-align: left;
}

@media (max-width: 540px) {
  .page-shell {
    padding: 0.8rem 1rem 3rem;
  }

  .top-contact {
    margin-bottom: 0.9rem;
    font-size: 1rem;
  }

  .top-logo {
    width: min(84vw, 920px);
  }

  .mailing-address {
    width: min(84vw, 920px);
    margin-top: -1rem;
    font-size: 0.95rem;
  }

  .tagline {
    margin-top: 2.25rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .availability-row {
    width: min(92vw, 920px);
    margin-top: 6rem;
    font-size: 0.74rem;
    gap: 0.75rem;
  }

  .content-card {
    margin-top: 2rem;
  }

  .content-card--first {
    padding: 2rem 1.15rem 2.2rem;
  }

  .content-card--second {
    padding: 2rem 1.15rem 2.3rem;
  }

  .content-card--third {
    padding: 1rem 0 0.25rem;
  }

  .content-card--fourth {
    min-height: 12rem;
    padding: 2rem 1.15rem 2.3rem;
  }

  .history-card__title {
    font-size: 1.12rem;
  }

  .history-card__body {
    margin-top: 1.1rem;
  }

  .history-card__body p {
    font-size: 0.92rem;
    line-height: 1.45;
    text-indent: 1.4rem;
  }

  .history-card__body p + p {
    margin-top: 1rem;
  }

  .history-card__sources {
    margin-top: 1.25rem;
  }

  .history-card__sources p {
    font-size: 0.8rem;
  }

  .aftercare-card__title {
    font-size: 1.24rem;
  }

  .aftercare-list {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .aftercare-list--before {
    margin-bottom: 1.75rem;
  }

  .aftercare-item {
    padding-left: 1.1rem;
  }

  .aftercare-item h3 {
    font-size: 1rem;
  }

  .aftercare-item p {
    font-size: 0.92rem;
  }

  .techniques-card__title {
    font-size: 1.12rem;
  }

  .techniques-card__curve {
    margin-top: 0.85rem;
  }

  .techniques-card__curve text {
    font-size: 1.28rem;
  }

  .techniques-layout {
    margin-top: 0.35rem;
  }

  .techniques-item {
    font-size: 0.88rem;
  }

  .techniques-row--split {
    margin-top: 0.8rem;
    gap: 1rem;
  }

  .techniques-layout > .techniques-item--center,
  .techniques-focus {
    margin-top: 0.8rem;
  }

  .techniques-focus__subline {
    font-size: 0.78rem;
  }

  .benefits-card__title {
    font-size: 1.12rem;
  }

  .benefits-grid {
    margin-top: 1rem;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .benefits-block--right {
    justify-self: stretch;
    width: auto;
  }

  .benefits-block h3 {
    font-size: 0.98rem;
  }

  .benefits-block ul {
    margin-top: 0.45rem;
    padding-left: 1rem;
  }

  .benefits-block li {
    font-size: 0.86rem;
  }

  .benefits-block--center {
    width: 100%;
    max-width: none;
    margin-top: 1.2rem;
    text-align: left;
    transform: none;
  }

  .benefits-block--center h3 {
    display: block;
    width: auto;
  }

  .benefits-block--left,
  .benefits-block--right,
  .benefits-block--center {
    text-align: left;
  }
}
