:root {
  --bg-body: #eef5fb;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #ecf3f9;
  --accent: #14b8a6;
  --accent-soft: rgba(20, 184, 166, 0.14);
  --accent-strong: #0f766e;
  --primary: #102a43;
  --primary-soft: rgba(16, 42, 67, 0.08);
  --border-subtle: #c8d6e5;
  --text-main: #102a43;
  --text-muted: #52606d;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 48px rgba(16, 42, 67, 0.14);
  --shadow-subtle: 0 10px 24px rgba(16, 42, 67, 0.08);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(20, 184, 166, 0.16), transparent 36%),
    radial-gradient(circle at 85% 0, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(180deg, var(--bg-body) 0, #f8fbff 40%, #f2f7fb 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -10rem;
  left: -7rem;
  background: rgba(20, 184, 166, 0.18);
}

body::after {
  top: 16rem;
  right: -8rem;
  background: rgba(56, 189, 248, 0.16);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(244, 249, 255, 0.85);
  border-bottom: 1px solid rgba(138, 160, 183, 0.28);
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
  color: var(--primary);
}

.brand-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  padding-block: 0.25rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-primary {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #102a43, #0f4c81);
  color: #f9fafb;
  box-shadow: 0 14px 32px rgba(16, 42, 67, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nav-link-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(16, 42, 67, 0.34);
  filter: saturate(1.06);
  color: #f9fafb;
}

.nav-link-primary::after {
  display: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 160, 183, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* Hero */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding-block: 3.5rem 3.75rem;
  background-image:
    radial-gradient(circle at 12% 6%, rgba(20, 184, 166, 0.32), transparent 42%),
    radial-gradient(circle at 78% 14%, rgba(56, 189, 248, 0.26), transparent 44%),
    linear-gradient(135deg, #081321 0, #0c1d33 44%, #12314f 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/banner-texture.svg");
  opacity: 0.21;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 0, rgba(244, 253, 255, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0, rgba(8, 19, 33, 0.64), transparent 54%);
  animation: heroGlow 16s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: var(--container-width);
}

.hero-emblem-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(8, 19, 33, 0.74), rgba(20, 184, 166, 0.24));
  box-shadow: 0 24px 52px rgba(2, 6, 23, 0.46);
  margin-bottom: 1rem;
  backdrop-filter: blur(5px);
  animation: floatEmblem 6.6s ease-in-out infinite;
}

.hero-emblem {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(2, 6, 23, 0.4));
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 3vw + 1.5rem, 3.1rem);
  line-height: 1.1;
  max-width: 34rem;
  margin: 0 0 1rem;
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.13s ease, box-shadow 0.13s ease, background 0.13s ease, color 0.13s ease,
    border-color 0.13s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -80% -40%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.36) 50%, transparent 70%);
  transform: translateX(-120%) rotate(8deg);
  transition: transform 0.55s ease;
  pointer-events: none;
  z-index: -1;
}

.btn:hover::after {
  transform: translateX(120%) rotate(8deg);
}

.btn span.iconify {
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, var(--accent-strong));
  color: #052e2b;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 118, 110, 0.42);
}

.btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.58);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(15, 35, 56, 0.74);
  border-color: rgba(94, 234, 212, 0.72);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.hero-highlights {
  margin-top: 1.2rem;
}

.hero-highlights .info-card {
  background: #081a2e;
  box-shadow: 0 16px 34px rgba(8, 19, 33, 0.3);
}

.hero-highlights .info-card-icon {
  color: #7eeadf;
}

.hero-highlights .info-card-title {
  color: #f8fbff;
}

.hero-highlights .info-card-text {
  color: #c1d2e3;
}

.hero-badge {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 20, 34, 0.68);
  border: 1px solid rgba(94, 234, 212, 0.24);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.2);
}

.hero-badge-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: rgba(153, 246, 228, 0.85);
}

.hero-badge-value {
  color: #e5e7eb;
}

@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(-1.2%, 0.8%, 0) scale(1.06);
    opacity: 1;
  }
}

@keyframes floatEmblem {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */

.section {
  padding-block: 3.7rem;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(226, 238, 249, 0.66) 0, rgba(239, 246, 252, 0.8) 100%);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: #486581;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: var(--primary);
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-footnote {
  margin-top: 1.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.section-highlight {
  padding-block: 2.8rem 3rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px) scale(0.965);
  filter: blur(2px);
  will-change: transform, opacity, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: popInReveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.reveal-no-anim.is-revealed {
  animation: none;
}

@keyframes popInReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.965);
    filter: blur(2px);
  }
  68% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Cards */

.cards-grid {
  display: grid;
  gap: 1.4rem;
}

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

.cards-grid-stacked {
  margin-top: 2rem;
}

.info-card {
  background: linear-gradient(160deg, rgba(252, 255, 255, 0.92), rgba(239, 247, 252, 0.92));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  border: none;
  box-shadow: 0 16px 34px rgba(16, 42, 67, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-strong);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.info-card-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--primary);
}

.info-card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card {
  background: linear-gradient(170deg, #ffffff, rgba(236, 246, 252, 0.95));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.4rem;
  border: none;
  box-shadow: var(--shadow-subtle);
}

.service-card-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-card-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--primary);
}

.service-card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pill-card {
  background:
    radial-gradient(circle at 12% 0, rgba(20, 184, 166, 0.24), transparent 42%),
    linear-gradient(160deg, #051426 0, #081a2e 62%, #071624 100%);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.2rem;
  border: 1px solid rgba(94, 234, 212, 0.28);
  box-shadow: 0 16px 34px rgba(8, 19, 33, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.2s ease;
}

.pill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(8, 19, 33, 0.44);
  border-color: rgba(94, 234, 212, 0.58);
  background:
    radial-gradient(circle at 12% 0, rgba(45, 212, 191, 0.3), transparent 44%),
    linear-gradient(160deg, #06192d 0, #0b2238 60%, #092338 100%);
}

.pill-card-icon {
  font-size: 1.6rem;
  color: #7eeadf;
  margin-bottom: 0.5rem;
}

.pill-card-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  color: #f8fbff;
}

.pill-card-text {
  margin: 0;
  font-size: 0.86rem;
  color: #c1d2e3;
}

/* Links uteis */

.useful-links-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(20, 184, 166, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(235, 243, 251, 0.72) 0, rgba(241, 247, 253, 0.86) 100%);
}

.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.useful-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 186px;
  border-radius: 16px;
  padding: 1.05rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  background:
    radial-gradient(circle at 8% 0, rgba(45, 212, 191, 0.2), transparent 44%),
    linear-gradient(160deg, #071426 0, #0a2036 62%, #0b2b46 100%);
  color: #d4e3f2;
  box-shadow: 0 18px 38px rgba(8, 20, 36, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.useful-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(8, 20, 36, 0.34);
  border-color: rgba(125, 211, 252, 0.48);
}

.useful-link-icon {
  font-size: 1.55rem;
  color: #7eeadf;
  line-height: 1;
}

.useful-link-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #f8fbff;
}

.useful-link-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.52;
  color: #c1d2e3;
}

.useful-link-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
  color: #99f6e4;
}

.useful-link-action span.iconify {
  font-size: 0.95rem;
}

/* Horario */

.hours-section {
  position: relative;
  background-image: url("../images/gallery/sobre.jpg");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hours-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.6));
}

.hours-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 1.45rem;
  align-items: stretch;
  border-radius: 24px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  background: rgba(5, 19, 35, 0.54);
  backdrop-filter: blur(7px);
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.46);
  padding: 1.5rem;
}

.hours-kicker {
  color: rgba(153, 246, 228, 0.92);
}

.hours-title {
  color: #f8fbff;
}

.hours-intro {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #d4e3f2;
}

.hours-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hours-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.62rem;
  align-items: flex-start;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 26, 46, 0.56);
  padding: 0.75rem 0.8rem;
  color: #dbe8f5;
  font-size: 0.86rem;
  line-height: 1.5;
}

.hours-icon {
  font-size: 1.2rem;
  color: #7eeadf;
  line-height: 1;
  margin-top: 0.1rem;
}

.hours-item strong {
  color: #f8fbff;
}

.hours-side {
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  background: rgba(6, 24, 42, 0.64);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hours-side-title {
  margin: 0;
  font-size: 1.02rem;
  color: #f8fbff;
}

.hours-side-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d1e2f2;
}

.hours-side-text a {
  color: #99f6e4;
  text-decoration: underline;
  text-decoration-color: rgba(153, 246, 228, 0.55);
}

/* Localização */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.location-text {
  max-width: 32rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-list-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin-top: 0.1rem;
}

.location-map-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.location-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(125, 158, 187, 0.4);
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.16);
  background: #ffffff;
  min-height: 0;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  pointer-events: auto;
}

.map-link {
  align-self: flex-start;
  font-size: 0.88rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid transparent;
}

.map-link:hover {
  border-color: rgba(30, 64, 175, 0.4);
}

/* Sobre */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem auto auto;
  height: 70%;
  border-radius: 26px;
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.34), transparent 62%);
  opacity: 0.9;
}

.about-image {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(125, 158, 187, 0.62);
  box-shadow: var(--shadow-soft);
}

.about-text {
  max-width: 32rem;
}

.about-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

/* Galeria */

.gallery-section {
  background:
    radial-gradient(circle at 10% 0, rgba(20, 184, 166, 0.2), transparent 36%),
    linear-gradient(180deg, #051426 0, #081a2e 62%, #071624 100%);
  color: #e5e7eb;
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gallery-title {
  color: #f9fafb;
}

.gallery-subtitle {
  color: #b6c2cf;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.gallery-shuffle {
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(7, 28, 47, 0.74);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.gallery-shuffle:hover {
  background: rgba(15, 118, 110, 0.58);
  border-color: rgba(94, 234, 212, 0.74);
  transform: translateY(-1px);
}

.gallery-shuffle.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.gallery-shuffle span.iconify {
  font-size: 0.95rem;
}

.gallery-masonry {
  --gallery-gap: 0.85rem;
  --gallery-row: 122px;
  display: grid;
  grid-auto-flow: column dense;
  grid-template-rows: repeat(4, var(--gallery-row));
  grid-auto-rows: var(--gallery-row);
  grid-auto-columns: minmax(180px, 19vw);
  gap: var(--gallery-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 0.35rem;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.gallery-masonry.is-auto-scrolling {
  scroll-snap-type: none;
}

.gallery-masonry.is-auto-only {
  overflow-x: auto;
  scroll-snap-type: none;
  touch-action: pan-y;
  scrollbar-width: none;
}

.gallery-masonry.is-auto-only::-webkit-scrollbar {
  display: none;
}

.gallery-masonry.is-shuffling,
.gallery-masonry.is-shuffle-in {
  pointer-events: none;
}

.gallery-masonry.is-shuffling .gallery-tile {
  animation: galleryShuffleOut 280ms cubic-bezier(0.3, 0, 0.2, 1) both;
  animation-delay: calc(var(--tile-order, 0) * 10ms);
}

.gallery-masonry.is-shuffle-in .gallery-tile {
  animation: galleryShuffleIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--tile-order, 0) * 12ms);
}

.gallery-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  grid-row: span var(--span, 2);
  grid-column: span var(--col-span, 1);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  background: #031324;
  cursor: zoom-in;
  transform: translateY(10px) scale(0.99);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  content-visibility: auto;
  contain-intrinsic-size: 360px 280px;
  text-align: left;
  scroll-snap-align: start;
}

@keyframes galleryShuffleOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    filter: saturate(0.88);
  }
}

@keyframes galleryShuffleIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.975);
    filter: blur(1px) saturate(0.92);
  }
  68% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
    filter: blur(0) saturate(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) saturate(1);
  }
}

.gallery-pager {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.gallery-page-btn {
  border: 1px solid rgba(94, 234, 212, 0.36);
  background: rgba(7, 27, 46, 0.8);
  color: #e2e8f0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.46rem 0.82rem;
  min-width: 104px;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.gallery-page-btn:hover {
  background: rgba(15, 118, 110, 0.58);
  border-color: rgba(94, 234, 212, 0.78);
  transform: translateY(-1px);
}

.gallery-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-tile.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gallery-tile:hover {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 14px 26px rgba(8, 19, 33, 0.48);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.03);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.02) 55%);
  pointer-events: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(8px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.lightbox-close:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.lightbox-figure {
  position: relative;
  margin: 0;
  width: min(95vw, 1200px);
  min-height: min(74vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.2s ease, transform 0.28s ease;
}

.lightbox-figure img.is-ready {
  opacity: 1;
  transform: scale(1);
}

.lightbox-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 14px;
}

.lightbox-loading.is-hidden {
  display: none;
}

.lightbox-figure figcaption {
  display: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  border: 1px solid rgba(94, 234, 212, 0.38);
  background: rgba(7, 27, 46, 0.78);
  color: #f8fafc;
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lightbox-nav-prev {
  left: 1rem;
}

.lightbox-nav-next {
  right: 1rem;
}

.lightbox-nav:hover {
  border-color: rgba(94, 234, 212, 0.78);
  background: rgba(15, 118, 110, 0.64);
  transform: translateY(-50%) scale(1.04);
}

.no-scroll {
  overflow: hidden;
}

/* Contato */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.service-form-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.55fr);
}

.contact-text {
  max-width: 31rem;
}

.contact-form-card {
  background: linear-gradient(165deg, #ffffff, #f3f8fc);
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.5rem;
  border: 1px solid rgba(125, 158, 187, 0.42);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-section {
  border: 1px solid rgba(125, 158, 187, 0.34);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.88);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-section-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field-label {
  font-size: 0.8rem;
  color: #486581;
  font-weight: 500;
}

.field-input {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 158, 187, 0.62);
  background: #fbfdff;
  color: #111827;
  outline: none;
  transition: border-color 0.13s ease, box-shadow 0.13s ease, background 0.13s ease;
}

.field-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.16);
  background: #ffffff;
}

.field-textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-list {
  display: grid;
  gap: 0.45rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: #334e68;
}

.file-input {
  padding: 0.45rem 0.6rem;
}

.form-helper {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.3rem;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.8rem;
  margin: 0.15rem 0 0;
}

.form-status--success {
  color: #15803d;
}

.form-status--error {
  color: #b91c1c;
}

/* Footer */

.site-footer {
  background:
    radial-gradient(circle at 10% 0, rgba(20, 184, 166, 0.2), transparent 40%),
    linear-gradient(160deg, #071322, #0a1f34 60%, #0a1a2c);
  color: #b6c2cf;
  padding-block: 2.4rem 2.6rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: flex-start;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 46px;
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.footer-brand-subtitle {
  font-size: 0.78rem;
  color: #b6c2cf;
}

.footer-copy {
  font-size: 0.78rem;
  color: #b6c2cf;
  margin: 0;
}

.footer-title {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin: 0 0 0.55rem;
}

.footer-nav,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
}

.footer-nav a {
  color: #b6c2cf;
}

.footer-nav a:hover {
  color: #e6eef6;
}

.footer-contact-list a {
  color: #e5e7eb;
}

.footer-contact-list a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(94, 234, 212, 0.75);
}

/* WhatsApp floating button */

.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.25rem;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  background: #22c55e;
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 44px rgba(22, 163, 74, 0.58);
  z-index: 50;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.whatsapp-float span.iconify {
  font-size: 1.6rem;
}

.whatsapp-float:hover {
  background: #16a34a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 48px rgba(22, 163, 74, 0.68);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Responsive */

@media (max-width: 960px) {
  .header-inner {
    padding-inline: 0.75rem;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    padding: 0.6rem 1.5rem 0.9rem;
    background: rgba(241, 248, 255, 0.97);
    border-top: 1px solid rgba(125, 158, 187, 0.3);
    box-shadow: 0 16px 34px rgba(16, 42, 67, 0.12);
    flex-direction: column;
    align-items: flex-start;
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    gap: 0.4rem;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-link,
  .nav-link-primary {
    padding-block: 0.15rem;
  }

  .nav-link-primary {
    margin-top: 0.2rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .gallery-masonry {
    --gallery-row: 110px;
    grid-template-rows: repeat(4, var(--gallery-row));
    grid-auto-columns: minmax(165px, 24vw);
  }

  .useful-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero {
    padding-block: 3.3rem;
  }

  .hero-emblem-wrap {
    width: 104px;
    height: 104px;
  }

  .hero-emblem {
    width: 78px;
    height: 78px;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .location-grid,
  .contact-grid,
  .service-form-grid,
  .hours-panel,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-map {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-block: 0.6rem;
  }

  .brand-logo {
    height: 42px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .hero {
    padding-block: 2.6rem 3rem;
  }

  .hero-kicker {
    font-size: 0.7rem;
  }

  .hero-emblem-wrap {
    display: flex;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin-inline: auto;
  }

  .hero-emblem {
    width: 68px;
    height: 68px;
  }

  .hero-title {
    font-size: 1.8rem;
    text-align: center;
    margin-inline: auto;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    text-align: center;
    margin-inline: auto;
  }

  .hero-kicker {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding-block: 3.1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .cards-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hours-panel {
    padding: 1.2rem;
    gap: 1rem;
  }

  .hours-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .hours-icon {
    margin-top: 0;
  }

  .gallery-toolbar {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }

  .gallery-masonry {
    --gallery-gap: 0.65rem;
    --gallery-row: 98px;
    grid-template-rows: repeat(3, var(--gallery-row));
    grid-auto-columns: minmax(150px, 58vw);
  }

  .useful-links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .useful-link-card {
    min-height: 0;
  }

  .gallery-pager {
    display: none;
  }

  .lightbox-nav {
    width: 2.2rem;
    height: 2.2rem;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-logo-row {
    align-items: flex-start;
  }

  .whatsapp-float {
    width: 2.8rem;
    height: 2.8rem;
    bottom: 1rem;
    right: 1rem;
  }

  .whatsapp-float span.iconify {
    font-size: 1.4rem;
  }
}

@media (max-width: 420px) {
  .gallery-masonry {
    --gallery-row: 104px;
    grid-template-rows: repeat(2, var(--gallery-row));
    grid-auto-columns: minmax(150px, 74vw);
  }
}
