/* ==========================================================================
   keliones.lt — blog pages: single article and articles index
   Loaded after styles.css; uses its tokens, buttons, cards and footer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
  padding-block: 20px;
}

.breadcrumb__list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 16px;
}

.breadcrumb__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__list .icon {
  width: 12px;
  height: 12px;
}

.breadcrumb__list a {
  transition: color 0.15s ease;
}

.breadcrumb__list a:hover {
  color: var(--text-primary);
}

.breadcrumb__list [aria-current="page"] {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Article header
   -------------------------------------------------------------------------- */

.article-header {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 24px;
}

.article-header__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 960px;
}

.article-header__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.17vw, 60px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.0833;
}

.article-header__image {
  display: block;
  aspect-ratio: 1280 / 560;
  min-height: 220px;
  border-radius: 20px;
  background: var(--bg-soft);
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   Article body: text column + sidebar
   -------------------------------------------------------------------------- */

.article-body {
  display: flex;
  align-items: flex-start;
  gap: clamp(48px, 8.33vw, 120px);
  padding-block: 64px 96px;
}

.article-content {
  flex: 0 1 760px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* Running text */
.article-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 17px;
  line-height: 29px;
}

/* In-text heading: the design sets it exactly like a paragraph */
.article-text h2 {
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.article-text a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Gallery */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-gallery img {
  width: 100%;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
}

/* Offer CTA */
.offer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.offer-cta__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offer-cta__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
}

.offer-cta__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.offer-cta__from {
  color: var(--text-muted);
  font-size: 14px;
}

.offer-cta__amount {
  color: var(--brand-red);
  font-size: 26px;
  font-weight: 700;
  line-height: 31px;
}

/* Share row */
.share {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  box-shadow: inset 0 1px 0 var(--line);
}

.share__count {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 16px;
}

.share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.share__btn:hover {
  background: var(--navy-deep);
  box-shadow: inset 0 0 0 1px var(--navy-deep);
  color: var(--on-dark);
}

.share__btn .icon {
  width: 16px;
  height: 16px;
}

.share__btn .icon--done,
.share__btn.is-done .icon--idle {
  display: none;
}

.share__btn.is-done .icon--done {
  display: block;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.article-sidebar {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.consultant-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: var(--navy-deep);
  color: var(--on-dark);
}

.consultant-cta .eyebrow {
  color: var(--on-dark-muted);
}

.consultant-cta__title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
}

.consultant-cta__desc {
  color: var(--on-dark-60);
  font-size: 15px;
  line-height: 23px;
}

.consultant-cta .btn {
  margin-top: 8px;
}

.consultant-cta__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-soft);
  font-size: 14px;
  line-height: 17px;
}

.consultant-cta__phone .icon {
  width: 16px;
  height: 16px;
  color: var(--on-dark-muted);
}

.consultant-cta__phone a:hover {
  color: var(--on-dark);
}

.sidebar-offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-offer__label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 13px;
  text-transform: uppercase;
}

/* Offer card variant used in the sidebar: taller photo, no fixed card height */
.offer-card--wide {
  min-height: 0;
}

.offer-card--wide .offer-card__image {
  height: 200px;
}

.offer-card--wide .offer-card__body {
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Articles index: header with the featured article
   -------------------------------------------------------------------------- */

.index-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 24px 56px;
}

.index-header__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 80px;
}

.index-header__title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.17vw, 60px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.0833;
}

.index-header__intro {
  flex: 0 1 520px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 27px;
}

.featured {
  display: flex;
  align-items: center;
  gap: clamp(32px, 3.9vw, 56px);
  padding-top: 20px;
}

.featured__image {
  flex: 0 1 760px;
  aspect-ratio: 760 / 460;
  min-width: 0;
  border-radius: 20px;
  background: var(--bg-soft);
  overflow: hidden;
}

.featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured:hover .featured__image img {
  transform: scale(1.03);
}

.featured__copy {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.featured__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 3.06vw, 44px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1136;
}

.featured__title a:hover {
  color: var(--navy);
}

.featured__excerpt {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 27px;
}

.featured__meta {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 16px;
}

.featured__btn {
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Articles index: filter chips, grid, pagination
   -------------------------------------------------------------------------- */

.filter-chips {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip:hover {
  box-shadow: inset 0 0 0 1px var(--navy-deep);
}

.filter-chip[aria-pressed="true"] {
  background: var(--navy-deep);
  box-shadow: none;
  color: var(--on-dark);
  font-weight: 600;
}

/* Index cards: taller photo and a date line */
.article-grid--index {
  row-gap: 32px;
}

.article-card--index {
  min-height: 344px;
}

.article-card--index .article-card__media {
  height: 200px;
}

.article-card__meta {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 16px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pagination__item .icon {
  width: 18px;
  height: 18px;
}

a.pagination__item:hover {
  box-shadow: inset 0 0 0 1px var(--navy-deep);
}

.pagination__item[aria-current="page"] {
  background: var(--navy-deep);
  box-shadow: none;
  color: var(--on-dark);
}

.pagination__item--disabled {
  color: var(--text-muted);
}

.pagination__item--gap {
  background: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Desktop: the sidebar follows the reader down the article */
@media (min-width: 1025px) {
  .article-sidebar {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 1024px) {
  .index-header__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .index-header__intro {
    flex: none;
    max-width: 520px;
  }

  .featured {
    flex-direction: column;
    align-items: stretch;
  }

  .featured__image {
    flex: none;
  }

  .article-grid--index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-body {
    flex-direction: column;
    gap: 48px;
    padding-block: 48px 72px;
  }

  .article-content {
    flex: none;
    width: 100%;
    max-width: 760px;
  }

  /* Sidebar moves under the article, its two blocks side by side */
  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .index-header {
    padding-block: 12px 40px;
  }

  .featured {
    gap: 24px;
    padding-top: 8px;
  }

  .featured__image {
    border-radius: 14px;
  }

  .featured__copy {
    gap: 16px;
  }

  .article-grid--index {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  /* One card per row: no need to equalise heights */
  .article-card--index {
    min-height: 0;
  }

  .breadcrumb {
    padding-block: 16px;
  }

  .article-header {
    gap: 28px;
    padding-top: 12px;
  }

  .article-header__image {
    border-radius: 14px;
  }

  .article-body {
    padding-block: 36px 56px;
  }

  .article-text {
    gap: 22px;
    font-size: 16px;
    line-height: 27px;
  }

  /* One large photo, two smaller ones under it */
  .article-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .article-gallery li:first-child {
    grid-column: 1 / -1;
  }

  .article-gallery img {
    height: 130px;
  }

  .article-gallery li:first-child img {
    height: 200px;
  }

  .offer-cta {
    padding: 24px;
  }

  .article-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}
