:root {
  --green: #183b21;
  --green-2: #285530;
  --brown: #704b36;
  --cream: #f4efe6;
  --paper: #fffdf8;
  --text: #1e261f;
  --muted: #677067;
  --line: #dcd6ca;
  --shadow: 0 18px 55px rgba(24, 59, 33, 0.12);
}


/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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


/* CONTAINER */

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  background: rgba(255, 253, 248, 0.96);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(112, 75, 54, 0.12);
}


.nav-wrap {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 26px;
}


/* LOGO */

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

.brand img {
  width: 230px;
  max-height: 62px;

  object-fit: contain;
  object-position: left center;
}


/* MENU */

.main-nav {
  display: flex;
  align-items: center;

  gap: 28px;

  font-size: 14px;
  font-weight: 700;

  color: #2e382f;
}


.main-nav a {
  padding: 28px 0 24px;

  border-bottom: 2px solid transparent;

  transition: 0.2s ease;
}


.main-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}


/* BOTÃO MENU MOBILE */

.menu-button {
  display: none;

  border: 0;
  background: transparent;

  padding: 10px;

  cursor: pointer;
}


.menu-button span {
  display: block;

  width: 26px;
  height: 2px;

  background: var(--green);

  margin: 5px 0;

  border-radius: 2px;
}


/* HERO */

.hero {
  position: relative;

  min-height: 630px;

  display: flex;
  align-items: center;

  overflow: hidden;

  color: white;
}


/* FOTO PRINCIPAL */

.hero-media {
  position: absolute;
  inset: 0;

  background-image: url("assets/tabapua-herd.JPG");
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;

  transform: scale(1.02);
}


/* ESCURECIMENTO DA FOTO */

.hero-overlay {
  position: absolute;
  inset: 0;

  background:

    linear-gradient(
      90deg,
      rgba(18, 39, 22, 0.82) 0%,
      rgba(18, 39, 22, 0.54) 38%,
      rgba(18, 39, 22, 0.08) 72%,
      rgba(18, 39, 22, 0.08) 100%
    ),

    linear-gradient(
      0deg,
      rgba(18, 39, 22, 0.20),
      transparent 45%
    );
}


.hero-content {
  position: relative;

  z-index: 2;

  padding: 96px 0 108px;
}


/* PEQUENO TÍTULO */

.eyebrow {
  margin: 0 0 14px;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 0.28em;

  color: #eee1d2;
}


.eyebrow.dark {
  color: var(--brown);
}


/* TÍTULOS */

.hero h1,
.section h2,
.breed-section h2,
.contact-card h2 {
  font-family: Georgia, "Times New Roman", serif;

  line-height: 0.98;

  letter-spacing: -0.035em;
}


.hero h1 {
  font-size: clamp(58px, 8vw, 94px);

  margin: 0 0 22px;

  max-width: 760px;

  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.12);
}


.hero-copy {
  font-size: 20px;

  max-width: 540px;

  margin: 0 0 32px;

  color: #f5f1e8;
}


/* BOTÕES HERO */

.hero-actions {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;
}


.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 22px;

  border-radius: 999px;

  font-weight: 800;

  font-size: 14px;

  transition: 0.2s ease;
}


.button.primary {
  background: var(--green);

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.25);
}


.button.primary:hover {
  background: var(--green-2);

  transform: translateY(-1px);
}


.button.ghost {
  background: rgba(255, 255, 255, 0.91);

  color: var(--green);

  border: 1px solid rgba(255, 255, 255, 0.5);
}


/* FRASE NA FOTO */

.hero-note {
  position: absolute;

  z-index: 2;

  right: 7%;
  top: 20%;

  font-family: Georgia, "Times New Roman", serif;

  font-style: italic;

  font-size: 24px;

  line-height: 1.2;

  text-align: right;

  transform: rotate(-3deg);

  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}


/* SEÇÕES */

.section {
  padding: 96px 0;
}


.split {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 90px;

  align-items: start;
}


.section h2,
.breed-section h2,
.contact-card h2 {
  font-size: clamp(38px, 5vw, 62px);

  margin: 0;

  color: var(--green);
}


/* HISTÓRIA */

.prose {
  font-size: 18px;

  color: #4c564d;

  max-width: 700px;
}


.prose p:first-child {
  font-size: 23px;

  color: var(--text);

  margin-top: 0;
}


/* FAZENDAS */

.farms-section {
  background: var(--cream);
}


.section-heading {
  max-width: 760px;

  margin: 0 auto 48px;
}


.section-heading.centered {
  text-align: center;
}


.section-heading p:last-child {
  color: var(--muted);

  font-size: 17px;
}


.farm-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}


.farm-card {
  background: var(--paper);

  border: 1px solid rgba(112, 75, 54, 0.10);

  border-radius: 22px;

  overflow: hidden;

  box-shadow:
    0 10px 28px rgba(24, 59, 33, 0.06);
}


.farm-photo {
  height: 220px;

  background-size: cover;

  background-repeat: no-repeat;
}


/* TEMPORARIAMENTE A MESMA FOTO NAS TRÊS FAZENDAS
   DEPOIS PODEMOS TROCAR POR UMA FOTO REAL DE CADA PROPRIEDADE */

.farm-one {
  background-image:
    linear-gradient(
      rgba(24, 59, 33, 0.08),
      rgba(24, 59, 33, 0.08)
    ),
    url("assets/tabapua-herd.JPG");

  background-position: center 56%;
}


.farm-two {
  background-image:
    linear-gradient(
      130deg,
      rgba(40, 85, 48, 0.25),
      rgba(112, 75, 54, 0.15)
    ),
    url("assets/tabapua-herd.JPG");

  background-position: 26% 62%;
}


.farm-three {
  background-image:
    linear-gradient(
      130deg,
      rgba(112, 75, 54, 0.12),
      rgba(40, 85, 48, 0.20)
    ),
    url("assets/tabapua-herd.JPG");

  background-position: 84% 54%;
}


.farm-body {
  padding: 24px 24px 28px;
}


.farm-body span {
  font-size: 11px;

  letter-spacing: 0.25em;

  font-weight: 800;

  color: var(--brown);
}


.farm-body h3 {
  font-family: Georgia, "Times New Roman", serif;

  font-size: 33px;

  color: var(--green);

  margin: 3px 0 8px;

  line-height: 1;
}


.farm-body p {
  margin: 0;

  color: var(--muted);
}


/* RAÇA TABAPUÃ */

.breed-section {
  display: grid;

  grid-template-columns: 1fr 1.15fr;

  min-height: 600px;

  background: var(--green);

  color: white;
}


.breed-copy {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 90px max(40px, 8vw);
}


.breed-copy h2 {
  color: white;

  margin-bottom: 26px;
}


.breed-copy > p:not(.eyebrow) {
  font-size: 18px;

  color: #e9eee9;

  max-width: 620px;
}


.breed-detail {
  opacity: 0.78;
}


/* FOTO TABAPUÃ */

.breed-image {
  min-height: 580px;

  background-image: url("assets/tabapua-close.jpg");

  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;
}


/* LOCALIZAÇÃO */

.location {
  background: #ffffff;
}


.location-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 56px;

  align-items: center;
}


.location-copy {
  font-size: 19px;

  color: var(--muted);

  max-width: 560px;
}


.location-badges {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 28px;
}


.location-badges span {
  padding: 9px 14px;

  border: 1px solid var(--line);

  border-radius: 999px;

  font-size: 13px;

  font-weight: 700;

  color: var(--green);
}


/* MAPA ILUSTRATIVO */

.map-card {
  position: relative;

  min-height: 340px;

  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      #eef1e8,
      #dfe7d8
    );

  overflow: hidden;

  box-shadow: var(--shadow);
}


.map-card::before,
.map-card::after {
  content: "";

  position: absolute;

  border: 1px solid rgba(24, 59, 33, 0.12);

  border-radius:
    46% 54% 58% 42%;

  transform: rotate(-10deg);
}


.map-card::before {
  width: 65%;
  height: 72%;

  left: 10%;
  top: 12%;
}


.map-card::after {
  width: 45%;
  height: 54%;

  right: 3%;
  bottom: 4%;

  transform: rotate(17deg);
}


.map-shape {
  position: absolute;

  inset: 24% 18%;

  background:
    rgba(24, 59, 33, 0.08);

  clip-path:
    polygon(
      10% 40%,
      28% 14%,
      55% 8%,
      77% 26%,
      92% 56%,
      73% 85%,
      40% 91%,
      16% 70%
    );
}


.map-pin {
  position: absolute;

  left: 52%;
  top: 45%;

  font-size: 42px;

  color: var(--brown);

  line-height: 1;
}


.map-label {
  position: absolute;

  left: 59%;
  top: 48%;

  font-size: 17px;

  color: var(--green);
}


/* CONTATO */

.contact-section {
  background:
    linear-gradient(
      145deg,
      #17391f,
      #244b2b
    );

  color: white;
}


.contact-card {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;
}


.contact-card h2 {
  color: white;

  max-width: 780px;
}


.contact-card p {
  max-width: 720px;

  color: #e1e8e2;

  font-size: 18px;
}


.contact-status {
  white-space: nowrap;

  border:
    1px solid rgba(255, 255, 255, 0.35);

  padding: 14px 18px;

  border-radius: 999px;

  font-size: 14px;

  font-weight: 800;
}


/* RODAPÉ */

.site-footer {
  padding: 28px 0;

  background: #0e2615;

  color: white;
}


.footer-grid {
  display: grid;

  grid-template-columns:
    220px 1fr auto;

  gap: 26px;

  align-items: center;
}


.footer-grid img {
  width: 200px;

  background: white;

  border-radius: 10px;

  padding: 8px;
}


.footer-copy {
  display: flex;

  flex-direction: column;

  gap: 4px;
}


.footer-copy span {
  font-size: 13px;

  color: #cbd6cd;
}


.site-footer a {
  font-size: 13px;

  font-weight: 800;
}


/* TABLET / CELULAR */

@media (max-width: 900px) {

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


  .nav-wrap {
    min-height: 70px;
  }


  .brand img {
    width: 190px;
  }


  .menu-button {
    display: block;
  }


  .main-nav {
    display: none;

    position: absolute;

    left: 14px;
    right: 14px;

    top: 70px;

    background: white;

    border:
      1px solid var(--line);

    border-radius: 18px;

    box-shadow:
      var(--shadow);

    padding: 12px;

    flex-direction: column;

    align-items: stretch;

    gap: 0;
  }


  .main-nav.open {
    display: flex;
  }


  .main-nav a {
    padding: 14px 12px;

    border-bottom:
      1px solid #eeeeee;
  }


  .main-nav a:last-child {
    border-bottom: 0;
  }


  /* HERO MOBILE */

  .hero {
    min-height: 700px;

    align-items: flex-end;
  }


  .hero-media {
    background-position:
      56% center;
  }


  .hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(14, 38, 21, 0.90) 0%,
        rgba(14, 38, 21, 0.62) 45%,
        rgba(14, 38, 21, 0.16) 100%
      );
  }


  .hero-content {
    padding:
      260px 0 62px;
  }


  .hero h1 {
    font-size: 58px;
  }


  .hero-note {
    display: none;
  }


  .split,
  .location-grid {
    grid-template-columns: 1fr;

    gap: 34px;
  }


  .section {
    padding: 72px 0;
  }


  /* FAZENDAS MOBILE */

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


  .farm-photo {
    height: 210px;
  }


  /* TABAPUÃ MOBILE */

  .breed-section {
    grid-template-columns: 1fr;
  }


  .breed-copy {
    padding:
      70px 28px;
  }


  .breed-image {
    min-height: 470px;

    order: -1;

    background-position:
      center 38%;
  }


  /* CONTATO MOBILE */

  .contact-card {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .contact-status {
    white-space:
      normal;
  }


  /* FOOTER MOBILE */

  .footer-grid {
    grid-template-columns:
      1fr;

    justify-items:
      start;
  }

}


/* CELULAR PEQUENO */

@media (max-width: 520px) {

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


  .brand img {
    width: 170px;
  }


  .hero {
    min-height: 650px;
  }


  .hero-content {
    padding-bottom:
      46px;
  }


  .hero h1 {
    font-size: 50px;
  }


  .hero-copy {
    font-size: 18px;
  }


  .hero-actions {
    flex-direction:
      column;

    align-items:
      stretch;
  }


  .button {
    width: 100%;
  }


  .section h2,
  .breed-section h2,
  .contact-card h2 {
    font-size: 41px;
  }


  .farm-body h3 {
    font-size: 30px;
  }


  .map-card {
    min-height: 280px;
  }


  .breed-image {
    min-height: 360px;
  }

}
