/* ─── Template C — Web, Brand & Digital Fidelity ───────── */
/* Used for: Geotab, RBC, Smith & Nephew, Desna, and similar */

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

:root {
  --white:       #ffffff;
  --light:       #f5f5f5;
  --border:      #e2e2e2;
  --text:        #1c1c1c;
  --muted:       #666666;
  --accent:      #0057D9;
  --accent-dark: #004ab8;
  --navy:        #111111;
  --radius:      10px;
  --max-w:       1440px;
  --ease:        0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; font-weight: 700; }

/* ── FOCUS RING ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── PAGE LOAD FADE-IN ──────────────────────────────────── */
body { opacity: 0; transition: opacity 0.4s ease; }
body.tc-loaded { opacity: 1; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

/* ════════════════════════════════════════════════════════
   CTA BUTTON SYSTEM
   ════════════════════════════════════════════════════════ */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
  padding: 10px 24px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform 0.12s ease;
}
.tc-btn:active { transform: scale(0.97); }

.tc-btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.tc-btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(0,87,217,0.28);
}
.tc-btn--primary:active { background: var(--accent-dark); box-shadow: none; }

.tc-btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.tc-btn--secondary:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,87,217,0.2);
}
.tc-btn--secondary:active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: none;
}

.tc-btn--tertiary {
  background: none;
  border-color: transparent;
  color: var(--accent);
  padding: 0;
  gap: 4px;
}
.tc-btn--tertiary::after { content: '→'; display: inline-block; transition: transform var(--ease); }
.tc-btn--tertiary:hover { color: var(--accent-dark); }
.tc-btn--tertiary:hover::after { transform: translateX(4px); }
.tc-btn--tertiary:active { color: var(--accent-dark); transform: scale(0.98); }

/* ── NAV ───────────────────────────────────────────────── */
.tc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.tc-nav--scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  border-bottom-color: transparent;
}
.tc-nav .container {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tc-nav-home {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--ease);
}
.tc-nav-home:hover { color: var(--accent); }
.tc-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.tc-nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--ease);
}
.tc-nav-links a:hover { color: var(--accent); }

/* ── HERO ──────────────────────────────────────────────── */
/* Background colour set inline per project                */
.tc-hero {
  padding: 72px 0 0;
  background: var(--navy);
  overflow: hidden;
}

.tc-hero-content {
  padding-bottom: 56px;
}

.tc-eyebrow-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.tc-eyebrow {
  display: inline-flex;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 4px 14px;
}

.tc-hero h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 40px;
}

/* Project meta: Client / Year / Scope / etc. */
.tc-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  gap: 32px 48px;
}
.tc-hero-meta-item {}
.tc-hero-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.tc-hero-meta-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* Hero image — bleeds to bottom of hero, no gap */
.tc-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
/* When no hero image: add bottom padding to hero */
.tc-hero--no-image { padding-bottom: 72px; }

/* ── DIVIDER ────────────────────────────────────────────── */
.tc-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── OVERVIEW ───────────────────────────────────────────── */
.tc-overview {
  padding: 64px 0;
}
.tc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}
.tc-overview-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  font-weight: 400;
  max-width: 640px;
}
.tc-overview-text p + p { margin-top: 20px; }

.tc-deliverables-list {}
.tc-deliverables-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.tc-deliverables-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tc-deliverables-items span {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.tc-deliverables-items span:first-child {
  border-top: 1px solid var(--border);
}

/* ── IMAGE BLOCKS ───────────────────────────────────────── */
/* All image display patterns — set as modifier on .tc-block */

.tc-block {
  padding: 0 0 4px;
}

/* Full-width image — spans the full container */
.tc-block--full img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Two images side by side */
.tc-block--pair {
  padding: 0 0 4px;
}
.tc-block--pair .tc-block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.tc-block--pair .tc-block-row img {
  width: 100%;
  display: block;
  object-fit: cover;
}
/* Optional: unequal split */
.tc-block--pair-wide .tc-block-row {
  grid-template-columns: 3fr 2fr;
}
.tc-block--pair-narrow .tc-block-row {
  grid-template-columns: 2fr 3fr;
}

/* Three images in a row */
.tc-block--trio .tc-block-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.tc-block--trio .tc-block-row img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Feature: large single image with caption below */
.tc-block--feature {}
.tc-block--feature img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Split: text left / image right (or reversed with --reverse) */
.tc-block--split {
  padding: 64px 0;
}
.tc-block--split .tc-block-split-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.tc-block--split.tc-block--reverse .tc-block-split-inner {
  grid-template-columns: 7fr 5fr;
}
.tc-block--split.tc-block--reverse .tc-block-split-text { order: 2; }
.tc-block--split.tc-block--reverse .tc-block-split-visual { order: 1; }

.tc-block-split-text {}
.tc-block-split-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.tc-block-split-heading {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
}
.tc-block-split-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.tc-block-split-body p + p { margin-top: 16px; }

.tc-block-split-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Image caption */
.tc-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* Contained image section (adds vertical padding + bg option) */
.tc-block-padded {
  padding: 80px 0;
}
.tc-block-padded--light {
  background: var(--light);
}

/* ── SECTION: LABELED TEXT BLOCK ────────────────────────── */
/* Generic labeled text section — for overview, approach,   */
/* rationale, or any supporting narrative                   */
.tc-section {
  padding: 72px 0;
}
.tc-section + .tc-section {
  padding-top: 0;
}
.tc-section-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.tc-section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.tc-section-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  max-width: 680px;
}
.tc-section-body p + p { margin-top: 16px; }
.tc-section-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  margin-top: 28px;
}
.tc-section-body h3:first-child { margin-top: 0; }

/* ── CALLOUT ───────────────────────────────────────────── */
.tc-callout {
  background: var(--light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  max-width: 720px;
}
.tc-callout-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.tc-callout p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* ── CREDITS ────────────────────────────────────────────── */
.tc-credits {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}
.tc-credits-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.tc-credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 40px;
}
.tc-credits-item-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.tc-credits-item-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── READING PROGRESS BAR ──────────────────────────────── */
.tc-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── BACK TO TOP ────────────────────────────────────────── */
.tc-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.tc-back-top.visible { opacity: 1; transform: none; }
.tc-back-top:hover { background: var(--accent); }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.tc-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.tc-reveal.tc-reveal--visible {
  opacity: 1;
  transform: none;
}

/* ── PLACEHOLDER ────────────────────────────────────────── */
.tc-img-placeholder {
  background: var(--light);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 240px;
}

/* ── FOOTER ────────────────────────────────────────────── */
.tc-footer {
  background: #000000;
  padding: 32px 0;
}
.tc-footer .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.tc-footer-contact {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  text-align: right;
}
.tc-footer-contact a { color: rgba(255,255,255,0.55); }
.tc-footer-contact a:hover { color: white; }

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1 !important; transition: none !important; }
  .tc-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tc-progress,
  .tc-back-top { transition: none !important; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1280px) {
  .container { padding: 0 48px; }
}

@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .tc-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tc-section-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tc-block--split .tc-block-split-inner,
  .tc-block--split.tc-block--reverse .tc-block-split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tc-block--split.tc-block--reverse .tc-block-split-text { order: 1; }
  .tc-block--split.tc-block--reverse .tc-block-split-visual { order: 2; }
  .tc-block--trio .tc-block-row {
    grid-template-columns: 1fr 1fr;
  }
  .tc-block--trio .tc-block-row img:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .tc-hero { padding: 48px 0 0; }
  .tc-hero-content { padding-bottom: 40px; }
  .tc-hero h1 { margin-bottom: 32px; }
  .tc-hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .tc-block--pair .tc-block-row,
  .tc-block--pair-wide .tc-block-row,
  .tc-block--pair-narrow .tc-block-row {
    grid-template-columns: 1fr;
  }
  .tc-block--trio .tc-block-row {
    grid-template-columns: 1fr;
  }
  .tc-block--trio .tc-block-row img:last-child {
    grid-column: auto;
  }
  .tc-tc-nav-links { display: none; }
}
