/* ==========================================================================
   Kandral — Payment Security Consulting
   Hand-written stylesheet. Design tokens extracted from the original brand
   (Elementor global kit): accent #FF3F1B, dark #121212, Inter + DM Sans.
   No Elementor / WordPress markup carried over.
   ========================================================================== */

@import url("../fonts/css/inter.css");
@import url("../fonts/css/dmsans.css");
@import url("../fonts/css/intertight.css");

/* ---------- Tokens ---------- */
:root {
  --accent: #ff3f1b;
  --accent-hover: #ff6549;
  --accent-soft: rgba(255, 63, 27, 0.12);

  --bg: #0e0e0e;
  --bg-alt: #121212;
  --surface: #1a1a1a;
  --surface-2: #202020;
  --border: #2c2c2c;
  --border-strong: #3a3a3a;

  --text: #f2f2f2;
  --text-muted: #a5a5a5;
  --text-dim: #7a7a7a;
  --white: #ffffff;

  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 13px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 16px 40px -16px rgba(255, 63, 27, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { color: var(--text-muted); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lead { font-size: 1.12rem; color: var(--text-muted); margin-top: 18px; }
.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--white); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(70px, 11vw, 150px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 78% 18%, rgba(255, 63, 27, 0.18), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(255, 63, 27, 0.08), transparent 55%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: 22px; }
.hero p { font-size: 1.2rem; max-width: 620px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__note { margin-top: 26px; font-size: 0.9rem; color: var(--text-dim); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; }

/* Feature list inside service cards */
.feature-list { margin-top: 18px; display: grid; gap: 10px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Coming Soon (blurred) ---------- */
.coming-soon {
  position: relative;
  overflow: hidden;
  border-style: dashed;
  border-color: var(--border-strong);
  min-height: 440px;
  padding: 0;
}
.coming-soon__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.coming-soon__blurred {
  position: absolute;
  inset: 0;
  padding: 32px;
  filter: blur(7px);
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}
.coming-soon__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.25) 0%, rgba(14, 14, 14, 0.8) 52%, rgba(14, 14, 14, 0.96) 100%);
}
.coming-soon__overlay h3 { margin-bottom: 10px; }
.coming-soon__overlay p { font-size: 0.95rem; max-width: 42ch; }
.pci-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

/* ---------- Split / media sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.split h2 { margin-bottom: 20px; }
.split .feature-list { margin-top: 26px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: none;
  border: 0;
  text-align: left;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq__q .icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.faq__q .icon::before, .faq__q .icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
}
.faq__q .icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__q .icon::after { top: 0; left: 10px; width: 2px; height: 22px; transition: transform 0.3s var(--ease); }
.faq__item[open] .faq__q .icon::after { transform: scaleY(0); }
.faq__a { padding: 0 26px; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease), padding 0.35s var(--ease); }
.faq__item[open] .faq__a { padding: 0 26px 24px; max-height: 400px; }
.faq__a p { font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(44px, 7vw, 80px);
  text-align: center;
  background: linear-gradient(135deg, #1c1310, #0e0e0e);
  border: 1px solid var(--border-strong);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(255, 63, 27, 0.22), transparent 60%);
}
.cta-band__inner { position: relative; max-width: 620px; margin-inline: auto; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 32px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
}
.contact-card .email {
  display: inline-block;
  margin: 26px 0 30px;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
}
.contact-card .email:hover { color: var(--accent); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); font-size: 1rem; }
.prose ul { margin: 14px 0; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.prose a { color: var(--accent); }
.prose strong { color: var(--text); }
.page-head { padding-block: clamp(56px, 8vw, 96px) 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 56px 32px;
  margin-top: 40px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer__brand { max-width: 320px; }
.site-footer__brand img { height: 28px; margin-bottom: 18px; }
.site-footer__brand p { font-size: 0.95rem; }
.footer-nav { display: flex; gap: clamp(40px, 8vw, 90px); flex-wrap: wrap; }
.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--white); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
/* Content is visible by default; only hidden once JS confirms it can reveal it. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--border); }
  .header-actions .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
