/*
Theme Name: The Bridge
Theme URI: https://thebridge.work
Author: The Bridge
Description: Custom classic theme for The Bridge — freelance Product Owner / Project Manager positioning site. Theme supplies the chrome (header, footer, tokens, typography); page content is entered per-page through the block editor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: the-bridge
*/

:root {
  --bg: #F7F5F0;
  --surface: #E8DCC8;
  --surface-2: #FFFFFF;
  --ink: #172B3A;
  --ink-soft: #2A414F;
  --text-secondary: #53636B;
  --accent: #2A7F78;
  --accent-ink: #F7F5F0;
  --cta: #D97B62;
  --cta-ink: #172B3A;
  --border: rgba(23, 43, 58, 0.14);
  --nav-bg: rgba(247, 245, 240, 0.86);
  --shadow: rgba(23, 43, 58, 0.10);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101E27;
    --surface: #1B323F;
    --surface-2: #17262F;
    --ink: #F3EEE3;
    --ink-soft: #D9E1E3;
    --text-secondary: #9FB2B8;
    --accent: #55B0A6;
    --accent-ink: #0E1B20;
    --cta: #E6987D;
    --cta-ink: #17242A;
    --border: rgba(243, 238, 227, 0.14);
    --nav-bg: rgba(16, 30, 39, 0.82);
    --shadow: rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #101E27;
  --surface: #1B323F;
  --surface-2: #17262F;
  --ink: #F3EEE3;
  --ink-soft: #D9E1E3;
  --text-secondary: #9FB2B8;
  --accent: #55B0A6;
  --accent-ink: #0E1B20;
  --cta: #E6987D;
  --cta-ink: #17242A;
  --border: rgba(243, 238, 227, 0.14);
  --nav-bg: rgba(16, 30, 39, 0.82);
  --shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: 'Zilla Slab', Georgia, serif;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

/* SITE HEADER / NAV (theme chrome) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
}
.logo {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.logo .mark { width: 20px; height: 20px; flex: none; }
.logo-img { height: 28px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.nav-links a { text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.pill {
  color: var(--cta-ink);
  background: var(--cta);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .nav-links a:not(.pill) { display: none; }
}

/* SITE FOOTER (theme chrome) */
.site-footer {
  padding-block: 32px 28px;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-row .logo { font-size: 0.95rem; }

/* HERO */
.hero { padding-block: 64px 40px; }
.hero-grid { display: grid; gap: 20px; max-width: 700px; }
h1.headline {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  margin-top: 14px;
}
.headline .accent-word { color: var(--accent); }
.sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-top: 6px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px -10px var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

/* BRIDGE VISUAL */
.bridge-visual { margin-top: 44px; }
.bridge-visual svg { width: 100%; height: auto; display: block; }
.cable {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: tb-draw 1.6s ease forwards 0.2s;
}
.cable.right { animation-delay: 0.4s; }
@keyframes tb-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cable { animation: none; stroke-dashoffset: 0; }
}
.node-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  fill: var(--text-secondary);
}
.node-label.impact { fill: var(--ink); font-weight: 600; }
.node-dot { fill: var(--accent); }
.node-dot.impact { fill: var(--cta); }

/* SECTIONS (page content) */
section { padding-block: 64px; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-top: 12px; }
.section-head p { color: var(--text-secondary); margin-top: 10px; }

.surface-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* PILLARS */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 8px;
}
.pillars::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 26px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  opacity: 0.45;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars::before { display: none; }
}
.pillar {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
}
.pillar .pier {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  margin-bottom: 18px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.pillar h3 {
  font-size: 1.15rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.pillar p { color: var(--text-secondary); margin-top: 10px; font-size: 0.96rem; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--text-secondary); margin-top: 14px; }
.about-grid p:first-of-type { margin-top: 16px; }
.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-list li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.94rem;
}
.fit-list li span.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  flex: none;
  padding-top: 2px;
}

/* PROCESS */
.process { display: grid; gap: 0; border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
}
.step .num {
  font-family: 'Zilla Slab', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--accent);
}
.step h3 { font-size: 1.1rem; font-weight: 600; }
.step p { color: var(--text-secondary); margin-top: 6px; font-size: 0.95rem; max-width: 56ch; }

/* CTA */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 20px;
  margin-inline: 24px;
  padding: 56px 36px;
  text-align: center;
}
.cta-band .wrap { max-width: 640px; }
.cta-band .tagline {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: #F7F5F0;
}
.cta-band .tagline em { color: var(--cta); font-style: normal; }
.cta-band p.helper { color: #B9C4C8; margin-top: 14px; }
.cta-band .actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(247,245,240,0.08);
  border: 1px solid rgba(247,245,240,0.18);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  color: #EDEAE1;
}
.contact-copy button {
  background: none;
  border: none;
  color: var(--cta);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0;
}

/* Generic prose fallback, for any page whose content is plain WP editor text
   rather than the custom section markup above. */
.prose { padding-block: 64px; }
.prose h1 { margin-bottom: 20px; }
.prose p { color: var(--text-secondary); margin-top: 14px; max-width: 70ch; }
