/* ----------------------------------------------------------------------------
   UnitVN 2026 redesign: editorial minimal.
   Loaded after style.css; overrides the Beapp template without touching it.
   Palette: warm paper, near-black ink, one electric-blue accent.
   Type: Be Vietnam Pro throughout (designed for Vietnamese, covers Polish).
---------------------------------------------------------------------------- */

:root {
  --paper: #f5f2ec;
  --paper-2: #ece8e0;
  --card: #fbf9f5;
  --ink: #111110;
  --muted: #55514a;
  --line: #d9d4c8;
  --accent: #2b3cff;
  --accent-ink: #fff;
  --radius: 20px;
  --font-display: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

html, body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; }
h5 { font-size: 1.2rem; line-height: 1.3; }

a { color: inherit; transition: color 0.2s var(--ease); }
p { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: 1240px; }

/* Parallax plugin mirrors are decorative photos; the design is photo-free */
.parallax-mirror { display: none !important; }

/* ---------- preloader ---------- */
.loader-wrapper { background: var(--paper); }
.loader-wrapper .center .dot { background: var(--ink); }

/* ---------- header ---------- */
.header-area,
.header-area.header-sticky {
  height: 76px;
  background: rgba(245, 242, 236, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: none;
  border-bottom: 1px solid transparent;
}

.header-area.header-sticky { border-bottom-color: var(--line); }

/* always the dark logo on paper (custom.js toggles inline display) */
.header-area .main-nav .light-logo { display: none !important; }
.header-area .main-nav .dark-logo { display: block !important; }

.header-area .main-nav .logo,
.header-area.header-sticky .logo { margin-top: 20px; }
.header-area .main-nav .logo img { height: 36px; width: auto; }

.header-area .main-nav .nav,
.header-area.header-sticky .nav { margin-top: 20px !important; align-items: center; }

.header-area .main-nav .nav li { margin-left: 28px; }

.header-area .main-nav .nav li a,
.header-area.header-sticky .nav li a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink);
  height: 36px;
  line-height: 36px;
  position: relative;
}

.header-area .main-nav .nav li a:not(.btn-nav-line):not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.header-area .main-nav .nav li a:not(.btn-nav-line):hover::after { transform: scaleX(1); }

.header-area .main-nav .nav li a:hover,
.header-area.header-sticky .nav li a:hover { color: var(--ink) !important; }

.header-area .main-nav .nav li a.btn-nav-line,
.header-area.header-sticky .nav li a.btn-nav-line {
  width: auto;
  padding: 0 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.header-area .main-nav .nav li a.btn-nav-line:hover,
.header-area.header-sticky .nav li a.btn-nav-line:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.dropdown-menu {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(17, 17, 16, 0.08);
  padding: 6px;
}
.dropdown-item { border-radius: 8px; font-size: 14px; color: var(--ink); }
.dropdown-item:hover { background: var(--paper-2); }

.header-area .main-nav .menu-trigger span,
.header-area .main-nav .menu-trigger span::before,
.header-area .main-nav .menu-trigger span::after { background-color: var(--ink); }

/* ---------- buttons ---------- */
.btn-white-line,
.btn-primary-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  line-height: 1;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.btn-white-line::after,
.btn-primary-line::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.btn-white-line:hover::after,
.btn-primary-line:hover::after { transform: translateX(4px); }

.btn-white-line {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-white-line:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-primary-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-primary-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hero ---------- */
.welcome-area {
  min-height: 0;
  padding: 190px 0 40px;
  background: var(--paper);
}
.welcome-area .welcome-bg { display: none; }
.welcome-area .welcome-content {
  position: static;
  transform: none;
}
.welcome-area .welcome-content h1 {
  color: var(--ink);
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 32px !important;
}
.welcome-area .welcome-content p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 34em;
  margin-bottom: 40px;
}

.welcome-area .welcome-content .apps { position: relative; }
.welcome-area .welcome-content .apps .row { row-gap: 20px; }
.welcome-area .welcome-content .apps .app-item {
  display: block;
  padding: 0;
  transition: transform 0.35s var(--ease);
}
.welcome-area .welcome-content .apps .app-item:hover { transform: translateY(-6px) rotate(-3deg); }
.welcome-area .welcome-content .apps .app-item .icon {
  border-radius: 22%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(17, 17, 16, 0.04), 0 16px 32px -18px rgba(17, 17, 16, 0.3);
}
.welcome-area .welcome-content .apps .app-item .icon img { display: block; width: 100%; }

/* ---------- sections ---------- */
.section { padding-top: 120px; padding-bottom: 120px; }
.section.services-section { margin-top: 0; padding-top: 40px; }
.section.background {
  background: var(--paper-2);
  background-image: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pbottom-70 { padding-bottom: 110px; }

.left-heading .section-title,
.center-heading .section-title,
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px !important;
}
.center-heading { text-align: left; margin-bottom: 16px; }
.center-text, .left-text { text-align: left; }
.center-text p, .left-text p, .left-text p.dark {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0;
  margin-bottom: 32px;
}
.offset-lg-3.col-lg-6 { margin-left: 0; max-width: 100%; flex: 0 0 100%; }
.center-text { max-width: 40em; margin: 0 0 56px; }

/* ---------- service cards ---------- */
.home-services-item,
.home-services-item.active {
  display: block;
  background: var(--card);
  background-image: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 36px 32px 40px;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--muted);
  letter-spacing: 0;
  font-size: 15px;
  line-height: 1.65;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.home-services-item::before, .home-services-item::after { display: none !important; }
.home-services-item.mtop-70 { margin-top: 0; }
.home-services-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  font-size: 22px;
  margin-bottom: 28px;
  color: var(--accent);
  background: rgba(43, 60, 255, 0.08);
  border-radius: 14px;
  background-image: none;
  -webkit-text-fill-color: currentColor;
  transition: inherit;
}
.home-services-item .services-title {
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: 12px !important;
}
.home-services-item p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.home-services-item:hover,
.home-services-item.active:hover {
  transform: translateY(-4px);
  background: var(--ink);
  border-color: var(--ink);
}
.home-services-item.active .services-title { color: var(--ink); }
.home-services-item.active p { color: var(--muted); }
.home-services-item.active i { color: var(--accent); background: rgba(43, 60, 255, 0.08); }
.home-services-item:hover .services-title,
.home-services-item.active:hover .services-title { color: var(--paper); }
.home-services-item:hover p,
.home-services-item.active:hover p { color: rgba(245, 242, 236, 0.7); }
.home-services-item:hover i,
.home-services-item.active:hover i { color: #fff; background: var(--accent); }

/* ---------- features ---------- */
.features li {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.features li:last-child { border-bottom: 1px solid var(--line); }
.features li .count {
  flex: 0 0 auto;
  width: auto; height: auto;
  background: none;
  border: 0;
  box-shadow: none;
  position: static;
}
.features li .count span {
  position: static;
  display: block;
  width: auto; height: auto; line-height: 1;
  background: none;
  border: 0;
  box-shadow: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.features li .text { padding: 0; }
.features li .text .title { color: var(--ink); font-size: 1.25rem; letter-spacing: -0.005em; margin-bottom: 8px !important; }
.features li .text p { color: var(--muted); letter-spacing: 0; line-height: 1.65; margin: 0; }

/* ---------- device mockup bezel ---------- */
.device-mockup { position: relative; max-width: 432px; margin: 0 auto; }
.device-mockup > img { display: block; width: 100%; height: auto; }
.device-mockup .device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(17, 17, 16, 0.22));
}

/* ---------- team ---------- */
.team-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 28px;
  margin-bottom: 24px;
  height: calc(100% - 24px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.team-item:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: none; }
.team-item .header .img { border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.team-item .header .info strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.team-item .header .info span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.team-item .body { color: var(--muted); letter-spacing: 0; font-size: 14px; line-height: 1.65; }
.team-item .social li a {
  color: var(--muted);
  background: none;
  transition: color 0.2s var(--ease);
}
.team-item .social li a:hover { color: var(--accent); }

/* ---------- statistics + CTA bands (both use .parallax) ---------- */
.parallax { min-height: 0; background: var(--paper); }
.parallax::before { display: none; }

.parallax:has(.count-item) {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.parallax .parallax-content .count-item {
  height: auto;
  padding: 36px 0;
  text-align: left;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.parallax .parallax-content .count-item::before,
.parallax .parallax-content .count-item::after { display: none; }
.parallax .parallax-content .count-item strong {
  margin-top: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.parallax .parallax-content .count-item:hover strong { margin-top: 0; color: var(--accent); }
.parallax .parallax-content .count-item span {
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.parallax:has(.info) { background: var(--accent); }
.parallax .parallax-content .info { text-align: left; padding: 90px 0; }
.parallax .parallax-content .info p {
  margin: 0 0 36px;
  max-width: 18em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}
.parallax .parallax-content .info p span { font-style: italic; text-decoration: none; }
.parallax .parallax-content .info .btn-white-line {
  margin: 0;
  background: #fff; color: var(--ink); border-color: #fff;
}
.parallax .parallax-content .info .btn-white-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- inner page header ---------- */
.page .cover {
  min-height: 0;
  background: var(--paper);
  padding: 170px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page .cover::before { display: none; }
.page .cover .page-top { position: static; }
.page .cover .page-top h1 {
  color: var(--ink);
  text-align: left;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 20px !important;
}
.page .cover .page-top .breadcrumb { text-align: left; margin: 0; }
.page .cover .page-top .breadcrumb li,
.page .cover .page-top .breadcrumb li a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.page .cover .page-top .breadcrumb li:after { color: var(--muted); }
.page .cover .page-top .breadcrumb li.active { color: var(--ink); }
.page .cover .page-top .breadcrumb li a:hover { color: var(--accent); }

.page .page-bottom {
  padding-top: 80px;
  padding-bottom: 100px;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.75;
  color: var(--muted);
}
.page .page-bottom.pbottom-70 { padding-bottom: 110px; }
.page .page-bottom p { margin-bottom: 1.4em; }
.page .page-bottom h2, .page .page-bottom h3, .page .page-bottom h4 { margin: 1.6em 0 0.6em !important; }
.page .page-bottom a:not(.btn-primary-line):not(.btn-white-line):not(.home-services-item) {
  color: var(--accent);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.page .page-bottom img { max-width: 100%; height: auto; border-radius: var(--radius); }
.page .page-bottom .home-services-item { margin-bottom: 24px; }

/* ---------- app / job cards ---------- */
.page-app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 32px;
  margin-bottom: 24px;
  height: calc(100% - 24px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.page-app::before { display: none; }
.page-app { display: flex; gap: 20px; align-items: flex-start; float: none; }
.page-app .icon { float: none; margin-top: 0; flex: 0 0 auto; }
.page-app .app-content { float: none; width: auto; flex: 1; padding: 0; }
.page-app .app-content .btn-primary-line { width: auto; margin-top: 8px; }
.page-app:hover { transform: translateY(-4px); border-color: var(--ink); }
.page-app .icon img { border-radius: 22%; border: 1px solid var(--line); }
.page-app .app-content .title { font-size: 1.5rem; color: var(--ink); }
.page-app .app-content .text { color: var(--muted); letter-spacing: 0; font-size: 15px; line-height: 1.65; }

/* ---------- app / job detail ---------- */
.app-single .header { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 8px; }
.app-single .header .title h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); }
.app-single .header .icon img { border-radius: 22%; border: 1px solid var(--line); }
.app-single .item { border-bottom: 1px solid var(--line); padding: 40px 0; }
.app-single {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}
.app-single .header, .app-single .item { padding-left: 40px; padding-right: 40px; border-bottom-color: var(--line); }
.app-single .item:last-child { border-bottom: 0; }
.app-single .item .icon { width: 48px; }
.app-single .item .icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  font-size: 18px;
  color: var(--accent);
  background: rgba(43, 60, 255, 0.08);
  background-image: none;
  -webkit-text-fill-color: currentColor;
  border-radius: 12px;
}
.app-single .item .content { width: calc(100% - 48px); padding-left: 20px; }
.app-single .item .content .title { font-size: 1.5rem; color: var(--ink); }
.app-single .item .content .text { color: var(--muted); letter-spacing: 0; line-height: 1.75; }
.app-single .item .content .gallery .gallery-item img {
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease);
}
.app-single .item .content .gallery .gallery-item:hover img { transform: translateY(-4px); }

/* ---------- blog (template content is currently static) ---------- */
.blog-post-thumb h3 a { color: var(--ink); font-family: var(--font-display); }
.blog-post-thumb h3 a:hover { color: var(--accent); }
.blog-post-thumb .img { border-radius: var(--radius); overflow: hidden; }
.blog-post-thumb .text { color: var(--muted); letter-spacing: 0; }
.blog-post-thumb .img .date { background: var(--ink); border-radius: 12px; }
.blog-post-thumb .img .date strong, .blog-post-thumb .img .date span { color: var(--paper); }
.pagination .page-item a { border-radius: 999px; color: var(--ink); }
aside.default-aside .sidebar .box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: none; }

/* ---------- contact ---------- */
.map-wrapper .contact-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(17, 17, 16, 0.35);
  color: var(--ink);
}
.map-wrapper .contact-info .item i { color: var(--accent); }
.map-wrapper .contact-info .item span { color: var(--ink); }
.map-wrapper .contact-info a,
.map-wrapper .contact-info .item span a,
.map-wrapper .contact-info a span { color: var(--accent) !important; }
.contact-form input, .contact-form textarea,
.post-comment .comment-form .form-item input, .post-comment .comment-form .form-item textarea {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 60, 255, 0.15);
}

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 96px;
}
footer img.logo { filter: brightness(0) invert(1); height: 36px; width: auto; margin-bottom: 28px; }
footer .text, footer .address, footer .address p { color: rgba(245, 242, 236, 0.65); letter-spacing: 0; line-height: 1.7; font-size: 14px; }
footer h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(245, 242, 236, 0.5);
  margin-bottom: 20px !important;
}
footer .footer-nav li a { color: var(--paper); letter-spacing: 0; }
footer .footer-nav li a i { display: none; }
footer .footer-nav li a span { color: inherit; letter-spacing: 0; font-size: 15px; transition: color 0.2s var(--ease); }
footer .footer-nav li a:hover span { color: #9aa3ff; }
footer .address p a { color: var(--paper); }
footer .address .social li a { color: var(--paper); transition: color 0.2s var(--ease); }
footer .address .social li a:hover { color: #9aa3ff; }
footer .copyright {
  margin-top: 72px;
  padding: 28px 0;
  border-top: 1px solid rgba(245, 242, 236, 0.14);
  color: rgba(245, 242, 236, 0.5);
  letter-spacing: 0;
  font-size: 13px;
  text-align: left;
}

/* ---------- mobile ---------- */
@media (max-width: 991px) {
  .header-area, .header-area.header-sticky { height: 68px; background: var(--paper); }
  .header-area .logo { margin-top: 16px !important; margin-left: 20px; }
  .header-area .main-nav .nav { margin-top: 68px !important; border-top: 1px solid var(--line); }
  .header-area .main-nav .nav li { background: var(--paper); border-bottom: 1px solid var(--line); }
  .header-area .main-nav .nav li a,
  .header-area .main-nav .nav li a.btn-nav-line {
    background: var(--paper) !important;
    color: var(--ink) !important;
    padding-left: 20px !important;
    border-radius: 0;
  }
  .header-area .main-nav .nav li a:hover { background: var(--paper-2) !important; }

  .welcome-area { padding: 130px 0 70px; }
  .welcome-area .welcome-content .apps { margin-top: 48px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section.services-section { padding-top: 20px; }
  .page .cover { padding: 120px 0 40px; }
  .parallax .parallax-content .count-item { padding: 24px 0 24px 20px; }
  .parallax .parallax-content .info { padding: 64px 0; }
  .features li { gap: 18px; }
  footer { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
