/* ============================================================
   Client site template (ct-) — reusable base for SajtBox client
   one-page sites, linked from /primeri.html. Each client page sets
   its own palette via CSS variables, then uses these generic classes.
   ============================================================ */

.ct-root {
  --ct-primary: #5271ff;
  --ct-primary-dark: #2f3f9c;
  --ct-dark: #12172b;
  --ct-dark-alt: #1a2040;
  --ct-accent: #2ad9f5;
  --ct-white: #ffffff;
  --ct-ink: #12172b;
  --ct-ink-soft: #5b6178;
  --ct-font-display: 'Poppins', 'Segoe UI', sans-serif;
  --ct-font-body: 'Inter', 'Segoe UI', sans-serif;

  font-family: var(--ct-font-body);
  color: var(--ct-ink);
  background: var(--ct-white);
  overflow-x: hidden;
}

.ct-root * { box-sizing: border-box; }
.ct-root img { max-width: 100%; display: block; }
.ct-root a { text-decoration: none; }
.ct-root h1, .ct-root h2, .ct-root h3 {
  font-family: var(--ct-font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
.ct-root p { margin: 0 0 1em; }
.ct-root button { font-family: inherit; cursor: pointer; }

.ct-container { max-width: 1180px; margin: 0 auto; padding-left: clamp(20px,5vw,64px); padding-right: clamp(20px,5vw,64px); }
.ct-section { padding: clamp(56px,9vw,108px) 0; position: relative; }

/* Anchor-linked sections shouldn't end up hidden behind the sticky navbar when jumped to */
.ct-root section[id], .ct-root main[id] { scroll-margin-top: 90px; }

.ct-demo-bar {
  background: #070a16;
  color: #c7cdea;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  text-align: center;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 210;
}
.ct-demo-bar a { color: #eaf0ff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ct-demo-bar a:hover { color: var(--ct-accent, #2ad9f5); }

/* --- Buttons --- */
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ct-font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.ct-btn--primary { background: var(--ct-accent); color: var(--ct-dark); box-shadow: 0 10px 26px -8px rgba(42,217,245,.55); }
.ct-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(42,217,245,.7); }
.ct-btn--ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.ct-btn--ghost:hover { border-color: var(--ct-accent); color: var(--ct-accent); }
.ct-btn--dark { background: var(--ct-dark); color: #fff; }
.ct-btn--dark:hover { background: var(--ct-primary-dark); }

/* --- Navbar --- */
.ct-navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(18, 23, 43, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ct-navbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.ct-navbar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--ct-font-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.ct-navbar__brand img { width: 36px; height: 36px; border-radius: 8px; }
.ct-navbar__links { display: flex; align-items: center; gap: 4px; }
.ct-navbar__link { padding: 9px 15px; border-radius: 999px; font-size: .92rem; color: #c7cdea; transition: color .2s, background .2s; }
.ct-navbar__link:hover { color: #fff; background: rgba(255,255,255,.08); }
.ct-navbar__cta { margin-left: 8px; }
.ct-navbar__toggle { display: none; background: none; border: none; color: #fff; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; }
.ct-navbar__toggle svg { width: 22px; height: 22px; }
.ct-navbar__links--mobile { display: none; }

@media (max-width: 860px) {
  .ct-navbar__links { display: none; }
  .ct-navbar__toggle { display: flex; }
  .ct-navbar__links--mobile.is-open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; top: 64px;
    background: var(--ct-dark);
    padding: 20px clamp(20px,5vw,64px) 32px;
    z-index: 190;
    overflow-y: auto;
  }
  .ct-navbar__links--mobile .ct-navbar__link { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .ct-navbar__links--mobile .ct-navbar__cta { margin: 16px 0 0; }
}

/* --- Hero --- */
.ct-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.ct-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,23,43,.62) 0%, rgba(30,38,80,.56) 55%, rgba(18,23,43,.68) 100%);
}
.ct-hero__content { position: relative; z-index: 2; max-width: 720px; }
.ct-hero h1 { font-size: clamp(2rem,4.2vw,3.2rem); color: #fff; }
.ct-hero p { font-size: clamp(1.02rem,1.4vw,1.18rem); color: #d6dbf5; max-width: 56ch; }
.ct-eyebrow { display: inline-block; font-family: var(--ct-font-display); font-weight: 600; font-size: .82rem; color: var(--ct-accent); background: rgba(42,217,245,.12); border: 1px solid rgba(42,217,245,.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }

/* --- About --- */
.ct-about { background: var(--ct-white); }
.ct-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ct-about__image { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(18,23,43,.4); }
.ct-about h2 { color: var(--ct-ink); font-size: clamp(1.5rem,2.6vw,2.1rem); }
.ct-about p { color: var(--ct-ink-soft); font-size: 1.03rem; }
@media (max-width: 900px) { .ct-about__grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- Stats row (reusable across any ct- client site) --- */
.ct-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; }
@media (max-width: 760px) { .ct-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.ct-stat { text-align: center; }
.ct-stat__num { font-family: var(--ct-font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: var(--ct-primary); line-height: 1; margin-bottom: 10px; }
.ct-stat__label { font-family: var(--ct-font-display); font-weight: 700; font-size: .98rem; color: var(--ct-ink); margin-bottom: 6px; }
.ct-stat__desc { font-size: .86rem; color: var(--ct-ink-soft); line-height: 1.5; }

/* --- Services --- */
.ct-services { background: var(--ct-dark); color: #fff; }
.ct-services .ct-section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.ct-services h2 { color: #fff; font-size: clamp(1.5rem,2.6vw,2.1rem); }
.ct-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 860px) { .ct-services-grid { grid-template-columns: 1fr; } }
.ct-service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 30px 26px;
  transition: transform .3s, border-color .3s;
}
.ct-service-card:hover { transform: translateY(-4px); border-color: rgba(42,217,245,.4); }
.ct-service-card__icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: linear-gradient(135deg, var(--ct-accent), var(--ct-primary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--ct-dark);
}
.ct-service-card__icon svg { width: 26px; height: 26px; }
.ct-service-card__icon img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.ct-service-card h3 { font-size: 1.08rem; color: #fff; margin-bottom: 8px; }
.ct-service-card p { color: #b7bede; font-size: .92rem; margin: 0; }

/* --- Section head (generic, reusable centered intro for any section) --- */
.ct-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.ct-section-head h2 { font-size: clamp(1.5rem,2.6vw,2.1rem); }
.ct-section-head p:last-child { margin-bottom: 0; }

/* --- Simple text section (e.g. pricing explanation, no grid) --- */
.ct-simple { background: var(--ct-white); }
.ct-simple .ct-section-head { margin-bottom: 0; }
.ct-simple h2 { color: var(--ct-ink); }
.ct-simple p { color: var(--ct-ink-soft); font-size: 1.05rem; }

/* --- FAQ accordion (reusable across any ct- client site) --- */
.ct-faq { background: var(--ct-white); }
.ct-faq-list { max-width: 760px; margin: 0 auto; }
.ct-faq-item { border-bottom: 1px solid rgba(18,23,43,.12); }
.ct-faq-item__q {
  width: 100%; display: flex; align-items: center; gap: 18px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 22px 4px;
  font-family: var(--ct-font-display); font-weight: 600; font-size: 1.02rem; color: var(--ct-ink);
}
.ct-faq-item__num { flex-shrink: 0; width: 28px; font-family: var(--ct-font-display); font-weight: 700; font-size: .85rem; color: var(--ct-primary); }
.ct-faq-item__q-text { flex: 1; }
.ct-faq-item__icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(18,23,43,.25); position: relative;
  transition: transform .3s, background .3s, border-color .3s;
}
.ct-faq-item__icon::before, .ct-faq-item__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--ct-ink);
  transition: transform .3s, background .3s;
}
.ct-faq-item__icon::before { width: 10px; height: 1.6px; transform: translate(-50%,-50%); }
.ct-faq-item__icon::after { width: 1.6px; height: 10px; transform: translate(-50%,-50%); }
.ct-faq-item.is-open .ct-faq-item__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.ct-faq-item.is-open .ct-faq-item__icon { background: var(--ct-primary); border-color: var(--ct-primary); }
.ct-faq-item.is-open .ct-faq-item__icon::before,
.ct-faq-item.is-open .ct-faq-item__icon::after { background: #fff; }
.ct-faq-item__a { max-height: 0; overflow: hidden; transition: max-height .4s; }
.ct-faq-item__a-inner { padding: 0 4px 22px 46px; color: var(--ct-ink-soft); }

/* --- Testimonials (reusable across any ct- client site) --- */
.ct-testimonials { background: var(--ct-white); }
.ct-testimonials h2 { color: var(--ct-primary); }
.ct-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .ct-testimonials-grid { grid-template-columns: 1fr; } }
.ct-testimonial-card {
  background: rgba(18,23,43,.035);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 18px;
  height: 100%;
}
.ct-testimonial-card__quote { color: var(--ct-ink-soft); font-size: .98rem; line-height: 1.6; margin: 0; }
.ct-testimonial-card__footer { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ct-testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ct-accent), var(--ct-primary));
  display: flex; align-items: center; justify-content: center;
  color: var(--ct-white); font-family: var(--ct-font-display); font-weight: 700; font-size: .92rem;
}
.ct-testimonial-card__name { font-family: var(--ct-font-display); font-weight: 700; font-size: .95rem; color: var(--ct-ink); }
.ct-testimonial-card__tag { font-size: .8rem; color: var(--ct-primary); font-weight: 600; }

/* --- Gallery --- */
.ct-gallery { background: var(--ct-white); }
.ct-gallery .ct-section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.ct-gallery h2 { color: var(--ct-ink); font-size: clamp(1.5rem,2.6vw,2.1rem); }
.ct-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .ct-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.ct-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #eef0f8;
}
.ct-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ct-gallery-item:hover img { transform: scale(1.07); }
.ct-gallery-item__zoom {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,23,43,.55) 100%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px;
  opacity: 0; transition: opacity .3s;
}
.ct-gallery-item:hover .ct-gallery-item__zoom { opacity: 1; }
.ct-gallery-item__zoom svg { width: 18px; height: 18px; color: #fff; }

/* --- Contact --- */
.ct-contact {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.ct-contact__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,23,43,.92) 0%, rgba(24,30,64,.86) 100%); }
.ct-contact__inner { position: relative; z-index: 2; max-width: 640px; }
.ct-contact h2 { color: #fff; font-size: clamp(1.6rem,3vw,2.3rem); }
.ct-contact p { color: #d6dbf5; }
.ct-contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ct-contact-list li { display: flex; align-items: center; gap: 14px; }
.ct-contact-list .ct-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(42,217,245,.14); border: 1px solid rgba(42,217,245,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ct-contact-list .ct-ic svg { width: 19px; height: 19px; color: var(--ct-accent); }
.ct-contact-list a, .ct-contact-list span.ct-val { font-size: 1rem; color: #fff; }
.ct-contact-list a:hover { color: var(--ct-accent); }
.ct-contact-list .ct-label { display: block; font-size: .78rem; color: #9aa2c8; margin-bottom: 2px; }

/* --- Footer --- */
.ct-footer { background: var(--ct-dark); color: #9aa2c8; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); }
.ct-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.ct-footer__brand { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--ct-font-display); font-weight: 600; }
.ct-footer__brand img { width: 24px; height: 24px; border-radius: 6px; }
.ct-footer__made { display: inline-flex; align-items: center; gap: 6px; color: #7d84a8; }
.ct-footer__made:hover { color: var(--ct-accent); }

/* --- Lightbox (reusable across any ct- gallery) --- */
.ct-lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6,8,18,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.ct-lightbox.is-open { display: flex; }
.ct-lightbox__img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.ct-lightbox__close, .ct-lightbox__prev, .ct-lightbox__next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ct-lightbox__close:hover, .ct-lightbox__prev:hover, .ct-lightbox__next:hover { background: rgba(255,255,255,.18); }
.ct-lightbox__close { top: 20px; right: 20px; }
.ct-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.ct-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.ct-lightbox__close svg, .ct-lightbox__prev svg, .ct-lightbox__next svg { width: 20px; height: 20px; }
.ct-lightbox__counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #c7cdea; font-size: .85rem; font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,.08); padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 640px) {
  .ct-lightbox { padding: 16px; }
  .ct-lightbox__prev { left: 8px; }
  .ct-lightbox__next { right: 8px; }
  .ct-lightbox__close { top: 10px; right: 10px; }
}
