/* Tipografia alinhada ao wordmark do logotipo (sans geométrica) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Identidade visual — cor principal #59beb7 */
:root {
  --app-brand: #59beb7;
  --app-brand-rgb: 89, 190, 183;
  --app-brand-dark: #459e98;
  --app-brand-darker: #3a8680;
  --bs-primary: #59beb7;
  --bs-primary-rgb: 89, 190, 183;
  --bs-link-color: #459e98;
  --bs-link-hover-color: #3a8680;
  --font-brand: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

body {
  font-family: var(--font-brand);
  margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-title,
.modal-title,
.btn {
  font-family: var(--font-brand);
}

h1, h2, h3, h4, h5, h6,
.card-title,
.modal-title {
  font-weight: 600;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.45);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Portal público */
.portal-body {
  background: linear-gradient(180deg, #fbfefe 0%, #f3f9f8 45%, #eef6f4 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-body main {
  flex: 1 0 auto;
}

.portal-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

.portal-footer {
  background: transparent;
  border-top-color: rgba(var(--bs-primary-rgb), 0.12) !important;
}

/* Wordmarks (texto do logotipo — preto no menu, cor principal no hero) */
.recupere-wordmark--nav {
  height: 32px;
  width: auto;
  max-width: min(200px, 55vw);
  display: block;
}

.recupere-wordmark--hero {
  width: 100%;
  max-width: min(400px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 24px rgba(var(--bs-primary-rgb), 0.15));
}

/* Home — visual limpo e leve */
.home-hero {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(var(--bs-primary-rgb), 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(var(--bs-primary-rgb), 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.home-hero-inner {
  padding-top: 2.75rem;
  padding-bottom: 3.25rem;
}

@media (min-width: 992px) {
  .home-hero-inner {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}

.home-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a9e99;
  margin-bottom: 0;
}

.home-heading {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: #2d4542;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
}

.home-lead {
  color: #5c7873;
  max-width: 22rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.home-cta .btn {
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.28) !important;
}

.home-content {
  padding-top: 0.5rem;
}

.home-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9e99;
}

.home-news-card {
  border-radius: 1.15rem !important;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.08) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-news-card:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.home-aside-card {
  border-radius: 1.15rem !important;
  background: linear-gradient(165deg, #fff 0%, #f9fdfc 100%);
  box-shadow: 0 8px 32px rgba(var(--bs-primary-rgb), 0.1);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15) !important;
}

.home-empty {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(var(--bs-primary-rgb), 0.25);
}

.home-carousel {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.home-banner-image {
  max-height: 380px;
  object-fit: cover;
}

.home-map-wrap {
  border-radius: 1.15rem;
  background: #ffffff;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.letter-spacing {
  letter-spacing: 0.12em;
}

/* Área logada */
.layout-app-header {
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.28) !important;
  background: linear-gradient(180deg, #fff 0%, #f9fdfc 100%);
}

.app-sidebar {
  background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.12) 0%, #f8f9fa 55%);
  border-right-color: rgba(var(--bs-primary-rgb), 0.22) !important;
}

.app-sidebar .nav-link {
  color: #334155;
  border-radius: 0.375rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.app-sidebar .nav-link:hover {
  color: var(--app-brand-darker);
  background: rgba(var(--bs-primary-rgb), 0.14);
}

.app-sidebar .nav-link.text-muted:hover {
  color: var(--app-brand-dark) !important;
}

/* Logotipo Recupere-se */
.recupere-logo-black {
  height: 40px;
  width: auto;
  display: block;
}

.recupere-logo-primary {
  max-height: 140px;
  width: auto;
  display: block;
}

.recupere-hero-brand {
  max-width: min(100%, 320px);
}

#logisticsCalendar {
  min-height: 640px;
}

.logistics-legend {
  display: inline-block;
  width: 1rem;
  height: 0.65rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.logistics-legend-delivery-window { background: #cfe2ff; border: 1px solid #9ec5fe; }
.logistics-legend-collection-window { background: #ffe5d0; border: 1px solid #feb272; }
.logistics-legend-rental { background: #e9ecef; border: 1px solid #ced4da; }
.logistics-legend-ontime { background: #198754; }
.logistics-legend-early { background: #ffc107; }
.logistics-legend-late { background: #dc3545; }

.fc .fc-bg-event {
  opacity: 0.55;
}

.fc .fc-event {
  cursor: pointer;
  font-size: 0.75rem;
}
