/* ==========================================================================
   kazim.marketing — layout/composition cloned from qgjzo.weblium.site,
   colors + type restyled to the Brand Identity System v2.0
   (orange #FF751F / emerald #10B982 / ink #15201B / paper #FAFAF6,
   IBM Plex Sans + rare IBM Plex Serif accent + IBM Plex Mono labels).
   ========================================================================== */

:root {
  --orange: #FF751F;
  --emerald: #10B982;
  --ink: #15201B;
  --paper: #FAFAF6;
  --white: #FFFFFF;

  /* neutrals derived from ink for text/borders — no teal, no plain #666/#777 grays */
  --ink-soft: #4B5750;   /* secondary body copy */
  --ink-mute: #7A8478;   /* tertiary / label-ish copy */
  --ink-faint: #93A498;  /* muted text sitting on dark ink backgrounds */
  --border: #E7E4DC;     /* paper-tinted hairline border on light sections */
  --border-on-ink: rgba(255, 255, 255, 0.14);

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1200px;
  --section-pad: 64px;
}

@media (min-width: 768px) { :root { --section-pad: 96px; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
section, header, footer { scroll-margin-top: 84px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: var(--section-pad) 0; }
.section--tight { padding: calc(var(--section-pad) * 0.6) 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: rgba(16,185,130,0.08); color: var(--ink); }

.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head--center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

h2.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.2;
  color: var(--ink);
}
.section--ink h2.section-title { color: var(--ink); }

.lede {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
  margin-top: 16px;
  line-height: 1.5;
}
.section--ink .lede { color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--sm { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { background: var(--white); filter: none; }
.btn--ghost::before { display: none; }
.btn::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  background-color: var(--white);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C6.48 2 2 6.48 2 12c0 1.85.5 3.58 1.36 5.07L2 22l5.06-1.33A9.94 9.94 0 0012 22c5.52 0 10-4.48 10-10S17.52 2 12 2zm5.2 14.2c-.24.66-1.4 1.26-1.93 1.33-.5.07-1.1.1-1.78-.11-.41-.13-.93-.3-1.6-.6-2.8-1.21-4.63-4.03-4.77-4.22-.14-.19-1.14-1.52-1.14-2.9 0-1.37.72-2.04.98-2.32.26-.28.56-.35.75-.35.19 0 .38 0 .54.01.17.01.4-.07.63.48.24.57.81 1.98.88 2.12.07.14.12.31.02.5-.09.19-.14.31-.28.48-.14.17-.29.37-.42.5-.14.14-.28.29-.12.57.16.28.71 1.17 1.53 1.9 1.05.94 1.94 1.23 2.22 1.37.28.14.44.12.6-.07.16-.19.68-.79.86-1.06.18-.28.36-.23.6-.14.24.09 1.53.72 1.79.85.26.14.43.2.5.31.07.11.07.65-.17 1.3z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2C6.48 2 2 6.48 2 12c0 1.85.5 3.58 1.36 5.07L2 22l5.06-1.33A9.94 9.94 0 0012 22c5.52 0 10-4.48 10-10S17.52 2 12 2zm5.2 14.2c-.24.66-1.4 1.26-1.93 1.33-.5.07-1.1.1-1.78-.11-.41-.13-.93-.3-1.6-.6-2.8-1.21-4.63-4.03-4.77-4.22-.14-.19-1.14-1.52-1.14-2.9 0-1.37.72-2.04.98-2.32.26-.28.56-.35.75-.35.19 0 .38 0 .54.01.17.01.4-.07.63.48.24.57.81 1.98.88 2.12.07.14.12.31.02.5-.09.19-.14.31-.28.48-.14.17-.29.37-.42.5-.14.14-.28.29-.12.57.16.28.71 1.17 1.53 1.9 1.05.94 1.94 1.23 2.22 1.37.28.14.44.12.6-.07.16-.19.68-.79.86-1.06.18-.28.36-.23.6-.14.24.09 1.53.72 1.79.85.26.14.43.2.5.31.07.11.07.65-.17 1.3z'/></svg>");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.25s ease;
}
.site-header.is-scrolled { background: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 700; font-size: 20px; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__dot { color: var(--orange); }
.site-header.is-scrolled .logo { color: var(--white); }

.nav-desktop { display: none; align-items: center; gap: 30px; }
.nav-desktop a { font-family: var(--font-sans); font-size: 15px; color: var(--ink); }
.site-header.is-scrolled .nav-desktop a { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid var(--ink);
}
.site-header.is-scrolled .nav-toggle { border-color: var(--white); }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.site-header.is-scrolled .nav-toggle__icon,
.site-header.is-scrolled .nav-toggle__icon::before,
.site-header.is-scrolled .nav-toggle__icon::after { background: var(--white); }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-mobile { display: none; flex-direction: column; gap: 2px; padding: 8px 0 20px; }
.nav-mobile[data-open="true"] { display: flex; }
.nav-mobile a { padding: 12px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 12px; }
@media (min-width: 768px) { .nav-desktop { display: flex; } .nav-toggle { display: none; } .nav-mobile { display: none !important; } }

/* Hero */
.hero { padding: 64px 0 60px; background: var(--paper); text-align: center; }
.hero__inner { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.2;
  color: var(--ink);
}
.hero__sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 2vw, 22px); color: var(--ink-soft); margin-top: 24px; }
.hero__body { font-family: var(--font-sans); font-size: 16px; color: var(--ink-soft); margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero__cta { margin-top: 32px; }

/* Logo carousel */
.logo-strip__head { text-align: center; margin-bottom: 8px; }
.logo-strip__head h2 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(28px, 4vw, 44px); color: var(--ink); }

/* True paginated carousel (matches the reference: 3 slides visible per "page"
   on desktop, 1 on mobile, arrows + dots page through the rest — NOT a static
   grid showing everything at once). */
.carousel { position: relative; margin-top: 32px; padding: 0 4px; }
@media (min-width: 900px) { .carousel { padding: 0 48px; } }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
/* Each slide is the client's original pre-composed vertical card (logo + name +
   description baked in by design, two clients per source file) — same asset,
   same crop behaviour as the reference site: fixed aspect box, object-fit: cover.
   Do not re-crop or rebuild these from individual logos — the source files are
   already the finished, adaptive-for-mobile artwork. */
.logo-slide {
  flex: 0 0 100%;
  aspect-ratio: 370 / 569;
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--white);
}
@media (min-width: 640px) { .logo-slide { flex-basis: calc(50% - 12px); } }
@media (min-width: 900px) { .logo-slide { flex-basis: calc(33.333% - 16px); } }
.logo-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(21,32,27,0.78); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background-color 0.15s ease, transform 0.15s ease; }
.carousel__dot.is-active { background: var(--emerald); transform: scale(1.25); }

/* Cases */
.cases-note { text-align: center; font-size: 14px; color: var(--ink-mute); margin-top: 12px; }
.cases-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 640px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }

.case-card__figure { cursor: zoom-in; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.case-card__figure img { width: 100%; display: block; }
.case-card__title { font-weight: 700; font-size: 18px; margin-top: 18px; }
.case-card__meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.case-card__metrics { margin-top: 8px; font-size: 15px; }
.case-card__metrics p { margin-top: 2px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,0.86); }
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: min(920px, 92vw); max-height: 86vh; border-radius: 6px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--white); display: flex; align-items: center; justify-content: center; }

/* Steps */
.steps { margin-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.step__title { font-family: var(--font-sans); font-weight: 600; font-size: clamp(22px, 3vw, 28px); color: var(--ink); }
.step__body { font-size: 16px; color: var(--ink-soft); margin-top: 8px; }
.step__cta { margin-top: 20px; }

.steps-connect { margin-top: 32px; background: var(--paper); border-radius: 8px; padding: 28px; }
.steps-connect h3 { font-family: var(--font-sans); font-weight: 600; font-size: 22px; }
.steps-connect ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps-connect li { padding-left: 20px; position: relative; color: var(--ink-soft); }
.steps-connect li::before { content: "\2022"; position: absolute; left: 0; color: var(--emerald); }
.steps-connect p.control { margin-top: 16px; font-weight: 700; }
.steps-final { text-align: center; margin-top: 40px; }
.steps-final p { font-size: 19px; max-width: 480px; margin: 0 auto 22px; color: var(--ink-soft); }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card__title { font-family: var(--font-sans); font-weight: 600; font-size: 26px; color: var(--ink); }
.service-card__hook { font-weight: 700; font-size: 17px; margin-top: 10px; }
.service-card__body { color: var(--ink-soft); margin-top: 10px; }
.service-card__result { margin-top: 14px; font-weight: 700; }
.service-card__tools { margin-top: 10px; font-size: 14px; color: var(--ink-mute); }

/* Why-us blocks — 3-across grid with a circular icon badge per block,
   matching the reference site's 6-item 3x2 layout. */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px 32px; margin-top: 40px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-block__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why-block__title { font-family: var(--font-sans); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.3; }
.why-block p { color: var(--ink-soft); margin-top: 10px; font-size: 14.5px; }
.why-block__list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.why-block__list li { padding-left: 18px; position: relative; color: var(--ink-soft); font-size: 14.5px; }
.why-block__list li::before { content: "\2022"; position: absolute; left: 0; color: var(--emerald); }
.why-block__result { margin-top: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); }

/* Comparison — asymmetric cards: wide "us" list + collapsed "them" accordion
   (matches the reference site; the collapsed accordion is what keeps this
   section short on mobile instead of a long stacked 9-row table). */
.compare { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .compare { flex-direction: row; align-items: flex-start; } }

.compare__us {
  background: rgba(16,185,130,0.07);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  flex: 1 1 auto;
}
@media (min-width: 768px) { .compare__us { flex: 1.8 1 0; } }
.compare__us-title { font-family: var(--font-sans); font-weight: 600; font-size: 19px; color: var(--ink); }
.compare__us-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.compare__us-list li { display: flex; gap: 10px; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.compare__check {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%; background: var(--emerald); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
}

.compare__them {
  background: rgba(255,117,31,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 24px;
  flex: 1 1 auto;
}
@media (min-width: 768px) { .compare__them { flex: 1 1 0; align-self: flex-start; } }
.compare__them-title {
  cursor: pointer; list-style: none;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; color: var(--ink-mute);
}
.compare__them-title::-webkit-details-marker { display: none; }
.compare__chevron {
  flex: none; width: 20px; height: 20px; position: relative;
}
.compare__chevron::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-mute); border-bottom: 1.5px solid var(--ink-mute);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.15s ease;
}
.compare__them[open] .compare__chevron::before { transform: rotate(-135deg) translate(-2px, -2px); }
.compare__them-body { padding: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.compare__them-body p { font-size: 13px; color: var(--ink-mute); }

/* About — mobile order: heading, photo, bio text, stats. Desktop: full-bleed
   photo fills the left half edge-to-edge (object-fit: cover, no radius),
   matched in height to a tinted card on the right holding heading + copy
   as one visual block; stats become their own full-width 4-across row. */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "heading" "photo" "copy" "stats";
  row-gap: 20px;
}
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "photo heading" "photo copy" "stats stats";
    column-gap: 40px;
    row-gap: 0;
    align-items: stretch;
  }
}
.about-photo { grid-area: photo; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-heading, .about-copy {
  background: rgba(16,185,130,0.06);
  padding: 0 28px;
}
@media (min-width: 900px) {
  .about-heading, .about-copy { padding: 0 40px; }
}
.about-heading { grid-area: heading; padding-top: 32px; padding-bottom: 4px; }
.about-copy { grid-area: copy; padding-bottom: 32px; }
.about-copy p { color: var(--ink-soft); margin-top: 14px; }
.about-copy p:first-child { margin-top: 8px; }
@media (min-width: 900px) { .about-copy p:first-child { margin-top: 14px; } }

.stats-grid { grid-area: stats; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 32px; background: var(--border); }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { background: var(--paper); padding: 24px 20px; }
.stat-tile__num::after { content: ""; display: block; width: 28px; height: 3px; background: var(--emerald); margin: 10px 0; }
.stat-tile__num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 3vw, 32px); color: var(--orange); }
.stat-tile__label { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-sans); font-weight: 600; font-size: 19px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; position: relative; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; background: var(--ink); }
.faq-item__icon::before { width: 9px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 9px; }
.faq-item[open] .faq-item__icon::after { transform: scaleY(0); }
.faq-item__body { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; }

/* Footer */
/* Footer keeps the dark ink treatment even though .section--ink (used for the
   mid-page/final CTA bands) was lightened — these are different sections. */
/* Footer contrast rule: on the dark ink background, ALL text is white (or a
   translucent-white variant for secondary text) — never the muted ink-*
   tones, those were tuned for light backgrounds and read as invisible here. */
.site-footer.section--ink { background: var(--ink); color: var(--white); }
.site-footer { padding: 56px 0 32px; }
.site-footer .logo { color: var(--white); }
.site-footer .logo__word-marketing { color: rgba(255,255,255,0.6); }
.site-footer .lede { color: rgba(255,255,255,0.8); }
.site-footer__top { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .site-footer__top { flex-direction: row; justify-content: space-between; } }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer__nav a { font-size: 14px; color: rgba(255,255,255,0.85); }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.6); }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--emerald); color: var(--white); }
