/* ============================================
   Purposive Facilitation Framework — Prototype CSS
   facilitation.thestrategycafe.com
   Clean, professional, business-like design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Palette */
  --primary: #1a3a5c;       /* Deep navy — authority, trust */
  --primary-light: #2a5a8c; /* Lighter navy for hovers */
  --accent: #c47b2b;        /* Warm amber — warmth, approachability */
  --accent-light: #d4943f;
  --accent-pale: #faf3e8;   /* Very light amber wash */
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #8e9aab;
  --bg: #ffffff;
  --bg-warm: #fafaf8;
  --bg-cool: #f4f6f8;
  --border: #e2e6ea;
  --border-light: #eef1f4;
  --white: #ffffff;
  --success: #27ae60;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1200px;
  --content-width: 780px;
  --transition: 0.25s ease;

  /* 7P Colours */
  --p1-purpose: #1a3a5c;
  --p2-people: #2e7d5b;
  --p3-process: #5b3a8c;
  --p4-psych: #8c3a3a;
  --p5-pract: #3a6e8c;
  --p6-prepost: #8c6a2e;
  --p7-prog: #2e5b3a;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.3;
}
h1 { font-size: 2.4rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--text-light); line-height: 1.8; }
.small { font-size: 0.875rem; color: var(--text-muted); }
.text-accent { color: var(--accent); }
blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.content-width { max-width: var(--content-width); margin: 0 auto; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-cool); }
.section-warm { background: var(--accent-pale); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* --- Header & Navigation --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}
.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.main-nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav > li > a:hover,
.main-nav > li > a.active { color: var(--accent); }

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 0.5rem 0;
  z-index: 100;
}
.main-nav > li:hover .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: background var(--transition);
}
.dropdown-menu a:hover { background: var(--bg-cool); color: var(--accent); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a6e 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><circle cx="350" cy="200" r="300" fill="rgba(255,255,255,0.03)"/><circle cx="300" cy="100" r="200" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat center;
  background-size: cover;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 1.25rem; font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: 0.9; line-height: 1.8; margin-bottom: 2rem; }
.hero-sm { padding: 3rem 0; }
.hero-sm h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.hero-sm p { margin-bottom: 0; }

/* Page hero (secondary pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a6e 100%);
  color: var(--white);
  padding: 3rem 0;
}
.page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 0; }
.page-hero .breadcrumb { margin-bottom: 0.75rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-light); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-light); transform: translateY(-2px); }
.card-header { margin-bottom: 1rem; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.card-link { font-size: 0.9rem; font-weight: 500; color: var(--accent); }
.card-link:hover { color: var(--primary); }
.card-link::after { content: ' →'; }

/* Pathway cards */
.pathway-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.pathway-card h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 0.75rem; }
.pathway-card p { color: var(--text-light); font-size: 0.95rem; }

/* Article cards */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}
.article-card-body { padding: 1.5rem; }
.article-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.category-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.article-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.75rem; }
.read-time { color: var(--text-muted); font-size: 0.8rem; }

/* P Element cards */
.p-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-top: 3px solid var(--primary);
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.p-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.p-card .p-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.p-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--primary); }
.p-card p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 0; }

/* Colour variants for P cards */
.p-card[data-p="1"] { border-top-color: var(--p1-purpose); }
.p-card[data-p="2"] { border-top-color: var(--p2-people); }
.p-card[data-p="3"] { border-top-color: var(--p3-process); }
.p-card[data-p="4"] { border-top-color: var(--p4-psych); }
.p-card[data-p="5"] { border-top-color: var(--p5-pract); }
.p-card[data-p="6"] { border-top-color: var(--p6-prepost); }
.p-card[data-p="7"] { border-top-color: var(--p7-prog); }

/* --- Depth Layer Badges --- */
.depth-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.depth-navigator { background: #e8f5e9; color: #2e7d32; }
.depth-mirror { background: #fff3e0; color: #e65100; }
.depth-scholar { background: #e3f2fd; color: #1565c0; }
.depth-explorer { background: #fce4ec; color: #c62828; }

/* --- Content Layout --- */
.page-content { padding: 3rem 0; }
.page-content h2 { margin-top: 2rem; }
.page-content h2:first-child { margin-top: 0; }

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-block {
  background: var(--bg-cool);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-block h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.sidebar-block ul { list-style: none; }
.sidebar-block li { margin-bottom: 0.5rem; }
.sidebar-block li a { font-size: 0.9rem; color: var(--text); }
.sidebar-block li a:hover { color: var(--accent); }

/* --- Email Sign-up --- */
.signup-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a6e 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.signup-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.signup-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.signup-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0.5rem;
}
.signup-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.95rem;
}
.signup-form input::placeholder { color: rgba(255,255,255,0.5); }
.signup-form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.signup-form button:hover { background: var(--accent-light); }

/* --- Footer --- */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Prototype Indicators --- */
.prototype-banner {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}
.placeholder-image {
  background: linear-gradient(135deg, #dfe6ed 0%, #e8ecf0 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px dashed var(--border);
}

/* --- Depth Layers Visual --- */
.depth-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.depth-layer-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
}
.depth-layer-card h4 { margin-bottom: 0.5rem; }
.depth-layer-card p { font-size: 0.875rem; margin-bottom: 0; }
.dl-navigator { background: #e8f5e9; border: 1px solid #c8e6c9; }
.dl-mirror { background: #fff3e0; border: 1px solid #ffe0b2; }
.dl-scholar { background: #e3f2fd; border: 1px solid #bbdefb; }
.dl-explorer { background: #fce4ec; border: 1px solid #f8bbd0; }

/* --- Download Card --- */
.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--accent-pale);
  border: 1px solid #eddcc3;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.download-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.download-card h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.download-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }

/* --- Contact Form --- */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(42,90,140,0.1);
}

/* --- Table --- */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.content-table th {
  background: var(--bg-cool);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
}
.content-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.content-table tr:hover td { background: var(--bg-warm); }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .main-nav > li > a { padding: 0.5rem 0.5rem; font-size: 0.8rem; }
  .logo-text { font-size: 1rem; }
  .logo-text span { font-size: 0.7rem; }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .depth-layers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.5rem 0; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.active { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 2rem; }
  .signup-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .depth-layers { grid-template-columns: 1fr; }
}
