/* ═══════════════════════════════════════════════════════════
   AV Nirvana — blog styles
   Mirrors the navbar / footer / typography of index.html so the
   blog reads as part of the same site.
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary: #53535a;
  --secondary: #7c90a0;
  --white: #ffffff;
  --black: #000000;
  --ink: #2c2c31;
  --line: rgb(83 83 90 / 12%);
  --soft: rgb(124 144 160 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--secondary);
  color: var(--white);
}

/* ───────────────────────── NAVBAR ───────────────────────── */

.navbar {
  padding: 13px 0;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 10%);
  backdrop-filter: blur(14px);
  transition:
    padding 0.35s ease,
    box-shadow 0.35s ease;
  z-index: 1050;
}

.navbar.scrolled {
  padding: 9px 0;
  box-shadow: 0 12px 32px rgb(0 0 0 / 14%);
}

.navbar-brand img {
  display: block;
  width: auto;
  max-height: 58px;
}

.navbar .nav-link {
  position: relative;
  display: inline-block;
  margin-left: 15px;
  padding: 8px 0 !important;
  color: var(--primary) !important;
  font-size: 13px;
  font-weight: 500 !important;
  letter-spacing: 0.25px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: var(--secondary) !important;
}

.navbar-toggler {
  padding: 6px 9px;
  border: 1px solid rgb(83 83 90 / 20%) !important;
  background: rgb(255 255 255 / 90%) !important;
  outline: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 12px;
    padding: 10px 4px 6px;
    border-top: 1px solid var(--line);
  }

  .navbar .nav-link {
    margin-left: 0;
  }
}

/* ───────────────────────── PAGE HEAD ───────────────────────── */

.page-head {
  padding: 148px 0 56px;
  background:
    linear-gradient(180deg, rgb(124 144 160 / 14%), rgb(124 144 160 / 0%)),
    var(--white);
  text-align: center;
}

.page-head__eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0 auto 14px;
  max-width: 820px;
  color: var(--primary);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.22;
}

.page-head p {
  margin: 0 auto;
  max-width: 660px;
  color: rgb(83 83 90 / 78%);
  font-size: 15px;
  line-height: 1.8;
}

/* ───────────────────────── FILTER BAR ───────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease;
}

.chip:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.chip.is-active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  width: 220px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.28s ease;
}

.search-form input:focus {
  border-color: var(--secondary);
}

.search-form button {
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.28s ease;
}

.search-form button:hover {
  background: var(--secondary);
}

/* ───────────────────────── POST GRID ───────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 34px;
  padding: 54px 0 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.post-card:hover {
  border-color: rgb(124 144 160 / 42%);
  box-shadow: 0 22px 48px rgb(0 0 0 / 11%);
  transform: translateY(-6px);
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--soft);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card__media img {
  transform: scale(1.055);
}

.post-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgb(0 0 0 / 62%);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 24px 26px;
}

.post-card__meta {
  margin-bottom: 11px;
  color: rgb(83 83 90 / 62%);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.post-card__meta span + span::before {
  content: "•";
  margin: 0 8px;
  color: rgb(124 144 160 / 70%);
}

.post-card h2 {
  margin: 0 0 11px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.post-card h2 a {
  color: var(--ink);
  transition: color 0.28s ease;
}

.post-card h2 a:hover {
  color: var(--secondary);
}

.post-card p {
  margin: 0 0 20px;
  color: rgb(83 83 90 / 80%);
  font-size: 14px;
  line-height: 1.78;
}

.post-card__more {
  margin-top: auto;
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.post-card__more::after {
  content: " →";
  display: inline-block;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card__more::after {
  transform: translateX(5px);
}

/* ───────────────────────── FEATURED ───────────────────────── */

.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  margin: 54px 0 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.featured__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--soft);
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured:hover .featured__media img {
  transform: scale(1.04);
}

.featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 44px 46px;
}

.featured__label {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.featured__body h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
}

.featured__body h2 a:hover {
  color: var(--secondary);
}

.featured__body p {
  margin: 0 0 22px;
  color: rgb(83 83 90 / 80%);
  font-size: 14.5px;
  line-height: 1.8;
}

.btn-line {
  align-self: flex-start;
  padding: 12px 28px;
  border: 1px solid var(--secondary);
  border-radius: 999px;
  color: var(--secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.btn-line:hover {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 860px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .featured__media {
    min-height: 230px;
    aspect-ratio: 16 / 9;
  }

  .featured__body {
    padding: 30px 26px 34px;
  }
}

/* ───────────────────────── EMPTY STATE ───────────────────────── */

.empty {
  padding: 84px 24px;
  border: 1px dashed rgb(83 83 90 / 22%);
  border-radius: 14px;
  margin: 54px 0;
  text-align: center;
}

.empty h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
}

.empty p {
  margin: 0;
  color: rgb(83 83 90 / 72%);
  font-size: 14px;
}

/* ───────────────────────── PAGINATION ───────────────────────── */

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 40px 0 96px;
}

.pagination-bar a,
.pagination-bar span {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease;
}

.pagination-bar a:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.pagination-bar .is-current {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.pagination-bar .is-disabled {
  opacity: 0.4;
}

/* ───────────────────────── SINGLE POST ───────────────────────── */

.article-head {
  padding: 140px 0 0;
}

.breadcrumbs {
  margin-bottom: 20px;
  color: rgb(83 83 90 / 60%);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--secondary);
}

.breadcrumbs span {
  margin: 0 7px;
  opacity: 0.6;
}

.article-title {
  margin: 0 0 16px;
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.22;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  color: rgb(83 83 90 / 66%);
  font-size: 12.5px;
  font-weight: 500;
}

.article-meta span + span::before {
  content: "•";
  margin: 0 10px;
  color: rgb(124 144 160 / 70%);
}

.article-meta .meta-cat {
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.article-hero {
  overflow: hidden;
  margin: 34px 0 0;
  border-radius: 16px;
  aspect-ratio: 16 / 8;
  background: var(--soft);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: 44px auto 0;
  color: rgb(44 44 49 / 88%);
  font-size: 16px;
  line-height: 1.86;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 44px 0 16px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.32;
}

.article-body h2 {
  font-size: 25px;
}

.article-body h3 {
  font-size: 20px;
}

.article-body h4 {
  font-size: 17px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body a {
  color: var(--secondary);
  border-bottom: 1px solid rgb(124 144 160 / 42%);
}

.article-body a:hover {
  border-bottom-color: var(--secondary);
}

.article-body blockquote {
  margin: 32px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--secondary);
  color: var(--primary);
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
}

.article-body img {
  height: auto;
  margin: 12px 0 28px;
  border-radius: 12px;
}

.article-body table {
  width: 100%;
  margin: 0 0 28px;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.article-body th {
  background: var(--soft);
  font-weight: 600;
}

.article-foot {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.share-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-links strong {
  margin-right: 4px;
  color: rgb(83 83 90 / 70%);
  font-size: 12px;
  font-weight: 600;
}

.share-links a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 600;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.share-links a:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ───────────────────────── RELATED ───────────────────────── */

.related {
  margin-top: 84px;
  padding: 66px 0 90px;
  background: var(--soft);
}

.related h3 {
  margin: 0 0 36px;
  color: var(--primary);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  text-align: center;
}

.related .post-grid {
  padding: 0;
}

/* ───────────────────────── CTA STRIP ───────────────────────── */

.cta-strip {
  padding: 60px 0;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.cta-strip h3 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 600;
}

.cta-strip p {
  margin: 0 auto 24px;
  max-width: 560px;
  color: rgb(255 255 255 / 78%);
  font-size: 14.5px;
  line-height: 1.8;
}

.cta-strip .btn-line {
  align-self: center;
  display: inline-block;
  border-color: rgb(255 255 255 / 55%);
  color: var(--white);
}

.cta-strip .btn-line:hover {
  background: var(--white);
  color: var(--primary);
}

/* ───────────────────────── FOOTER ───────────────────────── */

.footer {
  padding-top: 74px;
  background: var(--black);
  color: rgb(255 255 255 / 75%);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr 1.35fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col img {
  display: block;
  width: auto;
  max-height: 48px;
  margin-bottom: 18px;
}

.footer-col h4 {
  margin: 7px 0 18px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.footer-col p,
.footer-col li,
.footer-col li a {
  color: rgb(255 255 255 / 66%);
  font-size: 13px;
  line-height: 1.75;
}

.footer-col p {
  margin: 0 0 8px;
}

.footer-col p.footer-phones {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: -0.2px;
}

.footer-phones__sep {
  margin: 0 5px;
  color: rgb(255 255 255 / 38%);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  position: relative;
  transition: color 0.3s ease;
}

.footer-col ul li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col ul li a:hover::after {
  transform: scaleX(1);
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.socials a:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  transform: translateY(-4px);
}

.footer-bottom {
  padding: 18px 15px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 50%);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 575.98px) {
  .page-head {
    padding: 122px 0 42px;
  }

  .article-head {
    padding-top: 116px;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 38px;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .article-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ───────────────────────── REVEAL ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
