/* ==========================================================================
   Patirtys (patirtys.html) – tik šio puslapio stiliai
   Salient: Page header (parallax), Portfolio / Post Grid su filtru, Milestone,
   Image Gallery (masonry) + lightbox, Call to Action row.
   ========================================================================== */

/* ---------- 1. Hero ---------- */
.page-patirtys .page-hero__media img { object-position: 15% 62%; }
.page-patirtys .nowrap { white-space: nowrap; }
@media (max-width: 767px) {
  .page-patirtys .page-hero__media img { object-position: 62% 60%; }
  .page-patirtys .page-hero::after { background: linear-gradient(180deg, rgba(23, 21, 19, .62) 0%, rgba(23, 21, 19, .4) 40%, rgba(23, 21, 19, .72) 100%); }
}

/* ---------- 2. Istorijos: filtras ---------- */
.stories-index { padding-top: clamp(64px, 8vw, 120px); }
.stories-index .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
.sg-bar { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-bottom: 24px; margin-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.sg-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.sg-chip::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--ink); translate: 0 102%; transition: translate .5s var(--ease-out); }
.sg-chip:hover { border-color: var(--gold); }
.sg-chip[aria-pressed="true"] { color: var(--ivory); border-color: var(--ink); }
.sg-chip[aria-pressed="true"]::before { translate: 0 0; }
.sg-count { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-strong); white-space: nowrap; }

/* ---------- 2b. Istorijos: tinklelis ---------- */
.sg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 72px) clamp(18px, 2.2vw, 32px); align-items: start; }
.sg-card .story-card__media { aspect-ratio: 5 / 6; }
/* tamsesnis „stiklas“, kad žymė būtų įskaitoma ir ant šviesių nuotraukų */
.sg .tag--glass { background: rgba(23, 21, 19, .34); border-color: rgba(255, 255, 255, .26); }
.sg-card__text { margin: -6px 0 0; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }

.sg-feature {
  grid-column: span 2;
  align-self: stretch;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 540px;
  padding: clamp(26px, 3.4vw, 52px);
  border-radius: var(--r-xl);
  background: var(--night);
  color: #fff;
}
.sg-feature__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.6s var(--ease-out); }
.sg-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 21, 19, .35) 0%, rgba(23, 21, 19, 0) 26%, rgba(23, 21, 19, .1) 45%, rgba(23, 21, 19, .84) 100%); }
.sg-feature:hover .sg-feature__img { scale: 1.05; }
.sg-feature__top { position: absolute; top: clamp(20px, 2.4vw, 32px); left: clamp(20px, 2.6vw, 36px); right: clamp(20px, 2.6vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sg-feature__label { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: rgba(23, 21, 19, .34); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.sg-feature__label .i { width: 16px; height: 16px; }
.sg-feature__body { display: grid; justify-items: start; max-width: 620px; }
.sg-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.sg-feature__meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 12px; border-radius: 50%; background: var(--gold-light); vertical-align: middle; }
.sg-feature__title { display: block; margin: 14px 0 16px; font-family: var(--font-serif); font-weight: 420; font-size: clamp(2.2rem, 3.6vw, 3.5rem); line-height: 1.02; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.sg-feature__text { display: block; max-width: 34em; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.sg-feature__btn { margin-top: 28px; }
.sg-feature:hover .sg-feature__btn::before { translate: 0 0; }
.sg-feature:hover .sg-feature__btn { color: var(--ink); }
.sg-feature:hover .sg-feature__btn .i--arrow { translate: 4px 0; }

.sg-cta { position: relative; isolation: isolate; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 440px; padding: clamp(28px, 3vw, 44px); border-radius: var(--r-xl); background: var(--sand); color: var(--ink-2); }
.sg-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1px solid rgba(196, 154, 82, .45); }
.sg-cta__wings { position: absolute; top: clamp(28px, 3vw, 44px); left: clamp(28px, 3vw, 44px); width: 64px; height: 32px; color: var(--gold); transition: translate .8s var(--ease-out); }
.sg-cta:hover .sg-cta__wings { translate: 6px -4px; }
.sg-cta .eyebrow { margin-bottom: 16px; }
.sg-cta__title { display: block; font-family: var(--font-serif); font-weight: 420; font-size: clamp(2.1rem, 3vw, 2.9rem); line-height: 1.02; color: var(--ink); text-wrap: balance; }
.sg-cta__title em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.sg-cta__text { display: block; margin-top: 16px; max-width: 26em; font-size: .97rem; line-height: 1.6; }
.sg-cta__btn { margin-top: 26px; }
.sg-cta:hover .sg-cta__btn { color: var(--ink); }
.sg-cta:hover .sg-cta__btn::before { translate: 0 0; }
.sg-cta:hover .sg-cta__btn .i--arrow { translate: 4px 0; }

@media (max-width: 1000px) {
  .sg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-feature { min-height: 500px; }
}
/* 2 stulpeliai: 1 + 7 istorijos palieka tuščią vietą – ją užpildo CTA plytelė */
@media (min-width: 601px) and (max-width: 1000px) {
  .sg[data-state="all"] .sg-cta[hidden] { display: flex !important; }
}
@media (max-width: 767px) {
  .sg-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; padding-bottom: 18px; } /* nowrap: kitaip eilutės plotis = čipų max-content */
  .sg-filter { min-width: 0; }
  .sg-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .sg-filter::-webkit-scrollbar { display: none; }
  .sg-chip { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 600px) {
  .sg { grid-template-columns: 1fr; gap: 48px; }
  .sg-feature { grid-column: auto; min-height: 520px; }
  .sg-card .story-card__media { aspect-ratio: 4 / 4.2; }
}

/* ---------- 3. Ramus teiginys + skaičiai ---------- */
.calm__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 8vw, 140px); align-items: center; }
.calm__mark { width: 56px; height: 46px; margin-bottom: clamp(24px, 3vw, 36px); color: var(--gold); }
.calm__text { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.14; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.calm__text em { font-style: italic; color: var(--gold-deep); }
.calm__sign { margin-top: clamp(28px, 3vw, 40px); }
.calm__stats { display: grid; border-top: 1px solid var(--line-strong); }
.calm__stats li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 22px; padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line-strong); }
.calm__stats .stat__num { font-size: clamp(2.8rem, 4.2vw, 4.1rem); }
.calm__stats .stat__num small { margin-left: 6px; }
.calm__stats .stat__label { margin: 0; max-width: 14em; }
@media (max-width: 1000px) {
  .calm__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .calm__stats li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- 4. Galerija ---------- */
.pg__grid { columns: 4; }
@media (max-width: 900px) { .pg__grid { columns: 2; } }
.pg .section-head__aside .link-arrow .i { color: var(--gold-deep); }
@media (hover: none) {
  .pg__grid .gallery__item::after { opacity: .9; }
  .pg__grid .gallery__cap { display: block; opacity: 1; translate: none; left: 12px; right: 12px; bottom: 10px; font-size: .78rem; letter-spacing: .02em; }
}

.pg-insta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: clamp(36px, 4.5vw, 64px); padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px); border-radius: var(--r-xl); background: var(--ivory-2); border: 1px solid var(--line); }
.pg-insta__lead { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1 1 420px; }
.pg-insta__icon { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 50%; background: var(--gold-grad); color: var(--ink); }
.pg-insta__icon .i { width: 26px; height: 26px; }
.pg-insta__title { margin: 0; font-family: var(--font-serif); font-weight: 420; font-size: clamp(1.55rem, 2vw, 1.95rem); line-height: 1.15; color: var(--ink); }
.pg-insta__title em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.pg-insta__sub { margin: 4px 0 0; font-size: .93rem; line-height: 1.55; color: var(--muted-strong); }
@media (max-width: 600px) {
  .pg-insta { padding: 22px; }
  .pg-insta__lead { align-items: flex-start; gap: 16px; }
  .pg-insta__icon { width: 52px; height: 52px; }
  .pg-insta .btn { width: 100%; }
}

/* ---------- 5. CTA ---------- */
.pcta__band .cta-band__bg { overflow: hidden; }
.pcta__band .cta-band__bg img { position: absolute; left: 0; top: -12%; height: 124%; object-position: 50% 55%; }
@media (max-width: 480px) {
  .pcta__band { padding: 48px 22px 26px; }
  .pcta__band .btn-row .btn { width: 100%; }
}
