/* ---------------------------------------------------------------
   Components — reusable UI blocks
--------------------------------------------------------------- */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--fs-14);
  line-height: 1;
  color: var(--color-white);
  background: var(--brand);
  border: 1px solid var(--brand);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn .btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Outlined variant — used for "Visos paslaugos", "Į galeriją" */
.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
  padding: 13px 27px;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--brand);
  color: var(--color-white);
}

.btn--outline:hover .btn__icon path,
.btn--outline:focus-visible .btn__icon path {
  stroke: var(--color-white);
}

/* Accent yellow variant — used for CTA "Užklausos forma" */
.btn--accent {
  background: var(--accent);
  color: var(--color-blue-14);
  border-color: var(--accent);
  padding: 13px 28px;
  font-weight: var(--font-weight-bold);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: #b8dd00;
  border-color: #b8dd00;
}

/* Small phone-number chip in the nav */
.btn--chip {
  padding: 10px 20px;
  font-size: var(--fs-13);
}

/* ---------- Badges / tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: var(--fs-11);
  color: var(--accent);
  line-height: 1;
}

/* ---------- Card (services, projects, features) ---------- */

.card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

/* Feature card (dark surface, blurred glass look) */
.feature-card {
  background: var(--color-white-07);
  border: 1px solid var(--color-white-10);
  border-radius: var(--radius-lg);
  padding: 29px 23px;
  display: flex;
  flex-direction: column;
  gap: 7.2px;
  color: var(--text-on-dark);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card__icon img {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  margin-top: 8.8px;
  font-size: var(--fs-15);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}

.feature-card__body {
  font-size: var(--fs-13);
  line-height: 1.65;
  color: var(--color-blue-88);
}

/* ---------- Accordion / FAQ ---------- */

.accordion {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-20);
  padding: 20px 0;
  text-align: left;
  font-size: var(--fs-15);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.accordion__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xl);
  background: var(--color-grey-97);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-18);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .25s ease;
}

.accordion__item[open] .accordion__icon,
.accordion__item.is-open .accordion__icon {
  background: var(--brand);
  color: var(--color-white);
  transform: rotate(45deg);
}

.accordion__panel {
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--text-muted);
  /* Animate open/close via max-height. Content is always in the DOM
     (JS keeps the item mounted); [open] toggles the height. */
  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition: max-height .35s ease, padding .3s ease, opacity .25s ease;
}

.accordion__item[open] .accordion__panel {
  max-height: 800px;
  padding: 0 0 20px;
  opacity: 1;
}

/* Remove default disclosure marker */
.accordion__item summary {
  list-style: none;
  cursor: pointer;
}
.accordion__item summary::-webkit-details-marker {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .accordion__panel { transition: none; }
}

/* ---------- Carousel (used on homepage "Mūsų paslaugos") ----------
   Progressive-enhancement pattern: works as a horizontally-scrollable
   list without JS (native swipe / touchpad scroll / trackpad).
   With JS, the prev/next buttons scroll one slide at a time. */

.carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.carousel__viewport {
  /* Full-bleed shim so the last slide can peek without clipping. */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;           /* IE / old Edge */
  padding-bottom: 4px;                /* room for hover-lift shadow */
}

.carousel__viewport::-webkit-scrollbar {
  display: none;                      /* WebKit */
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--carousel-gap, 18px) * 2)) / 3);
  gap: var(--carousel-gap, 18px);
}

.carousel__slide {
  scroll-snap-align: start;
  min-width: 0;
}

.carousel__controls {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-10);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.carousel__btn:hover,
.carousel__btn:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
}

.carousel__btn:hover .carousel__btn-icon,
.carousel__btn:focus-visible .carousel__btn-icon {
  filter: brightness(0) invert(1);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel__btn-icon {
  width: 16px;
  height: 16px;
}

.carousel__btn--prev .carousel__btn-icon {
  transform: rotate(180deg);
}

/* Responsive slide sizing — 3 on desktop, 2 on tablet, ~1.15 on mobile */
@media (max-width: 1023px) {
  .carousel__track {
    grid-auto-columns: calc((100% - var(--carousel-gap, 18px)) / 2);
  }
}

@media (max-width: 767px) {
  .carousel__track {
    grid-auto-columns: 85%;           /* peek of next card */
  }
  .carousel__controls {
    justify-content: center;
  }
}

/* ---------- Check bullet (used on About "team" list and Kontaktai "karjera") ---------- */

.intro__bullet {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: var(--fs-15);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.intro__bullet img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Placeholder image (used until real photos are dropped in) ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-85);
  color: var(--color-grey-59);
  font-size: var(--fs-12);
  min-height: 100%;
  text-align: center;
}

/* ---------- Form (used on CTA / contact pages later) ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.field__label {
  font-size: var(--fs-13);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.field__input,
.field__textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--color-white);
  font-size: var(--fs-14);
  color: var(--text-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 10, 237, 0.15);
}

.field__textarea {
  min-height: 140px;
  resize: vertical;
}
