/* ============================================
   Shared Template Foundation — founders3pl.com
   Common primitives for all page templates.
   ============================================ */

:root {
  --f3-navy: #0a1628;
  --f3-paper: #f5f2ec;
  --f3-warm: #eee9e0;
  --f3-ink: #e9dfcd;
  --f3-ink-soft: rgba(233, 223, 205, 0.72);
  --f3-text: #1a1a1a;
  --f3-text-soft: rgba(26, 26, 26, 0.58);
  --f3-rule: rgba(26, 26, 26, 0.1);
  --f3-rule-dark: rgba(233, 223, 205, 0.14);
  --f3-max-w: 1120px;
}

/* === Page reset === */

.f3-page {
  background: var(--f3-paper);
  color: var(--f3-text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

body:not(.home) main.f3-page {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* === Layout === */

.f3-wrap {
  width: 100%;
  max-width: var(--f3-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.f3-section {
  padding: 96px 0;
}

.f3-band-navy {
  background: var(--f3-navy);
  color: var(--f3-ink);
}

.f3-band-paper {
  background: var(--f3-paper);
  color: var(--f3-text);
}

.f3-band-warm {
  background: var(--f3-warm);
  color: var(--f3-text);
}

/* === Typography === */

.f3-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
}

.f3-band-navy .f3-label {
  color: rgba(233, 223, 205, 0.4);
}

.f3-title {
  margin: 0 0 0.75rem;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.06;
}

.f3-intro {
  margin: 0 0 2.5rem;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--f3-text-soft);
}

.f3-band-navy .f3-intro {
  color: var(--f3-ink-soft);
}

/* === Buttons === */

.f3-btn {
  display: inline-block;
  padding: 0.82rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.f3-btn:hover,
.f3-btn:focus-visible {
  opacity: 0.88;
}

.f3-btn-primary {
  background: var(--f3-navy);
  color: var(--f3-ink);
}

.f3-band-navy .f3-btn-primary {
  background: var(--f3-ink);
  color: var(--f3-navy);
}

.f3-link {
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.f3-link:hover,
.f3-link:focus-visible {
  opacity: 1;
}

/* === Breadcrumb === */

.f3-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.f3-breadcrumb a {
  color: var(--f3-text-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.f3-breadcrumb a:hover {
  color: var(--f3-text);
}

.f3-band-navy .f3-breadcrumb a {
  color: rgba(233, 223, 205, 0.4);
}

.f3-band-navy .f3-breadcrumb a:hover {
  color: rgba(233, 223, 205, 0.7);
}

.f3-breadcrumb-sep {
  opacity: 0.35;
  font-size: 0.65rem;
}

.f3-breadcrumb-current {
  opacity: 0.6;
}

/* === Final CTA === */

.f3-final-cta {
  padding: 96px 0;
  text-align: center;
  background: var(--f3-navy);
  color: var(--f3-ink);
}

.f3-final-cta .f3-title {
  color: var(--f3-ink);
  margin-bottom: 1.5rem;
}

.f3-final-cta .cta-form,
.authority-final-cta .cta-form {
  text-align: left;
  max-width: 720px;
  margin: 32px auto 0;
}

/* === Case Study Carousel === */

.csc-section {
  padding: 80px 0;
}

.csc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.csc-header .f3-title {
  margin-bottom: 0;
}

.csc-nav {
  display: flex;
  gap: 0.5rem;
}

.csc-prev,
.csc-next {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--f3-rule);
  background: transparent;
  color: var(--f3-text-soft);
  cursor: pointer;
  transition: opacity 0.15s;
}

.csc-prev:hover,
.csc-next:hover {
  opacity: 0.7;
}

.csc-track-wrap {
  overflow: hidden;
}

.csc-track {
  display: flex;
  transition: transform 0.45s ease;
}

.csc-card {
  flex: 0 0 33.333%;
  padding: 1.25rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.csc-card-logo {
  display: block;
  height: 36px;
  max-width: 100%;
  width: auto;
  margin-bottom: 0.75rem;
}

.csc-card-divider {
  width: 2rem;
  height: 1px;
  background: var(--f3-rule);
  margin: 0.5rem 0;
}

.csc-card-metric {
  display: block;
  font-family: "Canela", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--f3-text);
  margin-bottom: 0.15rem;
}

.csc-card-metric-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
  margin-bottom: 0.75rem;
}

.csc-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--f3-text);
}

.csc-card-summary {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--f3-text-soft);
}

.csc-card-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--f3-text);
  text-decoration: none;
  border-bottom: 1px solid var(--f3-rule);
  padding-bottom: 1px;
}

.csc-card-link:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .csc-card { flex: 0 0 50%; }
}

@media (max-width: 560px) {
  .csc-card { flex: 0 0 100%; padding-right: 1.25rem; }
  .csc-section { padding: 56px 0; }
}

/* === Linked directory items === */

a.cap-bullet-link,
a.integ-handle-link,
a.ind-solution-link,
a.authority-pillar-link,
a.res-directory-item,
a.cs-directory-item {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s, box-shadow 0.15s;
}

a.cap-bullet-link:hover,
a.integ-handle-link:hover,
a.ind-solution-link:hover,
a.authority-pillar-link:hover,
a.res-directory-item:hover,
a.cs-directory-item:hover {
  background: rgba(0,0,0,0.03);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Resource directory grid */
.res-directory-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 0.75rem;
  stroke: var(--f3-text);
  fill: none;
  stroke-width: 1;
  opacity: 0.45;
}

.res-directory-intro {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--f3-text-soft);
  max-width: 60ch;
}

.res-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.res-directory-item {
  padding: 1.25rem;
  border: 1px solid var(--f3-rule);
}

.res-directory-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--f3-text);
}

.res-directory-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--f3-text-soft);
}

/* Case study directory grid */
.cs-directory {
  padding: 80px 0;
}

.cs-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.cs-directory-item {
  padding: 1.5rem;
  border: 1px solid var(--f3-rule);
}

.cs-directory-metric {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--f3-rule);
}

.cs-directory-metric-value {
  display: block;
  font-family: "Canela", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--f3-text);
  margin-bottom: 0.15rem;
}

.cs-directory-metric-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
}

.cs-directory-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
  margin-bottom: 0.5rem;
}

.cs-directory-title {
  margin: 0 0 0.5rem;
  font-family: "Canela", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--f3-text);
}

.cs-directory-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--f3-text-soft);
}

.cs-directory-logo {
  display: block;
  height: 36px;
  max-width: 100%;
  width: auto;
  margin-left: auto;
  margin-bottom: 0.75rem;
}

.cs-directory-read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--f3-text);
  border-bottom: 1px solid var(--f3-rule);
  padding-bottom: 1px;
}

@media (max-width: 900px) {
  .res-directory {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .res-directory,
  .cs-directory-grid {
    grid-template-columns: 1fr;
  }
}

/* === Line icons === */

.f3-line-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 0.75rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
  opacity: 0.45;
}

/* === Responsive === */

@media (max-width: 1024px) {
  .f3-section {
    padding: 72px 0;
  }
  .f3-final-cta {
    padding: 72px 0;
  }
}

@media (max-width: 720px) {
  .f3-section {
    padding: 56px 0;
  }
  .f3-final-cta {
    padding: 56px 0;
  }
}

/* === Resource Spotlight === */
.res-spotlight { padding: 64px 0; }
.res-spotlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.res-spotlight-card {
  display: block; text-decoration: none; color: inherit;
  padding: 32px; border: 1px solid var(--f3-rule); border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.res-spotlight-card:hover { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.18); }
.res-spotlight-metric { display: block; font-size: 2rem; font-weight: 700; color: var(--f3-navy); line-height: 1; }
.res-spotlight-metric-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--f3-text-soft); margin-top: 4px; }
.res-spotlight-title { font-size: 1.125rem; font-weight: 600; margin: 16px 0 8px; }
.res-spotlight-desc { font-size: 0.9375rem; color: var(--f3-text-soft); line-height: 1.5; margin: 0; }
.res-spotlight-logo { display: block; height: 36px; max-width: 100%; width: auto; margin-bottom: 0.75rem; }
.res-spotlight-link { display: inline-block; margin-top: 12px; font-size: 0.875rem; font-weight: 600; color: var(--f3-navy); }

/* === Audience + Snapshot Logos === */
.cap-audience-logo { display: block; height: 36px; max-width: 100%; width: auto; margin-bottom: 0.5rem; }
.ind-snapshot-logo { display: block; max-height: 60px; max-width: 200px; width: auto; object-fit: contain; margin: auto; }
