/* PAPAN SSD LTD — components.css */

/* Buttons */
.btn,
.nav-cta,
.form-submit {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: .62rem;
  padding: .92rem 1.28rem;
  border-radius: var(--radius-pill);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform var(--duration) var(--ease-soft),
    box-shadow var(--duration) var(--ease-soft),
    background var(--duration) var(--ease-soft),
    color var(--duration) var(--ease-soft),
    border-color var(--duration) var(--ease-soft);
}

.btn::before,
.nav-cta::before,
.form-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 46%;
  transform: translateX(-140%) skewX(-18deg);
  opacity: .42;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, .78),
      transparent
    );
  transition: transform 760ms var(--ease-soft);
}

.btn:hover::before,
.nav-cta:hover::before,
.form-submit:hover::before {
  transform: translateX(270%) skewX(-18deg);
}

.btn:hover,
.nav-cta:hover,
.form-submit:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-cta:focus-visible,
.form-submit:focus-visible {
  outline: 3px solid rgba(41, 170, 225, .35);
  outline-offset: 3px;
}

.btn-primary,
.form-submit {
  color: var(--color-white);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.form-submit:hover {
  box-shadow: var(--shadow-blue);
}

.btn-secondary {
  color: var(--color-deep-blue);
  border: var(--line);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

.btn-secondary:hover {
  border-color: rgba(41, 170, 225, .45);
  box-shadow: var(--shadow-soft);
}

.btn-dark {
  color: var(--color-white);
  background: var(--color-black);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.btn-outline-light {
  color: var(--color-white);
  border: var(--line-white);
  background: rgba(255, 255, 255, .08);
}

.btn-sm {
  min-height: 42px;
  padding: .72rem 1rem;
  font-size: .9rem;
}

.btn-lg {
  min-height: 58px;
  padding: 1.05rem 1.48rem;
}

/* Core cards */
.card,
.service-card,
.project-card,
.insight-card,
.document-card,
.stat-card,
.contact-card,
.feature-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
  transition:
    transform var(--duration) var(--ease-soft),
    box-shadow var(--duration) var(--ease-soft),
    border-color var(--duration) var(--ease-soft),
    background var(--duration) var(--ease-soft);
}

.card::after,
.service-card::after,
.project-card::after,
.insight-card::after,
.document-card::after,
.stat-card::after,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 12%, rgba(41, 170, 225, .16), transparent 15rem);
  transition: opacity var(--duration) var(--ease-soft);
}

.card:hover,
.service-card:hover,
.project-card:hover,
.insight-card:hover,
.document-card:hover,
.stat-card:hover,
.feature-card:hover {
  transform: translate3d(0, -7px, 0);
  border-color: rgba(41, 170, 225, .45);
  box-shadow: var(--shadow-card);
}

.card:hover::after,
.service-card:hover::after,
.project-card:hover::after,
.insight-card:hover::after,
.document-card:hover::after,
.stat-card:hover::after,
.feature-card:hover::after {
  opacity: 1;
}

.card-pad,
.feature-card,
.document-card {
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

/* Service cards */
.service-card {
  padding: clamp(1.35rem, 2.6vw, 2.25rem);
}

.service-card::before,
.project-card::before,
.insight-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-primary);
  opacity: .78;
}

.service-card h3,
.project-card h3,
.insight-card h3,
.document-card h3,
.feature-card h3,
.stat-card h3 {
  margin-bottom: .78rem;
}

.service-card p,
.project-card p,
.insight-card p,
.document-card p,
.feature-card p,
.stat-card p {
  color: var(--color-muted);
}

/* Badges and icons */
.icon-badge,
.card-number,
.value-badge,
.step-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  color: var(--color-white);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-blue);
  font-weight: 950;
  line-height: 1;
}

.card-number,
.step-badge {
  color: var(--color-deep-blue);
  border: var(--line-blue);
  background: var(--color-surface-blue);
  box-shadow: none;
}

.value-badge {
  width: auto;
  height: auto;
  min-height: 34px;
  padding: .48rem .72rem;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tag,
.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .42rem .72rem;
  border: var(--line-blue);
  border-radius: var(--radius-pill);
  color: var(--color-deep-blue);
  background: rgba(41, 170, 225, .08);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Card links */
.card-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.15rem;
  color: var(--color-deep-blue);
  font-weight: 850;
}

.card-link::after {
  content: "→";
  transition: transform var(--duration) var(--ease-soft);
}

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

.card-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.22rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  border-radius: var(--radius-pill);
  background: var(--color-sky-blue);
  transition: transform var(--duration) var(--ease-soft);
}

.card-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Media frames */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(41, 170, 225, .10), rgba(21, 71, 124, .06)),
    var(--color-light);
  box-shadow: var(--shadow-float);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .18;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .45));
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 950ms var(--ease-soft);
}

.media-frame:hover img {
  transform: scale(1.055);
}

.media-frame-wide img {
  aspect-ratio: 16 / 10;
}

.media-frame-tall img {
  aspect-ratio: 4 / 5;
}

.media-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: .75rem 1rem;
  border: var(--line-white);
  border-radius: var(--radius-md);
  color: var(--color-white);
  background: rgba(0, 0, 0, .48);
  backdrop-filter: blur(12px);
}

/* Stats */
.stat-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(237, 248, 253, .86));
}

.stat-value {
  display: block;
  margin-bottom: .38rem;
  color: var(--color-deep-blue);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 950;
  line-height: .95;
  letter-spacing: -.065em;
}

.stat-label {
  display: block;
  color: var(--color-muted);
  font-weight: 750;
}

/* Process */
.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 1rem;
}

.process-line::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 27px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(41, 170, 225, .12),
      rgba(41, 170, 225, .78),
      rgba(21, 71, 124, .22)
    );
}

.process-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1.1rem;
  border: var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--duration) var(--ease-soft),
    border-color var(--duration) var(--ease-soft),
    box-shadow var(--duration) var(--ease-soft);
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(41, 170, 225, .45);
  box-shadow: var(--shadow-card);
}

.process-dot {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border: 6px solid var(--color-surface-blue);
  border-radius: 50%;
  color: var(--color-white);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-blue);
  font-weight: 950;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  color: var(--color-muted);
  font-size: .9rem;
}

.breadcrumb a {
  color: var(--color-deep-blue);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--color-sky-blue);
}

.breadcrumb span {
  min-width: 0;
}

/* Breadcrumb on dark hero backgrounds */
.breadcrumb-light {
  color: rgba(255, 255, 255, .68);
}

.breadcrumb-light a {
  color: rgba(255, 255, 255, .92);
}

.breadcrumb-light a:hover,
.breadcrumb-light a:focus-visible {
  color: var(--color-sky-blue);
}

.breadcrumb-light [aria-current="page"] {
  color: rgba(255, 255, 255, .72);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: .45rem;
}

.form-field label {
  color: var(--color-ink-soft);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: .9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition:
    border-color var(--duration) var(--ease-soft),
    box-shadow var(--duration) var(--ease-soft),
    background var(--duration) var(--ease-soft);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-muted-2);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-sky-blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(41, 170, 225, .12);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 38, 38, .55);
}

.full-span {
  grid-column: 1 / -1;
}

/* Documents and procurement cards */
.document-card {
  padding-right: 4.8rem;
}

.document-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-primary);
}

.document-card::after {
  content: "PDF";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 28px;
  border-radius: var(--radius-xs);
  color: var(--color-white);
  background: var(--color-deep-blue);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .08em;
}

/* Alerts */
.notice {
  position: relative;
  padding: 1rem 1.1rem;
  border: var(--line-blue);
  border-radius: var(--radius-md);
  color: var(--color-deep-blue);
  background: rgba(41, 170, 225, .08);
}

.notice strong {
  display: block;
  margin-bottom: .25rem;
}

/* Tables */
.responsive-table {
  overflow-x: auto;
  border: var(--line);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.responsive-table table {
  min-width: 720px;
}

.responsive-table th,
.responsive-table td {
  padding: 1rem;
  border-bottom: var(--line);
  text-align: left;
}

.responsive-table th {
  color: var(--color-deep-blue);
  background: var(--color-light);
  font-weight: 850;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: .85rem;
}

.faq-item {
  border: var(--line);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  color: var(--color-deep-blue);
  font-weight: 850;
}

.faq-item p {
  padding: 0 1.2rem 1.15rem;
  color: var(--color-muted);
}

/* Responsive behavior */
@media (max-width: 1060px) {
  .process-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-line::before {
    display: none;
  }
}

@media (max-width: 760px) {
  .btn,
  .nav-cta,
  .form-submit {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .service-card,
  .project-card,
  .insight-card,
  .document-card,
  .stat-card,
  .feature-card {
    border-radius: var(--radius-md);
  }

  .process-line {
    grid-template-columns: 1fr;
  }

  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    align-items: start;
  }

  .process-dot {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .media-caption {
    position: static;
    border-radius: 0;
    background: var(--color-deep-blue);
    backdrop-filter: none;
  }
}

@media (max-width: 480px) {
  .icon-badge,
  .card-number,
  .step-badge,
  .process-dot {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .process-dot {
    border-radius: 50%;
  }

  .document-card {
    padding-right: 1.25rem;
    padding-top: 3.4rem;
  }

  .document-card::after {
    left: 1.25rem;
    right: auto;
  }
}

@media (hover: none) {
  .card:hover,
  .service-card:hover,
  .project-card:hover,
  .insight-card:hover,
  .document-card:hover,
  .stat-card:hover,
  .feature-card:hover,
  .process-step:hover {
    transform: none;
  }
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: none;
  place-items: center;
  padding: var(--gutter);
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  gap: .8rem;
}

.gallery-lightbox-img {
  max-height: calc(100vh - 150px);
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-light);
  box-shadow: var(--shadow-dark);
}

.gallery-lightbox-caption {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-lightbox-close {
  top: 0;
  right: 0;
  font-size: 2rem;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.gallery-lightbox-prev {
  left: 0;
}

.gallery-lightbox-next {
  right: 0;
}

body.is-lightbox-open {
  overflow: hidden;
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 680px) {
  .gallery-lightbox {
    padding: 18px;
  }

  .gallery-lightbox-img {
    max-height: calc(100vh - 170px);
    border-radius: var(--radius-md);
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .gallery-lightbox-close {
    top: -4px;
    right: -4px;
  }
}