/* =========================================================================
   Calloc Partners — Site Styles
   Brand: refined editorial restraint. Sharp corners. Quiet rules.
   Blue (#2C6FA3) appears only as signal, never as decoration.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors (locked) */
  --ink: #111111;
  --blue: #2C6FA3;
  --gray: #666666;
  --light-gray: #D9D9D9;
  --white: #FFFFFF;

  /* Derived neutrals */
  --bg-quiet: #FAFAFA;
  --rule: #E8E8E8;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-narrow: 920px;
  --gutter: 32px;
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

button { font-family: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.005em; }
h4 { font-size: 16px; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 18px;
  display: inline-block;
}

.eyebrow--blue { color: var(--blue); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--gray);
  max-width: 60ch;
}

.tagline {
  font-style: italic;
  font-weight: 400;
  color: var(--gray);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--quiet { background: var(--bg-quiet); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lede { color: var(--light-gray); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}

.logo-wordmark {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 24px;
  color: var(--ink);
}

.logo-support {
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--gray);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}

.site-nav a:hover { color: var(--ink); border-bottom-color: var(--blue); }
.site-nav a.is-active { border-bottom-color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bar {
  display: block;
  width: 18px; height: 1px;
  background: var(--ink);
  position: relative;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1px; background: var(--ink);
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top:  6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
  background-color: var(--white);
  background-image: url('../assets/hero-background.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero__inner { position: relative; max-width: 760px; }

/* Per brand kit, "Clarity from Complexity" IS the tagline:
   Inter Italic 400, gray #666. Treat the hero headline accordingly. */
.hero h1 {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.01em;
  color: var(--gray);
  margin-bottom: 20px;
}

.hero .lede {
  margin-bottom: 32px;
}

/* Page header (non-hero pages) */
.page-header {
  padding: clamp(80px, 9vw, 128px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.page-header h1 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 16px; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn__arrow { display: inline-block; transition: transform 150ms ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Quiet inline link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}
.link-arrow:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.card__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 24px;
}

.card h3 { margin-bottom: 12px; }

.card p { color: var(--gray); font-size: 15px; line-height: 1.6; }

/* Subtle break between primary and additional services on the services page */
.services-divider {
  margin-top: 24px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.services-divider .eyebrow { margin: 0; }

/* Service rows (services page) */
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
.service-row:last-child { border-bottom: none; }

@media (min-width: 880px) {
  .service-row {
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
  }
}

.service-row__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  padding-top: 6px;
}

.service-row h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 12px; }
.service-row p  { color: var(--gray); margin-bottom: 18px; }

.service-row ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.service-row li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.service-row li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--blue);
  flex-shrink: 0;
  transform: translateY(1px);
}

/* Audience strip */
.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 768px) { .audience { grid-template-columns: repeat(4, 1fr); } }

.audience__cell {
  background: var(--white);
  padding: 32px 24px;
  text-align: left;
}
.audience__cell .eyebrow { margin-bottom: 8px; }
.audience__cell h3 { font-size: 17px; font-weight: 600; }

/* Two-column intro (about page) */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1fr 1.4fr; gap: 80px; }
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.principles li {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.principles li:first-child { padding-top: 0; }
.principles li:last-child  { border-bottom: none; }

.principles h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}
.principles p { color: var(--gray); font-size: 15px; margin: 0; }

.principles__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-right: 12px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 80px; }
}

.contact-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-meta dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}

.contact-meta dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

.contact-meta a { border-bottom: 1px solid var(--light-gray); padding-bottom: 1px; }
.contact-meta a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Form */
.form { display: grid; gap: 20px; }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.field input,
.field textarea,
.field select {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 12px 14px;
  transition: border-color 120ms ease;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Closing CTA ---------- */
.cta-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .cta-strip { grid-template-columns: 1fr auto; gap: 48px; }
}

.cta-strip h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  max-width: 24ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--light-gray);
  padding: 64px 0 40px;
  font-size: 14px;
}

.site-footer .logo-wordmark { color: var(--white); }
.site-footer .logo-support  { color: var(--light-gray); }

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 64px; }
}

.site-footer h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--light-gray); }
.site-footer a:hover { color: var(--white); }

.site-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.site-footer__tag { font-style: italic; color: var(--light-gray); }

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a:hover { border-bottom-color: var(--rule); background: var(--bg-quiet); }
}

/* Tighten the bigger logo on small screens so it doesn't crowd the nav button */
@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-wordmark { font-size: 19px; }
  .logo-support { font-size: 11px; }
  .logo { gap: 10px; }
  .logo-text { gap: 8px; }
}

/* ---------- Utilities ---------- */
.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.text-center { text-align: center; }
