/* ============================
   KMT site custom CSS
   ============================ */

html, body { background:#0a0f1e; }
body { font-family:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x:hidden; max-width:100vw; }

.font-display { font-family: 'Playfair Display', 'Times New Roman', Georgia, serif; font-feature-settings: 'liga' 1; }

/* Wordmark logo lockup */
.brand-mark {
  display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 5px;
}
.brand-mark .bm-letters {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.32em;
  padding-left: 0.32em; /* visually centers when letter-spacing is wide */
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark .bm-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, #60a5fa, transparent);
  width: 100%;
  min-width: 90px;
}
.brand-mark .bm-tag {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #93c5fd;
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .brand-mark .bm-letters { font-size: 1.875rem; }
  .brand-mark .bm-tag { font-size: 10px; }
}

h1, h2, h3 { word-break:break-word; overflow-wrap:anywhere; }

/* Hero gradient + blueprint grid backgrounds */
.hero-grad { background:
  radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,0.30), transparent 60%),
  radial-gradient(900px 500px at 0% 20%, rgba(96,165,250,0.14), transparent 60%);
}
.blueprint {
  background-image:
    linear-gradient(rgba(96,165,250,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.noise::before {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.04;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Hero h1 safe sizing on small phones */
@media (max-width: 640px) {
  .hero-h1 { font-size: 1.875rem !important; line-height: 1.15 !important; }
}

/* Reveal-on-scroll */
[data-reveal] { opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].reveal-in { opacity:1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* FAQ accordion */
[data-faq-item] { border-bottom: 1px solid rgba(255,255,255,.06); }
[data-faq-item] [data-faq-a] {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease, opacity .3s ease;
  opacity: 0;
}
[data-faq-item][data-open="1"] [data-faq-a] {
  max-height: 600px; padding-bottom: 1.25rem; opacity: 1;
}
[data-faq-item] [data-faq-q] svg { transition: transform .3s ease; }
[data-faq-item][data-open="1"] [data-faq-q] svg { transform: rotate(180deg); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 999px;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 25px -5px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.6);
  animation: wa-pulse 2.6s infinite;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 25px -5px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 10px 25px -5px rgba(37,211,102,.6), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 25px -5px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 640px) { .wa-float { right:14px; bottom:14px; width:52px; height:52px; } }

/* Cookie bar */
.cookie-bar {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 65;
  background: rgba(17,25,51,.95); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 14px 18px;
  color: #cbd5e1;
}
.cookie-bar .cookie-inner {
  display:flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; font-size: 13.5px; line-height: 1.5;
}
.cookie-bar p { margin: 0; max-width: 78ch; }
.cookie-bar a { color:#60a5fa; text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar button {
  flex-shrink: 0;
  background: #2563eb; color: #fff; font-weight: 600;
  padding: 9px 18px; border-radius: 10px; border: 0; cursor: pointer;
  transition: background .15s ease;
}
.cookie-bar button:hover { background: #1d4ed8; }

/* Process step connector */
.step-num {
  position:relative;
  width:48px; height:48px; border-radius:14px;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 18px -4px rgba(37,99,235,.6);
}

/* Brand strip — subtle scroll */
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee { display:flex; gap:3rem; animation: scroll-x 28s linear infinite; width: max-content; }
.marquee:hover { animation-play-state: paused; }

/* Card hover lift */
.lift { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 35px -15px rgba(37,99,235,.35); }

/* Subtle link underline on hover */
.link-acc { position:relative; }
.link-acc::after {
  content:''; position:absolute; left:0; right:100%; bottom:-3px; height:1px; background: currentColor; transition: right .25s ease;
}
.link-acc:hover::after { right: 0; }

/* Footer mobile accordion via <details> */
.footer-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; color: #fff; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-acc summary::-webkit-details-marker { display: none; }
.footer-acc summary::after {
  content: ''; width: 10px; height: 10px;
  border-right: 2px solid #60a5fa; border-bottom: 2px solid #60a5fa;
  transform: rotate(45deg); transition: transform .25s ease;
}
.footer-acc[open] summary::after { transform: rotate(-135deg); }
.footer-acc > .footer-body { padding-bottom: 14px; }

@media (min-width: 1024px) {
  .footer-acc > .footer-body { display: block !important; padding-bottom: 0; }
  .footer-acc summary { pointer-events: none; padding: 0 0 1rem 0; }
  .footer-acc summary::after { display: none; }
}

/* Process steps grid — 2 cols on mobile, last item centered */
.process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.process-grid > :nth-child(5):last-child {
  grid-column: 1 / -1; justify-self: center;
  max-width: calc(50% - 0.5rem); width: 100%;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .process-grid > :nth-child(5):last-child { grid-column: auto; max-width: none; }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
}

/* Cards: mobile center content */
.card-center { text-align: center; }
.card-center .card-icon { margin-left: auto; margin-right: auto; }
.card-center ul { display: inline-block; text-align: left; }
@media (min-width: 640px) {
  .card-center { text-align: left; }
  .card-center .card-icon { margin-left: 0; }
  .card-center ul { display: block; }
}

/* Testimonial marquee (continuous right-to-left scroll) */
.t-marquee { position: relative; overflow: hidden; }
.t-marquee::before, .t-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.t-marquee::before { left: 0; background: linear-gradient(to right, rgba(10,15,30,1), transparent); }
.t-marquee::after  { right: 0; background: linear-gradient(to left,  rgba(10,15,30,1), transparent); }
.t-track-marquee {
  display: flex; gap: 1.5rem; width: max-content; align-items: stretch;
  animation: t-scroll 40s linear infinite;
  will-change: transform;
}
.t-marquee:hover .t-track-marquee { animation-play-state: paused; }
.t-card { flex: 0 0 360px; display: flex; }
.t-card > figure { width: 100%; height: 100%; display: flex; flex-direction: column; }
.t-card > figure > blockquote { flex: 1; }
@media (max-width: 640px) { .t-card { flex: 0 0 86vw; } }
@keyframes t-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Print */
@media print {
  .wa-float, #scroll-progress, .cookie-bar, header, footer { display:none !important; }
  body { background:#fff !important; color:#000; }
}
