/* =====================================================
   OnPoint Connect – Blog Stylesheet
   Brand: Handel Gothic (headings) + Futura PT (body)
   Primary: #ed6d05 | Grey: #878787 | Gradient tones
   ===================================================== */

/* Futura PT via Google Fonts approximation (Jost is the
   closest free match to Futura PT geometry) */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* Handel Gothic is a licensed font — load from your server.
   Replace the src path below with your actual font file location.
   If not available, the stack falls back to a geometric sans. */
@font-face {
  font-family: 'Handel Gothic';
  src: url('/fonts/HandelGothic-Bold.woff2') format('woff2'),
       url('/fonts/HandelGothic-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Handel Gothic';
  src: url('/fonts/HandelGothic-Light.woff2') format('woff2'),
       url('/fonts/HandelGothic-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---- Brand Tokens ---- */
:root {
  /* Official OnPoint Connect colours */
  --opc-orange:       #ed6d05;   /* Primary brand orange */
  --opc-orange-light: #f3954c;   /* Gradient light end   */
  --opc-orange-dark:  #d35917;   /* Gradient dark end    */
  --opc-grey:         #878787;   /* Brand grey           */
  --opc-grey-light:   #e8e8e8;
  --opc-grey-mid:     #b0b0b0;
  --opc-grey-text:    #555555;

  /* Supporting neutrals */
  --opc-white:        #ffffff;
  --opc-off-white:    #faf8f6;
  --opc-near-black:   #1a1a1a;
  --opc-border:       #e0ddd9;

  /* Fonts */
  --font-heading: 'Handel Gothic', 'Jost', 'Trebuchet MS', sans-serif;
  --font-body:    'Jost', 'Futura PT', 'Century Gothic', 'Trebuchet MS', sans-serif;

  /* Layout */
  --max-article: 760px;
  --max-wide:    1120px;
  --radius:      8px;
  --radius-lg:   16px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--opc-near-black);
  background: var(--opc-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--opc-orange); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--opc-orange-dark); }

/* ============================================================
   SITE NAV STUB
   (The real nav is injected by your CMS/template.
    This stub just ensures the blog page isn't naked
    if opened standalone during testing.)
   ============================================================ */
.blog-nav-stub {
  background: var(--opc-white);
  border-bottom: 3px solid var(--opc-orange);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-nav-stub__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--opc-grey);
  letter-spacing: -0.01em;
}
.blog-nav-stub__logo-text span { color: var(--opc-orange); }
.blog-nav-stub__back {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--opc-grey);
  border: 1px solid var(--opc-grey-light);
  padding: 6px 16px;
  border-radius: 30px;
  transition: border-color .2s, color .2s;
}
.blog-nav-stub__back:hover {
  border-color: var(--opc-orange);
  color: var(--opc-orange);
  text-decoration: none;
}

/* ============================================================
   BLOG HEADER BANNER
   ============================================================ */
.blog-header {
  background: linear-gradient(135deg, var(--opc-orange-dark) 0%, var(--opc-orange) 55%, var(--opc-orange-light) 100%);
  color: var(--opc-white);
  padding: 72px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle tessellated logomark pattern overlay (brand guidelines p.7) */
.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/blog/banner.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.blog-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-header__tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--opc-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 30px;
}

.blog-header__date,
.blog-header__read-time {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.blog-header__read-time::before { content: '·'; margin-right: 10px; }

.blog-header h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.18;
  color: var(--opc-white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  max-width: 820px;
}

.blog-header__intro {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  font-weight: 300;
}

/* ============================================================
   HERO IMAGE
   ============================================================ */
.blog-hero-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}
.blog-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}
.blog-hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: rgba(26,26,26,0.55);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 8px 20px;
  font-style: italic;
  text-align: right;
}

/* ---- IMAGE PLACEHOLDER (for Kemal to replace) ---- */
.img-placeholder {
  background: linear-gradient(135deg, #f0ece7 0%, #e8e2db 100%);
  border: 2px dashed var(--opc-orange-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--opc-grey);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.img-placeholder__icon {
  font-size: 36px;
  opacity: 0.5;
}
.img-placeholder__label {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--opc-orange);
}
.img-placeholder__desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--opc-grey);
  max-width: 280px;
  line-height: 1.5;
}

/* ============================================================
   MAIN TWO-COLUMN LAYOUT
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 56px;
  max-width: var(--max-wide);
  margin: 56px auto;
  padding: 0 24px;
  align-items: start;
}

@media (max-width: 920px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: 99; }
}

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.blog-article { min-width: 0; }

.blog-article h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 25px);
  color: var(--opc-near-black);
  margin: 52px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.22;
  position: relative;
  padding-left: 18px;
}
.blog-article h2::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--opc-orange), var(--opc-orange-dark));
  border-radius: 2px;
}
.blog-article h2:first-child { margin-top: 0; }

.blog-article h3 {
  font-family: var(--font-heading);
  font-weight: 300;         /* Handel Gothic Light for sub-headings */
  font-size: clamp(16px, 2vw, 20px);
  color: var(--opc-near-black);
  margin: 38px 0 12px;
  letter-spacing: 0em;
  line-height: 1.3;
}

.blog-article h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--opc-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 28px 0 8px;
}

.blog-article p {
  margin-bottom: 20px;
  color: var(--opc-grey-text);
  font-weight: 400;
}
.blog-article p:last-child { margin-bottom: 0; }

.blog-article strong { font-weight: 700; color: var(--opc-near-black); }

/* ============================================================
   INLINE IMAGES WITHIN ARTICLE
   ============================================================ */
.blog-image {
  margin: 44px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.10);
  border: 1px solid var(--opc-border);
}
.blog-image img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.blog-image figcaption {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--opc-grey);
  font-style: italic;
  background: var(--opc-off-white);
  border-top: 1px solid var(--opc-border);
}

/* ============================================================
   QUICK ANSWER BOX
   ============================================================ */
.quick-answer {
  background: var(--opc-off-white);
  border-left: 5px solid var(--opc-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  margin: 36px 0;
}
.quick-answer__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--opc-orange);
  margin-bottom: 12px;
}
.quick-answer p {
  font-size: 16px;
  color: var(--opc-grey-text);
  margin-bottom: 10px;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.blog-checklist {
  list-style: none;
  margin: 16px 0 28px;
  padding: 0;
}
.blog-checklist li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 16px;
  color: var(--opc-grey-text);
  border-bottom: 1px solid var(--opc-grey-light);
}
.blog-checklist li:last-child { border-bottom: none; }
.blog-checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  background: var(--opc-orange);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M4 9l3.5 3.5 6.5-7'/%3E%3C/svg%3E");
}

/* ============================================================
   NUMBERED STEPS
   ============================================================ */
.blog-steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 20px 0 36px;
}
.blog-steps li {
  counter-increment: steps;
  padding: 20px 22px 20px 66px;
  position: relative;
  border: 1px solid var(--opc-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--opc-white);
  transition: border-color .2s, box-shadow .2s;
}
.blog-steps li:hover {
  border-color: var(--opc-orange);
  box-shadow: 0 4px 20px rgba(237,109,5,0.10);
}
.blog-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--opc-orange), var(--opc-orange-dark));
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-steps li strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--opc-near-black);
  margin-bottom: 6px;
}
.blog-steps li p {
  margin: 0;
  font-size: 15px;
  color: var(--opc-grey);
}

/* ============================================================
   CALLOUT (dark)
   ============================================================ */
.callout {
  background: var(--opc-near-black);
  color: var(--opc-white);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin: 44px 0;
  position: relative;
  overflow: hidden;
}
.callout::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(237,109,5,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.callout__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--opc-orange-light);
  margin-bottom: 10px;
}
.callout p {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  margin: 0;
}

/* ============================================================
   WARNING BOX
   ============================================================ */
.warning-box {
  border: 2px solid var(--opc-orange-light);
  background: #fff8f3;
  border-radius: var(--radius);
  padding: 22px 28px;
  margin: 38px 0;
}
.warning-box__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--opc-orange-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.warning-box__title::before { content: '⚠'; font-size: 15px; }
.warning-box ul { list-style: none; padding: 0; margin: 0; }
.warning-box ul li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 15px;
  color: var(--opc-grey-text);
}
.warning-box ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--opc-orange);
  font-weight: 700;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--opc-off-white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  margin: 60px 0;
  border: 1px solid var(--opc-border);
}
@media (max-width: 600px) {
  .faq-section { padding: 28px 22px; }
}
.faq-section > h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--opc-near-black);
  margin-bottom: 30px !important;
  padding-left: 0 !important;
}
.faq-section > h2::before { display: none !important; }

.faq-item {
  border-bottom: 1px solid var(--opc-border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }

.faq-item__q {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--opc-near-black);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  cursor: default;
}
.faq-item__q::after {
  content: '→';
  color: var(--opc-orange);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.faq-item__a {
  font-size: 15px;
  color: var(--opc-grey-text);
  line-height: 1.72;
  margin: 0;
}
.faq-item__a a { color: var(--opc-orange); font-weight: 600; }

/* ============================================================
   CTA BLOCK (in-article)
   ============================================================ */
.blog-cta {
  background: linear-gradient(135deg, var(--opc-orange-dark) 0%, var(--opc-orange) 60%, var(--opc-orange-light) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  margin: 60px 0;
  text-align: center;
  color: var(--opc-white);
  position: relative;
  overflow: hidden;
}
.blog-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='32' r='14' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='5'/%3E%3Crect x='27' y='12' width='6' height='10' rx='3' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.blog-cta__eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.blog-cta h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 14px;
  color: var(--opc-white);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}
.blog-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 30px;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  background: var(--opc-white);
  color: var(--opc-orange-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 15px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  text-decoration: none;
  color: var(--opc-orange-dark);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--opc-orange);
  border: 2px solid var(--opc-orange);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 13px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-secondary:hover {
  background: var(--opc-orange);
  color: var(--opc-white);
  text-decoration: none;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-sidebar { position: sticky; top: 24px; }

.sidebar-card {
  background: var(--opc-off-white);
  border: 1px solid var(--opc-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin-bottom: 22px;
}
.sidebar-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--opc-orange);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--opc-orange);
}

.sidebar-toc a {
  display: block;
  font-size: 14px;
  color: var(--opc-grey);
  padding: 7px 0;
  border-bottom: 1px solid var(--opc-grey-light);
  transition: color .15s, padding-left .15s;
  line-height: 1.4;
}
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a:hover { color: var(--opc-orange); padding-left: 6px; text-decoration: none; }

.sidebar-cta-card {
  background: linear-gradient(135deg, var(--opc-orange-dark) 0%, var(--opc-orange) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 22px;
}
.sidebar-cta-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 18px;
  line-height: 1.6;
  font-weight: 300;
}
.sidebar-cta-card .btn-primary {
  font-size: 13px;
  padding: 12px 24px;
  background: var(--opc-white);
  color: var(--opc-orange-dark);
}

.sidebar-related a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--opc-grey-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--opc-grey-light);
  line-height: 1.45;
  transition: color .15s;
}
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a::before {
  content: '→';
  color: var(--opc-orange);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.sidebar-related a:hover { color: var(--opc-orange); text-decoration: none; }

/* ============================================================
   ARTICLE FOOTER / TAG PILLS
   ============================================================ */
.blog-article-footer {
  border-top: 2px solid var(--opc-grey-light);
  margin-top: 60px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-article-footer__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--opc-grey);
  flex-shrink: 0;
}
.tag-pill {
  display: inline-block;
  background: var(--opc-off-white);
  border: 1px solid var(--opc-border);
  color: var(--opc-grey);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 30px;
  transition: border-color .15s, color .15s;
}
.tag-pill:hover { border-color: var(--opc-orange); color: var(--opc-orange); text-decoration: none; }

/* ============================================================
   PAGE FOOTER (matches site)
   ============================================================ */
.blog-page-footer {
  background: var(--opc-near-black);
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
  text-align: center;
  margin-top: 80px;
  font-size: 13px;
  line-height: 1.7;
}
.blog-page-footer > img {
  margin: 0 auto 10px;
}
.blog-page-footer a { color: var(--opc-orange-light); }
.blog-page-footer a:hover { color: var(--opc-orange); }
.blog-page-footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--opc-grey);
  margin-bottom: 10px;
}
.blog-page-footer__logo span { color: var(--opc-orange); }

/* ============================================================
   SCHEMA / AI CRAWLER SUPPORT
   (visually hidden but readable by crawlers and LLMs)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .blog-header { padding: 52px 20px 44px; }
  .blog-layout { padding: 0 16px; margin: 36px auto; gap: 36px; }
  .blog-cta { padding: 36px 24px; }
  .faq-section { padding: 28px 20px; }
}
