/* CMS pages (resources/views/site/page.blade.php): same fonts, colours and spacing as the landing page.
   Plain CSS on purpose: it doesn't depend on rebuilding Tailwind's output.css. */

.cms-body {
  --cms-navy: #002D4D;
  --cms-ink: #1D2830;
  --cms-muted: #4B4E51;
  --cms-cerulean: #349BC7;
  --cms-sky: #E5F1F9;
  --cms-tint: #F3F8FC;
  --cms-line: #DCE6EE;
  background: #FFFFFF;
  color: var(--cms-ink);
  font-family: "Inter", sans-serif;
}

.cms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Hero ---------- */

.cms-hero {
  position: relative;
  z-index: 1;
  padding: 112px 0 56px;
  color: #FFFFFF;
  background-color: var(--cms-navy);
  background-image: linear-gradient(180deg, rgba(0, 33, 61, .55) 0%, rgba(0, 45, 77, .85) 100%), url("../imagem/Section.png");
  background-size: cover;
  background-position: center;
}

/* No video: full photo behind the text, darkened towards the bottom like the landing hero */
.cms-hero--photo {
  display: flex;
  align-items: flex-end;
  min-height: 72vh;
  background-image: linear-gradient(180deg, rgba(0, 33, 61, .35) 0%, rgba(0, 33, 61, .9) 100%), var(--cms-hero-photo);
  background-position: center top;
}

.cms-hero--photo .cms-container {
  width: 100%;
}

.cms-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.cms-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cms-pill {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cms-navy);
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 12px;
}

.cms-hero-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}

.cms-hero-summary {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.35;
  color: var(--cms-sky);
  max-width: 40rem;
}

.cms-hero-summary p,
.cms-hero-summary b,
.cms-hero-summary strong {
  margin: 0;
  font-weight: 600;
}

.cms-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--cms-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .2s ease;
}

.cms-button:hover {
  background: var(--cms-sky);
}

.cms-hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  background: #000000;
}

.cms-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.cms-video {
  aspect-ratio: 16 / 9;
}

.cms-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Sections ---------- */

.cms-section {
  position: relative;
  z-index: 1;
  padding: 56px 0;
  background: #FFFFFF;
}

.cms-section--tint {
  background: var(--cms-tint);
}

.cms-section-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--cms-ink);
  margin: 0 0 20px;
}

/* Short accent line above section titles, in the landing page's cerulean */
.cms-feature-text .cms-section-title::before,
.cms-faq .cms-section-title::before,
.cms-modules-head .cms-section-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--cms-cerulean);
  margin-bottom: 16px;
}

.cms-feature {
  display: grid;
  gap: 28px;
  align-items: center;
}

.cms-feature-media {
  margin: 0;
}

.cms-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--cms-line);
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  cursor: zoom-in;
  box-shadow: 0 12px 32px rgba(0, 45, 77, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.cms-zoom img {
  display: block;
  width: 100%;
  height: auto;
}

.cms-zoom:focus-visible,
.cms-button:focus-visible,
.cms-link:focus-visible,
.cms-module:focus-visible,
.cms-pager-link:focus-visible {
  outline: 3px solid var(--cms-cerulean);
  outline-offset: 3px;
}

/* Text from the CMS editor: paragraphs, bold and bullet lists */
.cms-richtext {
  font-size: 17px;
  line-height: 1.65;
  color: var(--cms-muted);
}

.cms-richtext p {
  margin: 0 0 14px;
}

.cms-richtext strong,
.cms-richtext b {
  color: var(--cms-ink);
  font-weight: 600;
}

.cms-richtext ul,
.cms-richtext ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.cms-richtext li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.cms-richtext ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cms-cerulean);
}

.cms-richtext ol {
  counter-reset: cms-list;
}

.cms-richtext ol li::before {
  counter-increment: cms-list;
  content: counter(cms-list) ".";
  position: absolute;
  left: 0;
  color: var(--cms-cerulean);
  font-weight: 600;
}

.cms-richtext img {
  max-width: 100%;
  height: auto;
}

.cms-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 6px;
  color: #1A73B5;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.cms-block .cms-block-line {
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  color: var(--cms-muted);
  margin: 0 0 8px;
}

/* ---------- FAQ ---------- */

.cms-faq {
  display: grid;
  gap: 24px;
}

.cms-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cms-faq-item {
  background: #FFFFFF;
  border: 1px solid var(--cms-line);
  border-radius: 12px;
  padding: 0 20px;
}

.cms-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  position: relative;
  font-weight: 600;
  color: var(--cms-ink);
}

.cms-faq-item summary::-webkit-details-marker {
  display: none;
}

.cms-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--cms-cerulean);
}

.cms-faq-item[open] summary::after {
  content: "−";
}

.cms-faq-item p {
  margin: 0 0 18px;
  color: var(--cms-muted);
  line-height: 1.6;
}

.cms-faq-item a {
  color: #1A73B5;
  word-break: break-word;
}

/* ---------- Other modules ---------- */

.cms-modules-head {
  max-width: 44rem;
  margin-bottom: 28px;
}

.cms-modules-head p {
  color: var(--cms-muted);
  line-height: 1.6;
  margin: 0;
}

.cms-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cms-module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--cms-line);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--cms-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cms-module img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.cms-module.is-current {
  border-color: var(--cms-cerulean);
  background: var(--cms-sky);
}

.cms-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.cms-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--cms-navy);
  color: #FFFFFF;
  text-decoration: none;
}

.cms-pager-link small {
  font-size: 13px;
  color: var(--cms-sky);
}

.cms-pager-link span {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 17px;
}

.cms-pager-link--next {
  text-align: right;
}

/* ---------- Image lightbox ---------- */

.cms-lightbox {
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #FFFFFF;
  overflow: auto;
}

.cms-lightbox::backdrop {
  background: rgba(0, 20, 36, .8);
}

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

.cms-lightbox-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px -48px 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cms-navy);
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cms-board {
  display: block;
  width: 100%;
  height: calc(100vh - 72px);
  margin-top: 72px;
  border: 0;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .cms-container {
    padding: 0 32px;
  }

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

@media (min-width: 1024px) {
  .cms-hero {
    padding: 160px 0 96px;
  }

  .cms-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* Text-only hero: same left edge as the rest of the page, with a readable line length */
  .cms-hero-grid--text {
    grid-template-columns: 1fr;
  }

  .cms-hero-grid--text .cms-hero-text {
    max-width: 56rem;
  }

  .cms-hero-title {
    font-size: 64px;
  }

  .cms-hero-summary {
    font-size: 24px;
  }

  .cms-section {
    padding: 96px 0;
  }

  .cms-section-title {
    font-size: 40px;
  }

  .cms-feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* Every other section puts the image on the right */
  .cms-feature--flip .cms-feature-media {
    order: 2;
  }

  .cms-feature--full {
    grid-template-columns: 1fr;
    max-width: 960px;
  }

  .cms-faq {
    grid-template-columns: 2fr 3fr;
    gap: 64px;
    align-items: start;
  }

  .cms-modules {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cms-module {
    flex-direction: column;
    text-align: center;
    padding: 20px 12px;
  }
}

@media (hover: hover) {
  .cms-zoom:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(0, 45, 77, .14);
  }

  .cms-module:hover {
    border-color: var(--cms-cerulean);
    box-shadow: 0 8px 24px rgba(0, 45, 77, .08);
  }

  .cms-link:hover {
    color: var(--cms-navy);
  }
}
