/* Crestline Partners — styles.css
   Designed for current index.html classnames (site-header, hero, section, card, btn, etc.) */

:root{
  --bg: #ffffff;
  --text: #0f1115;
  --muted: #5b616e;
  --hairline: rgba(15,17,21,0.10);

  --card: #ffffff;
  --card-alt: #f7f8fa;

  /* Brand: logo is pure #FFFF00; UI uses a slightly darker yellow to avoid neon */
  --accent-brand: #FFFF00;
  --accent: #F2C200;          /* primary UI yellow */
  --accent-hover: #E3B600;
  --accent-soft: #FFF3B0;     /* soft highlight for ticks */
  --focus: rgba(242,194,0,0.35);

  --hero-bg: #0b0c0e;

  --max: 1120px;

  /* Radii (tight, not “fintech”) */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;

  --shadow-sm: 0 8px 20px rgba(15,17,21,0.08);
  --shadow-md: 0 12px 30px rgba(15,17,21,0.10);

  --header-h: 96px; /* used for scroll offsets */
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Bahnschrift, Aptos, "Abadi MT Condensed Light", "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.35;
  letter-spacing: 0.1px;
}

a{
  color: inherit;
  text-decoration: none;
}
a:visited{ color: inherit; }
a:hover{ text-decoration: none; }

:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Skip link: only visible when focused */
.skip-link{
  position: absolute;
  left: 14px;
  top: -60px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  z-index: 2000;
}
.skip-link:focus{ top: 14px; }

/* Layout */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

/* Sticky header (always visible) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .nav{
  min-height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 240px;
}
.brand__logo{
  height: 80px;  /* user-approved */
  width: auto;
  display:block;
}

/* Nav links */
.nav__links{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__links a{
  font-size: 13px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: var(--r-xs);
  text-decoration: none;
}
.nav__links a:visited{ color: var(--muted); }
.nav__links a:hover{
  color: var(--text);
  background: rgba(15,17,21,0.04);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(15,17,21,0.16);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn--primary{
  background: var(--accent);
  color: #111;
  border-color: rgba(15,17,21,0.18);
  box-shadow: 0 10px 26px rgba(242,194,0,0.18);
}

.hero .btn--primary{ color:#111; }

.btn--primary:hover{
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(242,194,0,0.22); /* “pop” */
}
.btn--primary:active{
  transform: translateY(0px);
  box-shadow: 0 10px 26px rgba(242,194,0,0.18);
}
.btn--ghost{
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.btn--ghost:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.btn--nav{
  padding: 12px 16px;
}

/* HERO BUTTON WIDTH + ALIGNMENT */
.hero__actions .btn{
  min-width: 190px;          /* wider + equal */
  padding: 14px 28px;        /* balanced vertical + horizontal */
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Sections */
.section{
  padding: 72px 0;
}
.section--alt{
  background: #dedede; /* matches current light grey panels */
}
.section--contact{
  padding-bottom: 40px;
}

/* Anchor offsets so headings aren’t hidden behind sticky header */
section[id]{ scroll-margin-top: calc(var(--header-h) - 8px); }

/* Hero */
.hero{
  position: relative;
  padding: 84px 0 56px;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
}
.hero__bg{
  position:absolute;
  inset: 0;
  background:
    radial-gradient(1000px 540px at 20% 35%, rgba(242,194,0,0.20), rgba(242,194,0,0) 55%),
    radial-gradient(1200px 700px at 85% 40%, rgba(255,255,255,0.06), rgba(255,255,255,0) 60%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  right: -140px;
  top: 0;
  width: 860px;
  height: 100%;
  background: url("assets/hero-cube.png") right center / contain no-repeat;
  opacity: 0.55;
  filter: saturate(0.9);
  pointer-events:none;
}
.hero__inner{ position: relative; z-index: 1; }

.eyebrow{
  margin:0 0 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(255,255,255,0.72);
}
.hero__title{
  margin: 14px 0 14px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.8px;
}
.hero__subhead{
  margin: 0 0 26px;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}
.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  margin-bottom: 18px;
}

/* Hero “pills” (actually cards) */
.pill-row{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.pill{
  grid-column: span 4;
  padding: 16px 16px 14px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
}
.pill__kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(255,255,255,0.70);
  margin-bottom: 8px;
  font-weight: 800;
}
.pill__body{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  font-weight: 600;
}

/* Headings / text */
h2{
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: -0.2px;
}
.lede{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 900px;
}

/* Cards / grids */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.grid--2 > *{ grid-column: span 6; }
.grid--3 > *{ grid-column: span 4; }

.card{
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.card__kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 800;
}
.card p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.card p:last-child{ margin-bottom: 0; }

.muted{ color: var(--muted); }
.tagline{ margin-top: 14px; font-weight: 800; }

/* Badges (no pill vibes) */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 0;
  margin-bottom: 12px;
}
.badge__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242,194,0,0.16);
}
.badge__text{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  font-weight: 800;
}

/* Make Deployment Reality kicker match the badge language (dot + label) */
.card--wide .card__kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px; /* match .badge spacing */
}

.card--wide .card__kicker::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(242,194,0,0.16); /* same as .badge__dot */
}



/* Rules */
.rule{
  height: 1px;
  border: 0;
  background: var(--hairline);
  margin: 22px 0;
}

/* Checklist ticks */
.checklist{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.checklist li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  border: 1px solid rgba(15,17,21,0.18);
}
.checklist li::after{
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 7px;
  height: 11px;
  border-right: 2px solid rgba(17,17,17,0.85);
  border-bottom: 2px solid rgba(17,17,17,0.85);
  transform: rotate(40deg);
}

/* Contact form */
.field{ display:block; margin-bottom: 10px; }
.field__label{
  display:block;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 800;
}
.field__input{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(15,17,21,0.14);
  font: inherit;
  background: #fff;
}
.field__input--area{ min-height: 140px; resize: vertical; }
.btn--full{ width: 100%; margin-top: 6px; }

.form__hint{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.form__hint a{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(15,17,21,0.30);
}
.form__hint a:hover{ text-decoration-color: rgba(15,17,21,0.55); }


.form__status{
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.form__status.is-success{
  color: #0a7a3b;
}

/* Footer */
.site-footer{
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.14);
  color: rgba(0,0,0,0.55);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .pill{ grid-column: span 12; }
  .hero::after{ opacity: 0.42; right: -260px; }
  .grid--2 > *{ grid-column: span 12; }
  .grid--3 > *{ grid-column: span 12; }
}
@media (max-width: 820px){
  .container{ padding: 0 16px; }
  .nav__links{ display:none; }
  .brand{ min-width: auto; }
  .brand__logo{ height: 64px; }
  .hero{ padding: 54px 0 36px; }
  .hero::after{ display:none; }
  .hero__actions a{ width: 100%; }
}

/* Section media (diagrams/images that sit inside a section, not inside a card) */
.section-media{
  margin-top: 18px;
  margin-bottom: 18px;
}

.section-media__img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 980px;   /* keeps it disciplined inside your content column */
  margin: 0 auto;     /* centres it */
}

/* Leadership profile layout */
.profile{
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.profile__img{
  width: 150px;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.profile__body{
  min-width: 0;
}

@media (max-width: 720px){
  .profile{
    flex-direction: column;
    align-items: center;
  }
  .profile__img{
    width: 180px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.15;
  }

  .hero__subhead {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  .btn {
    font-size: 1rem;
    padding: 16px 18px;
  }

  html {
    font-size: 17px;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .card p,
  .card li {
    font-size: 1rem;
    line-height: 1.5;
  }

  .card {
    padding: 22px;
  }

  /* tighten mobile readability (override fixed px sizes) */
.lede{
  font-size: 17px;
  line-height: 1.6;
}

.pill__kicker{
  font-size: 12px; /* was 11px */
}

.pill__body{
  font-size: 15px; /* was 13px */
  line-height: 1.6;
}

}




/* MOBILE HEADER FIX (clean + matches current HTML structure) */
@media (max-width: 520px){

  html, body { overflow-x: hidden; }

  /* Make sticky header a clean 2-row layout:
     Row 1: logo left, Contact right
     Row 2: nav links (optional) */
  .site-header .nav{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta";
    align-items: center;
    gap: 10px 12px;
    padding: 10px 0; /* gives the logo/tagline breathing room */
  }

  .brand{ grid-area: brand; min-width: 0; }
  /* Constrain the horizontal logo so it never collides with the CTA */
  .brand__logo{
    height: 68px;                 /* bump from 52px → 60px */
    width: auto;
    max-width: calc(100vw - 100px); /* leave safe space for Contact */
    display: block;
    object-fit: contain;
  }

  /* Ensure consistent header gutters on small screens */
  .site-header .container{
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn--nav{
    padding: 10px 14px;
    font-size: 12px;
  }

  
  /* IMPORTANT: Contact is a sibling of .nav__links, not inside it */
  .btn--nav{
    grid-area: cta;
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  /* Mobile: Deployment Reality diagram is too wide — hide it */
  #deployment-reality .section-media{
    display: none !important;
  }

  /* Mobile scroll offsets: header is effectively taller (2 rows) */
  :root{ --header-h: 124px; }

  .lede{
  font-size: 18px;
}

.pill__body{
  font-size: 16px;
}
}