:root {
  color-scheme: light;
  --site-bg: #f3f5f4;
  --surface: #ffffff;
  --surface-alt: #e9eeeb;
  --surface-strong: #dfe6e2;
  --text-main: #1c2522;
  --text-muted: #5e6c66;
  --heading: #101614;
  --brand: #2d8a6d;
  --brand-strong: #216853;
  --border-soft: rgba(20, 31, 27, 0.1);
  --shadow-soft: 0 18px 48px rgba(22, 35, 31, 0.06);
  --shadow-card: 0 12px 30px rgba(22, 35, 31, 0.06);
  --footer-bg: #101715;
  --footer-text: #edf4f0;
  --footer-muted: #b5c2bb;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --site-bg: #0d1312;
  --surface: #141d1b;
  --surface-alt: #182320;
  --surface-strong: #21302c;
  --text-main: #edf5f1;
  --text-muted: #bfd0c8;
  --heading: #fbfefd;
  --brand: #3ca081;
  --brand-strong: #2d7a63;
  --border-soft: rgba(255, 255, 255, 0.09);
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.22);
  --footer-bg: #0b100f;
  --footer-text: #edf5f1;
  --footer-muted: #b4c4bc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(45, 138, 109, 0.09), transparent 28%),
    linear-gradient(180deg, var(--site-bg) 0%, var(--surface-alt) 100%);
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.display-1 {
  font-size: clamp(2.7rem, 4.2vw, 4.2rem) !important;
  line-height: 1.08 !important;
}

.display-2 {
  font-size: clamp(2rem, 3.1vw, 3rem) !important;
  line-height: 1.12 !important;
}

.display-4 {
  font-size: clamp(1rem, 1.15vw, 1.15rem) !important;
  line-height: 1.45 !important;
}

.display-5 {
  font-size: clamp(1.35rem, 1.8vw, 2rem) !important;
  line-height: 1.2 !important;
}

.display-7 {
  font-size: clamp(1rem, 1.08vw, 1.2rem) !important;
  line-height: 1.65 !important;
}

section,
.container,
.container-fluid,
.card,
.item-wrapper,
.card-wrapper,
.navbar-dropdown {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

section {
  background-color: transparent;
}

section:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] section:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

h1,
h2,
h3,
h4,
h5,
h6,
.mbr-section-title,
.item-title,
.cardTitle,
.card-title {
  color: var(--heading) !important;
}

p,
li,
small,
.mbr-text,
.mbr-section-subtitle,
.display-4,
.display-5,
.display-7 {
  color: var(--text-main) !important;
}

span {
  color: inherit;
}

.mbr-section-subtitle,
.mbr-text,
.display-7,
.card-text,
.copyright,
.list,
.item-wrap {
  color: var(--text-muted) !important;
  line-height: 1.7;
}

.display-4,
.display-5 {
  line-height: 1.35;
}

.mbr-section-title,
.item-title,
.cardTitle,
.card-title,
.display-1,
.display-2 {
  letter-spacing: -0.03em;
}

.text-primary,
a {
  color: var(--brand);
}

a,
.text-primary,
.mbr-section-btn .btn,
.nav-link {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover,
.nav-link:hover {
  color: var(--brand-strong) !important;
}

.nav-link,
.navbar .icons-menu .mbr-iconfont,
.navbar-brand,
.theme-toggle {
  color: var(--heading) !important;
}

.nav-link {
  font-weight: 600;
  font-size: 0.98rem !important;
  letter-spacing: -0.01em;
}

.navbar-dropdown {
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  margin-top: 1rem;
}

html[data-theme="dark"] .navbar-dropdown {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.item-wrapper,
.card-wrapper,
.google-map,
.carousel,
.form-control,
.social-row,
.item-img img,
.gallery-image img {
  border-radius: 20px;
}

.item-wrapper,
.card-wrapper,
.google-map,
.form-control {
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}

.carousel,
.google-map iframe,
.video-wrapper iframe,
.image-wrapper img {
  box-shadow: var(--shadow-card);
}

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

.mbr-section-head {
  max-width: 760px;
  margin-inline: auto;
}

.item-wrapper,
.card-wrapper {
  padding: 0.35rem;
}

.item-content,
.card-box,
.text-wrapper {
  padding: 0.55rem 0.7rem 0.95rem;
}

.mbr-section-btn .btn,
.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.mbr-section-btn .btn:hover,
.btn-primary:hover {
  background-color: var(--brand-strong) !important;
  border-color: var(--brand-strong) !important;
  transform: translateY(-1px);
}

.btn {
  border-radius: 999px !important;
  padding-inline: 1.55rem !important;
  font-size: 1rem !important;
}

.form-control {
  color: var(--text-main) !important;
  background: color-mix(in srgb, var(--surface) 100%, transparent) !important;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

.alert-success,
.alert-danger {
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}

.alert-success {
  background: rgba(22, 163, 74, 0.12);
  color: #0f7a36 !important;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c !important;
}

html[data-theme="dark"] .alert-success {
  color: #8ff0b3 !important;
}

html[data-theme="dark"] .alert-danger {
  color: #ffb4b4 !important;
}

.carousel-indicators li {
  background-color: color-mix(in srgb, var(--surface-alt) 90%, transparent) !important;
  border-color: var(--brand) !important;
}

.carousel-control,
.embla__button {
  background-color: color-mix(in srgb, var(--surface-alt) 92%, transparent) !important;
  color: var(--heading) !important;
  border-color: transparent !important;
}

.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: none;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--heading);
  color: #fff !important;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only-focusable {
  position: absolute;
}

img {
  height: auto;
}

iframe[loading="lazy"] {
  border-radius: 18px;
}

.slider05 .carousel-item img,
.slider05 .carousel-inner {
  aspect-ratio: 2667 / 1500;
}

.features03 .item-img,
.blog-grid .item-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery07 .grid-item {
  overflow: hidden;
}

.google-map {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.google-map iframe {
  width: 100%;
  height: 100%;
}

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

.footer3 {
  background: var(--footer-bg) !important;
}

.footer3 .mbr-section-btn,
.footer3 .mbr-fonts-style,
.footer3 .header-menu-item,
.footer3 p,
.footer3 li,
.footer3 span {
  color: var(--footer-text) !important;
}

.footer3 .text-white,
.footer3 a,
.footer3 .socicon {
  color: var(--footer-text) !important;
}

.footer3 .copyright,
.footer3 .display-7 {
  color: var(--footer-muted) !important;
}

.footer3 a:hover,
.footer3 .text-white:hover {
  color: #ffffff !important;
}

.people02 .item-wrapper,
.clients04 .item-wrapper {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.clients04 .item-img img {
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  padding: 1rem;
  border: 1px solid var(--border-soft);
}

.gallery-image img,
.item-img img,
.image-wrapper img {
  object-fit: cover;
}

.people02 .card-title,
.people02 .card-text {
  color: var(--text-main) !important;
}

.features03 .item-title,
.article07 .card-title,
.people02 .card-title {
  font-size: clamp(1.5rem, 2vw, 2.35rem) !important;
  line-height: 1.08 !important;
}

.features03 .mbr-text,
.article07 .mbr-text,
.people02 .card-text,
.contacts02 .list,
.contacts02 .item-wrap {
  font-size: clamp(1rem, 1.08vw, 1.16rem) !important;
}

.navbar-buttons .btn,
.mbr-section-btn .btn,
.item-footer .btn {
  font-size: 1rem !important;
}

.header-menu-item {
  font-size: 1rem !important;
}

html[data-theme="dark"] .people02 .card-title,
html[data-theme="dark"] .people02 .card-text,
html[data-theme="dark"] .contacts02 .list,
html[data-theme="dark"] .contacts02 .item-wrap,
html[data-theme="dark"] .mbr-text,
html[data-theme="dark"] .mbr-section-subtitle,
html[data-theme="dark"] .display-7 {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] .display-4,
html[data-theme="dark"] .display-5,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .header-menu-item a,
html[data-theme="dark"] .icons-menu .mbr-iconfont {
  color: var(--heading) !important;
}

html[data-theme="dark"] .text-primary,
html[data-theme="dark"] a.text-primary {
  color: var(--brand) !important;
}

html[data-theme="dark"] .navbar-dropdown,
html[data-theme="dark"] .navbar-fixed-top {
  background: rgba(18, 27, 24, 0.92) !important;
}

html[data-theme="dark"] .theme-toggle {
  background: #1a2622;
  color: #f7fbff !important;
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .mbr-section-btn .btn,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] button.btn-primary,
html[data-theme="dark"] .mbr-section-btn .btn-primary {
  background: linear-gradient(180deg, #3ca081 0%, #2d7a63 100%) !important;
  border-color: #3ca081 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .mbr-section-btn .btn:hover,
html[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(180deg, #49b392 0%, #37886f 100%) !important;
  border-color: #49b392 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .form-control {
  background: #1a2622 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #f3f7fd !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #c1cde0 !important;
}

html[data-theme="dark"] .card-wrapper,
html[data-theme="dark"] .item-wrapper,
html[data-theme="dark"] .google-map {
  background: rgba(20, 29, 27, 0.95) !important;
}

html[data-theme="dark"] .item-wrapper,
html[data-theme="dark"] .card-wrapper,
html[data-theme="dark"] .google-map,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .clients04 .item-img img {
  background: color-mix(in srgb, var(--surface) 98%, transparent);
}

.animation-showcase .content-head {
  max-width: 760px;
}

.animation-video-frame {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.animation-video-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 28px;
}

.video-placeholder,
.video-placeholder-button,
.video-placeholder-button img {
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.06), rgba(7, 17, 31, 0.35));
  pointer-events: none;
}

.video-placeholder-button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-placeholder-button img {
  display: block;
  object-fit: cover;
}

.video-placeholder-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.video-placeholder-play::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid var(--brand);
}

.animation-copy-card {
  height: 100%;
  display: flex;
  align-items: center;
}

.animation-copy-card .card-box {
  padding: 1rem 1.15rem 1.35rem;
}

.animation-copy-card .iconfont-wrapper {
  margin-bottom: 1rem;
}

.animation-copy-card .mbr-iconfont {
  font-size: 2rem;
  color: var(--brand) !important;
}

.slider05 .carousel,
.gallery1 .grid-item,
.gallery1 .item-wrapper,
.gallery07 .grid-item,
.clients04 .item-img img,
.features03 .item-img img,
.blog-grid .item-img img,
.animation-video-frame {
  border-radius: 24px !important;
}

.features03 .item-wrapper,
.blog-grid .item-wrapper,
.people02 .item-wrapper {
  background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
}

.features03 .item-content,
.blog-grid .item-content,
.people02 .card-box {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.mbr-section-head,
.content-head {
  text-align: center;
}

@media (min-width: 992px) {
  section {
    padding-block: 5rem !important;
  }
}

@media (max-width: 991px) {
  .theme-toggle-wrapper {
    margin: 1rem 0 0;
  }

  section {
    padding-block: 3.5rem !important;
  }

  .display-2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }

  .display-5,
  .features03 .item-title,
  .article07 .card-title {
    font-size: clamp(1.3rem, 5.2vw, 1.8rem) !important;
  }

  .display-7,
  .features03 .mbr-text,
  .article07 .mbr-text {
    font-size: 1rem !important;
  }

  .nav-link,
  .btn,
  .header-menu-item {
    font-size: 0.98rem !important;
  }

  .animation-video-frame iframe {
    min-height: 260px;
  }

  .video-placeholder-play {
    width: 64px;
    height: 64px;
  }

  .video-placeholder-play::before {
    left: 26px;
    top: 19px;
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
