/* =============================================================
   SALESHAX Website UI Kit — section-level styles
   Leans on colors_and_type.css for all tokens
   ============================================================= */

@import url("colors_and_type.css");

html, body { margin: 0; padding: 0; background: var(--shx-white); color: var(--shx-black); }

* { box-sizing: border-box; }

.page { width: 100%; overflow-x: hidden; }

/* ---------- Page container grid ---------- */
.container {
  max-width: 1520px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}
@media (min-width: 1200px) {
  .container { padding-left: 80px; padding-right: 80px; }
}

.section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
}
.section.tight  { padding-top: 72px; padding-bottom: 72px; }
.section.dark   { background: var(--shx-near-black); color: var(--shx-white); }
.section.warm   { background: var(--shx-bg-warm); }
.section.light  { background: var(--shx-white); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav.on-dark {
  background: rgba(10,10,10,0.55);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; padding: 18px 0; gap: 32px; }
.logo { display:flex; align-items:center; gap:10px; font-family: var(--shx-font-sans); font-weight: 600; font-size: 15px; letter-spacing: 0.03em; color: inherit; }
.logo svg { width: 22px; height: 28px; }

.nav-links { display:flex; gap: 32px; }
.nav-link  { font-family: var(--shx-font-ui); font-weight: 500; font-size: 15px; color: rgba(0,0,0,0.5); cursor: pointer; letter-spacing: -0.02em; transition: color 160ms; }
.nav-link:hover, .nav-link.is-active { color: var(--shx-black); }
.nav.on-dark .nav-link { color: rgba(255,255,255,0.5); }
.nav.on-dark .nav-link:hover, .nav.on-dark .nav-link.is-active { color: #fff; }

/* ---------- Capsule button ---------- */
.btn {
  display:inline-flex; padding: 3px; border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.1); background: transparent;
  cursor: pointer; transition: border-color 240ms var(--shx-ease-out);
}
.btn-inner {
  border-radius: 71px;
  background: linear-gradient(#000 0%, #666 100%);
  color: #fff;
  padding: 14px 32px 14px 24px;
  font-family: var(--shx-font-sans); font-weight: 500; font-size: 15px;
  letter-spacing: -0.06em; line-height: 1;
  display:inline-flex; align-items:center; gap: 10px;
  transition: background 240ms var(--shx-ease-out);
}
.btn:hover { border-color: rgba(0,0,0,0.18); }
.btn:hover .btn-inner { background: linear-gradient(#1a1a1a 0%, #7a7a7a 100%); }
.btn.sm .btn-inner { padding: 10px 20px 10px 16px; font-size: 13px; }

/* Dark-surface variants */
.btn.on-dark { border-color: rgba(255,255,255,0.18); }
.btn.on-dark:hover { border-color: rgba(255,255,255,0.35); }
.btn.white .btn-inner { background: #fff; color: #000; }
.btn.white:hover .btn-inner { background: #eee; }

.btn-stroke .btn-inner {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.58);
}

.btn svg { width: 15px; height: 15px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display:inline-flex; align-items:center; gap: 8px;
  font-family: var(--shx-font-sans); font-size: 15px; letter-spacing: -0.04em;
  color: currentColor;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius:50%; background: var(--shx-sky-200); }
.eyebrow.black .dot { background: #000; }
.section.dark .eyebrow .dot { background: var(--shx-sky-200); }

/* ---------- Headlines ---------- */
.h1 {
  font-family: var(--shx-font-serif); font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.05; letter-spacing: -0.05em;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.h2 {
  font-family: var(--shx-font-serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1; letter-spacing: -0.05em;
  margin: 16px 0 20px;
  text-wrap: balance;
}
.h3 {
  font-family: var(--shx-font-serif); font-weight: 400;
  font-size: 32px; line-height: 1.15; letter-spacing: -0.04em;
  margin: 0;
}
.accent {
  font-family: var(--shx-font-serif);
  font-weight: 300;
  font-style: italic;
  color: var(--shx-grey-500);
}
.section.dark .accent { color: rgba(255,255,255,0.55); }

/* ---------- Body ---------- */
.lead   { font-family: var(--shx-font-sans); font-size: 20px; line-height: 1.55; letter-spacing: -0.04em; color: rgba(0,0,0,0.72); max-width: 620px; }
.body   { font-family: var(--shx-font-sans); font-size: 17px; line-height: 1.6;  letter-spacing: -0.03em; color: rgba(0,0,0,0.7); }
.small  { font-family: var(--shx-font-sans); font-size: 14px; line-height: 1.5;  letter-spacing: -0.02em; color: var(--shx-grey-500); }
.section.dark .lead   { color: rgba(255,255,255,0.78); }
.section.dark .body   { color: rgba(255,255,255,0.7); }
.section.dark .small  { color: rgba(255,255,255,0.55); }

/* ---------- Dot texture + sky halo primitives ---------- */
.dot-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 360px;
  background: url("../assets/texture-dots.png") center bottom / 520px repeat;
  mask-image: linear-gradient(180deg, transparent 0%, #000 75%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 75%);
  pointer-events: none; opacity: 0.8;
  z-index: 0;
}
.dot-floor.dark {
  mask-image: linear-gradient(180deg, transparent 0%, #000 100%);
  opacity: 0.25;
  filter: invert(1);
}

.halo-disc {
  width: 520px; height: 520px; border-radius: 50%;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  background: radial-gradient(closest-side, rgba(144,207,232,0.5) 0%, rgba(255,255,255,0) 75%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 4px 9.8px rgba(144,207,232,0.25);
}
.halo-disc .inner {
  width: 360px; height: 360px; border-radius:50%;
  background:
    radial-gradient(closest-side, rgba(23,150,201,0.12) 0%, rgba(23,150,201,0) 75%),
    url("../assets/portrait-1.jpg") center / cover no-repeat,
    #fff;
  box-shadow: inset 0 21px 13.2px rgba(23,150,201,0.05), inset 0 4px 20px rgba(12,133,180,0.25);
}
.halo-disc.dark {
  background: radial-gradient(closest-side, rgba(144,207,232,0.28) 0%, rgba(10,10,10,0) 75%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
}

.white-fade-bottom {
  position:absolute; left:0; right:0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 200px;
  overflow: hidden;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy .lead { max-width: 540px; }
.hero-ctas { margin-top: 36px; display:flex; gap: 16px; align-items:center; flex-wrap:wrap; }
.hero-visual { display:flex; justify-content:center; position: relative; min-height: 520px; align-items:center; }

/* ---------- Logo strip ---------- */
.logos {
  display:flex; justify-content:space-between; align-items:center; gap: 40px;
  padding: 24px 0;
  opacity: 0.65;
}
.logos .logo-mark {
  font-family: var(--shx-font-serif); font-size: 22px; letter-spacing: -0.03em; color: #000;
  font-style: italic; font-weight: 400;
}

/* ---------- Service image grid ---------- */
.svc-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative;
  aspect-ratio: 0.95 / 1;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover; background-position: center;
  color: #fff;
  cursor: pointer;
  transition: transform 320ms var(--shx-ease-out);
}
.svc-card::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%);
}
.svc-card:hover { transform: translateY(-4px); }
.svc-card .num { position:absolute; top: 22px; left: 26px; font-family: var(--shx-font-serif); font-style: italic; font-size: 48px; color: rgba(255,255,255,0.95); line-height: 1; letter-spacing: -0.04em; z-index: 2; }
.svc-card .ttl { position:absolute; left: 26px; right: 26px; bottom: 72px; z-index: 2; font-family: var(--shx-font-serif); font-size: 26px; line-height: 1.15; letter-spacing: -0.04em; }
.svc-card .bd  { position:absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; font-family: var(--shx-font-sans); font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.82); letter-spacing: -0.02em; }

/* ---------- Numbered frameworks grid (no images) ---------- */
.num-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.num-cell .num { font-family: var(--shx-font-serif); font-style: italic; font-size: 52px; color: var(--shx-grey-350); letter-spacing: -0.04em; line-height: 1; }
.num-cell .hr  { height: 1px; background: rgba(0,0,0,0.12); margin: 18px 0 16px; }
.section.dark .num-cell .num { color: rgba(255,255,255,0.35); }
.section.dark .num-cell .hr  { background: rgba(255,255,255,0.15); }
.num-cell .ttl { font-family: var(--shx-font-serif); font-size: 24px; letter-spacing: -0.04em; margin-bottom: 12px; }
.num-cell .bd  { font-family: var(--shx-font-sans); font-size: 15px; line-height: 1.55; color: rgba(0,0,0,0.7); letter-spacing: -0.03em; }
.section.dark .num-cell .bd { color: rgba(255,255,255,0.7); }

/* ---------- Stats strip ---------- */
.stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat .n  { font-family: var(--shx-font-serif); font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.stat .n em { font-style: italic; color: var(--shx-grey-500); font-weight: 400; }
.stat .lbl { margin-top: 10px; font-family: var(--shx-font-sans); font-size: 14px; letter-spacing: -0.02em; color: var(--shx-grey-500); }
.section.dark .stat .lbl { color: rgba(255,255,255,0.55); }
.section.dark .stat .n em { color: rgba(255,255,255,0.5); }

/* ---------- Testimonial ---------- */
.quote-block { max-width: 860px; }
.quote-block .q {
  font-family: var(--shx-font-serif); font-size: 32px; line-height: 1.3; letter-spacing: -0.04em;
  color: #111; text-wrap: balance;
}
.quote-block .q::before { content:"„"; color: var(--shx-grey-350); margin-right: 2px; }
.quote-block .q::after  { content:"“"; color: var(--shx-grey-350); margin-left: 2px; }
.quote-block .sig { margin-top: 28px; display:flex; gap: 14px; align-items:center; }
.quote-block .av  { width: 48px; height: 48px; border-radius: 50%; background-size: cover; background-position: center; }
.quote-block .name { font-family: var(--shx-font-sans); font-size: 15px; letter-spacing: -0.02em; color: #000; }
.quote-block .role { font-family: var(--shx-font-sans); font-size: 14px; letter-spacing: -0.02em; color: var(--shx-grey-500); }
.section.dark .quote-block .q { color: #fff; }
.section.dark .quote-block .name { color: #fff; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding: 80px 56px;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
}
.cta .halo-bg {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(144,207,232,0.25) 0%, rgba(0,0,0,0) 72%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding-top: 80px; padding-bottom: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-col { display:flex; flex-direction:column; gap: 14px; }
.footer-col .h   { font-family: var(--shx-font-sans); font-size: 15px; color: #000; letter-spacing: -0.02em; margin-bottom: 4px; }
.footer-col .lnk { font-family: var(--shx-font-sans); font-size: 14px; color: var(--shx-grey-600); letter-spacing: -0.02em; cursor: pointer; }
.footer-col .lnk:hover { color: #000; }
.footer-col .kv  { font-family: var(--shx-font-sans); font-size: 14px; color: var(--shx-grey-600); letter-spacing: -0.02em; }
.socials { display:flex; gap: 10px; margin-top: 6px; }
.socials .s { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.1); display:flex; align-items:center; justify-content:center; color: rgba(101,101,101,0.65); cursor:pointer; transition: color 160ms, border-color 160ms; }
.socials .s:hover { color: #000; border-color: rgba(0,0,0,0.25); }
.socials .s svg { width: 18px; height: 18px; }
.footer-meta { margin-top: 48px; display:flex; justify-content:space-between; font-family: var(--shx-font-sans); font-size: 13px; color: var(--shx-grey-500); letter-spacing: -0.02em; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .cta { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .stats    { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .halo-disc { width: 420px; height: 420px; }
  .halo-disc .inner { width: 280px; height: 280px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 32px; padding-bottom: 120px; }
  .nav-links { display: none; }
  .svc-grid, .num-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .halo-disc { width: 340px; height: 340px; }
  .halo-disc .inner { width: 220px; height: 220px; }
  .cta { padding: 48px 28px; }
}
