/* ═══════════════════════════════════════════════════════════════
   Island Analytics — shared blog post stylesheet
   Used by every post in /blog/. Update once, all posts inherit.
═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: #555;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── CSS variables (mirrors Index.html) ─────────── */
:root {
  --primary: #0ea5be;
  --primary-dark: #0b8fa6;
  --secondary: #fc5c19;
  --teal: #4A8FA8;
  --deep-teal: #3D6B7A;
  --dark: #0d1e24;
  --dark-mid: #152a33;
  --text: #555;
  --text-dark: #1e2e35;
  --text-light: #7a8e96;
  --bg-light: #f4f7f9;
  --white: #fff;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.09);
  --radius: 10px;
  --radius-lg: 16px;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Jost', sans-serif; line-height: 1.15; color: var(--text-dark); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: #e04d12; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(252,92,25,0.35); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── NAV (mirrors Index.html) ───────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn { display: flex; align-items: center; gap: 4px; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  background: var(--dark-mid);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-6px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-cta { margin-left: 16px; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  background: var(--dark);
  padding: 20px 28px 28px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link { color: rgba(255,255,255,0.82); display: block; padding: 12px 14px; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ── POST HERO ──────────────────────────────────── */
.post-hero {
  background: linear-gradient(155deg, #0d1e24 0%, #1a3540 55%, #0f2830 100%);
  padding: 140px 28px 64px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,190,0.11) 0%, transparent 68%);
  pointer-events: none;
}
.post-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(252,92,25,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.post-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.post-hero-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14,165,190,0.12);
  border: 1px solid rgba(14,165,190,0.28);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.post-title {
  font-family: 'Jost', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-byline-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.post-byline-name {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.post-byline-meta {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* ── ARTICLE BODY ───────────────────────────────── */
.post-article {
  background: #fff;
  padding: 72px 28px 80px;
}
.post-article-inner {
  max-width: 760px;
  margin: 0 auto;
}
.post-article p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 22px;
}
.post-article p strong { color: var(--text-dark); font-weight: 700; }
.post-article h2 {
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--text-dark);
  line-height: 1.25;
  margin-top: 56px;
  margin-bottom: 18px;
}
.post-article h2::before {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ── BARC callout (matches Index.html) ──────────── */
.barc-callout {
  margin: 44px 0;
  background: var(--dark-mid);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.barc-bar {
  width: 4px;
  min-height: 72px;
  background: var(--secondary);
  border-radius: 2px;
  flex-shrink: 0;
}
.barc-quote {
  font-family: 'Jost', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 12px;
}
.barc-source {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ── 4-step process list ────────────────────────── */
.post-process-list {
  list-style: none;
  margin: 32px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 26px;
  background: var(--bg-light);
  border-left: 5px solid var(--step-color, var(--primary));
  border-radius: 10px;
}
.post-step-item:nth-child(1) { --step-color: var(--primary); }
.post-step-item:nth-child(2) { --step-color: var(--teal); }
.post-step-item:nth-child(3) { --step-color: var(--deep-teal); }
.post-step-item:nth-child(4) { --step-color: var(--secondary); }
.post-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--step-color, var(--primary));
  flex-shrink: 0;
}
.post-step-name {
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.post-step-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
}

/* ── Figures ────────────────────────────────────── */
.post-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
.post-figure-pair figure { margin: 0; }
.post-figure-pair figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.post-figure-pair figure figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .post-figure-pair { grid-template-columns: 1fr; }
}
.post-figure { margin: 36px 0; }
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.post-figure.icon img {
  box-shadow: none;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 0;
}
.post-figure figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── CTA ────────────────────────────────────────── */
.post-cta {
  background: var(--dark);
  padding: 80px 28px;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,190,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.post-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.post-cta h2 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.post-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 32px;
}
.post-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Tagline strip ──────────────────────────────── */
.post-tagline {
  background: var(--bg-light);
  padding: 44px 28px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-weight: 800;
  color: var(--primary);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.post-tagline em { font-style: normal; color: var(--secondary); }

/* ── Footer (mirrors Index.html) ────────────────── */
footer {
  background: var(--dark);
  padding: 60px 28px 32px;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand img { height: 34px; width: auto; display: block; margin-bottom: 16px; }
.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.footer-tagline em { font-style: normal; color: var(--secondary); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-col h4 {
  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: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-contact-links { display: flex; gap: 20px; }
.footer-contact-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact-links a:hover { color: rgba(255,255,255,0.75); }
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Reveal animations ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Share strip (bottom of each post) ──────────── */
.post-share {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 28px 24px 0;
  border-top: 1px solid #E2ECF0;
  text-align: center;
}
.post-share-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.post-share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid #E2ECF0;
  color: var(--deep-teal);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  font: inherit;
  padding: 0;
}
.post-share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.post-share-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.post-share-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.post-share-native {
  width: auto;
  padding: 0 18px;
  border-radius: 100px;
}
.post-share-native span {
  font-size: 13px;
  font-weight: 600;
}
.post-share-toast {
  margin-top: 14px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Responsive tweaks ──────────────────────────── */
@media (max-width: 720px) {
  .post-hero { padding: 120px 24px 48px; }
  .post-article { padding: 48px 24px 56px; }
  .barc-callout { flex-direction: column; padding: 28px 24px; gap: 18px; }
  .post-step-item { padding: 18px 20px; gap: 16px; }
  .post-cta { padding: 60px 24px; }
  .post-share { margin-top: 40px; padding: 24px 20px 0; }
}
