:root {
  color-scheme: light;
  --wine: #7a2e4c;
  --wine-dark: #4b1b2e;
  --gold: #c9a24a;
  --cream: #f7f2eb;
  --rose: #f2d9e2;
  --text: #2c1b21;
  --muted: #6f5a61;
  --shadow: 0 18px 45px rgba(44, 27, 33, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

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

.hero {
  background: linear-gradient(130deg, rgba(122, 46, 76, 0.95), rgba(201, 162, 74, 0.4)),
    url("assets/fundo.jpeg") center/cover no-repeat;
  color: #fff;
  padding: 32px 64px 80px;
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 120px;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 6px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.solid {
  background: var(--gold);
  color: var(--wine-dark);
  box-shadow: 0 10px 20px rgba(201, 162, 74, 0.4);
}

.button.ghost {
  background: transparent;
  border: 1px solid rgba(122, 46, 76, 0.35);
  color: var(--wine);
}

.button.ghost-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px rgba(44, 27, 33, 0.2);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 16px 0;
  line-height: 1.1;
}

.hero-text p {
  max-width: 520px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero-card img {
  height: 320px;
  width: 100%;
  object-fit: cover;
}

.hero-card-info {
  padding: 18px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

main {
  padding: 80px 64px 40px;
  background: var(--cream);
}

.section {
  margin-bottom: 70px;
}

.section-title {
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--wine);
}

.section-title p {
  color: var(--muted);
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.card.highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card h3 {
  color: var(--wine);
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.list li {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery img {
  border-radius: 22px;
  height: 240px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--wine);
}

.form input,
.form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(79, 50, 60, 0.2);
  font-size: 1rem;
  font-family: inherit;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 64px 60px;
  background: #fff;
  color: var(--muted);
}

.footer strong {
  color: var(--wine);
  display: block;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-credit {
  font-size: 0.85rem;
  opacity: 0.85;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 10;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  background: #20bd5a;
}

.whatsapp-float .whatsapp-icon {
  width: 32px;
  height: 32px;
}

.update-banner {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1f7a45;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(31, 122, 69, 0.25);
  font-weight: 600;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.update-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login .card {
  width: min(440px, 100%);
}

.page {
  min-height: 100vh;
  padding: 40px 24px 60px;
  display: grid;
  gap: 24px;
  place-items: start center;
}

.page.wide {
  place-items: start stretch;
}

.page .card {
  width: min(980px, 100%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form.inline input,
.form.inline select {
  min-width: 160px;
}

.table {
  display: grid;
  gap: 12px;
}

.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid rgba(122, 46, 76, 0.1);
}

.table-row:last-child {
  border-bottom: none;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.service-row {
  align-items: flex-start;
}

.service-list {
  display: grid;
  gap: 10px;
  overflow-x: auto;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(122, 46, 76, 0.08);
  flex-wrap: nowrap;
  min-width: 760px;
}

.service-main {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  min-width: 220px;
  flex: 1 1 240px;
  white-space: nowrap;
}

.service-desc {
  color: var(--muted);
  font-weight: 500;
}

.service-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
  min-width: 160px;
  white-space: nowrap;
}

.service-actions.inline {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
}

.staff-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.staff-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 120px 120px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(122, 46, 76, 0.08);
}

.staff-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-profile img,
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--wine);
}

.staff-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-preview img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rose);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--wine);
}

.staff-other,
.staff-access {
  display: flex;
}

.is-hidden {
  display: none !important;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.module-card {
  background: #fff;
  border: 1px solid rgba(122, 46, 76, 0.1);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(44, 27, 33, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(122, 46, 76, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wine);
}

.module-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.module-card span {
  font-weight: 700;
  color: var(--wine);
}

.module-card small {
  color: var(--muted);
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(44, 27, 33, 0.12);
}

.module-card.active {
  border-color: rgba(201, 162, 74, 0.8);
  box-shadow: 0 16px 28px rgba(201, 162, 74, 0.2);
}

.module-section {
  scroll-margin-top: 24px;
}

.icon-button {
  border: none;
  background: transparent;
  color: var(--wine);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button.danger {
  color: #9a1f1f;
}

.icon-button:hover {
  background: rgba(122, 46, 76, 0.08);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .service-item {
    flex-wrap: wrap;
  }
  .service-actions.inline {
    width: 100%;
    justify-content: flex-start;
  }

  .staff-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .staff-row .service-actions.inline {
    margin-left: 0;
  }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 23, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  width: min(520px, 100%);
  box-shadow: 0 16px 40px rgba(44, 27, 33, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.badge.ok {
  background: rgba(37, 211, 102, 0.18);
  color: #0c7a3a;
}

.badge.warn {
  background: rgba(234, 84, 85, 0.18);
  color: #b01212;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--wine);
  font-weight: 600;
  font-size: 0.85rem;
}

.badge.ok {
  background: rgba(37, 211, 102, 0.18);
  color: #0c7a3a;
}

.badge.warn {
  background: rgba(240, 154, 55, 0.18);
  color: #9a4a00;
}

.notice {
  background: #fff7ea;
}

@media (max-width: 900px) {
  .hero,
  main,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .card.highlight {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .hero-card img {
    height: 240px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
  }
}

