/* ============================================================
   EMPRESA (unidade do grupo) — page-specific styles
   Kept separate from infoprest.css / grupo.css; only loaded on
   empresa.html. Mobile-first: base rules target small screens,
   min-width media queries layer on refinements for larger
   viewports.
   ============================================================ */

/* ---------- Hero ----------
   Background photo + gradient is set per-empresa in empresa.js
   (data.capa), the same way the homepage hero slides work — dark
   navy is only the fallback while the image loads. */
.empresa-hero-banner {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-900);
  background-size: cover;
  background-position: center;
  padding-block: 7rem 3rem;
}
@media (min-width: 768px) {
  .empresa-hero-banner {
    padding-block: 9rem 4.5rem;
  }
}

.hero-logo-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

/* .sector-tag (gold pill for dark/photo heroes) now lives in
   infoprest.css — noticia.html needs the same treatment, so it
   graduated to the shared stylesheet. grupo.html still overrides it
   with its own light-card version, loaded after infoprest.css. */

.slogan-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

/* ---------- Sobre — banda editorial escura ----------
   Deliberately different from the homepage's "Quem somos" (photo
   card + text in two columns): solid dark band, stats up top, the
   copy reads as an oversized pull-quote below. The hero right above
   already carries the company photo, so this section stays photo-free
   on purpose — repeating the same image directly underneath the hero
   read as one long, muddy block. */
.sobre-banda {
  position: relative;
  background-color: var(--blue-900);
  overflow: hidden;
}
.sobre-banda::before {
  content: '\201C';
  position: absolute;
  top: -3.5rem;
  left: -0.5rem;
  font-family: var(--font-display);
  font-size: 18rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.sobre-stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-block: 1.75rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 640px) {
  .sobre-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sobre-stats .stat-num {
  color: var(--gold);
}
.sobre-stats .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.35rem;
}
.sobre-quote {
  position: relative;
  max-width: 46rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

/* ---------- Missão / valores — imagem e ícones ---------- */
#missao-imagem {
  aspect-ratio: 4/3;
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(2, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* ---------- Section heading helper ---------- */
.section-heading {
  max-width: 42rem;
}

/* ---------- Photo gallery ---------- */
.photo-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  margin: 0 -1.5rem;
  padding-inline: 1.5rem;
}
.photo-gallery::-webkit-scrollbar {
  height: 6px;
}
.photo-gallery::-webkit-scrollbar-thumb {
  background: var(--slate-200);
  border-radius: 999px;
}
@media (min-width: 768px) {
  .photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding-inline: 0;
  }
}
.photo-item {
  position: relative;
  flex: 0 0 78%;
  scroll-snap-align: start;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  outline: none;
  cursor: pointer;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-item:hover img,
.photo-item:focus-within img {
  transform: scale(1.05);
}
@media (min-width: 768px) {
  .photo-item {
    flex: unset;
  }
}
.photo-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 31, 61, 0.85), rgba(10, 31, 61, 0) 55%);
  transition: background 0.3s ease;
}
.photo-item:hover .photo-caption,
.photo-item:focus-within .photo-caption {
  background: rgba(10, 31, 61, 0.82);
}
.photo-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.photo-item:hover .photo-eyebrow,
.photo-item:focus-within .photo-eyebrow {
  opacity: 1;
  transform: translateY(0);
}
.photo-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}
.photo-text {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}
.photo-item:hover .photo-text,
.photo-item:focus-within .photo-text {
  max-height: 6rem;
  margin-top: 0.5rem;
  opacity: 1;
}

/* ---------- Data tables (serviços / preços) ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
}
.data-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--cream);
  padding: 0.9rem 1.2rem;
}
.data-table tbody td {
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  border-top: 1px solid var(--slate-200);
  vertical-align: top;
}
.data-table tbody td:first-child {
  font-weight: 600;
  color: var(--blue-900);
}
.data-table tbody td:last-child {
  color: var(--slate);
}
.data-table.precos-table tbody td:last-child {
  color: var(--blue-900);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Serviços — grelha de cartões ---------- */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.servico-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -28px rgba(10, 31, 61, 0.35);
  border-color: var(--blue);
}
.servico-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.servico-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

/* ---------- Accordion genérico (usado nas Perguntas frequentes) ---------- */
.accordion-list {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-item {
  border-bottom: 1px solid var(--slate-200);
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-900);
  transition: color 0.2s ease;
}
.accordion-summary::-webkit-details-marker {
  display: none;
}
.accordion-summary::marker {
  content: '';
}
.accordion-summary:hover {
  color: var(--blue);
}
.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.accordion-icon::before {
  width: 12px;
  height: 2px;
}
.accordion-icon::after {
  width: 2px;
  height: 12px;
}
.accordion-item[open] .accordion-summary {
  color: var(--blue);
}
.accordion-item[open] .accordion-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.accordion-body {
  padding: 0 1.5rem 1.4rem 1.5rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Contacto — formulário em card ---------- */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 24px 48px -32px rgba(10, 31, 61, 0.28);
}
@media (min-width: 640px) {
  .contact-form-card {
    padding: 2.25rem;
  }
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--blue-900);
  box-shadow: 0 16px 30px -12px rgba(224, 172, 0, 0.6);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 36px -12px rgba(224, 172, 0, 0.65);
}
@media (min-width: 768px) {
  .whatsapp-float {
    right: 2rem;
    bottom: 2rem;
    width: 60px;
    height: 60px;
  }
}

/* ---------- Lightbox (fotos das instalações) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 61, 0.94);
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  padding-inline: 3.5rem;
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  display: block;
  max-width: min(86vw, 900px);
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.lightbox-figure img.is-visible {
  opacity: 1;
  transform: scale(1);
}
.lightbox-caption {
  max-width: 640px;
  margin-top: 1.1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}
.lightbox-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.lightbox-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.lightbox-title {
  font-family: var(--font-display, inherit);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.lightbox-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.lightbox-nav[hidden] {
  display: none;
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
@media (min-width: 768px) {
  .lightbox-prev {
    left: 2rem;
  }
  .lightbox-next {
    right: 2rem;
  }
}
body.lightbox-locked {
  overflow: hidden;
}
