/* Load after the BaiTeESS theme or baiteess-speed-site stylesheet. */
:root {
  --design-blue: #006bb6;
  --design-blue-hover: #00558f;
  --design-green: #26783a;
  --design-ink: #102134;
  --design-muted: #53677d;
  --design-surface: #f5f9fc;
  --design-border: #dce6ef;
  --design-radius: 20px;
  --design-shadow: 0 10px 30px rgba(16, 33, 52, 0.07);
  --design-contact-space: 76px;
  --muted: var(--design-muted);
  --shadow: 0 14px 40px rgba(16, 33, 52, 0.09);
  --shadow-soft: var(--design-shadow);
}

body {
  font-size: 16px;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: clamp(56px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  line-height: 1.25;
}

.eyebrow {
  color: var(--design-green);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn,
.nav-links,
.pill,
.language-switcher,
.language-switcher select,
.form-card label {
  font-weight: 600;
}

.btn {
  font-size: 16px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn.primary {
  color: #fff;
  border-color: var(--design-blue);
  background: var(--design-blue);
  box-shadow: 0 4px 12px rgba(0, 107, 182, 0.12);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  color: #fff;
  border-color: var(--design-blue-hover);
  background: var(--design-blue-hover);
}

.btn:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(16, 33, 52, 0.08);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--design-blue);
  outline-offset: 4px;
}

.section {
  padding-block: 72px;
}

.section.tight {
  padding-block: 44px;
}

.section-heading {
  margin-bottom: 30px;
}

.hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 620px;
  gap: 40px;
  padding-block: 60px 68px;
}

.hero-inner > *,
.split > *,
.component-showcase > *,
.grid > *,
.role-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 57ch;
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  gap: 12px;
  margin-block: 24px;
}

.hero-panel {
  gap: 14px;
  padding: 14px;
  box-shadow: var(--design-shadow);
  backdrop-filter: none;
}

.page-hero {
  padding-block: 64px 48px;
}

.card,
.role-card,
.confidence-card,
.support-item,
.component-card {
  box-shadow: none;
}

.card:not(.dark):not(.promise-card):not(.package-card):not(.selector-card),
.role-card,
.confidence-card,
.support-item,
.component-card {
  background: #fff;
}

/* Keep hover feedback for links, not for non-interactive information cards. */
article.card:hover,
.role-card:hover,
.support-item:hover {
  transform: none;
  box-shadow: none;
}

.card.dark {
  color: #fff;
  background: #122b43;
}

.card.dark h2,
.card.dark h3,
.card.dark strong {
  color: #fff;
}

.card.dark p,
.card.dark li,
.card.dark small,
.card.dark .inline-list {
  color: #e3edf6;
}

.card.dark .eyebrow {
  color: #b9ec9b;
}

.visual-card {
  min-height: 0;
  background: #122b43;
}

.visual-card p,
.visual-card .mini-tile span {
  color: #e3edf6;
}

.visual-card h3,
.visual-card .mini-tile strong {
  color: #fff;
}

.design-home-hero .hero-inner {
  min-height: 560px;
}

.design-home-hero::after {
  display: none;
}

.design-text-link {
  display: inline-block;
  color: var(--design-blue);
  font-weight: 650;
  font-size: 16px;
  text-underline-offset: 4px;
  padding-block: 8px;
}

.design-text-link:hover {
  text-decoration: underline;
}

.design-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.design-product-card {
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--design-border);
  border-radius: var(--design-radius);
}

.design-product-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 22px;
  background: #fff;
}

.design-product-card > div {
  padding: 22px;
  border-top: 1px solid var(--design-border);
}

.design-media-note {
  margin: 16px 0;
  color: var(--design-muted);
  font-size: 13px;
  line-height: 1.5;
}

.design-supply-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 26px;
  padding-block: 20px;
  border-block: 1px solid var(--design-border);
  font-size: 14px;
}

.service-promise .promise-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 18px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.confidence-showcase .confidence-grid {
  gap: 0 28px;
}

.confidence-showcase .confidence-card {
  border: 0;
  border-top: 1px solid var(--design-border);
  border-radius: 0;
  padding: 24px 0;
  background: transparent !important;
}

@media (max-width: 680px) {
  .design-home-hero .hero-inner { min-height: 0; }
  .design-product-grid { grid-template-columns: 1fr; gap: 16px; }
  .design-product-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; }
  .design-product-card img { height: 150px; padding: 8px; }
  .design-product-card > div { padding: 16px; border-top: 0; }
  .design-product-card h3 { font-size: 20px; }
  .design-product-card p { font-size: 14px; margin-bottom: 4px; }
  .design-product-card .design-text-link { font-size: 13px; }
  .design-supply-strip { gap: 10px 18px; }
}

.service-promise .section-heading p,
.service-promise p {
  color: #e3edf6;
}

.confidence-icon,
.role-card .role-icon,
.icon-bubble,
.card .number,
.timeline-item > span {
  color: var(--design-blue);
  background: #eaf4fb;
  box-shadow: none;
  font-weight: 700;
}

.component-showcase {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  padding: 28px;
  background: var(--design-surface);
  box-shadow: none;
}

.component-showcase .component-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.component-copy h3 {
  font-size: clamp(26px, 2.7vw, 34px);
  line-height: 1.18;
}

.component-card {
  min-height: 0;
  padding: 20px;
}

.component-card::after {
  display: none;
}

.component-card strong {
  margin-top: 16px;
  overflow-wrap: break-word;
}

.component-card small {
  font-size: 14px;
}

.component-logo,
.component-logo.longi,
.component-logo.baite,
.component-logo.mount {
  color: var(--design-blue);
  background: #eaf4fb;
  box-shadow: none;
  font-weight: 700;
}

.form-card {
  box-shadow: var(--design-shadow);
}

.form-card input,
.form-card select,
.form-card textarea {
  scroll-margin-block: 150px 90px;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(16, 33, 52, 0.06);
}

.topbar {
  gap: 8px 20px;
  flex-wrap: wrap;
}

.navbar {
  gap: 22px;
}

.nav-links {
  gap: 18px;
}

/* Content stays readable if the site's enhancement script is unavailable. */
.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

.float-toggle {
  background: var(--design-blue);
  box-shadow: 0 6px 20px rgba(16, 33, 52, 0.16);
}

.float-menu {
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.float-menu a.whatsapp-quick,
.float-menu a.whatsapp-quick.secondary {
  color: #fff;
  background: #18743d;
  box-shadow: none;
}

/* Optional components for curated, real project photography and concise copy. */
.design-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
}

.design-section-intro p:last-child {
  margin-bottom: 0;
}

.design-hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--design-border);
  border-radius: 26px;
  background: #eaf2f7;
  box-shadow: var(--design-shadow);
}

.design-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.design-hero-media figcaption {
  padding: 16px 20px;
  color: var(--design-muted);
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
}

.design-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.design-photo-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--design-border);
  border-radius: var(--design-radius);
  background: #fff;
}

.design-photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.design-photo-card figcaption,
.design-photo-card .design-photo-copy {
  padding: 22px;
}

.design-photo-card p:last-child {
  margin-bottom: 0;
}

.design-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding-block: 18px;
  border-block: 1px solid var(--design-border);
  color: var(--design-muted);
  font-size: 14px;
}

.design-trust-strip strong {
  color: var(--design-ink);
  font-weight: 600;
}

.design-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-process > * {
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid #b9d7ea;
}

@media (max-width: 1180px) {
  .navbar {
    min-height: 72px;
    gap: 18px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    inset: 100% 16px auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    border: 1px solid var(--design-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--design-shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: var(--design-blue);
    background: #edf6fc;
  }

  .nav-links a::after {
    display: none;
  }

  .topbar > span:nth-of-type(3),
  .topbar > span:nth-of-type(4) {
    display: none;
  }

  .language-switcher {
    width: auto;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: clamp(44px, 6vw, 56px);
  }

  .hero-inner,
  .component-showcase,
  .design-section-intro {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
    gap: 32px;
    padding-block: 48px;
  }

  .hero-text {
    max-width: 760px;
  }

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

  .design-hero-media img {
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 680px) {
  html {
    scroll-padding-bottom: calc(var(--design-contact-space) + env(safe-area-inset-bottom, 0px));
  }

  h1 {
    font-size: clamp(36px, 9.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: clamp(28px, 7.4vw, 32px);
    line-height: 1.16;
  }

  h3 {
    font-size: 21px;
  }

  .section,
  .section.tight {
    padding-block: 44px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .page-hero,
  .hero-inner {
    padding-block: 36px 40px;
  }

  .hero-copy,
  .page-hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
    margin-block: 20px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding-inline: 15px;
    font-size: 14px;
  }

  .trust-row {
    gap: 8px;
    margin-top: 18px;
  }

  .pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 4px;
    border-block: 1px solid var(--design-border);
  }

  .hero-kpis div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .hero-kpis strong {
    font-size: 17px;
  }

  .hero-kpis span {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
  }

  .stat-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-mini {
    padding: 12px 8px;
  }

  .stat-mini strong {
    font-size: 18px;
  }

  .stat-mini span {
    font-weight: 400;
    overflow-wrap: break-word;
  }

  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
  }

  .topbar > span:first-child {
    min-width: 0;
    font-size: 11px;
  }

  .language-switcher {
    margin-left: 0;
  }

  .language-switcher > span {
    display: none;
  }

  .language-switcher select {
    max-width: 112px;
    min-height: 30px;
  }

  .navbar {
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand img {
    width: 46px;
    height: 40px;
  }

  .brand strong {
    font-size: clamp(15px, 4.4vw, 18px);
  }

  .component-showcase {
    gap: 24px;
    padding: 20px;
    border-radius: var(--design-radius);
  }

  .component-showcase .component-grid {
    grid-template-columns: 1fr;
  }

  .component-card {
    padding: 18px;
  }

  .card,
  .role-card,
  .confidence-card {
    padding: 22px;
  }

  .form-card form {
    padding: 22px;
  }

  .form-title {
    padding: 22px 22px 0;
  }

  .form-actions {
    padding-right: 28px;
    scroll-margin-bottom: calc(var(--design-contact-space) + env(safe-area-inset-bottom, 0px));
  }

  .form-card input,
  .form-card select,
  .form-card textarea {
    font-size: 16px;
  }

  .design-photo-grid,
  .design-process {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .design-section-intro {
    gap: 12px;
    margin-bottom: 24px;
  }

  .design-hero-media {
    border-radius: 20px;
  }

  .design-trust-strip {
    display: grid;
    gap: 10px;
    font-size: 13px;
  }

  .floating-contact {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .floating-contact.design-contact-hidden,
  body.design-form-in-view .floating-contact {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .float-toggle,
  .design-contact-compact .float-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
  }

  .float-label,
  .design-contact-compact .float-label {
    display: none;
  }

  .float-menu {
    width: min(272px, calc(100vw - 32px));
    max-height: calc(100dvh - 160px - env(safe-area-inset-bottom, 0px));
  }

  .site-footer .footer-bottom {
    padding-bottom: calc(var(--design-contact-space) + env(safe-area-inset-bottom, 0px));
  }

  /* Do not cover a form while the on-screen keyboard is in use. */
  body:has(.lead-form:focus-within) .floating-contact {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav-links a,
  .reveal {
    transition: none;
  }
}
