/*
 * Codnod brand + depth layer over the Techvio template.
 *
 * Techvio ships only compiled CSS (no SCSS source), so unlike the Yufa
 * template this cannot be recompiled with brand variables — it has to be
 * overridden. The template's lilac #7b68ee appears 126 times; these rules
 * replace it with the Codnod purple and orange wherever it is user-visible.
 *
 * Loaded last in Layout.astro so it wins the cascade.
 */

:root {
  --codnod-main: #270c3d;
  --codnod-accent: #ea6c00;
  --codnod-accent-text: #b35300; /* 5.1:1 on white; #ea6c00 is only 3.2:1, fine for fills not text */
  --codnod-secondary: #f5ebff;
  --codnod-muted: #6f6f6f; /* 5.0:1 on white, the lightest grey that passes AA for body text */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- brand colour: replace the template lilac ---------- */

.sub-title,
.section-title h6.sub-title {
  color: var(--codnod-accent-text) !important;
  font-family: 'Dosis', sans-serif;
  line-height: 1.4;
  letter-spacing: 0.14em;
  font-weight: 600;
  /* eyebrows are <p>, so section rules like .about-content p would reset this */
  margin: 0 0 5px !important;
}

.home-section .sub-title,
.hire-section .sub-title {
  color: #ff9a4d !important;
}

.default-btn-one,
.default-btn-one:hover,
.default-btn-one:focus {
  background-color: var(--codnod-accent) !important;
  border-color: var(--codnod-accent) !important;
  color: #270c3d !important;
  font-weight: 600;
}

/* Secondary button: an outline in the brand purple on light pages (the service
   heroes), and white only on the dark homepage hero and closing band. */
.default-btn-two,
.default-btn-two:hover,
.default-btn-two:focus {
  background-color: transparent;
  border: 1px solid rgba(39, 12, 61, 0.35);
  color: var(--codnod-main);
  box-shadow: none;
}

.home-section.index-1 .default-btn-two,
.home-section.index-1 .default-btn-two:hover,
.home-section.index-1 .default-btn-two:focus,
.hire-section .default-btn-two,
.hire-section .default-btn-two:hover,
.hire-section .default-btn-two:focus,
.page-band .default-btn-two,
.page-band .default-btn-two:hover,
.page-band .default-btn-two:focus {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

/* The template's hover wipe grows a <span> in its own colours (#52287b behind
   btn-one, #fff behind btn-two), which buried our forced label colours. Keep
   the wipe, but in tones the labels stay readable on. */
.default-btn-one span { background-color: #ff8a2a; }
.default-btn-two span { background-color: var(--codnod-secondary); }

.home-section.index-1 .default-btn-two span,
.hire-section .default-btn-two span,
.page-band .default-btn-two span { background-color: rgba(255, 255, 255, 0.14); }

.banner-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.banner-btn a { margin: 0 !important; }

/* ---------- keyboard focus ---------- */

/* The template kills every link outline with `a { outline: 0 !important }`
   (style.css), so focus rings here have to be !important too. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--codnod-accent) !important;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: none !important;
}

.home-section a:focus-visible,
.hire-section a:focus-visible,
.footer-area a:focus-visible,
.service-card-featured a:focus-visible {
  outline-color: #fff !important;
}

main:focus-visible { outline: none !important; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: var(--codnod-main);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-soft);
}

.skip-link:focus { transform: none; color: #fff; }

.home-section.index-1 {
  background: linear-gradient(135deg, #1b0729 0%, var(--codnod-main) 55%, #3d1259 100%) !important;
  position: relative;
  overflow: hidden;
}

/* ---------- hero ---------- */

@keyframes codnod-aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(3%, -4%, 0) scale(1.08); }
  66%      { transform: translate3d(-3%, 3%, 0) scale(0.96); }
}

@keyframes codnod-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-aurora::before,
.hero-aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-aurora::before {
  width: 44vw;
  height: 44vw;
  max-width: 680px;
  max-height: 680px;
  top: -12%;
  right: -6%;
  background: radial-gradient(circle, rgba(234, 108, 0, 0.45) 0%, rgba(234, 108, 0, 0) 68%);
  animation: codnod-aurora 22s ease-in-out infinite;
}

.hero-aurora::after {
  width: 36vw;
  height: 36vw;
  max-width: 540px;
  max-height: 540px;
  bottom: -16%;
  left: -8%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0) 70%);
  animation: codnod-aurora 28s ease-in-out infinite reverse;
}

.home-section .container { position: relative; z-index: 1; }

.hero-partner-badge {
  display: block;
  margin-bottom: 1.5rem;
}

.hero-partner-badge img {
  display: block;
  width: auto;
  height: 74px;
}

.main-banner-content h1 {
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

a.hero-partner-badge { width: fit-content; transition: opacity 0.25s var(--ease-soft); }
a.hero-partner-badge:hover { opacity: 0.85; }

@media (max-width: 991.98px) {
  a.hero-partner-badge { margin-inline: auto; }
}

.main-banner-content p {
  color: rgba(255, 255, 255, 0.85);
}

/* The template pins the hero at height: 1000px and centres it, which left a
   ~230px empty band above the headline on a 900px screen. Size it to the
   viewport instead, with room for the fixed navbar on top and the wave below. */
.home-section.index-1 {
  height: auto;
  min-height: min(100svh, 860px);
  padding: 130px 0 140px;
}

.home-section.index-1 .main-banner-content { padding-top: 0; }

@media (max-width: 991.98px) {
  .home-section.index-1 {
    min-height: 0;
    padding: 110px 0 120px !important;
  }

  .hero-partner-badge img { margin-inline: auto; }
  .home-section.index-1 .banner-image { margin-top: 2.5rem; }
}

@media (max-width: 575.98px) {
  .hero-partner-badge img { height: 60px; }

  .home-section.index-1 .banner-btn a {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 0.75rem !important;
  }
}

.hero-shot {
  position: relative;
  animation: codnod-float 7s ease-in-out infinite;
}

.hero-shot::before {
  content: '';
  position: absolute;
  inset: 10% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(234, 108, 0, 0.35) 0%, rgba(234, 108, 0, 0) 70%);
  filter: blur(50px);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.16),
    0 24px 60px rgba(39, 12, 61, 0.35);
}

/* "O que é o Odoo": a brand dot grid (the footer map's dots) breaks up the white,
   densest behind the app tiles and fading out towards the text */
#o-que-e-o-odoo {
  position: relative;
  isolation: isolate;
}

#o-que-e-o-odoo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(39, 12, 61, 0.26) 1.5px, transparent 2px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 65% 90% at 25% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 90% at 25% 50%, #000 15%, transparent 72%);
  pointer-events: none;
}

#o-que-e-o-odoo::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  z-index: -1;
  width: 45%;
  height: 80%;
  background: radial-gradient(ellipse at center, #f5ebff 0%, rgba(245, 235, 255, 0) 70%);
  pointer-events: none;
}

.about-area .about-content { max-width: 34rem; }

/* app grid in the style of odoo.com/page/all-apps: white icon tiles, name below */
.odoo-apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 1rem;
}

.odoo-apps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.odoo-apps img {
  display: block;
  width: 76px;
  height: 76px;
  padding: 15px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(39, 12, 61, 0.06),
    0 10px 24px rgba(39, 12, 61, 0.08);
}

.odoo-apps span {
  color: var(--codnod-main);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.odoo-apps-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  color: var(--codnod-accent-text);
  font-weight: 600;
}

.odoo-apps-more:hover { color: var(--codnod-main); }
.odoo-apps-more .bi { font-size: 0.8em; }

@media (max-width: 575.98px) {
  .odoo-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 0.5rem; }
  .odoo-apps img { width: 64px; height: 64px; padding: 12px; border-radius: 16px; }
  .odoo-apps span { font-size: 0.85rem; }
}

@media (max-width: 991.98px) {
  .about-area .odoo-apps-wrap { margin: 0 0 3rem; }
  #o-que-e-o-odoo::before {
    -webkit-mask-image: radial-gradient(ellipse 100% 45% at 50% 25%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 100% 45% at 50% 25%, #000 15%, transparent 75%);
  }
  #o-que-e-o-odoo::after { top: 3%; left: 0; width: 100%; height: 45%; }
  .about-area .about-content { max-width: none; }
}

/* ---------- headings ---------- */

.section-title h2,
.about-content h2,
.overview-content h2 {
  color: var(--codnod-main);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-intro {
  max-width: 60ch;
  margin: 0.75rem auto 0;
  color: var(--codnod-muted);
}

.lead-line {
  font-weight: 600;
  color: var(--codnod-main);
}

/* ---------- service cards ---------- */

/* Odoo is the core offer, so it takes a 2x2 tile in a 3-column grid and the
   other five fill the remaining cells (4 + 5 = 9). */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(39, 12, 61, 0.07);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(39, 12, 61, 0.05);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 108, 0, 0.3);
  box-shadow: 0 18px 45px rgba(39, 12, 61, 0.12);
}

.service-icon {
  display: block;
  color: var(--codnod-accent);
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.service-card h3 {
  color: var(--codnod-main);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.service-card p {
  flex: 1 1 auto;
  color: var(--codnod-muted);
  margin-bottom: 1.25rem;
}

.services-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  color: var(--codnod-accent-text);
  font-weight: 600;
  text-decoration: none;
}

.services-btn:hover { color: var(--codnod-accent-text); }

.services-btn i {
  font-size: 1.1em;
  transition: transform 0.25s var(--ease-soft);
}

.service-card:hover .services-btn i { transform: translateX(4px); }

.service-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background: linear-gradient(135deg, #1b0729 0%, var(--codnod-main) 55%, #3d1259 100%);
  box-shadow: 0 20px 50px rgba(39, 12, 61, 0.22);
}

.service-card-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 90% 0%, rgba(186, 133, 230, 0.26) 0%, rgba(186, 133, 230, 0) 55%);
  pointer-events: none;
}

.service-card-featured:hover {
  border-color: transparent;
  box-shadow: 0 28px 60px rgba(39, 12, 61, 0.3);
}

.service-card-body {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.5rem 0;
}

.service-card-featured h3 {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.service-card-featured p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.service-card-featured .services-btn,
.service-card-featured .services-btn:hover { color: #ff9a4d; }

/* The screenshot bleeds off the right and bottom edges; a fixed render width
   keeps the invoice list legible and lets the card crop it. */
.service-shot {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  margin: 2rem 0 0 2.5rem;
  overflow: hidden;
  border-top-left-radius: 12px;
  box-shadow: -12px -8px 40px rgba(0, 0, 0, 0.25);
}

.service-shot img {
  position: absolute;
  top: 0;
  left: 0;
  width: max(100%, 760px);
  max-width: none;
  height: auto;
  transition: transform 0.6s var(--ease-soft);
}

.service-card-featured:hover .service-shot img { transform: translateY(-6px); }

@media (max-width: 991.98px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card-featured { grid-column: 1 / -1; grid-row: auto; }
  .services-grid > .service-card:last-child { grid-column: 1 / -1; }
  .service-shot { min-height: 260px; }
}

@media (max-width: 575.98px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .service-card-body { padding: 2rem 1.6rem 0; }
  .service-shot { margin-left: 1.6rem; min-height: 220px; }
}

/* ---------- implementation process ---------- */

/* Numbered because the order is the information: each phase depends on the one
   before. No durations: every project has its own scope. */
.process-section {
  padding: 100px 0;
  background: var(--codnod-secondary);
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.25rem 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.process-head h2 {
  color: var(--codnod-main);
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.process-head p,
.process-step p {
  color: #5b4868; /* 7.2:1 on the lilac band; neutral grey drops below 4.5:1 here */
  margin: 0;
}

.process-head p { font-size: 1.1rem; max-width: 52ch; }

.process-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--codnod-accent) 0%, rgba(234, 108, 0, 0.12) 100%);
}

.process-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--codnod-main);
  color: #fff;
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--codnod-secondary);
}

.process-step h3 {
  color: var(--codnod-main);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

@media (max-width: 991.98px) {
  .process-section { padding: 80px 0; }
  .process-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 2.5rem; }
  .process-steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .process-steps::before { top: 0; bottom: 0; left: 1.4rem; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--codnod-accent) 0%, rgba(234, 108, 0, 0.12) 100%); }
  .process-step { position: relative; padding-left: 4.25rem; min-height: 2.8rem; }
  .process-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- why-us list ---------- */

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid rgba(39, 12, 61, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(39, 12, 61, 0.06);
}

.why-list i {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--codnod-accent), #ff9640);
  color: #fff;
  font-size: 0.85rem;
}

.why-list strong {
  display: block;
  color: var(--codnod-main);
  margin-bottom: 0.15rem;
}

.why-list span { color: var(--codnod-muted); }

/* ---------- FAQ (native details, replaces the template accordion) ---------- */

.faq-accordion .faq-item {
  background: #fff;
  border: 1px solid rgba(39, 12, 61, 0.08);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-soft);
}

.faq-accordion .faq-item[open] { box-shadow: 0 12px 32px rgba(39, 12, 61, 0.12); }

.faq-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  color: var(--codnod-main);
}

.faq-accordion summary::-webkit-details-marker { display: none; }
/* .faq-item clips overflow for its rounded corners, so the ring goes inside,
   in purple: orange on white is only ~3:1 */
.faq-accordion summary:focus-visible {
  outline-color: var(--codnod-main) !important;
  outline-offset: -3px;
  border-radius: 12px;
}
.faq-accordion summary i { color: var(--codnod-accent); transition: transform 0.25s var(--ease-soft); }
.faq-accordion .faq-item[open] summary i { transform: rotate(180deg); }

.faq-accordion .faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--codnod-muted);
  line-height: 1.65;
}

.faq-section.home-faq .section-title { text-align: center; }
.faq-accordion .faq-answer p { max-width: 70ch; }

.overview-content p + p { margin-top: 1rem; }

.footer-area .footer-logo { display: block; width: fit-content; margin-top: 0.25rem; }

.footer-partner {
  display: block;
  width: fit-content;
  margin-top: 1.75rem;
  transition: opacity 0.25s var(--ease-soft);
}

.footer-partner:hover { opacity: 0.85; }
/* the SVG's artwork starts ~91 of 600 units in; pull it back so "odoo" lines up with the logo */
.footer-partner img { display: block; width: auto; height: 56px; margin-left: calc(56px * -91 / 300); }

/* footer column titles are <h2> (the template used <h3> under the page's own
   sections); they keep the template's 20px look */
.single-footer-widget .footer-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* was an <h3>, which put "Telefone" and "Email" in the page outline */
.single-footer-widget .footer-info-contact .footer-contact-label {
  margin: 0 0 10px;
  color: #fff;
  font-family: 'Dosis', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.footer-quick-links .bi { margin-left: 0.25em; font-size: 0.75em; }

/* the template's hover colour was the footer's own #270c3d, so links vanished */
.copyright-area p { margin: 0; }
.copyright-area p a:hover,
.copyright-area ul li a:hover,
.copyright-area .cookie-settings:hover { color: #ff9a4d; }

.copyright-area .copyright-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.75rem;
  list-style: none;
}

.copyright-area .copyright-links li { margin: 0; }
.copyright-area .copyright-links li::before { display: none; }

@media (max-width: 991.98px) {
  .copyright-area { text-align: left; }
  .copyright-area .copyright-links { justify-content: flex-start; margin-top: 0.75rem; }
}

/* the closing CTA band and the footer share #270c3d; a hairline keeps them apart */
.footer-subscribe-wrapper { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- navbar actions ---------- */

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.5rem;
  border: 1px solid rgba(39, 12, 61, 0.2);
  border-radius: 8px;
  color: var(--codnod-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-switch:hover { color: var(--codnod-accent-text); border-color: currentColor; }

body.home-page .navbar-section:not(.is-sticky) .lang-switch {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

body.home-page .navbar-section:not(.is-sticky) .lang-switch:hover { color: #ff9a4d; }

.nav-actions .nav-cta {
  margin: 0;
  padding: 10px 22px;
  font-size: 15px;
  box-shadow: none;
  white-space: nowrap;
}

/* the template hides the actions from 992px to 1199px, where no burger menu
   exists yet, so the language switch and the demo button simply disappeared;
   it also clipped the menu with overflow:hidden, cutting off the dropdown */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-section .other-option.nav-actions { display: flex; gap: 0.6rem; }
  .techvio-nav .navbar .navbar-nav { margin: auto; overflow: visible; }
  .nav-actions .nav-cta { padding: 9px 16px; font-size: 14px; }
}

/* the template capitalised every word ("Agentes De IA"); service names keep their own case */
.techvio-nav .navbar .navbar-nav .nav-item .dropdown-menu li a,
.mean-container .mean-nav ul li a { text-transform: none; }

/* ---------- mobile menu (MeanMenu) ---------- */

@media (max-width: 991.98px) {
  /* the template boxed the menu at 300px with its own scrollbar, hiding the last items */
  .techvio-responsive-nav .techvio-responsive-menu.mean-container .navbar-nav {
    height: auto;
    overflow: visible;
  }

  /* the submenu toggle was width:100% plus padding: wider than the screen, covering "Serviços" */
  .mean-container .mean-nav ul li a.mean-expand {
    width: 3.25rem;
    height: 3.2rem; /* one row tall, so it stays beside "Serviços" when the submenu opens */
    box-sizing: border-box;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* MeanMenu clones the desktop markup, so items keep the desktop 15px padding
     and the dropdown keeps its hidden, absolutely positioned desktop state */
  .mean-container .mean-nav .nav-item { padding: 0; }

  .mean-container .mean-nav .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 0;
  }

  /* MeanMenu only slides its first <ul>, so the actions row follows the
     reveal button's open state (.meanclose) instead of always showing */
  .mean-container .mean-nav .nav-actions { display: none; }

  .mean-container .meanmenu-reveal.meanclose ~ .mean-nav .nav-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5%;
    background: #fff;
  }

  .mean-container .mean-nav .nav-actions a {
    width: auto;
    border-top: 0;
    float: none;
  }

  .mean-container .mean-nav .nav-actions .nav-cta {
    flex: 1;
    padding: 12px 18px !important;
    color: var(--codnod-main) !important;
  }

  .mean-container .mean-nav .nav-actions .lang-switch,
  body.home-page .navbar-section:not(.is-sticky) .mean-nav .lang-switch {
    padding: 0 !important;
    color: var(--codnod-main);
    border-color: rgba(39, 12, 61, 0.2);
  }
}

/* ---------- back to top ---------- */

button.go-top {
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* the template's purple button matched the footer and vanished over it */
.go-top {
  background-color: var(--codnod-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.go-top::before { background-color: var(--codnod-main); }

.why-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--codnod-accent-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.why-link:hover { color: var(--codnod-main); }

/* `.why-list i` draws the check-mark disc; the link's external-link icon stays plain */
.why-list .why-link i {
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  color: inherit;
  font-size: 0.8em;
}
.why-list li > div > span { display: block; }

.lang-tag {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0 0.35em;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  vertical-align: 0.15em;
  opacity: 0.75;
}

/* ---------- contact / demo request ---------- */

.page-band {
  padding: 150px 0 70px;
  background: linear-gradient(135deg, #1b0729 0%, var(--codnod-main) 60%, #3d1259 100%);
  color: rgba(255, 255, 255, 0.85);
}

.page-band h1 {
  color: #fff;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0.75rem 0 1rem;
}

.page-band p { max-width: 60ch; margin: 0; font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); }

.page-band-solo {
  display: flex;
  align-items: center;
  min-height: 70vh;
}

.page-band-solo > .container { width: 100%; }

/* the footer's dotted world map, anchored right and faded out behind the text */
.page-band-map { position: relative; isolation: isolate; overflow: hidden; }

.page-band-map::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../img/dot-bg.png) no-repeat right -4% center / auto 170%;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 60%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 60%);
  pointer-events: none;
}

.page-crumbs {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.page-crumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }
.page-crumbs a { color: rgba(255, 255, 255, 0.75); }
.page-crumbs a:hover { color: #ff9a4d; }
.page-crumbs [aria-current] { color: #fff; }

/* long titles (blog posts) stay on one line in the breadcrumb, the h1 below has them in full */
.page-crumbs li { flex-shrink: 0; }
.page-crumbs [aria-current] { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact-body { padding: 70px 0 100px; }

.contact-aside p { color: var(--codnod-muted); margin-bottom: 1.5rem; }

.contact-direct { list-style: none; margin: 0; padding: 0; }

.contact-direct li {
  padding: 1rem 0;
  border-top: 1px solid rgba(39, 12, 61, 0.1);
}

.contact-direct span {
  display: block;
  color: var(--codnod-muted);
  font-size: 0.85rem;
}

.contact-direct a {
  color: var(--codnod-main);
  font-family: 'Dosis', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-direct a:hover { color: var(--codnod-accent-text); }

.contact-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  border: 1px solid rgba(39, 12, 61, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(39, 12, 61, 0.08);
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--codnod-main);
  font-weight: 600;
}

.field-label .req { color: var(--codnod-accent-text); }

.contact-card .form-control {
  height: auto;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(39, 12, 61, 0.2);
  border-radius: 10px;
  background-color: #fff;
  color: var(--codnod-main);
  box-shadow: none;
}

.contact-card .form-control:focus {
  border-color: var(--codnod-main);
  box-shadow: 0 0 0 3px rgba(39, 12, 61, 0.12);
}

.field-hint { margin: 0; color: var(--codnod-muted); font-size: 0.9rem; }
.field-hint-below { margin-top: 0.4rem; }
.field-optional { color: var(--codnod-muted); font-weight: 400; }

/* honeypot: off-screen rather than display:none, which some bots detect */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback.is-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #b42318;
  border-radius: 10px;
  background: #fef3f2;
  color: #b42318;
}

.contact-submit { border: 0; margin: 0; }
.contact-submit:disabled { opacity: 0.7; cursor: progress; }

.form-sent { text-align: center; padding: 2rem 1rem; }
.form-sent i { display: block; margin-bottom: 1rem; color: #1e7a3c; font-size: 3rem; }
.form-sent h2 { color: var(--codnod-main); font-size: 1.6rem; margin-bottom: 0.5rem; }
.form-sent p { color: var(--codnod-muted); margin: 0; }

@media (max-width: 991.98px) {
  .page-band { padding: 120px 0 50px; }
  .contact-body { padding: 50px 0 80px; }
}

/* ---------- service pages ---------- */

.page-band .banner-btn { margin-top: 2rem; }

.service-band { padding-bottom: 90px; }

.band-highlight {
  display: block;
  color: #ff9a4d;
}

.band-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.35);
}

/* stock photo as a duotone backdrop: greyscale, tinted by the band gradient, faded into the text side */
.service-band.has-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 110px;
}

.band-photo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 64%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
  mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}

.service-band.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 50% 70% at 100% 100%, rgba(255, 128, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.service-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(180deg, #fff 0%, #faf6ff 100%);
}

/* blueprint grid (a sibling of the homepage's dot grid): fine 24px lines with a
   stronger line every fourth cell, strongest bottom-left and fading to the right,
   plus a warm glow behind the steps card */
.service-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(39, 12, 61, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 12, 61, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(39, 12, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 12, 61, 0.06) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 120% at 0% 100%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 120% at 0% 100%, #000 25%, transparent 80%);
  pointer-events: none;
}

.service-intro::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -12%;
  z-index: -1;
  width: 60%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(234, 108, 0, 0.2) 0%, rgba(234, 108, 0, 0) 62%);
  pointer-events: none;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem 5rem;
  align-items: center;
}

.service-intro-text { max-width: 46rem; }

.service-intro-text h2 {
  margin-bottom: 1.75rem;
  color: var(--codnod-main);
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.service-intro-text p { max-width: 65ch; color: var(--codnod-muted); margin-bottom: 1.25rem; }

.service-intro-text .service-lead {
  color: var(--codnod-main);
  font-size: 1.2rem;
  line-height: 1.7;
}

/* same numbered-step vocabulary as the homepage process strip, stacked vertically */
.service-steps {
  scroll-margin-top: 110px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 20px;
  background: var(--codnod-secondary);
}

.service-steps h2 {
  margin: 0 0 1.75rem;
  color: var(--codnod-main);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.service-steps ol { list-style: none; margin: 0; padding: 0; }

.service-steps li {
  position: relative;
  min-height: 2.8rem;
  padding: 0 0 1.75rem 4rem;
}

.service-steps li:last-child { padding-bottom: 0; }

.service-steps li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 3.2rem;
  bottom: 0.4rem;
  left: calc(1.4rem - 1px);
  width: 2px;
  background: linear-gradient(180deg, var(--codnod-accent) 0%, rgba(234, 108, 0, 0.15) 100%);
}

.service-step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--codnod-main);
  color: #fff;
  font-family: 'Dosis', sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service-steps h3 {
  margin: 0.5rem 0 0.35rem;
  color: var(--codnod-main);
  font-size: 1.2rem;
}

.service-steps p {
  margin: 0;
  color: #5b4868; /* 7.2:1 on the lilac card, as in the process strip */
}

.service-features {
  padding: 100px 0;
  background: #f7f8f9;
}

.service-features h2 {
  color: var(--codnod-main);
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* Every capability stays visible: a reference list with hairline rules, not
   an accordion that hides four of the five behind clicks */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4rem;
}

.feature-list li {
  padding: 1.75rem 0;
  border-top: 1px solid rgba(39, 12, 61, 0.12);
}

.feature-list h3 {
  color: var(--codnod-main);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.feature-list p { max-width: 60ch; color: var(--codnod-muted); margin: 0; }

/* proof before the ask: the partner credential (same strings as the homepage) and objection FAQs */
.service-proof { padding: 100px 0; }

.service-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem 5rem;
  align-items: start;
}

.service-why {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 20px;
  background: linear-gradient(135deg, #1b0729 0%, var(--codnod-main) 60%, #3d1259 100%);
  box-shadow: 0 18px 45px rgba(39, 12, 61, 0.18);
}

.service-why-badge {
  display: block;
  width: fit-content;
  margin-bottom: 1.5rem;
  transition: opacity 0.25s var(--ease-soft);
}

.service-why-badge:hover { opacity: 0.85; }
.service-why-badge img { display: block; width: auto; height: 64px; }

.service-why h2 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.5rem;
}

.service-why .why-list li {
  margin: 0;
  padding: 1rem 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.service-why .why-list li:last-child { padding-bottom: 0; }
.service-why .why-list strong { color: #fff; }
.service-why .why-list span { color: rgba(255, 255, 255, 0.8); }
.service-why .why-link { color: #ff9a4d; }
.service-why .why-link:hover { color: #fff; }

.service-faq h2 {
  color: var(--codnod-main);
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.service-others { padding: 60px 0 70px; }

.service-others h2 {
  color: var(--codnod-main);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.service-others ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-others a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(39, 12, 61, 0.15);
  border-radius: 999px;
  color: var(--codnod-main);
  font-weight: 600;
  transition: border-color 0.25s var(--ease-soft), background-color 0.25s var(--ease-soft);
}

.service-others a:hover {
  border-color: var(--codnod-accent);
  background: #fff7f0;
}

.service-others a i[class*='flaticon-'] { color: var(--codnod-accent); font-size: 1.35rem; line-height: 1; }
.service-others a .bi { color: var(--codnod-accent-text); transition: transform 0.25s var(--ease-soft); }
.service-others a:hover .bi { transform: translateX(3px); }

@media (max-width: 991.98px) {
  .service-band { padding-bottom: 60px; }
  .service-intro, .service-features, .service-proof { padding: 70px 0; }
  .service-intro::before {
    -webkit-mask-image: radial-gradient(ellipse 120% 55% at 0% 0%, #000 25%, transparent 80%);
    mask-image: radial-gradient(ellipse 120% 55% at 0% 0%, #000 25%, transparent 80%);
  }
  .service-intro::after { top: auto; bottom: 0; right: -30%; width: 100%; height: 50%; }
  .service-intro-grid, .service-proof-grid { grid-template-columns: minmax(0, 1fr); }
  /* the photo leaves the text and becomes a strip that rises out of the band's bottom edge */
  .service-band.has-photo {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .service-band.has-photo > .container { width: 100%; }
  .band-photo {
    position: static;
    order: 1;
    width: 100%;
    height: 220px;
    margin-top: 2.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  }
  .feature-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
  .page-band .banner-btn a { flex: 1 1 100%; text-align: center; }
}

/* ---------- cookie consent ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 1.1rem 0;
  background: var(--codnod-main);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.cookie-banner p { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.cookie-banner p a { color: #ff9a4d; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.75rem; flex: none; }

.cookie-btn {
  min-width: 7.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.55); background: transparent; color: #fff; }
.cookie-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.cookie-btn-solid { border: 1px solid var(--codnod-accent); background: var(--codnod-accent); color: var(--codnod-main); }
.cookie-btn-solid:hover { background: #ff8a2a; }
.cookie-banner .cookie-btn:focus-visible { outline-color: #fff !important; }

.cookie-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cookie-settings:hover { text-decoration: underline; }

@media (max-width: 767.98px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .cookie-btn { flex: 1; }
}

/* ---------- closing CTA ---------- */

/* A rounded dark card on a light section, so it never runs into the dark footer below it. */
.hire-section {
  padding: 0 0 100px;
  background: #fff !important;
}

.hire-section::before { content: none; }

/* the card sits on the colour of the section above it, so no seam lands on its top edge */
.bg-grey + .hire-section { background: #f7f8f9 !important; }
.process-section + .hire-section { background: var(--codnod-secondary) !important; }
.blog-index + .hire-section { background: #faf6ff !important; }

.hire-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 5rem 2rem;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, #1b0729 0%, var(--codnod-main) 60%, #3d1259 100%);
}

.hire-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(234, 108, 0, 0.3) 0%, rgba(234, 108, 0, 0) 55%),
    radial-gradient(ellipse at 85% 90%, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0) 55%);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .hire-section { padding-bottom: 60px; }
  .hire-content { padding: 3.5rem 1.25rem; border-radius: 20px; }
}

.hire-content h2 { color: #fff; margin-bottom: 1rem; }
.hire-content p { color: rgba(255, 255, 255, 0.8); max-width: 56ch; margin: 0 auto 2rem; }
.hire-content .cta-phone { margin: 1.5rem auto 0; font-size: 1rem; }
.cta-phone a { color: #fff; font-weight: 700; white-space: nowrap; }
.cta-phone a:hover { color: #ff9a4d; }

/* ---------- blog ---------- */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--codnod-muted);
}

/* the dot trails each item, so a wrapped line never starts with one */
.post-meta > :not(:last-child)::after { content: '·'; margin: 0 0.6rem; opacity: 0.6; }
.page-band .post-meta { margin-top: 0.25rem; font-size: 1rem; color: rgba(255, 255, 255, 0.75); }

.post-draft {
  color: var(--codnod-accent-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8em;
}

.page-band .post-draft { color: #ff9a4d; }

.blog-index { padding: 80px 0 100px; background: linear-gradient(180deg, #fff 0%, #faf6ff 100%); }

/* The card is one link target: the title link stretches over the whole card. */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(39, 12, 61, 0.1);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}

.post-card:hover,
.post-card:focus-within {
  border-color: rgba(234, 108, 0, 0.45);
  box-shadow: 0 18px 40px rgba(39, 12, 61, 0.12);
  transform: translateY(-3px);
}

.post-card h2 { margin: 0 0 0.75rem; font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.post-card h2 a { color: var(--codnod-main); }
.post-card h2 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:has(h2 a:focus-visible) { outline: 3px solid var(--codnod-accent); outline-offset: 3px; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.75rem; }
.post-card-body > p:not(.post-meta) { margin: 0; }

.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--codnod-secondary); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s var(--ease-soft); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
/* share images carry their own title text, so they are letterboxed instead of cropped */
.post-card-media img.post-card-share { object-fit: contain; background: #270C3D; }

/* posts without a cover get the service pages' blueprint grid instead of a stock photo */
.post-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--codnod-main);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(234, 108, 0, 0.35) 0%, rgba(234, 108, 0, 0) 55%),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px, 24px 24px, 24px 24px;
}

.post-card-featured { margin-bottom: 2rem; }
.post-card-featured h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.post-card-featured .post-card-body > p:not(.post-meta) { font-size: 1.1rem; }

.post-card-more {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--codnod-accent-text);
  font-weight: 700;
}

.post-card-more .bi { display: inline-block; transition: transform 0.25s var(--ease-soft); }
.post-card:hover .post-card-more .bi { transform: translateX(3px); }

@media (min-width: 992px) {
  .post-card-featured { flex-direction: row; }
  .post-card-featured .post-card-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
  .post-card-featured .post-card-body { justify-content: center; padding: 2.5rem 3rem; }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .post-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.blog-empty { max-width: 40rem; padding: 2rem 0; }
.blog-empty h2 { color: var(--codnod-main); font-size: 1.6rem; }
.blog-empty p { margin: 0; }

.post { padding: 70px 0 90px; }

.post-cover { max-width: 1100px; margin: 0 auto 3.5rem; }
.post-cover img { display: block; width: 100%; border-radius: 20px; }

.post-body { max-width: 70ch; margin: 0 auto; color: #3d3546; font-size: 1.125rem; line-height: 1.8; }
.post-body > :first-child { margin-top: 0; }
.post-body p, .post-body li { color: inherit; font-size: inherit; line-height: inherit; }
.post-body p { margin: 0 0 1.4rem; }

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--codnod-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
  scroll-margin-top: 110px;
}

.post-body h2 { margin: 3rem 0 1rem; font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2rem); }
.post-body h3 { margin: 2.25rem 0 0.75rem; font-size: 1.35rem; }
.post-body h4 { margin: 1.75rem 0 0.5rem; font-size: 1.15rem; }

.post-body a { color: var(--codnod-accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.post-body a:hover { color: var(--codnod-main); }

.post-body ul, .post-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.4rem; padding-left: 0.25rem; }
.post-body li::marker { color: var(--codnod-accent); font-weight: 700; }

.post-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem !important; /* the template forces 50px */
  border-radius: 16px;
  background: var(--codnod-secondary);
  color: var(--codnod-main);
  font-style: normal;
  text-align: left;
}

.post-body blockquote p { color: inherit; font-size: 1.15rem !important; font-style: normal; font-weight: 500; }
.post-body blockquote::before, .post-body blockquote::after { content: none; }

.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body img { display: block; margin: 2rem auto; border-radius: 12px; }

.post-body code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--codnod-secondary);
  color: var(--codnod-main);
  font-size: 0.9em;
}

.post-body pre {
  margin: 0 0 1.4rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

.post-body hr { margin: 3rem 0; border: 0; border-top: 1px solid rgba(39, 12, 61, 0.15); opacity: 1; }

.post-body table { width: 100%; margin: 0 0 1.4rem; border-collapse: collapse; font-size: 1rem; }
.post-body th, .post-body td { padding: 0.6rem 0.9rem; border-bottom: 1px solid rgba(39, 12, 61, 0.12); text-align: left; }
.post-body th { color: var(--codnod-main); }

.post-updated { margin-top: 3rem !important; font-size: 0.95rem; color: var(--codnod-muted) !important; }

.post-more { padding: 60px 0 70px; }
.post-more h2 { color: var(--codnod-main); font-size: 1.6rem; margin-bottom: 1.5rem; }
.post-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.post-more ul a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(39, 12, 61, 0.15);
  border-radius: 16px;
  color: var(--codnod-main);
  font-weight: 700;
  line-height: 1.4;
  transition: border-color 0.25s var(--ease-soft), background-color 0.25s var(--ease-soft);
}

.post-more ul a:hover { border-color: var(--codnod-accent); background: #fff7f0; }
.post-more time { color: var(--codnod-muted); font-size: 0.85rem; font-weight: 400; }
.post-more-all { color: var(--codnod-accent-text); font-weight: 700; }
.post-more-all .bi { display: inline-block; transition: transform 0.25s var(--ease-soft); }
.post-more-all:hover .bi { transform: translateX(3px); }

@media (max-width: 767.98px) {
  .blog-index { padding: 50px 0 70px; }
  .post { padding: 40px 0 60px; }
  .post-cover { margin-bottom: 2.25rem; }
  .post-cover img { border-radius: 12px; }
  .post-body { font-size: 1.0625rem; }
  .post-body table { display: block; overflow-x: auto; }
}

/* ---------- motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-aurora::before,
  .hero-aurora::after,
  .hero-shot {
    animation: none !important;
  }
  * { transition-duration: 0.01ms !important; }
}
