/* ==============================
   ESTILOS GERAIS E IDENTIDADE
   ============================== */

/* Variáveis centralizam as cores e medidas do portal. */
:root {
  --purple: #992ae1;
  --purple-dark: #64149b;
  --purple-deep: #24102f;
  --purple-soft: #f5eaff;
  --ink: #21182a;
  --muted: #746b7c;
  --line: #eadff1;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(49, 16, 71, 0.1);
  --radius: 20px;
}

/* Remove diferenças de cálculo entre navegadores. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.container {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}

/* ==============================
   TOPO E NAVEGAÇÃO
   ============================== */
.top-strip {
  background: #21102c;
  color: #d9c4e8;
  font-size: 12px;
}
.top-strip-inner {
  min-height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.instagram-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 21px;
  line-height: 1;
}
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 223, 241, 0.8);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
}
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.footer-links a:hover {
  color: var(--purple);
}
.header-instagram {
  color: var(--purple);
  display: grid;
  place-items: center;
}
.header-instagram .instagram-icon {
  width: 34px;
  height: 34px;
  font-size: 26px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--purple-soft);
  color: var(--purple-dark);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 20px;
}

/* ==============================
   HERO / APRESENTAÇÃO
   ============================== */
.hero {
  min-height: 455px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 82% 22%, #bd5af0 0, transparent 28%),
    linear-gradient(120deg, #65159b 0%, #992ae1 54%, #7e20c0 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 62px;
  padding-bottom: 72px;
}
.eyebrow {
  display: block;
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.hero .eyebrow {
  color: #f0d9ff;
}
.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.055em;
}
.hero h1 span {
  display: block;
  color: #f0d9ff;
}
.hero p {
  max-width: 560px;
  margin: 23px 0 28px;
  color: #f4e8fc;
  font-size: 17px;
  line-height: 1.7;
}
.hero-glow {
  position: absolute;
  width: 470px;
  height: 470px;
  right: 6%;
  top: -150px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.035),
    0 0 0 90px rgba(255, 255, 255, 0.025);
}
.hero-leaf {
  position: absolute;
  right: 4%;
  bottom: 22px;
  width: min(48vw, 590px);
  height: 330px;
  background: url("assets/marca-dagua-paisagem.png") center / contain no-repeat;
  opacity: 0.2;
  pointer-events: none; /* Marca-d’água com plátano, montanhas e araucária. */
}

/* ==============================
   BOTÕES E ATALHOS
   ============================== */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12);
}
.button-light {
  background: #fff;
  color: var(--purple-dark);
}
.button-primary {
  background: var(--purple);
  color: white;
}
.button-outline {
  border-color: var(--line);
  color: var(--purple-dark);
  background: white;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -36px;
  position: relative;
  z-index: 3;
}
.quick-card {
  min-height: 126px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.quick-card:hover {
  transform: translateY(-5px);
}
.quick-icon {
  color: var(--purple);
  font-size: 25px;
  line-height: 1;
  margin-bottom: 5px;
}
.quick-card strong {
  font-size: 15px;
}
.quick-card small {
  color: var(--muted);
  font-size: 11px;
}

/* ==============================
   SEÇÕES E CARROSSEL DE COMÉRCIOS
   ============================== */
.directory-section {
  padding-top: 76px;
  padding-bottom: 70px;
  scroll-margin-top: 100px;
}
.alt-section {
  background: #fbf8fd;
}
.alt-section > .container {
  padding-top: 70px;
  padding-bottom: 70px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.arrow-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--purple-dark);
  font-size: 22px;
  transition:
    background 0.2s,
    color 0.2s;
}
.arrow-btn:hover {
  color: white;
  background: var(--purple);
}
.carousel-viewport {
  overflow: hidden;
}
.business-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 3);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 3px 2px 14px;
}
.business-track::-webkit-scrollbar {
  display: none;
}
.business-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 28px rgba(45, 16, 60, 0.06);
  scroll-snap-align: start;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-image-wrap {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0dfff, #d9b4f3);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.business-card:hover .card-image {
  transform: scale(1.045);
}
.card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #8d42b7;
  font-size: 42px;
}
.card-body {
  padding: 18px;
}
.card-category {
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.card-body h3 {
  margin: 8px 0 7px;
  font-size: 18px;
}
.card-body p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.card-address {
  display: block;
  margin-top: 12px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 700;
}
.card-footer {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 800;
}
.card-action:hover {
  background: var(--purple-soft);
}
.empty-message {
  display: none;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  background: #fbf8fd;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ==============================
   VÍDEOS
   ============================== */
.videos-section {
  padding-top: 76px;
  padding-bottom: 82px;
}
.video-note {
  padding: 8px 12px;
  color: var(--purple-dark);
  background: var(--purple-soft);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: #21102c;
}
.video-caption {
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 800;
}
/* Organiza as informações adicionais de cada vídeo sem alterar a grade de três colunas. */
.video-caption h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 14px;
}
.video-subtitle {
  display: block;
  margin-bottom: 6px;
  color: var(--purple-dark);
  font-size: 11px;
}
.video-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

/* ==============================
   CHAMADA PARA DIVULGAÇÃO E RODAPÉ
   ============================== */
.advertise-section {
  color: white;
  background: linear-gradient(115deg, #3b1451, #7720a9 75%, #992ae1);
}
.advertise-inner {
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.advertise-section .eyebrow {
  color: #e9c9ff;
}
.advertise-section h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.04em;
}
.advertise-section p {
  max-width: 580px;
  color: #eadcf2;
  font-size: 14px;
  line-height: 1.7;
}
/* Destaca o preço solicitado dentro da chamada de divulgação existente. */
.advertise-price {
  display: inline-block;
  margin-top: 7px;
  color: #FFC828; /* amarelo aplicado em toda a frase do preço */
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.015em;
}
.site-footer {
  color: #e8d9ef;
  background: #1f1028;
}
.footer-inner {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 25px;
  text-align: center;
}
.footer-brand img {
  width: 140px;
  height: 70px;
  object-fit: contain; /* A versão do rodapé já possui desenho branco sobre fundo roxo. */
}
.footer-inner p {
  margin: 8px 0 16px;
  color: #bca9c7;
  font-size: 12px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.footer-links a {
  color: white;
}
.admin-open {
  width: 31px;
  height: 31px;
  border: 1px solid #644a70;
  border-radius: 50%;
  color: #d7c0e3;
  background: transparent;
  font-size: 16px;
}
.admin-open:hover {
  color: white;
  border-color: var(--purple);
}
.footer-inner small {
  color: #8e7a99;
  font-size: 10px;
}

/* ==============================
   MODAIS, ZOOM E PAINEL ADMIN
   ============================== */
.modal-backdrop,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(24, 12, 31, 0.72);
}
.modal-backdrop.open,
.lightbox.open {
  display: flex;
}
.modal-card {
  position: relative;
  width: min(850px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}
.admin-card {
  width: min(900px, 100%);
}
.modal-close,
.lightbox-close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 15px;
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 11px;
  color: var(--purple-dark);
  background: var(--purple-soft);
  font-size: 25px;
  line-height: 1;
}
.lightbox {
  z-index: 120;
  background: rgba(12, 6, 17, 0.94);
}
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 60px #000;
}
.lightbox-close {
  top: 20px;
  right: 24px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  font-size: 30px;
}
.details-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 15px;
  cursor: zoom-in;
}
.details-card h2 {
  margin: 18px 0 8px;
}
.details-card p {
  color: var(--muted);
  line-height: 1.7;
}
.details-meta {
  display: grid;
  gap: 8px;
  margin: 17px 0;
  font-size: 13px;
}
.details-meta a {
  color: var(--purple-dark);
  font-weight: 700;
}
.admin-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 35px;
  margin-bottom: 24px;
}
.admin-heading h2 {
  margin: 0;
  font-size: 25px;
}
.admin-heading .eyebrow {
  margin-bottom: 5px;
}
.admin-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 25px;
}
.login-form {
  max-width: 430px;
  display: grid;
  gap: 15px;
}
.login-form p {
  color: var(--muted);
  font-size: 13px;
}
label {
  display: grid;
  gap: 7px;
  color: #55475e;
  font-size: 12px;
  font-weight: 800;
}
input,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e5d9ec;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 400;
}
input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(153, 42, 225, 0.1);
}
textarea {
  resize: vertical;
}
.admin-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.text-button {
  border: 0;
  color: var(--purple);
  background: none;
  font-weight: 800;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 25px;
}
.admin-tab {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: white;
  font-size: 12px;
  font-weight: 800;
}
.admin-tab.active {
  border-color: #dfbaf5;
  color: var(--purple-dark);
  background: var(--purple-soft);
}
#formHeading,
.admin-list-heading h3 {
  margin: 0 0 17px;
  font-size: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.full-field {
  grid-column: 1 / -1;
}
.form-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}
.form-feedback {
  min-height: 18px;
  margin: 8px 0;
  color: var(--purple-dark);
  font-size: 12px;
}
.admin-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 28px;
}
.admin-list-heading span {
  color: var(--muted);
  font-size: 11px;
}
.admin-record-list {
  display: grid;
  gap: 8px;
}
.admin-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.admin-record strong {
  display: block;
  font-size: 12px;
}
.admin-record small {
  color: var(--muted);
  font-size: 10px;
}
.record-actions {
  display: flex;
  gap: 6px;
}
.record-actions button {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--purple-dark);
  background: white;
  font-size: 10px;
  font-weight: 800;
}
.record-actions .delete-record {
  color: #b4234a;
}
[hidden] {
  display: none !important;
}

/* ==============================
   AJUSTES RESPONSIVOS
   ============================== */
@media (max-width: 850px) {
  .header-inner {
    gap: 15px;
  }
  .brand img {
    width: 72px;
    height: 72px;
  }
  .main-nav {
    gap: 14px;
  }
  .main-nav a {
    font-size: 12px;
  }
  .business-track {
    grid-auto-columns: calc((100% - 18px) / 2);
  }
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .container {
    width: min(100% - 30px, 1160px);
  }
  .top-strip-inner {
    min-height: 31px;
  }
  .top-strip-inner > span {
    max-width: 68%;
    font-size: 10px;
  }
  .instagram-link {
    font-size: 0;
  }
  .header-inner {
    min-height: 72px;
  }
  .brand img {
    width: 66px;
    height: 66px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 15px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 13px 5px;
    border-bottom: 1px solid #f3edf6;
    font-size: 13px;
  }
  .header-instagram {
    margin-left: 0;
  }
  .hero {
    min-height: 420px;
  }
  .hero-content {
    padding-top: 55px;
    padding-bottom: 70px;
  }
  .hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }
  .hero p {
    font-size: 14px;
  }
  .hero-leaf {
    right: -10%;
    font-size: 150px;
  }
  .quick-links {
    gap: 9px;
    margin-top: -28px;
  }
  .quick-card {
    min-height: 112px;
    padding: 13px;
  }
  .quick-card strong {
    font-size: 13px;
  }
  .quick-card small {
    font-size: 10px;
  }
  .directory-section {
    padding-top: 55px;
    padding-bottom: 50px;
  }
  .alt-section > .container {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .section-heading {
    align-items: center;
    gap: 10px;
  }
  .section-heading p {
    max-width: 260px;
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .arrow-btn {
    width: 36px;
    height: 36px;
  }
  .business-track {
    grid-auto-columns: 86%;
    gap: 12px;
  }
  .card-image-wrap {
    height: 180px;
  }
  .videos-section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-note {
    display: none;
  }
  .advertise-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .advertise-inner .button {
    width: 100%;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .modal-card {
    max-height: 96vh;
    padding: 25px 17px;
    border-radius: 17px;
  }
  .admin-heading h2 {
    font-size: 21px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-field {
    grid-column: auto;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tab {
    padding: 9px 10px;
    font-size: 10px;
  }
  .admin-record {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==============================
   GALERIA DE IMAGENS DOS DETALHES (até 10 fotos)
   Regras novas: não alteram nenhum estilo existente.
   ============================== */
/* Grade responsiva exibida logo abaixo da descrição no modal de detalhes. */
.details-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
/* Miniaturas com proporção uniforme; o clique abre o zoom já existente do site. */
.details-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}
/* Contador de imagens exibido abaixo do campo de galeria no painel. */
.gallery-counter {
  color: #8e7a99;
  font-size: 11px;
  font-weight: 400;
}

/* ==============================
   BOTÕES DE INSTAGRAM E WHATSAPP NOS CARTÕES
   Reaproveitam o estilo .card-action; apenas garantem texto sem sublinhado e sem quebra de linha.
   ============================== */
a.card-action {
  text-decoration: none;
  white-space: nowrap;
}

