﻿.servicos-hero__desc {
  font-size: 1.15rem;
  color: #26334a;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.servicos-hero__features {
  margin-top: 1.2rem;
}
.servicos-hero__features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.2rem;
}
.servicos-hero__features li {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 500;
  color: #1a2a3a;
  background: #f7fafd;
  border-radius: 0.8em;
  padding: 0.6em 1.1em;
  box-shadow: 0 2px 8px rgba(18,52,92,0.04);
  transition: box-shadow 0.2s, background 0.2s;
}
.servicos-hero__features li:hover {
  background: #eaf4fb;
  box-shadow: 0 4px 16px rgba(18,52,92,0.10);
}
.servicos-hero__feature-icon {
  color: #19c0d7;
  font-size: 1.3em;
  margin-right: 0.7em;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .servicos-hero__features ul {
    flex-direction: column;
    gap: 1rem;
  }
}
.servicos-hero--upgrade {
  background: linear-gradient(120deg, #eaf4fb 0%, #f7fafd 100%);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(18,52,92,0.10);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
/* Dark variant for the services hero - powerful, high-contrast panel */
.servicos-hero--dark {
  /* Softer layered gradient: deep green -> teal -> soft mid tone */
  background: linear-gradient(180deg, #073028 0%, #0e5a4b 45%, #daf7f1 100%);
  color: #042a24;
  border-radius: 2rem;
  box-shadow: 0 8px 28px rgba(2,50,42,0.16);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.servicos-hero--dark .section-heading__title h2,
.servicos-hero--dark .servicos-hero__desc,
.servicos-hero--dark .section-heading__subtitle {
  color: #042a24;
}
.servicos-hero--dark .servicos-hero__desc {
  color: rgba(4,42,36,0.92);
}
.servicos-hero--dark .servicos-hero__features li {
  background: rgba(4,42,36,0.06);
  color: rgba(4,42,36,0.95);
  box-shadow: none;
}
.servicos-hero--dark .servicos-hero__feature-icon {
  color: #07c8a7;
}
.servicos-hero--dark .servicos-hero__image img {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(2,50,42,0.14);
  display: block;
  object-fit: cover;
  margin: 1.25rem auto;
}
/* Icon: make visible and keep natural colors with slight contrast tweak */
.servicos-hero--dark .servicos-hero__icon img { display: inline-block !important; filter: saturate(1.05) contrast(0.98); width:2.2em;height:2.2em;vertical-align:middle;margin-right:0.5em; }
.servicos-hero--dark .button--primary {
  background: #07c8a7;
  color: #00221a;
  border: 1px solid rgba(0,0,0,0.06);
}
.servicos-hero--dark .button--primary:hover {
  background: #05b899;
}
/* If we cannot change HTML, make the existing hero class on servicos.html appear dark */
body > main > section.servicos-hero--upgrade {
  background: linear-gradient(180deg, #073028 0%, #0e5a4b 45%, #daf7f1 100%);
  color: #042a24;
  border-radius: 2rem;
  box-shadow: 0 8px 28px rgba(2,50,42,0.16);
  padding: 2.5rem 0;
}
body > main > section.servicos-hero--upgrade .section-heading__title h2,
body > main > section.servicos-hero--upgrade .servicos-hero__desc,
body > main > section.servicos-hero--upgrade .section-heading__subtitle {
  color: #042a24;
}
body > main > section.servicos-hero--upgrade .servicos-hero__features li {
  background: rgba(4,42,36,0.06);
  color: rgba(4,42,36,0.95);
  box-shadow: none;
}
body > main > section.servicos-hero--upgrade .servicos-hero__feature-icon {
  color: #07c8a7;
}
body > main > section.servicos-hero--upgrade .servicos-hero__image img {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(2,50,42,0.14);
  display: block;
  object-fit: cover;
  margin: 1.25rem auto;
}
body > main > section.servicos-hero--upgrade .servicos-hero__icon img { display: inline-block !important; filter: saturate(1.05) contrast(0.98); width:2.2em;height:2.2em;vertical-align:middle;margin-right:0.5em; }
body > main > section.servicos-hero--upgrade .button--primary {
  background: #07c8a7;
  color: #00221a;
  border: 1px solid rgba(0,0,0,0.06);
}
body > main > section.servicos-hero--upgrade .button--primary:hover {
  background: #05b899;
}
.servicos-hero__wrapper {
  padding: 0;
}
.servicos-hero__grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.servicos-hero__info {
  flex: 2 1 340px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.servicos-hero__image {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.servicos-hero__icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}
/* Hide decorative services SVG in the hero (keeps markup intact but visually removes it) */
.servicos-hero__icon img { display: none !important; }
.servicos-hero__icon:empty { margin-right: 0; }
@media (max-width: 900px) {
  .servicos-hero__grid {
    flex-direction: column;
    gap: 2rem;
  }
  .servicos-hero__info,
  .servicos-hero__image {
    min-width: 0;
    flex: 1 1 100%;
  }
}
.sobre-cards__wrapper {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.sobre-card {
  flex: 1 1 340px;
  min-width: 280px;
  background: #f7fafd;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(18,52,92,0.04);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, background 0.2s;
  position: relative;
}
.sobre-card:hover {
  background: #eaf4fb;
  box-shadow: 0 8px 32px rgba(18,52,92,0.10);
}
.sobre-card__icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}
@media (max-width: 900px) {
  .sobre-cards__wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  .sobre-card {
    min-width: 0;
    flex: 1 1 100%;
    padding: 1.2rem 0.7rem;
  }
}
/* removed old sobre hero section styles (no longer used) */
.sobre-section--upgrade {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 16px rgba(18,52,92,0.08);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
.surface-block--upgrade {
  background: #f7fafd;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(18,52,92,0.04);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, background 0.2s;
}
.surface-block--upgrade:hover {
  background: #eaf4fb;
  box-shadow: 0 8px 32px rgba(18,52,92,0.10);
}
@media (max-width: 900px) {
  .sobre-section--upgrade {
    border-radius: 1rem;
    padding: 1.5rem 0;
  }
  .surface-block--upgrade {
    padding: 1.2rem 0.7rem;
  }
}

/* Five-Systems About section (applied to sobre.html) */
.fivesystems-about {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
.fivesystems-about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .fivesystems-about__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.page-sobre .fivesystems-about > .wrapper { width: 100% !important; margin: 0 auto; }
.page-sobre .fivesystems-about__grid { grid-template-columns: 50vw 1fr; gap: 0; }
@media (max-width: 900px) { .page-sobre .fivesystems-about__grid { grid-template-columns: 1fr; } }
.page-sobre .about-image__frame img { width: 100% !important; height: auto !important; max-height: none !important; object-fit: cover; object-position: left top; }
.page-sobre .about-content { padding: 0 24px; }
.about-image { position: relative; }
.about-image__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(2,6,23,0.14);
}
.about-image__frame img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.about-image__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,109,52,0.20), transparent 45%); }
.about-stats {
  position: absolute;
  right: -16px;
  bottom: -16px;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  display: flex;
  gap: 24px;
}
.about-stat { text-align: center; }
.about-stat__number { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.about-stat__label { font-size: 0.9rem; color: var(--secondary); }
.about-content {}
.about-title { font-size: clamp(24px, 4vw, 36px); line-height: 1.12; color: var(--primary); margin-bottom: 12px; font-weight: 800; }
.about-paragraph { color: var(--secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 10px; }
.about-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 14px 0 18px; }
.about-feature { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(3,22,35,0.06); padding: 16px; text-align: center; transition: box-shadow 200ms ease, transform 200ms ease; }
.about-feature:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(3,22,35,0.10); }
.about-feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent); }
.about-feature__title { margin: 6px 0; font-weight: 700; color: var(--primary); font-size: 1rem; }
.about-feature__desc { color: var(--secondary); font-size: 0.95rem; }
.about-features .about-feature:nth-child(2) .about-feature__icon { color: var(--accent-dark); }
.about-features .about-feature:nth-child(3) .about-feature__icon { color: var(--accent); }
.about-cta { display: inline-block; margin-top: 6px; background: var(--accent); color: #ffffff; border-radius: 999px; padding: 0.8rem 1.25rem; border: 1px solid rgba(0,0,0,0.06); font-weight: 700; }
.about-cta:hover { background: var(--accent-dark); }
.hero--upgrade {
  background: linear-gradient(120deg, #eaf4fb 0%, #f7fafd 100%);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(18,52,92,0.10);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* Contact page: dark hero for first section */
.contact-hero {
  /* darker green gradient to match brand accent */
  background: linear-gradient(180deg, #052816 0%, #0a3a20 100%);
  color: #ffffff;
  padding: 2.5rem 0;
  border-radius: 0;
  margin-bottom: 1.5rem;
}
.contact-hero .section-heading__title h2,
.contact-hero .section-heading__title p,
.contact-hero .section-heading__subtitle {
  color: rgba(255,255,255,0.95);
}

/* Give the contact page body a richer, multi-color background */
body.page-contato {
  /* clean, light background consistent with site surfaces */
  background-color: var(--surface-alt);
  background-image: none;
  background-repeat: unset;
  background-attachment: unset;
  color: var(--primary);
}

/* Ensure wrappers containing white surfaces remain readable */
.page-contato .wrapper, .page-contato .surface-block {
  color: inherit;
}
.contact-hero .badge {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: #dff8f5; /* subtle pale greenish-white */
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.04);
}
.contact-hero .button--primary {
  background: var(--accent);
  color: #fff;
}
.contact-hero .button--primary:hover {
  background: var(--accent-dark);
}

/* Home: remove rounded corners on the first (hero) section */
#conteudo > section.hero--upgrade:first-of-type {
  border-radius: 0;
}

/* Home: remove rounded corners on the second section */
#conteudo > section:nth-of-type(2) {
  border-radius: 0;
}
/* If the second section is Services, also square its background panel */
#conteudo > section:nth-of-type(2) .services__panel {
  border-radius: 0;
}

/* Home: make first section flush with the next one (no bottom margin/padding) */
#conteudo > section:first-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.hero__title {
  color: #1a2a3a;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero__highlight {
  color: #19c0d7;
  background: linear-gradient(90deg, #19c0d7 0%, #5be9b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
}
.hero__text {
  color: #26334a;
  font-size: 1.15rem;
  line-height: 1.7;
}
.services__list {
  list-style: none;
  margin: 2rem 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.services__list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f7fafd;
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: #26334a;
  box-shadow: 0 2px 8px rgba(18,52,92,0.04);
  transition: box-shadow 0.2s, background 0.2s;
}
.services__list li:hover {
  background: #eaf4fb;
  box-shadow: 0 4px 16px rgba(18,52,92,0.10);
}
.services__list svg {

/* ===== Five-Systems inspired theme (scoped) ===== */
.servicos-fivesystems .servicos-hero--upgrade {
  background: linear-gradient(135deg,#0f1724 0%,#0b1220 48%,#071226 100%);
  color: #f8fafc;
  border-radius: 1.25rem;
  padding: 3.5rem 0;
  box-shadow: 0 30px 60px rgba(2,6,23,0.6), inset 0 -2px 0 rgba(255,255,255,0.02);
}
.servicos-fivesystems .section-heading__title h2 {
  color: #f8fafc;
  font-size: 2.1rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.6px;
}
.servicos-fivesystems .servicos-hero__desc {
  color: rgba(248,250,252,0.85);
}
.servicos-fivesystems .servicos-hero__features li {
  background: rgba(255,255,255,0.03);
  color: rgba(248,250,252,0.9);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  box-shadow: none;
}
.servicos-fivesystems .servicos-hero__feature-icon { color: #ff8a00; }
.servicos-fivesystems .servicos-hero__image img {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(2,6,23,0.6);
  display: block;
  object-fit: cover;
  margin: 1.25rem auto;
}

/* Cards: use Five-Systems card look (flat, subtle border, strong heading) */
.servicos-fivesystems .service-stack {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  color: #e6eef8;
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(2,6,23,0.45);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.servicos-fivesystems .service-stack:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(2,6,23,0.6); }
.servicos-fivesystems .service-stack__head h3 { color: #ffffff; font-size: 1.15rem; }
.servicos-fivesystems .service-stack__body { color: rgba(230,238,248,0.9); }
.servicos-fivesystems .service-stack__footer .button--primary {
  background: linear-gradient(90deg,#ff8a00 0%,#ff6a00 100%);
  color: #06121a;
  padding: 0.9rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255,106,0,0.12);
  border: none;
}
.servicos-fivesystems .service-stack__footer .button--primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 48px rgba(255,106,0,0.18);
}

/* Utilities: spacing and grid tweaks for the services cards */
.servicos-fivesystems .services-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.25rem; }
.servicos-fivesystems .services-cards .service-stack { padding: 1.25rem; }

/* small screens: keep spacing comfortable */
@media (max-width:900px){
  .servicos-fivesystems .servicos-hero--upgrade { padding: 2rem 0; border-radius: 0.75rem }
  .servicos-fivesystems .section-heading__title h2 { font-size: 1.6rem }
}

/* End Five-Systems inspired theme */

/* Hover background and overlay for static NOS SERVICES cards */
.section--services .service-stack { position: relative; overflow: hidden; }
.section--services .service-stack .service-bg { transition: opacity 0.5s ease; }
.section--services .service-stack .service-overlay { transition: opacity 0.5s ease; }
.section--services .service-stack .service-overlay { display: flex; align-items: center; justify-content: center; z-index: 4 !important; pointer-events: none; }
.section--services .service-stack:hover .service-bg { opacity: 1; transform: scale(1.03); }
  .section--services .service-stack:hover .service-overlay { opacity: 1; }
.section--services .service-stack h3 { margin: 0.35rem 0 0.4rem; color: #0f1724; }
.section--services .service-stack p { color: #475569; }
.section--services .service-stack ul { margin: 0.6rem 0 0 0; padding-left: 1.15rem; color: #475569; }

/* Reveal on scroll & subtle motion to match reference */
.section--services .service-stack {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms cubic-bezier(.2,.9,.25,1), transform 420ms cubic-bezier(.2,.9,.25,1);
}
.section--services .service-stack.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section--services .service-bg {
  background-size: cover;
  background-position: center;
  will-change: opacity, transform;
  transition: opacity 520ms ease, transform 520ms ease;
}

/* Slightly larger headings and tighter spacing to better match reference */
.servicos-fivesystems .section-heading__title h2 { font-size: 2.3rem; letter-spacing: -0.8px; }
.servicos-fivesystems .service-stack { padding: 1.5rem 1.25rem; }
.servicos-fivesystems .services-cards { gap: 1.5rem; }
.servicos-fivesystems .service-stack__head h3 { font-size: 1.18rem; letter-spacing: -0.2px; }
.servicos-fivesystems .service-stack__body ul { margin-top: 0.55rem; }

/* Ensure cards in the NOS SERVICES section are left-aligned and readable */
.section--services .service-stack { text-align: left; }
.section--services .service-stack .service-stack__head > div { text-align: left !important; }
.section--services .service-stack__head h3 { color: #0f1724 !important; font-weight:700; }
.section--services .service-stack__head p,
.section--services .service-stack__body,
.section--services .service-stack__body li { color: #475569 !important; }

/* When background image and overlay are visible, switch text to light for contrast */
.section--services .service-stack:hover .service-stack__head h3,
.section--services .service-stack.is-visible .service-stack__head h3,
.section--services .service-stack:hover .service-stack__head p,
.section--services .service-stack:hover .service-stack__body,
.section--services .service-stack:hover .service-stack__body li {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Make sure content sits above bg and overlay */
.section--services .service-stack > [style*="position:relative"] {
  position: relative;
  z-index: 3;
}

/* Dark content panel inside cards for legibility over images */
  .section--services .service-content {
    background: rgba(7,20,30,0.78); /* dark translucent panel */
    padding: 1rem 1rem 1.1rem 1rem;
    border-radius: 10px;
    color: #f8fafc;
    transition: background 260ms ease, color 260ms ease;
  }
  .section--services .service-content h3,
  .section--services .service-content p,
  .section--services .service-content ul,
  .section--services .service-content li {
    color: #f8fafc !important;
  }
  .section--services .service-stack:hover .service-content {
    background: rgba(4,10,16,0.84);
  }

  /* Wider, centered content panel inside cards */
  .section--services .service-content {
    width: calc(100% - 2rem);
    max-width: 880px;
    margin: 0 auto;
  }

  @media (max-width: 900px) {
    .section--services .service-content { max-width: 92%; width: auto; }
  }

  /* Centered panel over background image: show as a box with white centered text */
  .section--services .service-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 0.75rem 0;
  }
  .section--services .card-dark {
    /* override inline styles safely for consistent appearance */
    background: rgba(6,12,18,0.6) !important;
    color: #ffffff !important;
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    display: block !important;
    text-align: center !important;
    width: 70% !important;
    max-width: 760px !important;
    box-shadow: 0 8px 30px rgba(2,6,23,0.5) !important;
  }
  .section--services .card-dark strong { display:block; font-size:1.05rem; margin-bottom:0.45rem; }
  .section--services .card-dark p { margin: 0; color: rgba(255,255,255,0.92) !important; }
  .section--services .service-stack:hover .card-dark { background: rgba(6,12,18,0.72) !important; }



/* Overlay panel content (inside .service-overlay) */
.section--services .service-overlay .overlay-panel {
  background: rgba(7,20,30,0.92);
  color: #f8fafc;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  width: calc(100% - 2rem);
  max-width: 560px;
  box-shadow: 0 18px 48px rgba(3,22,35,0.32);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
  text-align: left;
}
.section--services .service-overlay .overlay-panel h3,
.section--services .service-overlay .overlay-panel p { color: #f8fafc; margin: 0.25rem 0; }
.section--services .service-stack:hover .service-overlay .overlay-panel { opacity: 1; transform: translateY(0); }

  /* Apply the same dark content panel style to the services on servicos.html */
  .servicos-fivesystems .service-content {
    background: rgba(7,20,30,0.78);
    padding: 1rem 1rem 1.1rem 1rem;
    border-radius: 10px;
    color: #f8fafc;
    transition: background 260ms ease, color 260ms ease;
  }
  .servicos-fivesystems .service-content h3,
  .servicos-fivesystems .service-content p,
  .servicos-fivesystems .service-content ul,
  .servicos-fivesystems .service-content li {
    color: #f8fafc !important;
  }
  .servicos-fivesystems .service-stack:hover .service-content {
    background: rgba(4,10,16,0.84);
  }

/* Five-Systems repo parity: neutral card content by default, rely on hover overlay */
.section--services.servicos-fivesystems .service-content { background: transparent; padding: 0; border-radius: 0; color: inherit; }
.section--services.servicos-fivesystems .service-content h3,
.section--services.servicos-fivesystems .service-content p,
.section--services.servicos-fivesystems .service-content ul,
.section--services.servicos-fivesystems .service-content li { color: inherit !important; }
.section--services.servicos-fivesystems .service-stack:hover .service-content { background: transparent; }

/* Remove decorative left accent on Five-Systems cards to match source layout */
.section--services.servicos-fivesystems .service-stack::before { display: none; }

/* Icon wrapper subtle scale on hover (mimics group-hover scale) */
.section--services .service-icon { transition: transform 220ms ease; will-change: transform; }
.section--services .service-stack:hover .service-icon { transform: scale(1.08); }

/* Request: dark inner panel inside each card within .services-cards */
.section--services.servicos-fivesystems .services-cards .service-content {
  background: #0a1622; /* solid dark panel */
  color: #f8fafc;
  padding: 1rem 1rem 1.1rem;
  border-radius: 10px;
}
.section--services.servicos-fivesystems .services-cards .service-content h3,
.section--services.servicos-fivesystems .services-cards .service-content p,
.section--services.servicos-fivesystems .services-cards .service-content ul,
.section--services.servicos-fivesystems .services-cards .service-content li {
  color: #f8fafc !important;
}
.section--services.servicos-fivesystems .services-cards .service-stack:hover .service-content {
  background: #071019;
}

/* Prefer dedicated inner panel instead of coloring entire content */
.section--services.servicos-fivesystems .services-cards .service-content {
  background: transparent;
  color: inherit;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* widen and center the service-content container */
  width: 95%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark inner panel inside each card */
.section--services.servicos-fivesystems .services-cards .card-dark {
  background: #0a1622;
  color: #f8fafc;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-top: auto; /* pins to bottom of card content */
/* ----- Projects grid (Five-Systems Projects page style) ----- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.project-card { background: #fff; border: none; border-radius: 12px; box-shadow: 0 8px 28px rgba(3,22,35,0.08); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.project-card:hover { box-shadow: 0 16px 48px rgba(3,22,35,0.14); transform: translateY(-6px); }
.project-media { position: relative; overflow: hidden; }
.project-media img { width: 100%; height: 16rem; object-fit: cover; transition: transform .5s ease; display: block; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media .project-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.6) 8%, rgba(0,0,0,0.0) 45%, rgba(0,0,0,0.0) 100%); opacity: 0; transition: opacity .3s ease; }
.project-card:hover .project-media .project-overlay { opacity: 1; }
.project-body { padding: 1.1rem 1rem 1rem; }
.project-body h3 { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 800; color: #0f1724; letter-spacing: -0.2px; }
.project-body p { color: #475569; margin: 0 0 .75rem; line-height: 1.55; }
.project-meta { display: flex; align-items: center; justify-content: space-between; color: #64748b; font-size: .9rem; }
.project-meta .meta { display: inline-flex; align-items: center; gap: .35rem; }
.project-meta .meta i { font-size: 1rem; color: #64748b; }  /* desired: make the dark text box occupy ~70% of the card on desktop */
  width: 70% !important;
  max-width: 760px;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.section--services.servicos-fivesystems .services-cards .card-dark h3,
.section--services.servicos-fivesystems .services-cards .card-dark p,
.section--services.servicos-fivesystems .services-cards .card-dark ul,
.section--services.servicos-fivesystems .services-cards .card-dark li { color: #f8fafc !important; }
/* Force all nested text inside the dark panel to be white */
.section--services.servicos-fivesystems .services-cards .card-dark,
.section--services.servicos-fivesystems .services-cards .card-dark * { color: #f8fafc !important; }

/* Alignments for services cards: center header, left body for readability */
.section--services.servicos-fivesystems .service-stack { text-align: left; }
.section--services.servicos-fivesystems .service-stack__head { display: flex; flex-direction: column; align-items: center; text-align: center !important; }
.section--services.servicos-fivesystems .service-stack__body { text-align: left; }

/* Ensure consistent clean white card base and subtle border/shadow */
.section--services.servicos-fivesystems .service-stack {
  background: #ffffff;
  border: 1px solid rgba(3,22,35,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3,22,35,0.05);
  padding: 20px;
}

/* When card uses grid with icon column, make content span full width */
.section--services.servicos-fivesystems .service-stack > [style*="position:relative"] { grid-column: 1 / -1; }

/* Slightly larger card titles for readability */
.section--services.servicos-fivesystems .service-stack__head h3 { font-size: 1.15rem; color: #0f1724; }

/* ----- Project-style cards (image-first) ----- */
.section--services.servicos-fivesystems .services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.25rem;
}
.section--services.servicos-fivesystems .services-cards .service-stack {
  /* make the card an image container */
  background: transparent !important;
  border: none !important;
  box-shadow: 0 12px 36px rgba(2,6,23,0.08);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  position: relative;
  min-height: 320px;
  display: block;
}
.section--services.servicos-fivesystems .services-cards .service-bg {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  transform-origin: center center;
  transition: transform 520ms ease, opacity 520ms ease;
  opacity: 0.9;
}
.section--services.servicos-fivesystems .services-cards .service-stack::before {
  /* gradient overlay to ensure text contrast */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,8,12,0.18) 0%, rgba(3,8,12,0.45) 60%, rgba(3,8,12,0.72) 100%);
  pointer-events: none;
}
.section--services.servicos-fivesystems .services-cards .service-stack:hover .service-bg { transform: scale(1.04); }

/* Centered dark panel (the 'black div') */
.section--services.servicos-fivesystems .services-cards .card-dark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  width: 70% !important;
  max-width: 700px;
  background: rgba(6,12,18,0.64);
  padding: 1.05rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2,6,23,0.45);
}
.section--services.servicos-fivesystems .services-cards .card-dark strong { font-size: 1.05rem; display:block; margin-bottom:0.35rem; }
.section--services.servicos-fivesystems .services-cards .card-dark p { margin:0; color: rgba(255,255,255,0.95); }

@media (max-width: 900px) {
  .section--services.servicos-fivesystems .services-cards .service-stack { min-height: 240px; }
  .section--services.servicos-fivesystems .services-cards .card-dark { width: 92% !important; bottom: 18px; }
}






  min-width: 1.5em;

/* ===== Final override: force the centered dark panel to be 70% on desktop ===== */
/* This lives at the end of the stylesheet to beat earlier conflicting rules. */
body > main > section.section--services.servicos-fivesystems .services-cards .service-stack {
  position: relative; /* ensure the absolute card is anchored to the card */
}
body > main > section.section--services.servicos-fivesystems .services-cards .service-stack .card-dark {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 28px !important;
  width: 70% !important;
  max-width: 760px !important;
  box-sizing: border-box !important;
  z-index: 6 !important; /* sit above overlays */
  margin: 0 !important;
}
@media (max-width: 900px) {
  body > main > section.section--services.servicos-fivesystems .services-cards .service-stack .card-dark {
    width: 92% !important;
    bottom: 18px !important;
  }
}
  min-height: 1.5em;
  color: #19c0d7;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .services__list li {
    font-size: 1rem;

@media (max-width: 900px) {
  .section--services .card-dark { width: 92% !important; }
}

/* Strong override near file end to ensure desired proportions */
.section--services.servicos-fivesystems .services-cards .card-dark {
  width: 70% !important;
}
@media (max-width: 900px) {
  .section--services.servicos-fivesystems .services-cards .card-dark { width: 92% !important; }
}
    padding: 0.9rem 1rem;
  }
}

/* Height tweak for homepage Services carousel */
.section.services .services__carousel { height: 640px; }
@media (max-width: 900px) { .section.services .services__carousel { height: 420px; } }
@media (max-width: 600px) { .section.services .services__carousel { height: 340px; } }

/* Services section: richer gradient background and accent panel */
.section.services {
  background: linear-gradient(180deg, #e7f7f9 0%, #f7fafd 100%);
}
.section.services .services__panel {
  /* stronger, more colorful gradient */
  background: linear-gradient(140deg,
    rgba(6, 82, 63, 0.22) 0%,
    rgba(14, 90, 75, 0.20) 38%,
    rgba(25, 192, 215, 0.22) 100%
  );
  width: min(900px, 66%);
  filter: saturate(1.05);
}
@media (min-width: 1300px) {
  .section.services .services__panel { width: min(1000px, 60%); }
}

/* Services: improved typography and list styling */
.section.services .services__copy { max-width: 760px; }
.section.services .services__title {
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--primary);
}
.section.services .services__text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--secondary);
}
.section.services .services__list {
  gap: 14px 18px;
}
.section.services .services__list li {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 6px 18px rgba(3,22,35,0.06);
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.section.services .services__list li:hover {
  background: #f4f9fb;
  box-shadow: 0 12px 28px rgba(3,22,35,0.10);
  transform: translateY(-1px);
}
.section.services .services__list svg {
  color: var(--accent);
}
@media (max-width: 900px) {
  .section.services .services__title { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }
  .section.services .services__text { font-size: 1.02rem; }
}
.services__wrapper-upgrade {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: stretch;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.services__wrapper-upgrade .services__copy {
  flex: 2 1 340px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.services__wrapper-upgrade .services__art {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .services__wrapper-upgrade {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }
  .services__wrapper-upgrade .services__copy,
  .services__wrapper-upgrade .services__art {
    min-width: 0;
    flex: 1 1 100%;
  }
}
/* Subtle shadow effects for index.html improvements */
.shadow-soft {
  box-shadow: 0 4px 16px rgba(18, 52, 92, 0.08), 0 1.5px 4px rgba(18, 52, 92, 0.04);
}
.shadow-card {
  box-shadow: 0 4px 12px -2px rgba(17,27,39,0.06), 0 12px 32px -4px rgba(17,27,39,0.08), 0 28px 56px -10px rgba(17,27,39,0.08);
}
/* Booking / Contact improvements */
.booking {
  background: transparent;
}
.booking__inner {
  display: flex;
  gap: 2.25rem;
  align-items: stretch;
  justify-content: space-between;
  padding: 2rem 1rem;
}
.booking__copy {
  flex: 1 1 520px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.booking__title {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 0.4rem 0;
  color: var(--primary);
  font-weight: 700;
}
.booking__text {
  color: #34495e;
  font-size: 1.02rem;
  margin: 0 0 1rem 0;
}
.booking__panel {
  flex: 0 0 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
  box-shadow: var(--shadow-card);
}
.booking__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.booking__form-row {
  display: flex;
  gap: 0.6rem;
}
.booking__form .input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfdff;
  color: var(--primary);
  font-size: 0.95rem;
}
.booking__form .input:focus {
  outline: none;
  box-shadow: var(--shadow-focus, 0 0 0 4px rgba(25,192,215,0.08));
  border-color: #19c0d7;
}
.booking__form textarea.input {
  min-height: 110px;
  resize: vertical;
}
.booking__form .button--primary {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.booking__illu {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}
@media (max-width: 980px) {
  .booking__inner { flex-direction: column-reverse; padding: 1rem; }
  .booking__panel { width: 100%; flex: 1 1 auto; }
  .booking__form-row { flex-direction: column; }
  .booking__illu { max-width: 100%; }
  .booking__title { font-size: 1.35rem; }
}

/* Kicker and badges inside booking */
.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f6b6f;
  background: rgba(25,192,215,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.badges { display: flex; gap: 0.5rem; margin: 0.6rem 0 1rem 0; }
.badges .badge { font-size: 0.85rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: #f4fbfd; color: #0b4d53; }
.panel-head { display:flex; flex-direction:column; gap:0.15rem; margin-bottom:0.5rem; }
.panel-head strong { font-size:1rem; color:var(--primary); }
.panel-head small { color:var(--muted); font-size:0.85rem; }
.privacy-note { font-size:0.8rem; color:var(--muted); margin-top:0.5rem; }
.privacy-note a { color:#19c0d7; text-decoration:underline; }

/* Form extras: consent, success banner */
.consent-row { display:flex; align-items:center; gap:0.5rem; font-size:0.95rem; color:var(--muted); }
.consent-row input { width: 1rem; height: 1rem; }
.form-success { background: #e6fbfa; border: 1px solid #bff0ee; padding: 0.75rem 1rem; border-radius: 8px; color: #0b4d53; margin-top: 0.5rem; opacity: 0; transform: translateY(-6px); transition: opacity 220ms, transform 220ms; }
.form-success.is-visible { opacity: 1; transform: translateY(0); }

/* Validation and UX helpers for booking form */
.field-error {
  display: block;
  color: #9b2c2c;
  background: transparent;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
}
.field-error[hidden] { display: none; }
.field-error.is-visible { display: block; }
.consent-error { color: #9b2c2c; font-size: 0.95rem; margin: 0.4rem 0; }
.input:invalid { outline-color: #f1b0b0; }
.button.is-loading { opacity: 0.8; position: relative; pointer-events: none; }
.button.is-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255,255,255,0.9);
  border-top-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }



/* JR Segurança – Dentics-inspired landing layout */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --primary: #162233;
  --secondary: #4a5668;
  --muted: #79859b;
  --accent: #2f994a;
  --accent-dark: #1f6d34;
  --accent-soft: rgba(47, 153, 74, 0.1);
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --line: #e1e7f0;
  --shadow-soft: 0 24px 60px rgba(18, 52, 92, 0.08);
  --shadow-card: 0 26px 70px rgba(16, 38, 73, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 48px));
}

/* About page refined palette (cool neutral surfaces + depth scale) */
.page-sobre {
  /* Slightly warmer neutral to differentiate from other pages */
  --surface-alt: #f5f8fa;
  --surface: #ffffff;
  --primary: #122131;
  --secondary: #465468;
  --muted: #7a8899;
  /* Accent remains brand but we introduce gradient + subtle outline */
  --accent: #2f994a;
  --accent-dark: #1e6c33;
  --accent-soft: rgba(47, 153, 74, 0.08);
  /* Layered shadow scale for cards */
  --shadow-card: 0 4px 12px -2px rgba(17,27,39,0.06), 0 12px 32px -4px rgba(17,27,39,0.08), 0 28px 56px -10px rgba(17,27,39,0.08);
  --shadow-soft: 0 6px 18px -4px rgba(17,27,39,0.05), 0 20px 48px -6px rgba(17,27,39,0.07);
  --shadow-focus: 0 0 0 4px rgba(47,153,74,0.18), 0 2px 8px rgba(17,27,39,0.25);
}

@media (max-width: 720px) {
  :root {
    --container: calc(100% - 32px);
  }
}

@media (max-width: 980px) {
  .booking__inner { flex-direction: column-reverse; padding: 1rem; }
  .booking__panel { width: 100%; flex: 1 1 auto; }
  .booking__form-row { flex-direction: column; }
  .booking__illu { max-width: 100%; }
  .booking__title { font-size: 1.35rem; }
}
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface-alt);
  color: var(--primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

.wrapper {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 120;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: none;
}


.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
}

.topbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding: 10px 0;
  gap: 12px;
}

.topbar__group {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  transition: color 0.2s ease;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  color: var(--accent-dark);
}

.topbar__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid rgba(17, 24, 39, 0.04);
  box-shadow: 0 14px 40px rgba(15, 46, 84, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding: 20px 0;
  gap: 24px;
}

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

.logo__image {
  display: block;
  height: 64px;
  width: auto;
}

@media (max-width: 720px) {
  .logo__image {
    height: 54px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--accent-dark);
}

.nav__link.is-active {
  color: var(--accent);
}

.nav__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: none;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button--primary:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.button--ghost {
  background: #fff;
  color: var(--accent);
  border-color: rgba(47, 153, 74, 0.35);
}

.button--ghost:hover {
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: rgba(47, 153, 74, 0.12);
  border-radius: 16px;
  border: 1px solid rgba(47, 153, 74, 0.25);
  padding: 12px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

@media (max-width: 940px) {
  .nav__list {
    position: static;
  }

  .nav__cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: 86px;
    right: 24px;
    left: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav__link::after {
    bottom: -6px;
  }

  .nav__cta-mobile {
    display: inline-flex;
  }

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

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

@media (min-width: 941px) {
  .nav__cta-mobile {
    display: none !important;
  }
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 6vw, 64px);
  flex-wrap: wrap;
}

.section-heading--light .section-heading__title h2,
.section-heading--light .section-heading__title p {
  color: #fff;
}

.section-heading__title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-heading__title p {
  margin: 8px 0 0;
  font-size: 18px;
  color: var(--secondary);
}

.section-heading__subtitle {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

/* ==========================================
   About (Sobre) page enhancements
   ========================================== */
.page-sobre .about-hero {
  position: relative;
  background: linear-gradient(140deg, rgba(47,153,74,0.08) 0%, rgba(15,30,46,0.04) 38%, rgba(47,153,74,0.14) 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(22,34,51,0.06);
}

.page-sobre .about-hero::before,
.page-sobre .about-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: multiply;
}

.page-sobre .about-hero::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -140px;
  background: radial-gradient(circle at 30% 40%, rgba(47,153,74,0.55), rgba(47,153,74,0));
}

.page-sobre .about-hero::after {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -120px;
  background: radial-gradient(circle at 60% 55%, rgba(18,51,92,0.35), rgba(18,51,92,0));
}

.page-sobre .about-hero h2 {
  background: linear-gradient(100deg, var(--primary), var(--accent-dark));
  background-clip: text;
  -webkit-background-clip: text; /* Safari */
  color: transparent;
}

.page-sobre .about-hero p {
  max-width: 720px;
}

.page-sobre .surface-block {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border: 1px solid rgba(22,34,51,0.06);
  box-shadow: var(--shadow-card);
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}

.page-sobre .surface-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 15%, rgba(47,153,74,0.18), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.page-sobre .surface-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px -6px rgba(17,27,39,0.08), 0 30px 56px -12px rgba(17,27,39,0.12);
  border-color: rgba(47,153,74,0.25);
}

.page-sobre .surface-block:hover::before {
  opacity: 1;
}

.page-sobre .surface-block h3 {
  margin-top: 0;
  font-size: 1.45rem;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-sobre .surface-block h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
}

.page-sobre .highlight-list li::before {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 4px rgba(47,153,74,0.15);
}

.page-sobre .highlight-list li {
  font-size: 15px;
}

@media (max-width: 780px) {
  .page-sobre .about-hero::before,
  .page-sobre .about-hero::after { display: none; }

  .page-sobre .surface-block:hover { transform: translateY(-2px); }
}

@media (max-width: 1024px) {
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-heading__subtitle {
    font-size: 2.2rem;
  }
}

.hero {
  position: relative;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 90%, #03140d) 0%, color-mix(in srgb, var(--accent) 78%, #052719) 55%, color-mix(in srgb, var(--accent) 88%, #041a10) 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18), transparent 52%),
    radial-gradient(circle at -6% 46%, rgba(255, 255, 255, 0.22), transparent 60%);
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero__title span {
  color: color-mix(in srgb, #ffffff 85%, var(--accent) 15%);
}

.hero__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__actions .button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: transparent;
}

.hero__actions .button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hero upgrade improvements (light version on Home) */
.hero--upgrade .hero__title { color: #1a2a3a; }
.hero--upgrade .hero__text { color: #26334a; }
.hero--upgrade .badge { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.hero--upgrade .hero__actions .button--ghost { color: var(--primary); border-color: rgba(26,42,58,0.30); background: transparent; }
.hero--upgrade .hero__actions .button--ghost:hover { background: rgba(26,42,58,0.06); }

/* Helpful meta line under the CTAs without changing HTML */
.hero .hero__actions::after {
  content: "Atendimento em todo o ES · Orçamento em 24h · Sem fidelidade";
  display: block;
  font-size: 13px;
  color: rgba(38, 51, 74, 0.70);
  margin-top: 4px;
}
.hero.hero--upgrade .hero__actions::after { color: rgba(38, 51, 74, 0.70); }
.hero:not(.hero--upgrade) .hero__actions::after { color: rgba(255, 255, 255, 0.78); }

/* Trust snippet refinements */
.hero--upgrade .hero__trust p { color: rgba(26, 42, 58, 0.78); }
.hero__trust p strong { color: var(--accent); }

/* Primary button subtle lift + focus ring */
.hero .button--primary { box-shadow: 0 8px 20px rgba(47,153,74,0.20), 0 2px 8px rgba(47,153,74,0.15); }
.hero .button--primary:focus-visible { outline: 3px solid rgba(47,153,74,0.35); outline-offset: 2px; }
.hero .button--primary:hover { transform: translateY(-2px); }


.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.hero__trust img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.hero__trust p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.hero__art {
  position: relative;
}

.hero__slider {
  position: relative;
  width: min(720px, 100%);
  margin-left: auto;
  border-radius: clamp(24px, 4vw, 36px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.hero__slider-viewport {
  position: relative;
  overflow: hidden;
}

.hero__slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero__slide {
  flex: 0 0 100%;
}

.hero__slide img {
  width: 100%;
  height: clamp(320px, 45vw, 520px);
  object-fit: cover;
  /* Show the bottom of the image in the hero slider */
  object-position: center bottom;
  display: block;
}

.hero__slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}

/* Remove background panel; show only icon */
.hero__slider-control::after { content: none; }

.hero__slider-control:hover { transform: translateY(-50%) scale(1.08); }

.hero__slider-control:focus-visible {
  outline: none;
}

.hero__slider-control--prev {
  left: 18px;
}

.hero__slider-control--next {
  right: 18px;
}

.hero__slider-control svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}
/* Icon-only controls using Bootstrap Icons */
.hero__slider-control .bi { font-size: 28px; line-height: 1; color: #ffffff; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35)); }

.hero__slider-dots {
  position: static;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 34, 51, 0.08);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  scrollbar-width: none;
}

.hero__slider-dots::-webkit-scrollbar {
  display: none;
}

.hero__slider-dots button {
  width: 32px;
  height: 6px;
  border-radius: 999px;
  border: none;
  background: rgba(22, 34, 51, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.hero__slider-dots button[aria-current="true"] {
  background: var(--accent);
  width: 44px;
  transform: translateY(-1px);
}

.hero__slider-dots button:focus-visible {
  outline: 2px solid rgba(22, 34, 51, 0.65);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .hero__slider {
    width: 100%;
    margin: 0 auto;
  }

  .hero__slider-control {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .hero__slider-control {
    display: none;
  }

  .hero__slider-dots {
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.12);
  }
}

.steps {
  background: var(--accent);
  color: #fff;
  border-radius: clamp(0px, 4vw, 64px) clamp(0px, 4vw, 64px) 0 0;
}

.steps__inner {
  display: flex;
  gap: clamp(32px, 8vw, 64px);
  align-items: center;
  flex-wrap: wrap;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 4vw, 32px);
  flex: 1;
}

.step-stack {
  position: relative;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border-radius: 28px;
  padding: 28px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  min-height: 260px;
}

.step-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(47, 153, 74, 0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.step-stack:hover::after {
  opacity: 1;
}

.step-stack__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.step-stack__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.step-stack__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.step-stack__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.step-stack__head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.step-stack__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}

.step-stack__body li {
  display: flex;
  gap: 10px;
}

.step-stack__body li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  margin-top: 4px;
}

.step-stack__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step-stack__footer strong {
  font-size: 16px;
  color: #fff;
}

.services {
  position: relative;
}

.services__inner {
  position: relative;
  display: grid;
  /* Increase max width of content blocks; first column (copy) allowed to stretch */
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.9fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}

.services__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(620px, 50%); /* widened background accent */
  background: linear-gradient(135deg, rgba(47,153,74,0.10), rgba(47,153,74,0.05));
  border-radius: 0 clamp(56px, 8vw, 90px) clamp(56px, 8vw, 90px) 0;
  z-index: 0;
}

.services__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.services__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
}

.services__text {
  margin: 0;
  font-size: 18px;
  color: var(--secondary);
}

.services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 28px;
  font-weight: 600;
  color: var(--primary);
}

@media (min-width: 1300px) {
  .services__inner { grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr); }
  .services__panel { width: min(760px, 54%); }
  .services__list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 920px) {
  .services__inner { grid-template-columns: 1fr; }
  .services__panel { display: none; }
}

.services__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.services__list svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.services__art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.services__art::before {
  content: "";
  position: absolute;
  inset: -40px 20% -60px -20%;
  background: radial-gradient(circle at top left, rgba(47, 153, 74, 0.25), transparent 55%);
  filter: blur(40px);
  z-index: -1;
}

.services__art img {
  width: min(540px, 100%);
  border-radius: 32px;
  margin-left: auto;
  filter: drop-shadow(0 35px 60px rgba(17, 35, 26, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.services__art img:hover {
  transform: translateY(-6px);
  box-shadow: 0 45px 90px rgba(17, 35, 26, 0.28);
}

/* Vertical carousel used in services column */
.services__carousel { position: relative; width: 100%; max-width: 720px; height: 520px; border-radius: 28px; overflow: hidden; }
.services__carousel-viewport { width: 100%; height: 100%; overflow: hidden; }
.services__carousel-track { display: flex; flex-direction: column; transition: transform 480ms cubic-bezier(.2,.9,.2,1); }
.services__carousel-slide { flex: 0 0 100%; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg, #fff, #fbfdff); }
.services__carousel-slide img { width: 100%; height: 100%; object-fit: cover; display:block; }
.services__carousel-control { position: absolute; left: 50%; transform: translateX(-50%); background: rgba(10,20,30,0.6); color: #fff; border: none; padding: 0.5rem; border-radius: 10px; cursor: pointer; display:inline-flex; align-items:center; justify-content:center; }
.services__carousel-control--prev { top: 10px; }
.services__carousel-control--next { bottom: 10px; }
.services__carousel-dots { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display:flex; flex-direction:column; gap:8px; }
.services__carousel-dots button { width: 9px; height: 9px; border-radius:999px; border: none; background: rgba(255,255,255,0.6); cursor:pointer; }
.services__carousel-dots button[aria-current="true"] { background: #19c0d7; box-shadow: 0 6px 18px rgba(25,192,215,0.12); }

@media (max-width: 1200px) {
  .services__carousel { max-width: 620px; height: 420px; }
}

@media (max-width: 980px) {
  .services__carousel { height: 380px; }
  .services__carousel-dots { right: 6px; gap:6px; }
}

@media (max-width: 640px) {
  .services__carousel { height: 260px; border-radius: 16px; }
}

/* Ensure each slide exactly matches the viewport container height so pixel translations align reliably */
.services__carousel-viewport,
.services__carousel-track,
.services__carousel-slide { height: 100%; box-sizing: border-box; }
.services__carousel-slide { min-height: 0; }
.services__carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dismissible promo banner (Novembro Azul) */
.promo-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* ensures the image respects rounded corners */
  border: 1px solid var(--line, #e2e8f0);
  background: #ffffff;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(3,22,35,0.08));
  margin: 14px auto 22px;
}
.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.promo-banner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  color: #0f1724;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(3,22,35,0.12);
}
.promo-banner__close:hover { background: #ffffff; }
.promo-banner__close:focus-visible { outline: 2px solid #19c0d7; outline-offset: 2px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 5vw, 40px);
  margin-top: clamp(32px, 6vw, 60px);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 22px;
  height: 100%;
}

.card__icon {
  width: 86px;
  height: 86px;
  border-radius: clamp(22px, 4vw, 32px);
  background: rgba(47, 153, 74, 0.12);
  display: grid;
  place-items: center;
}

.card__icon img {
  width: 52px;
  height: 52px;
}

.card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.card__text {
  margin: 0;
  font-size: 16px;
  color: var(--secondary);
}

.team {
  position: relative;
}

.team__carousel {
  margin-top: clamp(36px, 6vw, 60px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.team__card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 20px 32px;
  box-shadow: var(--shadow-card);
  display: grid;
  justify-items: center;
  gap: 18px;
  scroll-snap-align: center;
}

.team__card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: clamp(26px, 6vw, 42px);
  background: rgba(47, 153, 74, 0.12);
  padding: 12px;
}

.team__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.team__role {
  margin: 0;
  font-size: 15px;
  color: var(--secondary);
}

.team__cta {
  margin-top: 8px;
}

.team__carousel::-webkit-scrollbar {
  height: 8px;
}

.team__carousel::-webkit-scrollbar-track {
  background: rgba(47, 153, 74, 0.06);
  border-radius: 999px;
}

.team__carousel::-webkit-scrollbar-thumb {
  background: rgba(47, 153, 74, 0.45);
  border-radius: 999px;
}

.booking {
  background: var(--surface);
  border-radius: clamp(0px, 6vw, 72px);
}

.booking__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 6vw, 60px);
  align-items: center;
}

.booking__copy {
  display: grid;
  gap: 18px;
}

.booking__title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
}

.booking__text {
  margin: 0;
  font-size: 18px;
  color: var(--secondary);
}

.booking__panel {
  position: relative;
  display: grid;
  gap: 18px;
  background: linear-gradient(145deg, rgba(47, 153, 74, 0.12), rgba(47, 153, 74, 0.06));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 40px);
}

.booking__form {
  display: grid;
  gap: 18px;
}

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

.input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(47, 153, 74, 0.3);
  background: #fff;
  font: inherit;
  color: var(--primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
  color: var(--muted);
  text-transform: none;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 153, 74, 0.15);
}

textarea.input {
  min-height: 200px;
  resize: vertical;
}

.booking__illu {
  position: absolute;
  inset: auto -20px -120px auto;
  width: min(340px, 45%);
  pointer-events: none;
  opacity: 0.25;
}

@media (max-width: 900px) {
  .booking__illu {
    display: none;
  }
}

.surface-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-card);
}

.button--block {
  width: 100%;
  justify-content: center;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 5vw, 36px);
}

.service-stack {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 28px;
  border: 1px solid rgba(22, 34, 51, 0.06);
  box-shadow: 0 10px 30px rgba(17,27,39,0.10), 0 4px 12px rgba(17,27,39,0.06);
  display: grid;
  gap: 18px;
  padding: 28px;
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}

/* Accent strip on the left to give tactile weight */
.service-stack::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent) 0%, #07c8a7 100%);
  box-shadow: 0 0 18px rgba(7,200,167,0.08);
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
}

.service-stack:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 40px 90px rgba(12,28,24,0.16), 0 12px 36px rgba(12,28,24,0.08);
  border-color: rgba(7,200,167,0.18);
}

.service-stack__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.service-stack__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7,200,167,0.12), rgba(7,200,167,0.06));
  border: 1px solid rgba(7,200,167,0.18);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(7,200,167,0.06) inset;
}

.service-stack__icon svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.service-stack__head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.service-stack__head p {
  margin: 4px 0 0;
  color: var(--secondary);
}

.service-stack__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--primary);
  font-size: 15px;
}

.service-stack__body li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.service-stack__body li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 6px;
  box-shadow: 0 0 0 6px rgba(7,200,167,0.06);
  flex-shrink: 0;
}

.service-stack__footer {
  display: grid;
  gap: 12px;
}

/* Make the primary CTA inside powerful cards stand out */
.service-stack .button--primary {
  background: linear-gradient(90deg, #07c8a7 0%, #05b899 100%);
  color: #00221a;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(7,200,167,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-stack .button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(7,200,167,0.14);
}

/* Featured card (first item) styling without changing HTML */
.services-cards > .service-stack:first-child {
  grid-column: span 1;
  transform: translateY(-6px);
  padding: 36px;
}

.services-cards > .service-stack:first-child::before {
  width: 10px;
  box-shadow: 0 0 26px rgba(7,200,167,0.12);
}

.services-cards > .service-stack:first-child .service-stack__icon {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(7,200,167,0.08) inset;
}

.services-cards > .service-stack:first-child .service-stack__head h3 {
  font-size: 22px;
}

.services-cards > .service-stack:first-child .service-stack__footer .button--primary {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
}

/* Government-like, formal styling for servicos page */
.servicos-hero--upgrade,
.servicos-hero--dark {
  --gov-bg: linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  --gov-accent: #0b3550; /* deep navy */
}

.servicos-hero--upgrade .section-heading__title h2,
.servicos-hero--upgrade .section-heading__title p {
  color: #0b2430; /* charcoal */
}

/* Tone down bright greens and replace with navy accent on this page */
.servicos-hero--upgrade .servicos-hero__feature-icon,
.servicos-hero--upgrade .service-stack__icon svg {
  color: var(--gov-accent) !important;
}

/* Cards: more restrained, less rounded, subtle border */
.servicos-hero--upgrade .service-stack,
.services-cards .service-stack {
  border-radius: 12px;
  border: 1px solid rgba(11,35,48,0.06);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(11,35,48,0.04);
  padding: 22px;
}

.servicos-hero--upgrade .service-stack::before,
.services-cards .service-stack::before {
  background: linear-gradient(180deg, var(--gov-accent) 0%, #083247 100%);
  width: 4px;
}

.servicos-hero--upgrade .service-stack__icon {
  background: rgba(11,53,80,0.06);
  border: 1px solid rgba(11,35,48,0.08);
}

/* CTA: solid navy, conservative */
.servicos-hero--upgrade .service-stack .button--primary,
.services-cards .service-stack .button--primary {
  background: var(--gov-accent);
  color: #fff;
  box-shadow: none;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
}

.servicos-hero--upgrade .service-stack .button--primary:hover,
.services-cards .service-stack .button--primary:hover {
  background: #083247;
  transform: none;
}

/* Typographic adjustments for a formal tone */
.servicos-hero--upgrade h3,
.services-cards .service-stack__head h3 {
  font-weight: 700;
  color: #07202a;
}

@media (max-width: 720px) {
  .servicos-hero--upgrade .service-stack { padding: 18px; }
  .services-cards { gap: 18px; }
  .services-cards > .service-stack:first-child { padding: 22px; }
}

/* ----- Five-Systems inspired theme for servicos ----- */
/* Scoped under .servicos-hero--upgrade to avoid global breakage */
.servicos-hero--upgrade {
  background: #ffffff;
}

.servicos-hero--upgrade .servicos-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.servicos-hero--upgrade .servicos-hero__info .section-heading__title h2 {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.05;
  color: #052734;
  margin-bottom: 0.6rem;
}

.servicos-hero--upgrade .servicos-hero__desc {
  color: #37474f;
  font-size: 16px;
  max-width: 56ch;
}

.servicos-hero__image img {
  width: 100%;
  height: auto;
  max-width: 520px;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(3,22,35,0.08);
  display: block;
  margin-left: auto;
}

/* Feature bullets as clean horizontal badges */
.servicos-hero__features ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.servicos-hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f6f8;
  color: #083247;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

/* Services grid: more neutral cards with image-backed icons */
.services-cards {
  gap: clamp(20px, 4vw, 28px);
}

.services-cards .service-stack {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 12px;
}

.services-cards .service-stack__icon {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(3,22,35,0.06);
  box-shadow: 0 8px 24px rgba(3,22,35,0.04) inset;
}

/* Use existing assets images for icons (fallback to accent if missing) */
.services-cards .service-stack:nth-child(1) .service-stack__icon { background-image: url('../img/20.jpeg'); }
.services-cards .service-stack:nth-child(2) .service-stack__icon { background-image: url('../img/21.jpeg'); }
.services-cards .service-stack:nth-child(3) .service-stack__icon { background-image: url('../img/22.jpeg'); }
.services-cards .service-stack:nth-child(4) .service-stack__icon { background-image: url('../img/23.jpeg'); }
.services-cards .service-stack:nth-child(5) .service-stack__icon { background-image: url('../img/6.jpeg'); }
.services-cards .service-stack:nth-child(6) .service-stack__icon { background-image: url('../img/7.jpeg'); }

.services-cards .service-stack__icon svg { display: none; }

.services-cards .service-stack__head h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: #06242e;
}

.services-cards .service-stack__body {
  padding-top: 2px;
}

.services-cards .service-stack__body ul { gap: 8px; }

.services-cards .service-stack__footer { margin-top: 8px; }

.services-cards .button--primary.button--block {
  width: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Reduce hover theatrics to keep it corporate and calm */
.services-cards .service-stack:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(3,22,35,0.06); }

@media (max-width: 900px) {
  .servicos-hero__grid { grid-template-columns: 1fr; }
  .services-cards .service-stack { grid-template-columns: 56px 1fr; }
  .servicos-hero__image img { max-width: 420px; margin: 0 auto; }
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 6vw, 48px);
  align-items: start;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--secondary);
}

.highlight-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(47, 153, 74, 0.12);
}

.footer {
  background: var(--accent);
  color: #fff;
  margin-top: clamp(60px, 10vw, 120px);
}

.footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 7vw, 60px);
  padding: clamp(42px, 8vw, 72px) 0 clamp(28px, 6vw, 48px);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 6vw, 42px);
}

.footer__logo {
  display: inline-flex;
  align-items: flex-start;
}

.footer__logo img {
  display: block;
  height: 68px;
  width: auto;
}

@media (max-width: 720px) {
  .footer__logo img {
    height: 58px;
  }
}

.footer__text {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 320px;
}

.footer__title {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.88);
  transition: opacity 0.2s ease;
}

.footer__list a:hover,
.footer__list a:focus-visible {
  opacity: 0.7;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
}

/* Ensure footer credits links inherit footer color */
.footer__bottom a {
  color: inherit;
}
.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  opacity: 0.85;
}

/* Footer credit line */
.footer__credit {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af; /* grey */
  text-align: center;
}
.footer__credit a { color: inherit; }
.footer__credit a:hover, .footer__credit a:focus-visible { opacity: 0.85; }

/* Section wrapper for the credit below footer */
.site-credit { padding: 12px 0; background: #9ca3af; color: #074817; }
.site-credit .footer__credit { color: inherit; }

/* Trainings banner (Treinamentos) */
.trainings-banner {
  background: linear-gradient(180deg, #06321a 0%, #0b3d22 55%, #041e12 100%);
  color: #ffffff;
  border-bottom: none;
}
.trainings-banner__inner {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 64px) 0;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}
.trainings-banner__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.trainings-banner__title { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.trainings-banner__site { color: rgba(255, 255, 255, 0.92); text-decoration: none; font-weight: 600; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); padding: 6px 10px; border-radius: 999px; }
.trainings-banner__site:hover, .trainings-banner__site:focus-visible { text-decoration: underline; }

.trainings-banner__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 20px 42px;
}
.trainings-banner__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trainings-banner__list .nr-item {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.trainings-banner__list .nr-item:hover { transform: translateY(-1px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }
.nr-code {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3.2em;
  padding: 6px 8px; border-radius: 10px; font-weight: 800; letter-spacing: .02em; color: #ffffff;
  background: rgba(25,192,215,0.18); border: 1px solid rgba(25,192,215,0.45);
  background: color-mix(in srgb, var(--accent) 18%, #0b3d22);
  border-color: color-mix(in srgb, var(--accent) 50%, #0b3d22);
}
.nr-text { line-height: 1.5; }
.nr-item--other { grid-template-columns: 1fr; border-style: dashed; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }
.nr-item--other .nr-text { font-style: italic; opacity: .95; }

@media (max-width: 800px) {
  .trainings-banner__grid { grid-template-columns: 1fr; }
}

/* Platform banner (Adequar Eng platform) */
.platform-banner {
  background-image: url('https://formasegnr.com.br/wp-content/uploads/2021/03/10-1.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
}
.platform-banner__inner {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 0;
  display: grid;
  gap: clamp(14px, 2.5vw, 22px);
  text-align: center;
}
.platform-banner__title { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.platform-banner__desc { margin: 0; color: rgba(255,255,255,0.9); }
.platform-banner__actions { display: grid; gap: 10px; justify-content: center; }
.platform-banner__link a { color: rgba(255,255,255,0.92); text-decoration: underline; word-break: break-all; }

/* Documentation banner (Portal de Documentação) */
.docs-banner {
  background-image: url('../../sierefirejr.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  max-height: 50px;
  overflow: hidden;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.docs-banner__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.docs-banner__title { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.docs-banner__desc { margin: 0; color: rgba(255,255,255,0.9); }
.docs-banner__actions { display: grid; gap: 10px; justify-content: center; }
.docs-banner__link a { color: rgba(255,255,255,0.92); text-decoration: underline; word-break: break-all; }

/* Page-specific: Treinamentos with no section margins */
.page-treinamentos .section { margin: 0; }
.page-treinamentos .footer { margin-top: 0; }

.social-links {
  display: inline-flex;
  gap: 14px;
}

.social-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Index hero: widen the image (slider) area */
#conteudo > section.hero--upgrade .hero__slider { width: 100%; }

@media (min-width: 1024px) {
  #conteudo > section.hero--upgrade .hero__grid {
    grid-template-columns: minmax(360px, 0.85fr) minmax(680px, 1.15fr);
    align-items: center;
  }
}

/* Stack text above image and make image full width on index hero */
#conteudo > section.hero--upgrade .hero__grid {
  grid-template-columns: 1fr;
  min-height: 100%;
}

#conteudo > section.hero--upgrade .hero__content {
  background: #ffffff;
  color: var(--primary);
  padding: clamp(16px, 3vw, 28px);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  min-height: var(--hero-text-min);
  transition: transform .25s ease, box-shadow .25s ease, opacity .35s ease;
  animation: heroTextIn .65s cubic-bezier(.2,.7,.2,1) both;
}

#conteudo > section.hero--upgrade .hero__content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 38, 73, 0.14), var(--shadow-card);
}

@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Layer content over the image by placing both in the same grid cell */
#conteudo > section.hero--upgrade .hero__content,
#conteudo > section.hero--upgrade .hero__slider {
  grid-area: 1 / 1;
}

#conteudo > section.hero--upgrade .hero__content {
  position: relative;
  z-index: 2;
  align-self: start;
  justify-self: start;
  max-width: min(760px, 92%);
  margin-top: clamp(16px, 6vw, 64px);
  margin-left: clamp(12px, 4vw, 48px);
  margin-right: 0;
}

@media (max-width: 720px) {
  #conteudo > section.hero--upgrade .hero__content {
    justify-self: center;
    margin-right: 0;
    margin-left: 0;
  }
}

#conteudo > section.hero--upgrade .hero__slider { z-index: 1; }

#conteudo > section.hero--upgrade .hero__content .badge {
  background: var(--accent-soft);
  color: var(--accent);
}

#conteudo > section.hero--upgrade .hero__content .hero__title { color: #0f1d2b; }
#conteudo > section.hero--upgrade .hero__content .hero__text { color: #324256; }
#conteudo > section.hero--upgrade .hero__content .hero__highlight { color: var(--accent); -webkit-text-fill-color: initial; background: none; }

/* Make the image (slider) full-bleed to viewport width */
#conteudo > section.hero--upgrade .hero__slider {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  width: 100vw;        /* full viewport width (whole page) */
  max-width: none;
  transform: translateX(-50%);
  height: 100%;        /* match the section (hero) height */
  max-height: none;
  margin: 0;
  border-radius: 0;
}

#conteudo > section.hero--upgrade .hero__slider::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Subtle vignette: left-side + top fade for better readability */
  background:
    linear-gradient(90deg, rgba(3, 10, 6, 0.48) 0%, rgba(3, 10, 6, 0.28) 30%, rgba(3, 10, 6, 0.08) 55%, rgba(3, 10, 6, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0) 80%);
}

#conteudo > section.hero--upgrade .hero__slider-viewport { height: 100%; }
#conteudo > section.hero--upgrade .hero__slide { height: 100%; }
/* On index hero, anchor images to the bottom of the frame */
#conteudo > section.hero--upgrade .hero__slide img { height: 100%; object-position: center bottom; object-fit: cover; }

/* === Index hero overrides: stronger white text palette === */
#conteudo > section.hero--upgrade {
  background: linear-gradient(140deg,
    color-mix(in srgb, var(--accent) 90%, #03140d) 0%,
    color-mix(in srgb, var(--accent) 78%, #052719) 55%,
    color-mix(in srgb, var(--accent) 88%, #041a10) 100%
  );
  color: #ffffff;
  /* Height driven by text and 3x carousel rule (capped at 700px) */
  --hero-text-min: clamp(300px, 48vh, 480px);
  --hero-slider-min: calc(3 * var(--hero-text-min));
  min-height: min(700px, var(--hero-slider-min));
  padding-top: 0; /* ensure carousel starts at the very top */
}

#conteudo > section.hero--upgrade .hero__title {
  color: #ffffff;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 1px 1px rgba(0,0,0,0.12);
}

#conteudo > section.hero--upgrade .hero__highlight {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  font-weight: 800;
}

#conteudo > section.hero--upgrade .hero__text {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.7;
  text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

#conteudo > section.hero--upgrade .hero__text strong { color: #ffffff; }
#conteudo > section.hero--upgrade .badge { background: rgba(255, 255, 255, 0.14); color: #ffffff; box-shadow: none; }
#conteudo > section.hero--upgrade .hero__actions .button--ghost { color: #ffffff; border-color: rgba(255,255,255,0.45); background: transparent; }
#conteudo > section.hero--upgrade .hero__actions .button--ghost:hover { background: rgba(255, 255, 255, 0.12); }
#conteudo > section.hero--upgrade .hero__actions::after { color: rgba(255, 255, 255, 0.78); }
#conteudo > section.hero--upgrade .hero__trust p { color: rgba(255, 255, 255, 0.78); }

.social-links a:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .hero__actions {
    width: 100%;
  }

.hero__actions .button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: transparent;
}

.hero__actions .button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}


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

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

  .services__panel {
    display: none;
  }

  .services__inner {
    grid-template-columns: 1fr;
  }

  .booking__panel {
    padding: 24px;
  }

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

.page-contato .contact-hero {
  /* stronger dark green background for contact page */
  background: linear-gradient(180deg, #06321a 0%, #0b3d22 55%, #041e12 100%);
  color: #ffffff;
  border-bottom: none;
  border-radius: 0;
}

.page-contato .surface-block h3 {
  display: flex; align-items: center; gap: 10px;
}
.page-contato .surface-block h3::before {
  content: ""; width: 10px; height: 10px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.page-contato .booking__form .input { font-size: 15px; }
.page-contato .booking__form button.button--primary { box-shadow: var(--shadow-soft); }

/* ==========================================
  Accessibility contrast tweaks – Como Funciona
  ========================================== */

/* Apply directly (progressive enhancement without extra class) */
.steps {
  background: linear-gradient(145deg, #174126 0%, #12331d 55%, #0c2214 100%);
}

.steps .section-heading__title h2,
.steps .section-heading__title p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.step-stack {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 10px -3px rgba(0,0,0,0.12), 0 14px 32px -6px rgba(0,0,0,0.16);
  border: 1px solid rgba(17,34,51,0.08);
}

.step-stack__head h3 { color: var(--primary); }
.step-stack__head p { color: var(--secondary); }

.step-stack__body ul { color: var(--secondary); }
.step-stack__body li::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(47,153,74,0.18); }

.step-stack__icon { background: linear-gradient(135deg, var(--accent-soft), rgba(47,153,74,0.22)); border: 1px solid rgba(47,153,74,0.35); }
.step-stack__icon svg { color: var(--accent); }

.step-stack__footer { border-top: 1px solid rgba(17,34,51,0.08); color: var(--muted); }
.step-stack__footer strong { color: var(--accent-dark); }

@media (prefers-color-scheme: dark) {
  .steps { background: linear-gradient(145deg, #0c2014 0%, #0b1a11 60%, #08130c 100%); }
  .step-stack { background: #0f1d26; color: #e5eef4; border-color: rgba(255,255,255,0.08); box-shadow: 0 6px 14px -4px rgba(0,0,0,0.4), 0 20px 40px -10px rgba(0,0,0,0.55); }
  .step-stack__head h3 { color: #fff; }
  .step-stack__head p, .step-stack__body ul { color: #c3d0db; }
  .step-stack__footer { border-top-color: rgba(255,255,255,0.12); color: #9fb0be; }
  .step-stack__footer strong { color: #fff; }
}








.services-cards .card-dark,
.services-cards .card-dark * { color: #f8fafc !important; }

/* Improve dark panel typography */
.services-cards .card-dark strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.2px;
}
.services-cards .card-dark p {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(248,250,252,0.92) !important;
}

/* ----- Projects grid (Five-Systems Projects page style) ----- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.project-card { background: #fff; border: none; border-radius: 12px; box-shadow: 0 8px 28px rgba(3,22,35,0.08); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease; }
.project-card:hover { box-shadow: 0 16px 48px rgba(3,22,35,0.14); transform: translateY(-6px); }
.project-media { position: relative; overflow: hidden; }
.project-media img { width: 100%; height: 16rem; object-fit: cover; transition: transform .5s ease; display: block; }
.project-card:hover .project-media img { transform: scale(1.06); }
.project-media .project-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.6) 8%, rgba(0,0,0,0.0) 45%, rgba(0,0,0,0.0) 100%); opacity: 0; transition: opacity .3s ease; }
.project-card:hover .project-media .project-overlay { opacity: 1; }
.project-logo { display: none; position: absolute; top: .75rem; right: .75rem; display: inline-block; background: rgba(255,255,255,0.9); border-radius: 6px; padding: 4px; box-shadow: 0 6px 18px rgba(3,22,35,0.18); }
.project-logo img { display: none; width: 26px; height: 26px; display: block; border-radius: 4px; }
.project-view { position: absolute; bottom: .8rem; right: .8rem; opacity: 0; transition: opacity .3s ease; background: #ffffff; color: #0f1724; border: 0; border-radius: 999px; padding: .5rem .6rem; box-shadow: 0 8px 24px rgba(3,22,35,0.22); cursor: pointer; }
.project-view i { font-size: 1rem; }
.project-card:hover .project-view { opacity: 1; }
.project-body { padding: 1.1rem 1rem 1rem; }
.project-body h3 { margin: 0 0 .35rem; font-size: 1.1rem; font-weight: 800; color: #0f1724; letter-spacing: -0.2px; }
.project-body p { color: #475569; margin: 0 0 .75rem; line-height: 1.55; }
.project-meta { display: flex; align-items: center; justify-content: space-between; color: #64748b; font-size: .9rem; }
.project-meta .meta { display: inline-flex; align-items: center; gap: .35rem; }
.project-meta .meta i { font-size: 1rem; color: #64748b; }

/* Image modal */
.project-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: none; align-items: center; justify-content: center; z-index: 9999; }
.project-modal.is-open { display: flex; }
.project-modal__image { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,0.35); object-fit: contain; }
.project-modal__close { position: absolute; top: 1rem; right: 1rem; background: transparent; color: #fff; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; }
