/* ============================================================
   kaleemchaudry.com V1
   Kaleem Chaudry Design System, flat web layout (D-004)
   ============================================================ */

:root {
  --kc-ink-navy: #0E2747;
  --kc-royal-blue: #1346C7;
  --kc-off-white: #F4F7FB;
  --kc-white: #FFFFFF;
  --kc-slate-ink: #1C2839;
  --kc-surface-blue: #E8F1F8;
  --kc-muted-slate: #5A6B82;
  --kc-hairline: #D8E1EC;
  --kc-eyebrow-on-dark: #5B8DEF;

  --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 4.25rem;
  --radius-card: 8px;
  --radius-pill: 999px;
}

/* ---------- Fonts (self-hosted) ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.125rem);
  line-height: 1.6;
  color: var(--kc-slate-ink);
  background: var(--kc-off-white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--kc-ink-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 700; line-height: 1.3; }

p { max-width: var(--measure); }
p + p { margin-top: 1rem; }

a { color: var(--kc-royal-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--kc-ink-navy); }

strong { font-weight: 600; color: var(--kc-ink-navy); }

:focus-visible {
  outline: 3px solid var(--kc-royal-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  background: var(--kc-ink-navy);
  color: var(--kc-white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-card);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--kc-white); }

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 50rem; }

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  scroll-margin-top: var(--header-h);
}
.section--white { background: var(--kc-white); border-top: 1px solid var(--kc-hairline); border-bottom: 1px solid var(--kc-hairline); }
.section--off-white { background: var(--kc-off-white); }

.section--navy { background: var(--kc-ink-navy); color: rgba(255, 255, 255, 0.86); }
.section--navy h2, .section--navy h3 { color: var(--kc-white); }
.section--navy a:not(.btn) { color: var(--kc-white); }
.section--navy a:not(.btn):hover { color: var(--kc-surface-blue); }
.section--navy :focus-visible { outline-color: var(--kc-white); }
.section--navy strong { color: var(--kc-white); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { max-width: 26ch; }
.section-head .intro { margin-top: 1.1rem; font-size: 1.08em; color: var(--kc-muted-slate); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Eyebrow with signature accent rule ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--kc-royal-blue);
  padding-top: 0.85rem;
  border-top: 4px solid var(--kc-royal-blue);
  margin-bottom: 1.25rem;
}
.section--navy .eyebrow { color: var(--kc-eyebrow-on-dark); border-top-color: var(--kc-eyebrow-on-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--kc-white);
  border-bottom: 1px solid var(--kc-hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo lockup (D-021): the SVG is exact, never rebuilt as text */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding: 0.25rem 0; }
.brand img { height: 44px; width: auto; }

@media (max-width: 760px) {
  .brand img { height: 36px; }
}

.site-nav ul { list-style: none; display: flex; gap: clamp(1.25rem, 2.5vw, 2rem); }
.site-nav a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--kc-slate-ink);
  text-decoration: none;
  padding: 0.5rem 0;
}
.site-nav a:hover { color: var(--kc-royal-blue); }

.nav-toggle {
  display: none;
  font: 600 0.95rem/1 var(--font-body);
  color: var(--kc-ink-navy);
  background: transparent;
  border: 1px solid var(--kc-hairline);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--kc-ink-navy); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kc-white);
    border-bottom: 1px solid var(--kc-hairline);
    padding: 0.25rem var(--gutter) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--kc-hairline); }
  .site-nav a { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid var(--kc-ink-navy);
  background: var(--kc-ink-navy);
  color: var(--kc-white);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--kc-royal-blue); border-color: var(--kc-royal-blue); color: var(--kc-white); }

.btn--royal { background: var(--kc-royal-blue); border-color: var(--kc-royal-blue); }
.btn--royal:hover { background: var(--kc-ink-navy); border-color: var(--kc-ink-navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.text-link { font-weight: 600; }

.cta-block { margin-top: clamp(2rem, 4vw, 2.75rem); }
.cta-note { margin-top: 0.75rem; font-size: 0.95rem; color: var(--kc-muted-slate); }

/* ---------- Hero (portrait grid) ---------- */

.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .proposition {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--kc-slate-ink);
  max-width: 40ch;
}
.hero .btn-row { margin-top: 2rem; }
.hero .btn-row .btn { min-width: 13.5rem; }

/* D-024: transparent cutout on the soft rings panel, photo aligned to the bottom */
.portrait {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--kc-hairline);
  background: var(--kc-surface-blue) url("/assets/img/hero-rings.svg") center / cover no-repeat;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* D-024: text first on mobile, portrait after it, about 75% wide and centred */
  .portrait { width: min(75vw, 360px); margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero .btn-row .btn { width: 100%; min-width: 0; }
}

/* ---------- About ---------- */

.about-body p { color: var(--kc-slate-ink); }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.steps li {
  background: var(--kc-white);
  border: 1px solid var(--kc-hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
}
.step-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kc-royal-blue);
  margin-bottom: 0.7rem;
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { font-size: 0.98rem; color: var(--kc-muted-slate); }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--kc-off-white);
  border: 1px solid var(--kc-hairline);
  border-top: 4px solid var(--kc-royal-blue);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.quote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--kc-royal-blue);
  margin-bottom: 0.5rem;
}
.quote blockquote { flex: 1; }
.quote blockquote p { font-size: 1rem; color: var(--kc-slate-ink); }
.quote figcaption { margin-top: 1.25rem; font-size: 0.92rem; color: var(--kc-muted-slate); line-height: 1.45; }
.quote figcaption strong { display: block; color: var(--kc-ink-navy); }

@media (max-width: 960px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- Guides ---------- */

.guides {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.guide {
  display: flex;
  flex-direction: column;
  background: var(--kc-white);
  border: 1px solid var(--kc-hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.4rem, 2.5vw, 2rem);
}
.guide-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--kc-royal-blue);
  margin-bottom: 0.6rem;
}
.guide h3 { margin-bottom: 0.6rem; }
.guide p { flex: 1; font-size: 0.98rem; color: var(--kc-muted-slate); }
.guide .text-link { display: inline-block; margin-top: 1.1rem; padding: 0.35rem 0; }

@media (max-width: 760px) {
  .guides { grid-template-columns: 1fr; }
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: var(--section-pad); }
.page h1 { margin-bottom: 1.5rem; }
.page h2 { font-size: 1.3rem; margin-top: 2.25rem; margin-bottom: 0.6rem; }
.page ul { margin: 0.75rem 0 0 1.25rem; }
.page li { margin-bottom: 0.6rem; max-width: var(--measure); }
.page .meta { margin-top: 2.5rem; font-size: 0.92rem; color: var(--kc-muted-slate); }
.page .btn-row { margin-top: 2rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--kc-ink-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 0;
  font-size: 0.92rem;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 1.25rem; }
.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: center;
}
.site-footer a { color: var(--kc-white); display: inline-block; padding: 0.35rem 0; }
.site-footer a:hover { color: var(--kc-surface-blue); }
.site-footer :focus-visible { outline-color: var(--kc-white); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Spacing helpers ---------- */

.body-copy { margin-top: 1.5rem; }

/* Recruitment email calls to action (D-023): email links only */
.email-ctas { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); }

/* Keep the footer at the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
