@font-face {
  font-family: "Helvetica Neue OTF";
  src: url("../fonts/helveticaneue.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Bold TTF";
  src: url("../fonts/Helvetica-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ed7b41;
  --orange-form: #f19c4c;
  --orange-btn: #ef7b38;
  --navy: #03324a;
  --teal: #4caf9c;
  --teal-btn: #18a094;
  --ink: #03324a;
  --muted: #4a4a4a;
  --gray: #ededed;
  --footer-bg: #dddddd;
  --white: #fff;
  --radius-2: 48px 0 48px 0;
  --wrap: 1200px;
  --section-pad: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Helvetica Neue OTF", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--white);
}

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

h1, h2, h3, h4, strong {
  font-family: "Helvetica Bold TTF", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

h2 {
  color: var(--orange);
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.lead {
  text-align: center;
  margin-bottom: 36px;
  font-size: 18px;
}

.lead-left {
  margin-bottom: 24px;
}

/* Hero */
.hero {
  position: relative;
  background: #d7c7a8 url("../img/Desktop_Landing-Page_TAS-2024_V1-menor.jpg") center bottom / cover no-repeat;
  min-height: 760px;
  padding: 4% 0 12%;
}

.hero-mobile {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-spacer {
  min-height: 1px;
}

.form-card {
  padding: 40px 30px;
}

.form-card--hero {
  background: var(--orange-form);
  border-radius: var(--radius-2);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.form-logo {
  width: min(280px, 82%);
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.form-card--hero h1 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  font-family: "Helvetica Bold TTF", Helvetica, Arial, sans-serif;
}

.form-card--hero h1 strong {
  font-family: "Helvetica Bold TTF", Helvetica, Arial, sans-serif;
}

.form-card--hero > p {
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 18px;
}

.lead-form {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 5px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}

.lead-form select:disabled {
  opacity: 0.65;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.check input {
  width: auto;
  height: auto;
  margin-top: 3px;
}

.lead-form button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 28px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-family: "Helvetica Bold TTF", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.form-card--hero button {
  width: 100%;
  background: var(--orange-form);
  color: var(--white);
  border: 2px solid var(--white);
}

.form-card--hero button:hover {
  background: var(--white);
  color: var(--orange-form);
}

.form-msg {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
}

.form-msg.is-error {
  color: #7a1d12;
}

/* Intro */
.intro {
  padding: 0;
  background: var(--white);
  overflow: hidden;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 600px) 1fr;
  gap: 40px;
  align-items: stretch;
  padding-left: max(20px, calc((100% - var(--wrap)) / 2));
}

.intro-copy {
  padding: var(--section-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-copy h2 {
  font-size: 44px;
}

.intro-copy p {
  max-width: 34em;
}

.intro-photo {
  margin: 0;
  min-height: 100%;
  line-height: 0;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top right;
  display: block;
  vertical-align: top;
}

/* Benefits / grains */
.benefits {
  padding: var(--section-pad) 0;
  background: var(--gray);
  text-align: center;
}

.grains {
  padding: var(--section-pad) 0;
  background: #f6f6f6;
  text-align: center;
}

.grains h2,
.benefits h2,
.solutions h2 {
  text-align: center;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 40px;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.card,
.grain-card {
  flex: 0 0 calc((100% - 80px) / 3);
  max-width: calc((100% - 80px) / 3);
  background: var(--white);
  border-radius: var(--radius-2);
  padding: 20px 20px 24px;
  text-align: left;
  min-height: 250px;
  box-shadow: none;
  border: 0;
}

.card img {
  width: 48px;
  height: 48px;
  background: #ededed;
  border-radius: 50%;
  padding: 12px;
  margin-bottom: 15px;
}

.card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.grain-card {
  flex: 0 0 calc((100% - 160px) / 5);
  max-width: calc((100% - 160px) / 5);
  min-height: 0;
  text-align: center;
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.grain-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-2);
  margin-bottom: 12px;
}

.grain-card h3 {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 1.15rem;
}

.grain-card p {
  margin: 0;
  font-size: 0.95rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  cursor: pointer;
}

.carousel-btn.prev {
  transform: rotate(180deg);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

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

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

.btn-solid {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}

/* Features — fundo claro; o bloco laranja da arte já tem duas quinas */
.features {
  background: var(--white);
  color: var(--ink);
  padding: var(--section-pad) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.features h2 {
  color: var(--orange);
  font-size: 44px;
  text-align: left;
}

.features .lead-left {
  color: var(--ink);
}

.features-visual {
  text-align: center;
}

.features-visual img {
  margin: 0 auto 24px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 540px;
}

.feature-list li {
  position: relative;
  padding: 4px 0 22px 36px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

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

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  z-index: 1;
}

.feature-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 25px;
  bottom: 0;
  width: 3px;
  background: var(--navy);
}

/* Solutions */
.solutions {
  background: var(--gray);
  padding: var(--section-pad) 0;
}

.solutions h2 {
  color: var(--orange);
}

.solutions .lead {
  color: var(--ink);
}

.process {
  list-style: none;
  margin: 28px 0 48px;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 4px;
}

.process::before {
  content: "";
  position: absolute;
  left: calc(100% / 16);
  right: calc(100% / 16);
  top: 31px;
  height: 3px;
  background: #8a9aa4;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.process-icon svg {
  width: 32px;
  height: 32px;
}

.process-label {
  font-size: 13px;
  line-height: 1.25;
  color: var(--navy);
  max-width: 8.5em;
}

.solutions .card {
  background: var(--white);
  min-height: 200px;
}

.solutions .carousel-track {
  gap: 30px;
}

.solutions .carousel-track .card {
  flex-basis: calc((100% - 90px) / 4);
  max-width: calc((100% - 90px) / 4);
}

/* Install — único bloco escuro, como no WP */
.install {
  background: var(--navy);
  padding: 0;
  overflow: hidden;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(280px, 560px) 1fr;
  gap: 40px;
  align-items: stretch;
  padding-left: max(20px, calc((100% - var(--wrap)) / 2));
}

.install-copy {
  padding: var(--section-pad) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.install h2 {
  color: var(--white);
  font-size: 40px;
}

.install p {
  color: var(--white);
  font-size: 18px;
}

.install .btn {
  margin: 12px 0 20px;
  background: var(--teal-btn);
  color: #000;
  border: 2px solid var(--teal-btn);
  font-family: "Helvetica Neue OTF", Helvetica, Arial, sans-serif;
  font-size: 18px;
}

.install .btn:hover {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}

.benlink {
  width: 180px;
}

.install-photo {
  margin: 0;
  min-height: 100%;
}

.install-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  object-position: center right;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--navy);
  padding: var(--section-pad) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: var(--section-pad);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.buhler-logo {
  width: min(220px, 70%);
  margin: 0;
}

.footer-block {
  margin: 0;
}

.footer-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-phone {
  color: var(--navy);
  font-family: "Helvetica Bold TTF", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  text-decoration: none;
}

.footer-phone:hover {
  color: var(--orange);
}

.footer-nav {
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
}

.footer-links a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  text-decoration: none;
}

.social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.footer-form-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: "Helvetica Bold TTF", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.3;
}

.form-card--footer {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.form-card--footer input,
.form-card--footer select {
  background: var(--white);
}

.form-card--footer .check,
.form-card--footer .form-msg {
  color: var(--navy);
}

.form-card--footer button {
  width: 100%;
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  font-family: "Helvetica Neue OTF", Helvetica, Arial, sans-serif;
  font-size: 20px;
  text-transform: none;
}

.form-card--footer button:hover {
  background: #e9e9e9;
  color: var(--teal);
}

/* WhatsApp */
.whatsapp {
  position: fixed;
  right: 0;
  bottom: 50px;
  width: 82px;
  z-index: 50;
}

/* Thanks */
.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111 url("../img/fundo-TAS_landing-page-1-1-2-1-1.webp") center / cover no-repeat;
}

.thanks {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--section-pad) 20px;
}

.thanks-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-2);
  padding: 48px 36px;
  text-align: center;
  max-width: 520px;
}

.thanks-card h1 {
  color: var(--orange);
  margin: 0 0 12px;
  font-size: 2rem;
}

.thanks-footer {
  background: transparent;
  padding-bottom: var(--section-pad);
}

.thanks-footer .footer-kicker,
.thanks-footer .footer-phone,
.thanks-footer .footer-links a {
  color: var(--white);
}

.thanks-footer .social a {
  color: var(--white);
  border-color: var(--white);
}

.thanks-footer .footer-phone:hover,
.thanks-footer .footer-links a:hover {
  color: var(--orange);
}

.thanks-footer .social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.footer-brand--center {
  text-align: center;
  align-items: center;
}

.footer-brand--center .buhler-logo,
.footer-brand--center .footer-links,
.footer-brand--center .social {
  margin-inline: auto;
  justify-content: center;
}

@media (max-width: 1100px) {
  .card {
    flex-basis: calc((100% - 40px) / 2);
    max-width: calc((100% - 40px) / 2);
  }

  .grain-card {
    flex-basis: calc((100% - 80px) / 3);
    max-width: calc((100% - 80px) / 3);
  }

  .solutions .carousel-track .card {
    flex-basis: calc((100% - 30px) / 2);
    max-width: calc((100% - 30px) / 2);
  }
}

@media (max-width: 980px) {
  .hero {
    background: var(--white);
    min-height: 0;
    padding: 0 0 var(--section-pad);
  }

  .hero-mobile {
    display: block;
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: -8px;
  }

  .hero-spacer {
    display: none;
  }

  .form-card--hero {
    border-radius: 0;
    margin-inline: 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 0;
  }

  .intro-copy {
    padding: var(--section-pad) 20px;
  }

  .intro-photo img {
    min-height: 0;
    height: auto;
  }

  .install-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 0;
  }

  .install-copy {
    padding: var(--section-pad) 20px;
  }

  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .process-step {
    flex: 0 0 92px;
  }

  .intro-copy h2,
  .features h2,
  .install h2 {
    font-size: 26px;
  }

  .features-visual {
    order: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card,
  .grain-card,
  .solutions .carousel-track .card {
    flex-basis: 100%;
    max-width: 100%;
  }

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

@media (max-width: 640px) {
  .carousel {
    grid-template-columns: 32px 1fr 32px;
  }

  .whatsapp {
    width: 64px;
    bottom: 24px;
  }
}
