@import url("./style-base.css");

/* Ajuste visual aprovado - paleta do material Recanto Baracho */
:root{
  --forest:#071f16;
  --forest-2:#071f16;
  --forest-3:#071f16;
  --gold:#cda45b;
  --gold-2:#e1bd77;
  --cream:#071f16;
  --paper:#071f16;
  --ink:#f7f0e5;
  --muted:rgba(247,240,229,.68);
  --line:rgba(205,164,91,.18);
  --shadow:0 30px 80px rgba(0,0,0,.28);
}

body{background:var(--forest);color:var(--ink)}
.site-header.scrolled{background:rgba(6,19,12,.95);box-shadow:0 1px 0 rgba(205,164,91,.16)}
.brand-mark{border-color:rgba(205,164,91,.72);color:var(--gold-2)}
.btn-gold{background:var(--gold);color:#102016;box-shadow:0 12px 34px rgba(205,164,91,.2)}
.btn-gold:hover{background:var(--gold-2)}
.eyebrow{color:var(--gold)}
.eyebrow-hero,.eyebrow-dark{color:var(--gold-2)}
.dot{background:var(--gold);box-shadow:0 0 0 6px rgba(205,164,91,.13)}

/* Hero preservado com o oval invertido do wireframe: mais alto nas laterais e mais baixo no centro */
.hero{
  background:#07140d;
  isolation:isolate;
  border-radius:0 0 50% 50% / 0 0 10% 10%;
  border-bottom:2px solid rgba(205,164,91,.92);
}
.hero::after{display:none}
.hero-shade{background:linear-gradient(90deg,rgba(3,13,8,.82) 0%,rgba(3,13,8,.46) 52%,rgba(3,13,8,.18) 100%),linear-gradient(0deg,rgba(5,17,10,.56) 0%,rgba(4,15,10,0) 50%)}
.hero h1 em{color:var(--gold-2)}
.hero-note strong{color:var(--gold-2)}
.scroll-cue{bottom:48px}

/* Faixa de diferenciais inspirada nos icones da arte aprovada */
.facts-bar{background:var(--forest);border-top:0;color:#fff;position:relative;margin-top:-1px}
.facts-grid{padding:44px 0 38px;gap:0}
.facts-grid article{align-items:center;text-align:center;padding:8px 28px;gap:6px;border-color:rgba(205,164,91,.22)}
.facts-grid article::before{
  content:"";
  width:46px;
  height:46px;
  margin-bottom:7px;
  background:var(--gold);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
.facts-grid article:nth-child(1)::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='13' r='5'/%3E%3Ccircle cx='11' cy='18' r='4'/%3E%3Ccircle cx='37' cy='18' r='4'/%3E%3Cpath d='M14 36v-5c0-6 4-10 10-10s10 4 10 10v5M3 36v-4c0-5 3-8 8-8 2 0 4 .6 5.4 1.8M45 36v-4c0-5-3-8-8-8-2 0-4 .6-5.4 1.8'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='13' r='5'/%3E%3Ccircle cx='11' cy='18' r='4'/%3E%3Ccircle cx='37' cy='18' r='4'/%3E%3Cpath d='M14 36v-5c0-6 4-10 10-10s10 4 10 10v5M3 36v-4c0-5 3-8 8-8 2 0 4 .6 5.4 1.8M45 36v-4c0-5-3-8-8-8-2 0-4 .6-5.4 1.8'/%3E%3C/g%3E%3C/svg%3E")
}
.facts-grid article:nth-child(2)::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 4v6M20 10h8'/%3E%3Ccircle cx='24' cy='28' r='13'/%3E%3Cpath d='M11 28h26M24 15c-4 4-6 8-6 13s2 9 6 13M24 15c4 4 6 8 6 13s-2 9-6 13M14 21h20M14 35h20'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 4v6M20 10h8'/%3E%3Ccircle cx='24' cy='28' r='13'/%3E%3Cpath d='M11 28h26M24 15c-4 4-6 8-6 13s2 9 6 13M24 15c4 4 6 8 6 13s-2 9-6 13M14 21h20M14 35h20'/%3E%3C/g%3E%3C/svg%3E")
}
.facts-grid article:nth-child(3)::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 32V16h24a10 10 0 0 1 10 10v6M7 25h34M7 36v-4h34v4M11 36v5M37 36v5'/%3E%3Cpath d='M12 16v9M12 19h10v6'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 32V16h24a10 10 0 0 1 10 10v6M7 25h34M7 36v-4h34v4M11 36v5M37 36v5'/%3E%3Cpath d='M12 16v9M12 19h10v6'/%3E%3C/g%3E%3C/svg%3E")
}
.facts-grid article:nth-child(4)::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='12' width='34' height='25' rx='3'/%3E%3Cpath d='M14 12V8h20v4M12 37v4M36 37v4M15 20h8M15 25h5M30 18l-5 8h5l-4 7'/%3E%3C/g%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='12' width='34' height='25' rx='3'/%3E%3Cpath d='M14 12V8h20v4M12 37v4M36 37v4M15 20h8M15 25h5M30 18l-5 8h5l-4 7'/%3E%3C/g%3E%3C/svg%3E")
}
.facts-grid strong{color:var(--gold-2);font-size:27px}
.facts-grid span{color:rgba(247,240,229,.72);max-width:170px;line-height:1.45}

/* Fundo continuo no mesmo verde do material visual */
.story{background:var(--forest);color:var(--ink)}
.events{background:var(--forest);color:var(--ink)}
.structure{background:var(--forest);color:var(--ink)}
.gallery-section{background:var(--forest)}
.consult{background:var(--forest)}
.location{background:var(--forest);color:var(--ink)}
.faq{background:var(--forest);color:var(--ink)}
.story-float{border-color:var(--forest)}
.section-copy>p,.section-heading>p,.location-copy>p,.faq-intro p,.accordion p{color:var(--muted)}
.check-list li{color:rgba(247,240,229,.88)}
.text-link{color:var(--gold-2);border-color:rgba(205,164,91,.42)}
.location address{color:rgba(247,240,229,.68);border-color:var(--gold)}
.location address strong{color:var(--ink)}
.accordion details{border-color:var(--line)}
.accordion summary{color:rgba(247,240,229,.92)}

.feature-copy{background:#10281b;color:var(--ink);border:1px solid rgba(205,164,91,.12)}
.feature-copy p{color:var(--muted)}
.feature-gold{background:var(--gold);color:#152016;border:0}
.feature-gold p{color:rgba(21,32,22,.72)}
.feature-gold>span:not(.feature-icon){color:#573b17}

.whatsapp-builder{background:#10281b;color:var(--ink);border:1px solid rgba(205,164,91,.16);box-shadow:0 30px 80px rgba(0,0,0,.24)}
.field>span{color:rgba(247,240,229,.72)}
.field input,.field select{background:#f8f4eb;border-color:#d6cbb9;color:#172016}
.builder-progress span{background:rgba(255,255,255,.14)}
.builder-progress span.active{background:var(--gold)}
.builder-hint,.modal-form small{color:rgba(247,240,229,.52)}

/* CTA de agendamento mais sutil */
.schedule-strip{background:var(--forest);color:#fff;border-top:1px solid rgba(205,164,91,.3);border-bottom:1px solid rgba(205,164,91,.16);padding:64px 0}
.schedule-strip .btn-outline-light{border-color:rgba(205,164,91,.6);color:var(--gold-2)}
.schedule-strip .btn-outline-light:hover{background:rgba(205,164,91,.08)}

.footer{background:#050f09}
.schedule-modal{background:#10281b;color:var(--ink);border:1px solid rgba(205,164,91,.18)}
.modal-copy p{color:var(--muted)}

@media (max-width:980px){
  .facts-grid article:nth-child(3){padding-left:28px}
  .hero{border-radius:0 0 50% 50% / 0 0 8% 8%}
}
@media (max-width:680px){
  .hero{border-radius:0 0 50% 50% / 0 0 6% 6%;border-bottom-width:1.5px}
  .hero-content{padding-bottom:112px}
  .facts-grid{padding:24px 0 18px}
  .facts-grid article{padding:20px 10px;gap:4px}
  .facts-grid article:nth-child(3){padding-left:10px}
  .facts-grid article::before{width:38px;height:38px;margin-bottom:5px}
  .facts-grid strong{font-size:22px}
  .facts-grid span{font-size:10px}
  .schedule-strip{padding:54px 0}
}


/* Ajustes comerciais + atalhos flutuantes */
.hero-price{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  margin:-10px 0 22px;
  padding:8px 16px;
  border:1px solid rgba(205,164,91,.28);
  border-radius:999px;
  background:rgba(7,31,22,.42);
  backdrop-filter:blur(10px);
}
.hero-price span{
  display:flex;
  align-items:center;
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:rgba(247,240,229,.68);
}
.hero-price strong{
  display:flex;
  align-items:center;
  font-family:var(--serif);
  font-size:22px;
  line-height:1;
  color:var(--gold-2);
  font-weight:600;
}
.event-card-photo .event-dark-copy{
  position:relative;
  z-index:2;
}
.event-card-photo .media-shade{
  background:linear-gradient(90deg,rgba(4,18,12,.9),rgba(4,18,12,.42) 62%,rgba(4,18,12,.2));
}
.floating-video{
  position:fixed;
  left:22px;
  bottom:22px;
  z-index:80;
  min-height:58px;
  padding:0 18px 0 14px;
  border-radius:999px;
  border:1px solid rgba(205,164,91,.36);
  background:rgba(7,31,22,.94);
  color:#fff;
  box-shadow:0 13px 34px rgba(0,0,0,.24);
  display:flex;
  align-items:center;
  gap:10px;
  transition:.2s ease;
  backdrop-filter:blur(10px);
}
.floating-video:hover{transform:translateY(-3px)}
.floating-video-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--gold);
  color:#102016;
  font-size:13px;
  padding-left:2px;
}
.floating-video-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
}
@media (max-width:680px){
  .hero-price{margin:-4px 0 18px}
  .hero-price span{font-size:9px}
  .hero-price strong{font-size:18px}
  .floating-video{
    left:16px;
    bottom:16px;
    width:54px;
    height:54px;
    min-height:54px;
    padding:0;
    justify-content:center;
    border-radius:50%;
  }
  .floating-video-icon{width:36px;height:36px}
  .floating-video-label{display:none}
}


/* Correcoes de proporcao da secao de eventos */
.event-grid{
  grid-template-rows:360px 300px 220px;
}
.event-card:nth-child(4){
  min-height:220px;
  max-height:220px;
}
.event-card-photo{
  isolation:isolate;
}
.event-card-photo>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
}
.event-card-photo .media-shade{
  z-index:1;
}
.event-card-photo .event-dark-copy{
  position:relative;
  z-index:2;
  padding:30px 38px;
  max-width:620px;
}

/* Popup do video completo usando o arquivo local do hero */
.floating-video{
  cursor:pointer;
  font:inherit;
}
.video-modal{
  width:min(1100px,calc(100% - 32px));
  max-height:90vh;
  border:1px solid rgba(205,164,91,.22);
  border-radius:24px;
  padding:0;
  background:#020806;
  overflow:hidden;
  box-shadow:0 40px 100px rgba(0,0,0,.52);
}
.video-modal::backdrop{
  background:rgba(2,10,7,.86);
  backdrop-filter:blur(10px);
}
.video-modal video{
  display:block;
  width:100%;
  height:auto;
  max-height:86vh;
  object-fit:contain;
  background:#000;
}
.video-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:4;
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(7,31,22,.82);
  color:#fff;
  font-size:27px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter:blur(8px);
}
.video-modal-close:hover{
  background:rgba(7,31,22,.98);
  transform:scale(1.04);
}

@media (max-width:980px){
  .event-grid{
    grid-template-rows:420px 300px 220px;
  }
  .event-card:nth-child(4){
    min-height:220px;
    max-height:220px;
  }
}

@media (max-width:680px){
  .event-card:nth-child(4){
    min-height:240px;
    max-height:240px;
  }
  .event-card-photo .event-dark-copy{
    padding:24px 22px;
  }
  .event-card-photo .event-dark-copy h3{
    font-size:31px;
  }
  .video-modal{
    width:calc(100% - 16px);
    border-radius:16px;
  }
  .video-modal video{
    max-height:82vh;
  }
  .video-modal-close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
  }
}


/* Card que completa o espaco vazio da grade de estrutura */
.feature-story>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
}
.feature-story .media-shade{
  background:linear-gradient(0deg,rgba(4,18,12,.86),rgba(4,18,12,.08) 72%);
}
.feature-story .feature-content{
  padding:28px;
}
.feature-story .feature-content h3{
  max-width:320px;
}

@media (max-width:980px){
  .feature-story{
    grid-column:span 2;
    min-height:360px;
  }
}

@media (max-width:680px){
  .feature-story{
    grid-column:auto;
    min-height:320px;
  }
}


/* Grade da galeria sem espacos vazios */
.gallery-grid{
  grid-auto-flow:dense;
}


/* Mobile: eventos em fluxo vertical sem sobreposicao */
@media (max-width:680px){
  .events .event-grid{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:none;
    grid-auto-rows:auto;
    gap:16px;
  }

  .events .event-card,
  .events .event-card-wide,
  .events .event-card:nth-child(3),
  .events .event-card:nth-child(4){
    grid-column:1;
    grid-row:auto;
    width:100%;
    min-height:320px;
    max-height:none;
    height:320px;
  }

  .events .event-card:nth-child(4){
    min-height:300px;
    height:300px;
  }

  .events .event-card img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .events .event-content{
    padding:24px 22px;
  }

  .events .event-dark-copy{
    padding:24px 22px;
  }

  .events .event-card-photo .event-dark-copy{
    position:absolute;
    inset:auto 0 0 0;
    max-width:none;
  }
}


/* Popup de galeria completa */
.gallery-open-button{
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.25);
  padding:0 0 4px;
  color:rgba(255,255,255,.72);
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:color .2s ease,border-color .2s ease;
}
.gallery-open-button:hover{
  color:#fff;
  border-color:rgba(205,164,91,.72);
}
.gallery-modal{
  width:min(1280px,calc(100% - 28px));
  height:min(90dvh,900px);
  max-width:none;
  max-height:none;
  padding:0;
  border:1px solid rgba(205,164,91,.2);
  border-radius:26px;
  background:#071f16;
  color:var(--ink);
  overflow:hidden;
  box-shadow:0 40px 110px rgba(0,0,0,.52);
}
.gallery-modal::backdrop{
  background:rgba(2,10,7,.88);
  backdrop-filter:blur(10px);
}
.gallery-modal[open]{animation:modalIn .25s ease}
.gallery-modal-shell{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.gallery-modal-header{
  flex:0 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
  padding:28px 30px 22px;
  border-bottom:1px solid rgba(205,164,91,.14);
  background:#071f16;
}
.gallery-modal-header h2{
  margin:3px 0 6px;
  font-family:var(--serif);
  font-size:clamp(32px,4vw,52px);
  line-height:1.02;
  font-weight:500;
}
.gallery-modal-header p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.gallery-modal-close{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.gallery-modal-close:hover{background:rgba(255,255,255,.12)}
.gallery-modal-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:20px 24px 26px;
}
.gallery-modal-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.gallery-modal-item{
  position:relative;
  aspect-ratio:4/3;
  border:0;
  padding:0;
  border-radius:14px;
  overflow:hidden;
  background:#102519;
  cursor:zoom-in;
}
.gallery-modal-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .4s ease,filter .4s ease;
}
.gallery-modal-item:hover img{
  transform:scale(1.035);
  filter:brightness(1.06);
}
.gallery-modal-status{
  margin:32px 0;
  text-align:center;
  color:var(--muted);
}
@media (max-width:980px){
  .gallery-modal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:680px){
  .gallery-open-button{align-self:flex-start}
  .gallery-modal{
    width:100%;
    height:100dvh;
    border:0;
    border-radius:0;
  }
  .gallery-modal-header{
    padding:20px 18px 16px;
    gap:14px;
  }
  .gallery-modal-header h2{font-size:32px}
  .gallery-modal-header p{font-size:12px}
  .gallery-modal-close{
    width:40px;
    height:40px;
  }
  .gallery-modal-scroll{padding:12px 10px 20px}
  .gallery-modal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .gallery-modal-item{border-radius:10px}
}
@media (max-width:390px){
  .gallery-modal-grid{grid-template-columns:1fr}
  .gallery-modal-item{aspect-ratio:16/10}
}


/* Video incorporado como primeiro card da estrutura */
.feature-video{
  background:#020806;
  border:1px solid rgba(205,164,91,.18);
}
.feature-video-player{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  background:#000;
}
.feature-full{
  grid-column:1 / -1;
}
@media (max-width:980px){
  .structure .feature-wide{
    grid-column:auto;
  }
  .structure .feature-full{
    grid-column:1 / -1;
  }
}
@media (max-width:680px){
  .structure .feature-video,
  .structure .feature-full{
    grid-column:1;
    min-height:320px;
  }
  .feature-video-player{
    object-fit:cover;
  }
}
