html {
  scroll-behavior: smooth;
}

[id^="section-"] {
  scroll-margin-top: 110px;
}

#section-hero {
  scroll-margin-top: 0;
}

/* Hero: template layout — text must be visible even before GSAP runs */
.hero-one .bw-reveal-text,
.hero-one .bw-reveal-text-2 {
  visibility: visible !important;
}

.hero-one .bw-reveal-text .line,
.hero-one .bw-reveal-text .words {
  overflow: visible !important;
}

.about-one .row {
  align-items: flex-start;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  flex-shrink: 0;
}

.brand-logo__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.brand-logo__text {
  font-size: clamp(0.58rem, 1.25vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.main-header__logo .brand-logo {
  max-width: min(100%, 220px);
}

@media (max-width: 1399px) {
  .main-header__nav {
    padding: 0 28px 0 18px;
  }

  .main-menu .main-menu__list > li + li {
    margin-left: 14px;
  }

  .main-menu .main-menu__list > li > a {
    font-size: 14px;
  }

  .brand-logo__text {
    font-size: clamp(0.5rem, 1.1vw, 0.72rem);
  }
}

@media (max-width: 1199px) {
  .main-header__logo .brand-logo {
    max-width: min(100%, 200px);
  }
}

.main-menu.one-page-scroll-menu .main-menu__list {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.preloader__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.contact-one__info-block {
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-one__info-block p {
  margin-bottom: 12px;
}

.contact-one__info-block a {
  color: inherit;
  font-weight: 600;
}

.info-card-grid .customer-brand__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
  text-align: center;
}

.info-card-grid .customer-brand__card p {
  margin: 0;
  color: inherit;
  font-weight: 600;
}

.learning-topics .team-card__content__box {
  padding: 24px;
}

.learning-topics .team-card__name a,
.resource-card__title a {
  pointer-events: none;
  cursor: default;
}

.contact-info__logo .brand-logo__text {
  color: #0a1628;
}

.contact-info__logo .brand-logo {
  justify-content: center;
}

/* Section rhythm: template colors/spacing, without doubled gaps */
:root {
  --section-space: 100px;
  --section-space-2: 90px;
}

.section-space + .section-space {
  padding-top: 0 !important;
}

.services-one.section-space-b + .business-impact .business-impact__wrapper.section-space {
  padding-top: 0 !important;
}

.portfolio-one.section-space-t {
  padding-bottom: 0 !important;
}

.portfolio-one {
  padding-bottom: 0 !important;
}

/* Template background layers */
.testimonials-one,
.work-process,
.hero-one,
.business-impact__wrapper,
.contact-info__wrapper {
  position: relative;
}

.testimonials-one {
  background-color: var(--misiom-white, #ffffff);
  overflow: hidden;
  min-height: 0 !important;
}

.testimonials-one__bg,
.work-process__bg,
.hero-one__bg {
  z-index: 0;
}

.work-process {
  background-color: var(--misiom-white2, #f1f3f5);
}

/* Grid reveal: don't stretch rows with invisible 100% height */
.grid-reveal-anim .grid-reveal-anim-img {
  height: auto !important;
  opacity: 1 !important;
}

/* Testimonials: reset pinned-scroll layout leftovers */
.testimonials-one .container {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
}

.testimonials-one__top {
  margin-bottom: 36px !important;
}

.testimonials-one .sec-title {
  margin-bottom: 20px !important;
}

.testimonials-one__row {
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

.testimonials-one__card {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.testimonials-one .card-center,
.testimonials-one .me-auto,
.testimonials-one .ms-auto {
  margin-top: 0 !important;
}

/* Work process: static grid — kill pin-scroll offsets */
.work-process {
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

.work-process .container,
.work-process__container {
  height: auto !important;
}

.work-process__top {
  margin-bottom: 48px !important;
}

.work-process__wrapper {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  padding-bottom: 0 !important;
}

.work-process__wrapper::after {
  display: none !important;
}

.work-process__left,
.work-process__right {
  display: contents !important;
  width: auto !important;
}

.work-process__card,
.work-process__card[data-theme="work-process__card--2"],
.work-process__card[data-theme="work-process__card--3"],
.work-process__card[data-theme="work-process__card--4"] {
  max-width: none !important;
  margin: 0 !important;
  width: 100%;
}

.work-process__card::after,
.work-process__card[data-theme="work-process__card--2"]::after,
.work-process__card[data-theme="work-process__card--3"]::after,
.work-process__card[data-theme="work-process__card--4"]::after {
  display: none !important;
}

@media (max-width: 1199px) {
  .work-process__wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Contact-info: shrink oversized logo circle gap */
.contact-info__top {
  padding-top: 32px !important;
  padding-bottom: 24px !important;
  min-height: 0 !important;
}

.contact-info__logo {
  width: 220px !important;
  height: 220px !important;
  padding: 28px !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 auto 20px !important;
}

.contact-info__content {
  width: auto !important;
  height: auto !important;
  position: relative !important;
  right: auto !important;
  margin: 0 auto !important;
  text-align: center;
}

.google-map__contact-info.contact-one__info-block {
  position: relative !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  border-radius: 20px !important;
  padding: 32px 36px !important;
}

.blog-one.section-space + .contact-info {
  margin-top: 0;
}

