:root {
  --blue: #1061ae;
  --blue-dark: #083c6e;
  --sky: #57c1f0;
  --green: #259d52;
  --green-soft: #b6e0af;
  --yellow: #fdbc2d;
  --cream: #f8f5c4;
  --ink: #172033;
  --muted: #5d6b80;
  --line: #dce6f2;
  --surface: #ffffff;
  --soft: #f3f8fc;
  --shadow: 0 20px 45px rgba(8, 60, 110, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eff7fd 0, #ffffff 520px, #f5f9fd 100%);
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(8, 60, 110, 0.94);
  box-shadow: 0 6px 22px rgba(8, 60, 110, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 178px;
  height: auto;
  flex: 0 0 178px;
}

.brand-symbol img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--surface);
  font-size: 1rem;
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--surface);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: 0.18s ease;
}

.nav-links a:hover {
  color: var(--blue-dark);
  background: var(--yellow);
}

.nav-links .instagram-nav {
  color: var(--blue-dark);
  background: var(--yellow);
}

#servicos,
#redes,
#guia,
#contatos {
  scroll-margin-top: 96px;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  background-image: url("assets/caravelas-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 60, 110, 0.9), rgba(16, 97, 174, 0.56) 48%, rgba(8, 60, 110, 0.12)),
    linear-gradient(0deg, rgba(8, 60, 110, 0.44), rgba(8, 60, 110, 0.02));
}

.hero-copy {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  color: var(--surface);
}

.hero-copy p {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 14px;
  color: var(--blue-dark);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy span {
  display: block;
  max-width: 640px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary {
  color: var(--blue-dark);
  background: var(--yellow);
}

.btn-outline {
  color: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.service-dock {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: min(1180px, calc(100% - 36px));
  margin: -76px auto 0;
}

.service-dock a {
  min-height: 156px;
  padding: 22px;
  color: var(--surface);
  background: linear-gradient(145deg, var(--blue), var(--blue-dark));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}

.service-dock a:nth-child(2) {
  background: linear-gradient(145deg, var(--green), #137846);
}

.service-dock a:nth-child(3) {
  background: linear-gradient(145deg, #3cb2e6, var(--blue));
}

.service-dock a:nth-child(4) {
  color: var(--blue-dark);
  background: linear-gradient(145deg, var(--yellow), var(--cream));
}

.service-dock a:hover {
  transform: translateY(-4px);
}

.service-dock span,
.service-dock strong,
.service-dock small {
  display: block;
}

.service-dock span {
  margin-bottom: 22px;
  opacity: 0.78;
  font-weight: 800;
}

.service-dock strong {
  font-size: 1.15rem;
}

.service-dock small {
  margin-top: 10px;
  line-height: 1.55;
  opacity: 0.88;
}

.intro-band,
.feature-grid,
.social-section,
.guide-section,
.results-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  align-items: end;
  padding: 86px 0 32px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h2,
h3 {
  margin: 0;
  color: var(--blue-dark);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-band > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 28px;
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(8, 60, 110, 0.08);
}

.feature-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-grid h3 {
  font-size: 1.35rem;
}

.feature-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.social-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  padding: 28px 0 56px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.social-links a {
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 112px;
  padding: 20px;
  color: var(--surface);
  background: linear-gradient(145deg, #083c6e, #1061ae);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(8, 60, 110, 0.12);
  transition: 0.18s ease;
}

.social-links a:nth-child(2) {
  background: linear-gradient(145deg, #259d52, #1061ae);
}

.social-links a:nth-child(3) {
  color: var(--blue-dark);
  background: linear-gradient(145deg, var(--yellow), var(--cream));
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-links span,
.social-links small,
.social-links strong {
  display: block;
}

.social-links span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.social-links small {
  margin-top: 10px;
  opacity: 0.82;
  font-weight: 700;
}

.social-links strong {
  width: fit-content;
  margin-top: 10px;
  padding: 9px 12px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.social-links a:nth-child(3) strong {
  color: var(--surface);
  background: var(--blue-dark);
}

.guide-section {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 22px;
  align-items: stretch;
  padding: 24px 0 68px;
}

.guide-card,
.search-panel {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.guide-card {
  padding: 30px;
  color: var(--surface);
  background:
    linear-gradient(145deg, rgba(8, 60, 110, 0.98), rgba(16, 97, 174, 0.92)),
    var(--blue-dark);
}

.guide-card .section-kicker {
  color: var(--yellow);
}

.guide-card h2 {
  color: var(--surface);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.guide-card ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.guide-card li {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
}

.guide-card strong {
  color: var(--yellow);
  font-size: 1.55rem;
}

.search-panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.search-field,
.filter-block {
  display: grid;
  gap: 10px;
}

.filter-block {
  margin-top: 20px;
}

.search-field span,
.filter-block > span {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 56px;
  color: var(--ink);
  background: #f7fbfe;
  border: 1px solid #cbddec;
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  outline: none;
}

.search-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16, 97, 174, 0.12);
}

.filter-row,
.local-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter,
.place {
  min-height: 40px;
  padding: 0 13px;
  color: var(--blue-dark);
  background: #eef7fd;
  border: 1px solid #d5e6f3;
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.place {
  color: #0d6d42;
  background: #eef9f1;
}

.filter.active,
.place.active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.results-section {
  padding-bottom: 72px;
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-head > p {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: grid;
  align-content: space-between;
  min-height: 238px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(8, 60, 110, 0.08);
}

.contact-card header {
  display: grid;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--blue-dark);
  background: #eaf5fc;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.tag.place-tag {
  color: #0d6d42;
  background: #ecf8f0;
}

.contact-card h3 {
  color: var(--blue-dark);
  font-size: 1.08rem;
}

.phone-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.phone-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.phone-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--yellow);
  border-radius: 999px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
}

.call-action {
  color: var(--surface);
  background: var(--blue);
}

.whatsapp-action {
  color: #0d6d42;
  background: #e9f8ef;
}

.empty-state {
  margin: 24px 0 0;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed #b9cfe1;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
}

.floating-guide {
  position: fixed;
  right: 14px;
  bottom: 42px;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--surface);
  background: var(--green);
  border: 3px solid var(--surface);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(37, 157, 82, 0.32);
  font-size: 0.8rem;
  font-weight: 800;
  transition: 0.18s ease;
}

.floating-guide:hover {
  transform: scale(1.06);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: var(--surface);
  background: linear-gradient(145deg, var(--blue-dark), var(--blue));
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.site-footer a {
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 1020px) {
  .service-dock,
  .feature-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-band,
  .social-section,
  .guide-section {
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-header,
  .site-footer,
  .results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 690px;
    align-items: end;
    padding-bottom: 112px;
  }

  .hero-copy {
    margin-left: 18px;
  }

  .service-dock,
  .feature-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-dock {
    margin-top: -92px;
  }

  .hero-actions,
  .card-actions {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
