/* ============================================
   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-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; }
}

/* === 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;
  }
}
