/* ===================================================
   PRODMATIX — SR&ED Consulting Website
   Shared stylesheet for all pages
   =================================================== */

:root {
  /* Brand palette */
  --accent: #1F4E79;
  --accent-dark: #163A5A;
  --accent-light: #D9E2F3;
  --accent-pale: #F0F4FA;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8C8C8C;
  --text-on-accent: #FFFFFF;

  /* Surfaces */
  --bg-white: #FFFFFF;
  --bg-subtle: #F8F9FB;
  --border: #E5E7EB;
  --border-strong: #BFBFBF;

  /* Spacing scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* Layout */
  --container-max: 1140px;
  --container-narrow: 760px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-3) 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; color: var(--accent); }

p { margin: 0 0 var(--space-3) 0; color: var(--text-secondary); }
ul { padding-left: 1.4em; }
li { margin-bottom: var(--space-2); color: var(--text-secondary); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: var(--container-narrow); margin: 0 auto; }

/* =================== HEADER =================== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: var(--container-max); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
.site-footer__brand .brand__logo { height: 40px; margin-bottom: var(--space-2); }
@media (max-width: 480px) {
  .brand__logo { height: 30px; }
}
/* Backward-compat: hide legacy markup if any remains */
.brand__dot, .brand__prefix, .brand__suffix { display: none; }
.nav { display: flex; gap: var(--space-4); align-items: center; }
.nav a {
  color: var(--text-secondary); font-weight: 500; font-size: 15px;
}
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); }
.nav .btn { padding: 8px 16px; font-size: 14px; color: var(--text-on-accent); }
.nav .btn:hover { color: var(--text-on-accent); background: var(--accent-dark); border-color: var(--accent-dark); }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; color: var(--text-on-accent); }
.btn--secondary {
  background: var(--bg-white);
  color: var(--accent);
}
.btn--secondary:hover { background: var(--accent-pale); color: var(--accent); }

/* =================== HERO =================== */
.hero {
  padding: var(--space-7) var(--space-4) var(--space-7);
  background: linear-gradient(180deg, var(--accent-pale) 0%, var(--bg-white) 100%);
  text-align: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-3);
}
.hero__tagline {
  font-size: 18px; color: var(--text-secondary); max-width: 640px;
  margin: 0 auto var(--space-5) auto;
}
.hero__ctas { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }

/* =================== SECTIONS =================== */
.section { padding: var(--space-7) var(--space-4); }
.section--subtle { background: var(--bg-subtle); }
.section--accent { background: var(--accent); color: var(--text-on-accent); }
.section--accent h2, .section--accent h3 { color: var(--text-on-accent); }
.section--accent p { color: rgba(255,255,255,0.85); }
.section__header { text-align: center; margin-bottom: var(--space-6); }
.section__header h2 { margin-bottom: var(--space-2); }
.section__header p { font-size: 18px; max-width: 680px; margin: 0 auto; }

/* =================== GRID / CARDS =================== */
.grid { display: grid; gap: var(--space-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-md); }
.card__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 22px; font-weight: 700; color: var(--accent);
}
.card h3 { margin-bottom: var(--space-2); font-size: 20px; }
.card p { font-size: 16px; margin-bottom: 0; }

/* Resource card variant */
.resource-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex; flex-direction: column;
}
.resource-card__tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.resource-card h3 { font-size: 20px; margin-bottom: var(--space-2); }
.resource-card p { flex-grow: 1; }
.resource-card .btn { margin-top: var(--space-3); align-self: flex-start; }

/* =================== INDUSTRY LIST =================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.industry-tag {
  padding: var(--space-3);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
}

/* =================== ABOUT / FOUNDER =================== */
.founder-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-5);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
}
.founder-block__photo {
  width: 200px; height: 200px;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 60px; font-weight: 700;
}
.founder-block h3 { margin-top: 0; font-size: 22px; }
.founder-block p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .founder-block { grid-template-columns: 1fr; }
  .founder-block__photo { width: 140px; height: 140px; }
}

/* =================== PROCESS TIMELINE =================== */
.process {
  position: relative;
  padding-left: var(--space-5);
  margin: var(--space-5) 0;
}
.process::before {
  content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px;
  width: 2px; background: var(--accent-light);
}
.process-step {
  position: relative;
  margin-bottom: var(--space-5);
  padding-left: var(--space-4);
}
.process-step::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 26px; height: 26px;
  background: var(--accent); border-radius: 50%;
  border: 4px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--accent-light);
}
.process-step__week {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.process-step h3 { margin-top: 0; font-size: 20px; margin-bottom: var(--space-2); }

/* =================== PRICING =================== */
.pricing-table {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin: var(--space-4) 0;
}
.pricing-row {
  display: grid; grid-template-columns: 1fr 1fr 2fr;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row--header {
  background: var(--accent); color: var(--text-on-accent);
  font-weight: 700;
}
.pricing-row--alt { background: var(--bg-subtle); }
@media (max-width: 720px) {
  .pricing-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .pricing-row--header { display: none; }
  .pricing-row strong:first-child { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
}

/* =================== FAQ =================== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-weight: 600; font-size: 17px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--accent); font-size: 24px; font-weight: 400;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: var(--space-3); margin-bottom: 0; }

/* =================== CALLOUT =================== */
.callout {
  background: var(--accent-pale);
  border-left: 4px solid var(--accent);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  font-weight: 700; color: var(--accent);
  display: block; margin-bottom: var(--space-2);
}

/* =================== CTA BAND =================== */
.cta-band {
  background: var(--accent);
  color: var(--text-on-accent);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.cta-band h2 { color: var(--text-on-accent); margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 600px; margin: 0 auto var(--space-4) auto; }
.cta-band .btn {
  background: var(--bg-white); color: var(--accent); border-color: var(--bg-white);
}
.cta-band .btn:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* =================== CONTACT FORM SECTION =================== */
.form-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
}
.contact-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
  margin-top: var(--space-5);
}
@media (max-width: 720px) {
  .contact-options { grid-template-columns: 1fr; }
}
.contact-option {
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-option h4 { margin-top: 0; margin-bottom: var(--space-2); }
.contact-option a { font-weight: 600; word-break: break-all; }

/* =================== FOOTER =================== */
.site-footer {
  background: #0F2E47;
  color: rgba(255,255,255,0.7);
  padding: var(--space-6) var(--space-4) var(--space-5);
  font-size: 14px;
}
.site-footer__inner {
  max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
}
.site-footer__brand { color: var(--text-on-accent); }
.site-footer__brand .brand { color: var(--text-on-accent); margin-bottom: var(--space-3); }
.site-footer__brand p { color: rgba(255,255,255,0.65); }
.site-footer h4 {
  color: var(--text-on-accent); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--text-on-accent); text-decoration: none; }
.site-footer__bottom {
  max-width: var(--container-max); margin: var(--space-5) auto 0; padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: var(--space-3);
}
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* =================== UTILITY =================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mb-0 { margin-bottom: 0 !important; }
.lead { font-size: 19px; color: var(--text-secondary); }
