@font-face {
  font-family: "Outfit";
  src: url("./fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #172422;
  --muted: #4d625d;
  --line: #cbdcd4;
  --paper: #f8fbf9;
  --soft: #e6f2ec;
  --surface: #ffffff;
  --accent: #c93632;
  --accent-dark: #172422;
  --sand: #f8eee9;
  --clay: #9dbcb0;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-heading: "Outfit", "Segoe UI", sans-serif;
}

html {
  scroll-padding-top: 80px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 64px));
}

.header {
  min-height: 76px;
  background: rgb(248 251 249 / 96%);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.header-inner {
  min-height: 76px;
}

.logo-link {
  width: 152px;
  height: 44px;
  border-radius: 6px;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.before-title {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.01;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  font-weight: 700;
}

h3 {
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.18;
  font-weight: 650;
}

.description {
  color: var(--muted);
  line-height: 1.65;
}

.btn-primary,
form button {
  border-radius: 6px;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  letter-spacing: 0;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.btn-primary:hover,
form button:hover {
  border-color: #a72d2a;
  background: #a72d2a;
  color: #fff;
}

.btn-primary:active,
form button:active {
  transform: translateY(1px);
}

.btn-text {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.btn-text::after {
  content: "→";
  font-family: inherit;
  font-size: 18px;
  line-height: 0;
  transition: transform 180ms ease;
}

.btn-text:hover::after {
  transform: translateX(4px);
}

.banner-carousel {
  height: min(700px, 88svh);
  min-height: 610px;
  padding-top: 76px;
  background: var(--paper);
}

.hero-slide {
  background: var(--paper);
}

.hero-grid {
  min-height: 100%;
}

.hero-content {
  width: min(490px, 44%);
  padding: 44px 0 98px;
}

.hero-content h1 {
  max-width: 500px;
  font-size: clamp(40px, 4vw, 56px);
}

.hero-content .description {
  max-width: 40ch;
  font-size: 16px;
}

.box-banner {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: none;
}

.thumb-banner {
  clip-path: none;
  background: var(--soft);
}

.thumb-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}

.carousel-number {
  right: 24px;
  bottom: 20px;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 1px 4px rgb(0 0 0 / 25%);
}

.hero-content .btn-primary {
  bottom: 38px;
}

@media (min-width: 861px) {
  .hero-slide:first-child .thumb-banner img {
    transform: scale(1.62);
    transform-origin: left center;
  }

  .hero-slide:nth-child(2) .thumb-banner img {
    object-position: center 20%;
  }

}

@media (min-width: 621px) {
  .hero-slide:nth-child(2) .hero-content {
    margin-left: auto;
    align-self: start;
    padding-top: clamp(30px, 5vw, 65px);
    padding-bottom: 0;
  }

  .hero-slide:nth-child(2) .hero-content .btn-primary {
    position: absolute;
    right: 0;
    bottom: 38px;
    left: auto;
  }

  .hero-slide:nth-child(3) .thumb-banner img {
    object-position: center 30%;
    transform: scale(1.5);
    transform-origin: left top;
  }
}

.section-about {
  background: var(--paper);
}

.about-grid {
  gap: clamp(38px, 7vw, 100px);
}

.img-about {
  min-height: 540px;
}

.thumb-back,
.thumb-front {
  box-shadow: none;
}

.thumb-back {
  height: 470px;
}

.thumb-front {
  height: 350px;
  border: 8px solid var(--paper);
}

.about-copy h2 {
  max-width: 14ch;
}

.about-copy .description {
  max-width: 53ch;
}

.section-count {
  padding: 0 0 76px;
  background: var(--paper);
}

.box-count {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.count-item {
  min-height: 130px;
  padding: 28px 14px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.title-count {
  color: var(--ink);
  font-size: clamp(32px, 3.4vw, 42px);
}

.text-count {
  color: var(--muted);
  font-size: 13px;
}

.section-action {
  min-height: 440px;
  padding: 92px 0;
  background: var(--soft);
  color: var(--ink);
}

.section-action h2,
.section-action .before-title {
  color: var(--ink);
}

.section-action .before-title {
  color: var(--accent);
  opacity: 1;
}

.section-action h2 {
  max-width: 17ch;
}

.section-action p:not(.before-title) {
  max-width: 54ch;
  width: 54%;
  color: var(--muted);
  font-size: 16px;
}

.box-action {
  width: 39%;
  opacity: 1;
}

.box-action img {
  object-position: center 35%;
  filter: none;
}

.section-services {
  background: var(--surface);
}

.row-services {
  gap: 14px;
  margin-top: 48px;
}

.col-services,
.col-post,
.testimonial-card,
.balance-tool,
.service-highlights {
  border-radius: 6px;
  box-shadow: none;
}

.col-services {
  min-height: 342px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease;
}

.col-services:nth-child(even),
.col-post:nth-child(even) {
  transform: none;
}

.col-services:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 15px;
}

.col-services .description {
  font-size: 14px;
  line-height: 1.58;
}

.section-case {
  background: var(--paper);
}

.case-heading {
  display: block;
}

.case-heading > .description {
  width: min(720px, 100%);
  max-width: 100%;
  margin-top: 18px;
  justify-self: auto;
  white-space: normal;
}

.case-grid {
  gap: 8px;
  margin-top: 42px;
}

.case-card {
  min-height: 430px;
}

.case-card::after {
  background: linear-gradient(0deg, rgb(16 24 23 / 78%), transparent 46%);
}

.case-card p {
  color: #f2f7f4;
  text-transform: none;
}

.case-card h3 {
  color: #fff;
}

.contact-band {
  background: var(--paper);
}

.contact-grid {
  align-items: start;
}

.balance-tool {
  border: 1px solid var(--line);
  background: var(--surface);
}

.balance-bar {
  border-color: var(--line);
}

.balance-bar span:first-child {
  background: var(--accent);
  color: #fff;
}

.balance-bar span:last-child {
  background: var(--soft);
}

.section-testimonials {
  background: var(--soft);
}

.testimonial-card {
  border-color: var(--line);
  background: var(--surface);
}

.testimonial-controls button {
  border-radius: 6px;
  background: var(--surface);
}

.testimonial-controls button:hover {
  background: var(--accent);
  color: #fff;
}

.section-blog {
  background: var(--sand);
}

.section-blog .center-title {
  max-width: 20ch;
}

.row-blog {
  gap: 14px;
  margin-top: 46px;
}

.col-post {
  border: 1px solid rgb(23 36 34 / 8%);
  background: var(--surface);
}

.thumb-blog::after {
  content: none;
}

.thumb-blog img {
  height: 210px;
}

.col-post h3 {
  font-size: 20px;
}

.col-post .description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.subscribe {
  background: var(--paper);
}

.subscribe-grid {
  align-items: start;
}

.contact-copy h2 {
  max-width: 14ch;
}

input[type="email"],
input[type="tel"],
input[type="text"],
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #697b75;
}

.footer {
  background: var(--ink);
  color: #fff;
}

.footer-info h3 {
  color: #fff;
}

.footer-nav a,
.footer-info a,
.footer-info p,
.footer-bottom {
  color: #d7e5de;
}

.footer-info .social-links a {
  border-radius: 6px;
  color: #fff;
}

.about-page-hero,
.blog-entry,
.service-entry {
  background: var(--soft);
}

.about-page-media,
.blog-entry-media,
.service-entry-media {
  clip-path: none;
  border-radius: 6px;
}

.story-detail-image img {
  filter: none;
}

.about-manifest {
  background-color: var(--ink);
}

.about-manifest::before {
  background: rgb(23 36 34 / 70%);
}

.about-manifest h2,
.about-manifest .before-title,
.about-manifest span {
  color: #fff;
}

.blog-entry-body,
.service-entry-body {
  background: var(--paper);
}

.service-highlights {
  background: var(--surface);
}

.promo-card {
  border-radius: 6px;
  background: var(--surface);
}

.promo-media {
  clip-path: none;
}

.promo-code {
  border-color: var(--line);
  background: var(--sand);
}

.promo-code strong {
  background: var(--accent);
  color: #fff;
}

.promo-actions button,
.promo-close,
.promo-floating {
  border-radius: 6px;
}

.promo-close {
  background: var(--ink);
  color: #fff;
}

.promo-floating {
  background: var(--ink);
  color: #fff;
}

.whatsapp-floating {
  border-radius: 6px;
  background: #167a3b;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .box-banner {
    width: 100%;
    opacity: 1;
  }

  .hero-content {
    width: min(430px, 46%);
  }

  .hero-content h1 {
    font-size: clamp(38px, 5vw, 56px);
  }
}

@media (max-width: 860px) {
  .header,
  .header-inner {
    min-height: 72px;
  }

  .header {
    align-items: center;
    flex-direction: row;
    padding: 0 22px;
  }

  .banner-carousel {
    height: 650px;
    min-height: 0;
    padding-top: 72px;
  }

  .hero-content {
    width: min(320px, 46%);
    padding: 0 0 98px;
  }

  .box-banner {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-slide:first-child .thumb-banner img {
    object-position: left center;
    transform: scale(1.6);
    transform-origin: left center;
  }

  .about-grid {
    gap: 32px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .header {
    padding: 0 16px;
  }

  .header-inner {
    width: 100%;
  }

  .menu-toggle {
    border-radius: 6px;
  }

  .nav {
    background: var(--paper);
  }

  .banner-carousel {
    height: max(660px, 100svh);
    padding-top: 72px;
  }

  .hero-grid {
    align-items: start;
  }

  .hero-content {
    width: min(330px, 88%);
    padding: 32px 0 0;
  }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .hero-content .description {
    max-width: 30ch;
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-content .btn-primary {
    bottom: 26px;
    width: auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }

  .box-banner {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .thumb-banner img {
    object-fit: cover;
    object-position: center top;
  }

  .hero-slide:first-child .thumb-banner img {
    transform: scale(1.2);
    transform-origin: center top;
  }

  .thumb-banner {
    background: var(--paper);
  }

  .thumb-banner picture {
    height: 100%;
    margin-top: 0;
  }

  .section {
    padding: 68px 0;
  }

  .img-about {
    min-height: clamp(400px, 115vw, 480px);
  }

  .thumb-back {
    height: clamp(325px, 98vw, 405px);
  }

  .thumb-front {
    height: clamp(236px, 72vw, 300px);
    border-width: 6px;
  }

  .section-count {
    padding-bottom: 62px;
  }

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

  .count-item {
    min-height: 106px;
    padding: 18px 8px;
  }

  .count-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section-action {
    min-height: 0;
    padding: 58px 0 280px;
  }

  .section-action p:not(.before-title) {
    width: 100%;
    max-width: 42ch;
  }

  .box-action {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 250px;
    opacity: 1;
  }

  .box-action img {
    object-position: center 38%;
  }

  .row-services,
  .row-blog {
    grid-auto-columns: min(82vw, 320px);
  }

  .col-services {
    padding: 26px 22px;
  }

  .case-grid {
    gap: 10px;
  }

  .case-card {
    min-height: 0;
  }

  .contact-grid,
  .subscribe-grid {
    gap: 28px;
  }

  .testimonial-card {
    border-radius: 6px;
  }

  .promo-card {
    border-radius: 6px;
  }

  .promo-floating,
  .whatsapp-floating {
    width: 126px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 11px;
    box-shadow: none;
  }

  .whatsapp-floating {
    bottom: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    animation: none;
  }

  .case-card img,
  .col-services,
  .btn-primary,
  .btn-text::after {
    transition: none;
  }
}
