/* =============================================
   NEON REINDEER MARKETING — SHARED STYLESHEET
   Responsible & Ethical AI in Marketing
   Draft 02 | Instrument Sans | Multi-page
============================================= */

/* ── Google Fonts ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Brand Tokens ─────────────────────────── */
:root {
  --primary:    #ADD8E6;
  --secondary:  #6D8196;
  --tertiary:   #000080;
  --accent:     #CCFF00;
  --white:      #FFFFFF;
  --off-white:  #F7FAFC;
  --light-grey: #EEF2F7;
  --text-dark:  #0D1B2A;
  --text-mid:   #3D4F61;
  --border:     rgba(109,129,150,0.20);
  --shadow:     0 4px 24px rgba(0,0,128,0.09);
  --shadow-lg:  0 12px 40px rgba(0,0,128,0.14);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: all 0.22s ease;
  --max-w:      1140px;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; font-family: 'Instrument Sans', sans-serif; }
ul { list-style: none; }
button { font-family: 'Instrument Sans', sans-serif; }

/* ── Accessibility ────────────────────────── */
.skip-link {
  position: absolute; top: -60px; left: 16px;
  background: var(--tertiary); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 3px solid #CCFF00; outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden, .sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Layout ───────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section       { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt  { background: var(--off-white); }
.section--dark { background: var(--tertiary); color: var(--white); }
.section--primary { background: var(--primary); }

/* ── Typography Helpers ───────────────────── */
.section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 12px;
}
.section--dark .section-label { color: var(--primary); }
.section--primary .section-label { color: var(--tertiary); }

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-mid); max-width: 640px; line-height: 1.72;
}
.section--dark .section-subtitle { color: rgba(173,216,230,0.85); }
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .section-subtitle { margin: 0 auto; }

/* ── Grids ────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-decoration: none; white-space: nowrap; font-family: 'Instrument Sans', sans-serif;
}
.btn-primary { background: var(--tertiary); color: var(--white); border-color: var(--tertiary); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--white); color: var(--tertiary); }
.btn-accent  { background: #CCFF00; background: var(--accent); color: #000080; color: var(--tertiary); border-color: #CCFF00; border-color: var(--accent); }
.btn-accent:hover, .btn-accent:focus-visible { background: #000080; background: var(--tertiary); color: #CCFF00; color: var(--accent); border-color: #CCFF00; border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--tertiary); border-color: var(--tertiary); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--tertiary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover, .btn-outline-white:focus-visible { background: var(--white); color: var(--tertiary); border-color: var(--white); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Header ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0,0,128,0.06);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1rem;
  color: var(--tertiary); letter-spacing: -0.01em;
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none;
}
.logo img {
  height: 44px; width: auto; max-width: 200px; flex-shrink: 0;
}
.logo-tagline {
  font-size: 0.62rem; font-weight: 500;
  color: var(--secondary); letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; padding-left: 14px;
  border-left: 1px solid var(--border); margin-left: 2px;
}
/* Legacy — keep for fallback if SVG still in use */
.logo-text { line-height: 1.2; text-align: left; }
.logo-text span {
  display: block; font-size: 0.62rem; font-weight: 500;
  color: var(--secondary); letter-spacing: 0.07em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 15px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem; color: var(--text-mid);
  transition: var(--transition); border: none; background: none;
  cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  text-decoration: none; display: inline-block;
}
.nav-link:hover { color: var(--tertiary); background: var(--light-grey); }
.nav-link.active { color: var(--tertiary); background: var(--primary); font-weight: 600; }
.nav-cta {
  margin-left: 8px; padding: 10px 22px;
  background: #CCFF00; background: var(--accent); color: var(--tertiary);
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.875rem;
  border: 2px solid #CCFF00; border: 2px solid var(--accent); cursor: pointer;
  font-family: 'Instrument Sans', sans-serif;
  transition: var(--transition); text-decoration: none; display: inline-block;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--tertiary); color: #CCFF00; color: var(--accent); }
.mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--tertiary);
}
@media (max-width: 768px) {
  .site-nav {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); z-index: 999;
  }
  .site-nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .nav-link, .nav-cta { width: 100%; text-align: center; margin-left: 0; }
}

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: var(--text-dark); color: rgba(255,255,255,0.65); padding: 64px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 14px; margin-top: 20px; }
.footer-socials a { color: rgba(255,255,255,0.45); transition: color 0.2s; display: flex; align-items: center; }
.footer-socials a:hover { color: #CCFF00; color: var(--accent); }
.footer-socials svg { width: 20px; height: 20px; }
.footer-col h4 {
  color: var(--white); font-size: 0.78rem; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col span {
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  transition: color 0.2s; text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: 'Instrument Sans', sans-serif; padding: 0;
  display: inline-block;
}
.footer-col a:hover, .footer-col span:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.4); font-size: 0.8rem;
  text-decoration: none; transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--white); }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Cards — Service ──────────────────────── */
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon {
  width: 52px; height: 52px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--tertiary); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--tertiary); }
.service-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; }
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; font-size: 0.875rem; font-weight: 600;
  color: var(--tertiary); border: none; background: none;
  cursor: pointer; font-family: inherit; padding: 0;
  transition: var(--transition); text-decoration: none;
}
.card-cta:hover { color: var(--secondary); gap: 10px; }
.card-cta svg { width: 15px; height: 15px; }

/* ── CTA Banner ───────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--tertiary), #001a6e);
  color: var(--white); border-radius: 20px; padding: 72px 64px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; background: #CCFF00; background: var(--accent);
  opacity: 0.07; border-radius: 50%;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -60px; left: -20px;
  width: 150px; height: 150px; background: var(--primary);
  opacity: 0.06; border-radius: 50%;
}
.cta-banner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 16px; font-weight: 700;
}
.cta-banner p {
  font-size: 1.05rem; color: rgba(255,255,255,0.78);
  margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cta-banner { padding: 48px 28px; }
  .cta-banner p { margin-bottom: 32px; }
}

/* ── FAQ Section ──────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 0; background: none; border: none;
  cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--tertiary);
  text-align: left; gap: 16px;
}
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--secondary); transition: transform 0.25s; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 20px; color: var(--text-mid); font-size: 0.95rem; line-height: 1.75; }

/* ── Utility ──────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ── UDL — Reduced Motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* ── UDL — Callout / Highlight Box ───────── */
.callout {
  background: #EEF7FF;
  border-left: 4px solid var(--tertiary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 24px 0;
}
.callout p { color: var(--text-dark); font-size: 0.95rem; line-height: 1.75; margin: 0; }
.callout strong { color: var(--tertiary); }
.callout--accent { background: rgba(204,255,0,0.12); }
.callout--warn   { background: rgba(255,165,0,0.08); border-left-color: #c77000; }

/* ── UDL — Form Help Text ─────────────────── */
.field-hint { font-size: 0.8rem; color: var(--text-mid); margin-top: 4px; display: block; line-height: 1.4; }

/* ── Policy Page ──────────────────────────── */
.policy-hero {
  background: linear-gradient(135deg, var(--tertiary), #001a6e);
  color: var(--white); padding: 72px 0 56px;
}
.policy-hero .section-label { color: var(--primary); }
.policy-hero .section-title { color: var(--white); }
.policy-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin-top: 12px; line-height: 1.72; }
.policy-body  { max-width: 820px; margin: 0 auto; }
.policy-meta  {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 48px;
  font-size: 0.875rem; color: var(--text-mid);
  display: flex; flex-wrap: wrap; gap: 16px;
}
.policy-meta strong { color: var(--tertiary); }
.policy-section { margin-bottom: 48px; }
.policy-section h2 {
  font-size: 1.2rem; color: var(--tertiary); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--primary);
}
.policy-section h3 { font-size: 0.975rem; color: var(--text-dark); margin: 20px 0 8px; font-weight: 600; }
/* Policy footnote & reference styles */
.policy-fn { font-size: 0.72rem; vertical-align: super; line-height: 0; color: var(--tertiary); text-decoration: none; margin-left: 1px; }
.policy-fn:hover { text-decoration: underline; }
.policy-ref { color: var(--tertiary); text-decoration: underline; text-underline-offset: 2px; }
.policy-ref:hover { color: var(--navy, #000080); }
.policy-refs-list { list-style: none; margin: 0; padding: 0; }
.policy-refs-list li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }
.policy-refs-list a { color: var(--tertiary); text-decoration: underline; text-underline-offset: 2px; }
.ref-num { font-weight: 700; color: var(--tertiary); white-space: nowrap; min-width: 28px; }
.policy-section p  { color: var(--text-mid); line-height: 1.82; margin-bottom: 14px; }
.policy-section ul, .policy-section ol { color: var(--text-mid); line-height: 1.8; margin: 0 0 16px 20px; }
.policy-section li { margin-bottom: 6px; }

/* Policy TOC */
.policy-toc { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px 28px; margin-bottom: 48px; }
.policy-toc h2 { font-size: 1rem; color: var(--tertiary); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.05em; border: none; padding: 0; }
.policy-toc ol { margin: 0 0 0 18px; padding: 0; }
.policy-toc li { margin-bottom: 6px; font-size: 0.9rem; }
.policy-toc a { color: var(--tertiary); text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }

/* Key Terms definition list */
.policy-definitions { margin: 0 0 16px; }
.policy-definitions dt { font-weight: 700; color: var(--text-dark); margin-top: 16px; }
.policy-definitions dd { margin: 4px 0 0 20px; color: var(--text-mid); line-height: 1.75; }

/* Guiding Principles grid */
.principles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.principle-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 18px; }
.principle-card .principle-icon { font-size: 1.5rem; margin-bottom: 8px; }
.principle-card h3 { font-size: 0.9rem; color: var(--tertiary); margin: 0 0 6px; }
.principle-card p { font-size: 0.875rem; color: var(--text-mid); margin: 0; line-height: 1.6; }

/* Policy tables */
.uses-table-wrap, .roles-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.policy-table caption { text-align: left; font-size: 0.8rem; color: var(--text-mid); margin-bottom: 8px; font-style: italic; caption-side: top; }
.policy-table th { background: var(--tertiary); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; }
.policy-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-mid); line-height: 1.65; }
.policy-table tr:nth-child(even) td { background: var(--off-white); }
.policy-table td ul { margin: 4px 0 0 16px; padding: 0; }
.policy-table td li { margin-bottom: 4px; }

/* Use category tags */
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.tag--green { background: rgba(0,160,60,0.1); color: #006928; }
.tag--amber { background: rgba(204,140,0,0.12); color: #7a5200; }
.tag--red   { background: rgba(200,0,30,0.1); color: #9a0015; }

@media (max-width: 640px) {
  .principles-grid { grid-template-columns: 1fr; }
  .policy-toc ol { margin-left: 16px; }
}
.policy-section ul { list-style: disc; padding-left: 22px; color: var(--text-mid); }
.policy-section ul li { margin-bottom: 7px; line-height: 1.7; }
.policy-section a  { color: var(--tertiary); text-decoration: underline; }

/* ── Hero Photo (homepage right column) ──── */
.hero-photo { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.45); width: 100%; max-width: 460px; }
.hero-photo img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; object-position: center top; }
@media (max-width: 768px) { .hero-photo { max-width: 100%; aspect-ratio: 16/9; }
  .hero-photo img { aspect-ratio: 16/9; } }

/* ── Post / Resource Thumbnails with photos  */
.post-thumb,
.resource-thumb { background-size: cover !important; background-position: center !important; }

/* ── Cookie Consent Banner ─────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--tertiary); color: var(--white);
  border-top: 3px solid var(--accent);
  padding: 18px 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  transform: translateY(100%); transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text p { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,0.88); line-height: 1.55; }
.cookie-text p + p { margin-top: 3px; }
.cookie-text a { color: #CCFF00; color: var(--accent); }
.cookie-text strong { color: var(--white); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-accept {
  background: #CCFF00; background: var(--accent); color: var(--tertiary); border: none;
  padding: 10px 22px; border-radius: var(--radius-sm); font-size: 0.88rem;
  font-weight: 700; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  transition: var(--transition);
}
.cookie-accept:hover { background: #bbee00; }
.cookie-accept:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.cookie-reject {
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.9); padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.88rem; cursor: pointer; font-family: 'Instrument Sans', sans-serif;
  font-weight: 500; transition: var(--transition);
}
.cookie-reject:hover { border-color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }
.cookie-reject:focus-visible { outline: 2px solid #CCFF00; outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .cookie-inner { gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-reject { flex: 1; text-align: center; }
}
