/* =========================================================
   RECANTO FAZENDA — one page
   Paleta extraída do logotipo:
     verde-folha  #74C044  ->  suavizado para uso premium
     marrom-terra #431D14  ->  aprofundado para tipografia
   ========================================================= */

:root{
  --ivory:        #FAF7F2;
  --ivory-deep:   #F1EAE0;
  --ink:          #2A1D15;
  --ink-soft:     #5B4B3E;
  --green:        #4B6B37;
  --green-deep:   #35492A;
  --green-bright: #8FB86B;
  --line:         #DED2BE;
  --white:        #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gap: clamp(1.5rem, 4vw, 3.5rem);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body{
  margin:0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -.01em;
}

.eyebrow{
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 .9em;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--ink); color:var(--white); padding:.8em 1.2em; z-index:999;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

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

/* ---------- botões ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.55em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  cursor:pointer;
  border: none;
}
.btn-primary{
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(75,107,55,.55);
}
.btn-primary:hover{ background: var(--green-deep); transform: translateY(-2px); }
.btn-lg{ padding: 1.05em 2.1em; font-size: 1rem; }
.ico-wpp{
  display: inline-block;
  width: 1.15em; height: 1.15em;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M6.014 8.00613C6.12827 7.1024 7.30277 5.87414 8.23488 6.01043L8.23339 6.00894C9.14051 6.18132 9.85859 7.74261 10.2635 8.44465C10.5504 8.95402 10.3641 9.4701 10.0965 9.68787C9.7355 9.97883 9.17099 10.3803 9.28943 10.7834C9.5 11.5 12 14 13.2296 14.7107C13.695 14.9797 14.0325 14.2702 14.3207 13.9067C14.5301 13.6271 15.0466 13.46 15.5548 13.736C16.3138 14.178 17.0288 14.6917 17.69 15.27C18.0202 15.546 18.0977 15.9539 17.8689 16.385C17.4659 17.1443 16.3003 18.1456 15.4542 17.9421C13.9764 17.5868 8 15.27 6.08033 8.55801C5.97237 8.24048 5.99955 8.12044 6.014 8.00613Z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 23C10.7764 23 10.0994 22.8687 9 22.5L6.89443 23.5528C5.56462 24.2177 4 23.2507 4 21.7639V19.5C1.84655 17.492 1 15.1767 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM6 18.6303L5.36395 18.0372C3.69087 16.4772 3 14.7331 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C11.0143 21 10.552 20.911 9.63595 20.6038L8.84847 20.3397L6 21.7639V18.6303Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.btn-header{
  background: var(--green);
  color: var(--white);
  border: 1.5px solid var(--green);
  padding: .6em 1.3em;
  font-size: .85rem;
  box-shadow: 0 5px 14px -7px rgba(75,107,55,.65);
}
.btn-header:hover{ background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }

/* ---------- header ---------- */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 60;
  background: rgba(250,247,242,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled{ border-color: var(--line); }
.site-header.is-hidden{ transform: translateY(-100%); }

.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .7rem 1.4rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}
.brand img{ height: 44px; width:auto; }

.main-nav{ display:flex; gap: 2.1rem; }
.main-nav a{
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position:relative; padding: .2em 0;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:1.5px;
  background: var(--green); transition: right .3s var(--ease);
}
.main-nav a:hover::after{ right:0; }

@media (max-width: 760px){
  .main-nav{ display:none; }
  .brand img{ height: 36px; }
  .btn-header{
    padding: .55em 1.1em;
    font-size: .8rem;
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 5px 14px -7px rgba(75,107,55,.65);
  }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; align-items:flex-end;
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0; z-index:0;
}
.hero-img, .hero-media video{
  width:100%; height:100%; object-fit: cover;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(53,73,42,.16) 0%, rgba(53,73,42,.26) 42%, rgba(41,56,32,.78) 100%);
}
.hero-content{
  position:relative; z-index:1;
  max-width: 780px;
  padding: 0 1.4rem clamp(2.4rem, 10vh, 7rem);
  margin: 0 auto;
  color: var(--ivory);
  text-align:center;
  width:100%;
}
.hero-content .eyebrow{ color: var(--green-bright); }
.hero-content h1{
  color: var(--white);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  text-wrap: balance;
}
.hero-text{
  color: rgba(250,247,242,.88);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 58ch;
  margin: 0 auto 2rem;
}
.scroll-cue{
  position:absolute; left:50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 20px; z-index:1;
}
.scroll-cue span{
  position:absolute; top:8px; left:50%; width:4px; height:8px; margin-left:-2px;
  background: var(--white); border-radius: 3px;
  animation: scrollcue 1.8s infinite var(--ease);
}
@keyframes scrollcue{
  0%{ opacity:1; transform: translateY(0); }
  70%{ opacity:0; transform: translateY(14px); }
  100%{ opacity:0; }
}
@media (max-width: 760px){
  .scroll-cue{ display:none; }
  .hero{ min-height: 100svh; align-items:flex-end; }
  .hero-content{ padding-bottom: 2.1rem; }
  .hero-img{ object-position: center 22%; }
}

/* ---------- trilha (elemento assinatura) ---------- */
.trilha{
  position: absolute;
  left: 28px;
  width: 60px;
  height: 2400px;
  pointer-events: none;
  z-index: 2;
  margin-top: -1px;
}
.trilha path{
  fill:none;
  stroke: var(--green-bright);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: .55;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.trilha.in-view path{ stroke-dashoffset: 0; }
@media (max-width: 1020px){ .trilha{ display:none; } }

/* ---------- intro ---------- */
.intro{ }

/* bloco 1: imagem cheia + gradiente + texto */
.intro-hero{
  position: relative;
  width: 100%;
  height: 46vw;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
}
.intro-hero-img{
  width:100%; height:100%;
  object-fit: cover; object-position: center;
}
.intro-hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(
    100deg,
    var(--green-deep) 0%,
    var(--green-deep) 28%,
    rgba(53,73,42,.88) 38%,
    rgba(53,73,42,.35) 55%,
    rgba(53,73,42,0) 68%
  );
}
.intro-hero-content{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:center;
  max-width: var(--maxw); margin:0 auto; padding: 0 3.5rem;
  color: var(--white);
}
.intro-hero-content h2{
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  font-weight: 440;
  margin: 0 0 1.4rem;
  max-width: 11ch;
  color: var(--white);
}
.intro-hero-content h2 strong{ font-weight: 560; }
.intro-hero-content h2 em{ font-style: italic; color: var(--green-bright); }
.intro-hero-content > p{
  max-width: 34ch;
  color: var(--white);
  font-size: 1.02rem;
}
.intro-hero-content::before{
  content:"";
  display:block;
  width: 46px; height: 2px;
  background: var(--green-bright);
  margin-bottom: 1.4rem;
}

/* bloco 2: 3 colunas */
.intro-facts{
  max-width: var(--maxw); margin:0 auto;
  padding: clamp(3rem, 5vw, 4.5rem) 3.5rem;
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.fact{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap: 1.2rem;
  padding-left: clamp(1.6rem, 3vw, 2.6rem);
  border-left: 1px solid var(--line);
}
.fact:first-child{ padding-left:0; border-left:none; }
.fact-ico{ width: 190px; height: 190px; flex-shrink:0; object-fit: contain; }
.fact-copy h3{
  font-size: 1.1rem; font-weight: 600; line-height:1.3;
  margin: 0 0 .5rem; letter-spacing: .01em;
}
.fact-copy p{ color: var(--ink-soft); font-size: .92rem; max-width: 26ch; margin: 0 auto; }

/* bloco 3: faixa final */
.intro-banner{
  position:relative;
  min-height: 150px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.intro-banner-bg{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit: cover;
}
.intro-banner-text{
  position:relative; z-index:1;
  text-align:center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink);
  line-height: 1.5;
}
.intro-banner-text em{ font-style: italic; color: var(--green-deep); }

/* ---------- galeria ---------- */
.galeria{
  padding: clamp(3rem, 7vw, 5rem) 1.4rem clamp(5rem, 9vw, 7rem);
  background: var(--ivory-deep);
}
.galeria-head{
  max-width: var(--maxw); margin: 0 auto 2.5rem;
  text-align:center;
}
.galeria-head h2{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.galeria-grid{
  max-width: var(--maxw); margin: 0 auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: .6rem;
}
.foto{
  position:relative; overflow:hidden; border-radius: 4px;
  padding:0; border:none; background: var(--line);
  cursor: pointer;
}
.foto img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .6s var(--ease);
}
.foto:hover img{ transform: scale(1.06); }
.foto::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,14,9,.35));
  opacity:0; transition: opacity .35s var(--ease);
}
.foto:hover::after{ opacity:1; }

.foto--wide{ grid-column: span 2; }
.foto--tall{ grid-row: span 2; }

/* desktop: mantém 1 foto tall + 1 wide como destaque; as demais viram
   normais pra fechar o grid em linhas cheias (10 fotos = 12 células = 3 linhas sem vão) */
@media (min-width: 901px){
  .galeria-grid .foto:nth-child(6){ grid-column: auto; }
  .galeria-grid .foto:nth-child(9){ grid-row: auto; }
}

@media (max-width: 900px){
  .galeria-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .foto--wide{ grid-column: span 2; }
  .foto--tall{ grid-row: span 2; }
}
@media (max-width: 560px){
  .galeria-grid{ grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: .45rem; }
}

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset:0; z-index: 200;
  background: rgba(18,13,9,.94);
  display:flex; align-items:center; justify-content:center;
}
.lightbox[hidden]{ display:none; }
.lb-img{
  max-width: min(90vw, 1100px); max-height: 82vh;
  object-fit: contain; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-close, .lb-nav{
  position:absolute; background: rgba(255,255,255,.08);
  color: var(--ivory); border: none; border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.1rem;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition: background .25s var(--ease);
}
.lb-close:hover, .lb-nav:hover{ background: rgba(255,255,255,.2); }
.lb-close{ top: 1.2rem; right: 1.2rem; font-size: 1.8rem; }
.lb-prev{ left: 1.2rem; top:50%; transform: translateY(-50%); }
.lb-next{ right: 1.2rem; top:50%; transform: translateY(-50%); }
.lb-counter{
  position:absolute; bottom: 1.4rem; left:50%; transform: translateX(-50%);
  color: rgba(250,247,242,.75); font-size: .85rem; letter-spacing: .06em;
}
@media (max-width: 640px){
  .lb-nav{ width: 40px; height: 40px; }
  .lb-close{ top: .8rem; right: .8rem; }
  .lb-prev{ left: .5rem; } .lb-next{ right: .5rem; }
}

/* ---------- contato ---------- */
.contato{ padding: clamp(4rem, 9vw, 7.5rem) 1.4rem; }
.contato-inner{
  max-width: var(--maxw); margin:0 auto;
  display:grid;
  grid-template-columns: 1.05fr auto .95fr;
  align-items: end;
  gap: var(--gap);
}
.contato-text h2{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contato-text p{ color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }

.contato-foto{
  align-self: end;
  text-align: center;
  line-height: 0;
}
.contato-foto img{
  width: clamp(220px, 19vw, 320px);
  height:auto;
  display:inline-block;
}

.contato-info{
  display:flex; flex-direction:column; gap: 1.4rem;
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
}
.info-item{ display:flex; flex-direction:column; gap:.25rem; }
.info-label{
  font-size: .74rem; letter-spacing:.12em; text-transform:uppercase;
  color: var(--green); font-weight:600;
}
.info-item a{
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--ink);
}
.info-item a:hover{ color: var(--green-deep); }

@media (max-width: 860px){
  .contato-inner{ grid-template-columns: 1fr; }
  .contato-foto{ padding: 1.4rem 0; }
  .contato-foto img{ width: clamp(160px, 45vw, 220px); }
  .contato-info{ border-left:none; border-top: 1px solid var(--line); padding-left:0; padding-top: 1.6rem; }
}

/* ---------- footer ---------- */
.site-footer{
  padding: 2.4rem 1.4rem;
  text-align:center;
  border-top: 1px solid var(--line);
  display:flex; flex-direction:column; align-items:center; gap: .9rem;
}
.site-footer img{ height: 34px; width:auto; opacity:.85; }
.site-footer p{ margin:0; font-size: .82rem; color: var(--ink-soft); }

/* ---------- whatsapp flutuante ---------- */
.wpp-float{
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 30px -8px rgba(53,73,42,.6);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.wpp-float .ico-wpp--float{ width: 30px; height: 30px; color: var(--white); }
.wpp-float:hover{ background: var(--green-deep); transform: scale(1.07); }
.wpp-float.pulse{ animation: wppulse 2.2s var(--ease) 1.2s 3; }
@keyframes wppulse{
  0%{ box-shadow: 0 12px 30px -8px rgba(53,73,42,.6), 0 0 0 0 rgba(75,107,55,.55); }
  70%{ box-shadow: 0 12px 30px -8px rgba(53,73,42,.6), 0 0 0 16px rgba(75,107,55,0); }
  100%{ box-shadow: 0 12px 30px -8px rgba(53,73,42,.6), 0 0 0 0 rgba(75,107,55,0); }
}
@media (max-width: 560px){
  .wpp-float{ width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
  .wpp-float svg{ width: 26px; height:26px; }
}

/* =========================================================
   MOBILE REFINEMENTS
   O layout desktop acima permanece intacto.
   ========================================================= */

@media (max-width: 760px){

  /* ---------- largura/empilhamento geral ---------- */
  .intro,
  .intro-hero,
  .intro-facts,
  .galeria,
  .contato,
  .site-footer{
    min-width: 0;
    max-width: none;
  }

  .intro-hero{
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .intro-hero-img{
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center;
  }

  .intro-hero-content{
    padding: 2.5rem 1.4rem;
    justify-content: center;
  }

  .intro-hero-content h2{
    font-size: clamp(2.15rem, 9vw, 3rem);
    max-width: 12ch;
    margin-bottom: 1.3rem;
  }

  .intro-hero-content > p{
    max-width: 36ch;
    font-size: .96rem;
  }

  /* ---------- três benefícios: um por linha ---------- */
  .intro-facts{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1rem 1.4rem 2rem;
  }

  .fact,
  .fact:first-child{
    width: 100%;
    min-width: 0;
    padding: 2.4rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    gap: 1rem;
  }

  .fact:first-child{
    border-top: 0;
  }

  .fact-ico{
    width: 145px;
    height: 145px;
  }

  .fact-copy h3{
    font-size: 1.2rem;
  }

  .fact-copy p{
    max-width: 30ch;
    font-size: .96rem;
  }

  /* ---------- galeria: grade limpa, uma foto por linha ---------- */
  .galeria{
    width: 100%;
    padding: 3.2rem 1.4rem 5rem;
  }

  .galeria-head{
    margin-bottom: 1.8rem;
  }

  .galeria-grid{
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: .65rem;
  }

  .galeria-grid .foto,
  .galeria-grid .foto--wide,
  .galeria-grid .foto--tall{
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .galeria-grid .foto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- contato: composição centralizada ---------- */
  .contato{
    width: 100%;
    padding: 4.5rem 1.4rem 5rem;
  }

  .contato-inner{
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    text-align: center;
  }

  .contato-text{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contato-text .eyebrow{
    align-self: center;
  }

  .contato-text h2{
    width: 100%;
  }

  .contato-text p{
    max-width: 40ch;
    margin-left: auto;
    margin-right: auto;
  }

  .contato-foto{
    padding: 1.5rem 0 1.8rem;
    line-height: 0;
  }

  .contato-foto img{
    width: clamp(210px, 62vw, 280px);
    max-width: 280px;
    margin: 0 auto;
  }

  .contato-info{
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.8rem 0 0;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .info-item{
    align-items: center;
  }

  .info-item a{
    font-size: 1.1rem;
  }

  /* ---------- botão flutuante ---------- */
  .wpp-float{
    right: .9rem;
    bottom: .9rem;
  }
}

@media (max-width: 420px){

  .header-inner{
    padding-left: 1rem;
    padding-right: 1rem;
    gap: .65rem;
  }

  .brand img{
    height: 34px;
  }

  .btn-header{
    padding: .5em 1em;
  }

  .hero-content{
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .intro-hero-content{
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .galeria{
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contato{
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
