/* Enhancements — pagination, hover (no zoom), hero spacing, forms, images */

/* Pagination */
.navigation.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 48px 0 8px;
  flex-wrap: wrap;
}
.nav-links a,
.nav-links span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.nav-links a:hover,
.page-numbers:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  background: var(--brand-50);
  transform: translateY(-1px);
}
.nav-links .current,
.page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.nav-links .dots,
.page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
  padding: 0 6px;
  color: var(--muted);
}

/* Hover: lift + shadow, NO zoom on images */
.p-card:hover .p-card__img img,
.cat-card:hover .cat-card__img img,
.post-card:hover .post-card__img img,
.app:hover img {
  transform: none !important;
}
.p-card,
.cat-card,
.post-card,
.feature,
.branch,
.app {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.p-card:hover,
.cat-card:hover,
.post-card:hover,
.feature:hover,
.branch:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.app:hover {
  transform: translateY(-4px);
}
.p-card__img img,
.cat-card__img img,
.post-card__img img {
  transition: filter .35s ease, opacity .35s ease !important;
}
.p-card:hover .p-card__img img,
.cat-card:hover .cat-card__img img {
  filter: saturate(1.05) contrast(1.02);
}

/* Product / post card image polish */
.p-card__img {
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, var(--bg) 70%);
  padding: 28px;
}
.p-card__img img {
  max-height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
}
.post-card__img {
  background: linear-gradient(180deg, #eef3f5, #fff);
}
.post-card__img img {
  object-fit: cover;
}

/* Hero floating cards — spacing + premium hover (no zoom) */
.hero__visual {
  aspect-ratio: 1 / .96;
  margin-left: 12px;
}
.hero__card {
  padding: 16px 16px 14px;
  gap: 10px;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .3s;
  will-change: transform;
}
.hero__card img {
  transition: filter .35s ease !important;
  mix-blend-mode: multiply;
  padding: 6px;
}
.hero__card--1 { width: 54%; left: 0; top: 8%; z-index: 2; }
.hero__card--2 { width: 38%; right: 2%; top: 2%; }
.hero__card--3 { width: 40%; right: 8%; bottom: 2%; z-index: 3; }
.hero__badge {
  left: 2%;
  bottom: 8%;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.hero__card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-100);
  z-index: 5;
}
.hero__card--2:hover { transform: translateY(-8px) rotate(0.6deg); }
.hero__badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -16px rgba(12, 29, 38, .45);
}

/* Form validation states */
.form input.is-invalid,
.form textarea.is-invalid,
.form select.is-invalid {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .12);
}
.form__error {
  display: none;
  color: #e11d48;
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}
.form__error.is-visible { display: block; }
.form label.is-invalid-label { color: #e11d48; }

/* When GSAP owns motion, don't leave .reveal stuck at opacity:0 from base CSS */
.js-anim .reveal {
  opacity: 1;
  transform: none;
}

/* Featured tabs loading state */
[data-featured-grid].is-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .2s;
}
[data-featured-grid] .empty {
  grid-column: 1 / -1;
  margin: 12px 0;
  color: var(--muted);
}

/* ——— Single article (premium reading layout) ——— */
.article-page {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(217, 243, 241, .9) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 42%, var(--bg) 100%);
}
.article-hero {
  padding: 28px 0 8px;
}
.article-hero__inner {
  max-width: 920px;
}
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 18px 0 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.article-hero__date,
.article-hero__read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.article-hero__icon,
.article-hero__date svg,
.article-hero__meta svg {
  width: 15px !important;
  height: 15px !important;
  flex: none;
  opacity: .75;
}
.article-hero__title {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 18ch;
}
@media (min-width: 720px) {
  .article-hero__title { max-width: none; }
}
.article-hero__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}
.article-cover {
  margin: 28px 0 8px;
  border-radius: calc(var(--radius-lg) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #e8eef1, #fff);
  aspect-ratio: 16 / 9;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
  padding: 36px 0 72px;
}
.article-main { min-width: 0; }
.prose--article {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.prose--article h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 2em 0 .7em;
  letter-spacing: -.015em;
  padding-top: .35em;
  border-top: 1px solid var(--line);
}
.prose--article h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.prose--article h3 {
  font-size: 20px;
  margin: 1.7em 0 .55em;
  color: var(--ink);
}
.prose--article p { margin: 0 0 1.15em; }
.prose--article ul,
.prose--article ol {
  margin: 0 0 1.3em;
  padding-left: 1.25em;
}
.prose--article li { margin: .45em 0; padding-left: .15em; }
.prose--article li::marker { color: var(--brand); font-weight: 700; }
.prose--article a {
  color: var(--brand-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose--article img {
  border-radius: 16px;
  margin: 1.6em auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.prose--article strong { color: var(--ink); }
.prose--article blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: linear-gradient(90deg, var(--brand-50), transparent);
  border-radius: 0 16px 16px 0;
  color: var(--ink-2);
}

.article-consult {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  margin: 40px 0 0;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, #163543 100%);
  color: #c9d8df;
  box-shadow: var(--shadow-lg);
}
.article-consult__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: var(--brand);
}
.article-consult__icon svg { width: 26px; height: 26px; }
.article-consult__body strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}
.article-consult__body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
}
.article-consult__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-consult .btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.article-consult .btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  min-height: 92px;
}
.article-nav__link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}
.article-nav__link small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.article-nav__link span {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav__link--next { text-align: right; }
.article-nav__link--empty { visibility: hidden; pointer-events: none; }

.article-side {
  position: sticky;
  top: calc(var(--header-h, 72px) + 20px);
  display: grid;
  gap: 16px;
}
.article-side__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}
.article-side__card strong {
  font-size: 17px;
  color: var(--ink);
}
.article-side__card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.article-side__card .btn { width: 100%; justify-content: center; }
.article-side__back { justify-self: start; }

.article-related { padding-top: 8px; }

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 56px;
  }
  .article-side { position: static; order: 2; }
  .article-main { order: 1; }
  .article-side__card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .article-side__card strong,
  .article-side__card p { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .article-hero { padding-top: 16px; }
  .article-hero__lead { font-size: 16px; }
  .article-cover { margin-top: 20px; border-radius: 18px; }
  .article-consult { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__link--next { text-align: left; }
  .article-side__card { grid-template-columns: 1fr; }
  .prose--article { font-size: 16.5px; }
}

/* About — people values from company profile */
.page-hero__lead {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.about-people {
  display: grid;
  gap: 14px;
}
.about-people__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 18px);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s;
}
.about-people__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}
.about-people__num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--brand);
  line-height: 1;
  padding-top: 2px;
}
.about-people__item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.about-people__item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.values .feature p {
  font-size: 14.5px;
  line-height: 1.65;
}
@media (max-width: 640px) {
  .about-people__item {
    grid-template-columns: 48px 1fr;
    padding: 18px;
    gap: 12px;
  }
  .about-people__num { font-size: 22px; }
}

@media (max-width: 900px) {
  .hero__visual { margin-left: 0; }
  .hero__card--1 { width: 58%; left: 2%; }
  .hero__card--2 { width: 42%; }
  .hero__card--3 { width: 44%; }
}
@media (max-width: 640px) {
  .hero__card:hover,
  .hero__card--2:hover { transform: none; }
  .p-card:hover,
  .cat-card:hover,
  .post-card:hover { transform: translateY(-3px); }
}
