/* JS EPOXY — animations & graphic expansions */

/* —— Motion prefs —— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* —— Decorative patterns —— */
.pattern-hex {
  position: relative;
  overflow: hidden;
}
.pattern-hex::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(0,82,165,.05) 49%, rgba(0,82,165,.05) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(0,82,165,.05) 49%, rgba(0,82,165,.05) 51%, transparent 52%);
  background-size: 28px 48px;
  pointer-events: none;
  opacity: .9;
}
.pattern-dots {
  background-image: radial-gradient(rgba(0,82,165,.12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--blue);
  margin: 12px 0 20px;
  border-radius: 2px;
}
.accent-line.center { margin-inline: auto; }

/* —— Floating / pulse accents —— */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0,82,165,.35); }
  70% { box-shadow: 0 0 0 14px rgba(0,82,165,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,82,165,0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes draw-line {
  from { stroke-dashoffset: 120; }
  to { stroke-dashoffset: 0; }
}

.float-soft { animation: float-y 5s ease-in-out infinite; }
.pulse-cta { animation: pulse-ring 2.4s ease-out infinite; }

/* —— Section bands —— */
.band-soft {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 56px 0;
}
.band-blue {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0f3a6e 55%, var(--blue) 100%);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.band-blue::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border: 40px solid rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}
.band-blue .section-title,
.band-blue h2 { color: #fff; }
.band-blue .section-sub { color: rgba(255,255,255,.8); }

/* —— FAQ —— */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq-item:hover { border-color: #c9daf0; }
.faq-item.is-open { box-shadow: 0 8px 24px rgba(0,82,165,.08); border-color: var(--blue-mid); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--blue);
  font-weight: 400;
  transition: transform .25s;
}
.faq-item.is-open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.faq-item.is-open .faq-a { display: block; }

/* —— Testimonials —— */
.quote-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .quote-grid { grid-template-columns: repeat(3, 1fr); }
}
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11,29,58,.1);
}
.quote-card::before {
  content: '„';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 56px;
  line-height: 1;
  color: var(--blue-light);
  font-weight: 800;
}
.quote-card p {
  font-size: 14px;
  color: var(--text);
  margin: 16px 0 18px;
  position: relative;
  z-index: 1;
}
.quote-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.quote-meta strong { display: block; font-size: 13px; }
.quote-meta span { font-size: 12px; color: var(--muted); }
.stars { color: #F5A623; letter-spacing: 1px; font-size: 12px; margin-bottom: 4px; }

/* —— Timeline expanded —— */
.timeline-v {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.timeline-v::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--blue-light));
}
.timeline-v-item {
  position: relative;
  padding: 0 0 28px 16px;
}
.timeline-v-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}
.timeline-v-item h3 { font-size: 16px; margin-bottom: 6px; }
.timeline-v-item p { font-size: 14px; color: var(--muted); }

/* —— Spec table —— */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.spec-table th {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  width: 40%;
}
.spec-table tr:hover td { background: #fafbfd; }

/* —— Blog —— */
.blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11,29,58,.12);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.blog-card p { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.blog-card .more {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--black);
}
.article-body p { margin-bottom: 14px; }
.article-body ul {
  margin: 0 0 16px 18px;
  list-style: disc;
}
.article-body li { margin-bottom: 6px; }
.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

/* —— Team / about —— */
.team-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}
.team-card {
  text-align: center;
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .25s, border-color .25s;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-mid);
}
.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(145deg, var(--blue-light), #d0e4f8);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--blue);
  font-size: 22px;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(0,82,165,.15);
}
.team-card h3 { font-size: 15px; margin-bottom: 2px; }
.team-card span { font-size: 12px; color: var(--muted); }

/* —— Counter strip —— */
.counter-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 800px) {
  .counter-strip { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.counter-item {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.counter-item strong {
  display: block;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}
.counter-item span { font-size: 12px; opacity: .85; }

/* —— Accessory / product detail —— */
.feature-split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-split { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .feature-split.reverse { direction: rtl; }
  .feature-split.reverse > * { direction: ltr; }
}
.feature-split img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(11,29,58,.15);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* —— Marquee logos / certs —— */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
  align-items: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cert-pill {
  flex: 0 0 auto;
  padding: 10px 18px;
  border: 1px dashed #b8cce4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #fff;
}

/* —— Hover media zoom —— */
.media-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.media-zoom img {
  transition: transform .6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-zoom:hover img { transform: scale(1.06); }

/* —— Breadcrumb —— */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0 0;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: .5; }

/* —— Sticky page progress —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-mid), var(--blue));
  z-index: 200;
  transition: width .05s linear;
}

/* —— Icon badge —— */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon-badge .icon { width: 26px; height: 26px; }

/* —— CTA ribbon —— */
.cta-ribbon {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-light), #fff 60%);
  border: 1px solid #d5e4f5;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-ribbon {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* —— Gallery lightbox cue —— */
.gallery-2x2 a,
.portfolio-item {
  cursor: zoom-in;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,18,40,.88);
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(960px, 100%);
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
}

/* —— Accessory cards —— */
.acc-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .acc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .acc-grid { grid-template-columns: repeat(3, 1fr); }
}
.acc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.acc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(11,29,58,.1);
  border-color: #b9d0ea;
}
.acc-card h3 { font-size: 16px; margin: 10px 0 6px; }
.acc-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.acc-card .price {
  font-weight: 700;
  color: var(--blue);
  font-size: 14px;
}

/* —— Nav dropdown hint (desktop) —— */
@media (min-width: 900px) {
  .nav-desktop li { position: relative; }
  .nav-desktop .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(11,29,58,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s;
    z-index: 80;
  }
  .nav-desktop li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-desktop .dropdown a {
    display: block;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    border-radius: 6px;
  }
  .nav-desktop .dropdown a:hover {
    background: var(--blue-light);
    color: var(--blue);
  }
}

/* —— Page content spacing helpers —— */
.page-pad { padding: 40px 0 64px; }
.prose-wide { max-width: 820px; }
.text-blue { color: var(--blue); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
