/* ================================================================
   Smart Sensor Solutions — Universal Blog Post Stylesheet
   Version: 2.1
   Updated: May 2026

   COLOUR PALETTE:
   Deep Navy:      #080f1e  — hero/dark backgrounds
   Dark Blue:      #0f2a4a  — section darks, stats strip
   Emerald:        #10b981  — primary accent throughout
   Emerald Pale:   #d1fae5  — callout backgrounds
   Emerald Dark:   #065f46  — callout text
   Signal Orange:  #ff6b2b  — CTA buttons only
   Off White:      #f0f4f8  — light section backgrounds
   Body Text:      #1a2535  — main text
   Muted Text:     #8a9ab0  — supporting text
   Border:         #d0dae8  — dividers and card borders
   ================================================================ */


/* ================================================================
   1. CSS VARIABLES
   ================================================================ */

:root {
  --sss-navy:          #080f1e;
  --sss-dark-blue:     #0f2a4a;
  --sss-emerald:       #10b981;
  --sss-emerald-pale:  #d1fae5;
  --sss-emerald-dark:  #065f46;
  --sss-emerald-mid:   #059669;
  --sss-orange:        #ff6b2b;
  --sss-off-white:     #f0f4f8;
  --sss-white:         #ffffff;
  --sss-text:          #1a2535;
  --sss-muted:         #8a9ab0;
  --sss-border:        #d0dae8;
  --sss-radius:        10px;
  --sss-radius-lg:     16px;
}


/* ================================================================
   AUTO-HIDE DEFAULT THEME HEADER ON CUSTOM POSTS
   Add class "sss-custom-post" to any post via:
   Post tab → Advanced → Additional CSS Class(es)
   This hides the default WordPress/theme post header, title,
   featured image and meta — only on posts with this class.
   All other posts are completely unaffected.
   ================================================================ */

.sss-custom-post .entry-header,
.sss-custom-post .entry-title,
.sss-custom-post h1.entry-title,
.sss-custom-post .post-thumbnail,
.sss-custom-post .entry-meta,
.sss-custom-post .site-header-image,
.sss-custom-post .post-header,
.sss-custom-post .wp-post-image {
  display: none !important;
}


/* ================================================================
   2. SECTION WRAPPERS
   ================================================================ */

.sss-section-white {
  background: var(--sss-white);
  padding: 64px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.sss-section-light {
  background: var(--sss-off-white);
  padding: 64px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.sss-section-dark {
  background: var(--sss-dark-blue);
  padding: 64px 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}


/* ================================================================
   3. CONTAINERS
   ================================================================ */

.sss-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.sss-container-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ================================================================
   4. HERO
   ================================================================ */

.sss-hero {
  background: var(--sss-navy);
  padding: 88px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.sss-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    60deg,
    transparent,
    transparent 80px,
    rgba(16,185,129,0.04) 80px,
    rgba(16,185,129,0.04) 81px
  );
}

.sss-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.sss-hero-eyebrow {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sss-emerald);
  border: 1px solid var(--sss-emerald);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.sss-hero h1 {
  font-size: clamp(28px, 5vw, 52px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--sss-white) !important;
  margin: 0 auto 20px !important;
}

.sss-hero h1 em {
  color: var(--sss-emerald);
  font-style: normal;
}

.sss-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-family: 'Arial', sans-serif;
}

.sss-hero-meta {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}


/* ================================================================
   5. SECTION HEADINGS & TYPOGRAPHY
   ================================================================ */

.sss-section-white h2,
.sss-section-light h2,
.sss-section-dark h2 {
  font-size: clamp(22px, 3.5vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-bottom: 20px !important;
}

.sss-section-white h2,
.sss-section-light h2 {
  color: var(--sss-navy) !important;
}

.sss-section-dark h2 {
  color: var(--sss-white) !important;
}

.sss-section-white p,
.sss-section-light p {
  color: var(--sss-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.sss-section-dark p {
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 20px;
}


/* ================================================================
   6. LEAD PARAGRAPH
   ================================================================ */

.sss-lead {
  font-size: 19px !important;
  color: var(--sss-dark-blue) !important;
  border-left: 4px solid var(--sss-emerald);
  padding-left: 20px;
  margin-bottom: 32px;
  line-height: 1.7 !important;
}


/* ================================================================
   7. CALLOUT BOX
   ================================================================ */

.sss-callout {
  background: var(--sss-emerald-pale);
  border-left: 4px solid var(--sss-emerald);
  border-radius: 0 var(--sss-radius-lg) var(--sss-radius-lg) 0;
  padding: 24px 28px;
  margin: 36px 0;
}

.sss-callout-label {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sss-emerald-mid);
  margin-bottom: 8px;
  font-weight: 600;
}

.sss-callout p {
  color: var(--sss-emerald-dark) !important;
  margin-bottom: 0 !important;
  font-size: 15px;
  line-height: 1.7;
}


/* ================================================================
   8. BLOCKQUOTE
   ================================================================ */

.sss-section-white blockquote,
.sss-section-light blockquote,
.sss-section-dark blockquote {
  border-left: 4px solid var(--sss-emerald) !important;
  padding: 20px 24px !important;
  background: var(--sss-emerald-pale) !important;
  border-radius: 0 var(--sss-radius) var(--sss-radius) 0 !important;
  margin: 36px 0 !important;
  font-size: 17px !important;
  color: var(--sss-emerald-dark) !important;
  font-style: italic !important;
}

.sss-section-white blockquote cite,
.sss-section-light blockquote cite,
.sss-section-dark blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-style: normal;
  color: var(--sss-emerald-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ================================================================
   9. CHALLENGE / FEATURE CARDS GRID
   ================================================================ */

.sss-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.sss-card {
  background: var(--sss-white);
  border: 1px solid var(--sss-border);
  border-top: 3px solid var(--sss-emerald);
  border-radius: var(--sss-radius-lg);
  padding: 24px;
}

.sss-section-dark .sss-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  border-top-color: var(--sss-emerald);
}

.sss-card-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--sss-border);
  line-height: 1;
  margin-bottom: 12px;
}

.sss-card h3 {
  color: var(--sss-navy) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.sss-card p {
  font-size: 14px !important;
  color: var(--sss-muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}


/* ================================================================
   10. SOLUTION ROWS
   ================================================================ */

.sss-solution-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--sss-border);
}

.sss-solution-row:last-child { border-bottom: none; }

.sss-solution-icon {
  width: 48px;
  height: 48px;
  background: var(--sss-emerald-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.sss-solution-body h3 {
  color: var(--sss-navy) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

.sss-solution-body p {
  font-size: 15px !important;
  color: var(--sss-muted) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}


/* ================================================================
   11. NUMBERED BENEFIT ROWS
   ================================================================ */

.sss-benefit-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--sss-border);
}

.sss-benefit-row:last-child { border-bottom: none; }

.sss-benefit-num {
  width: 36px;
  height: 36px;
  background: var(--sss-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--sss-white);
  font-family: 'Arial', sans-serif;
}

.sss-benefit-body h3 {
  color: var(--sss-navy) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

.sss-benefit-body p {
  font-size: 14px !important;
  color: var(--sss-muted) !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}


/* ================================================================
   12. STATS STRIP
   ================================================================ */

.sss-stats-strip {
  background: var(--sss-dark-blue);
  padding: 52px 24px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.sss-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  text-align: center;
}

.sss-stat-val {
  font-size: 44px;
  font-weight: 700;
  color: var(--sss-emerald);
  line-height: 1;
  margin-bottom: 10px;
}

.sss-stat-label {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  color: var(--sss-muted);
  line-height: 1.4;
}


/* ================================================================
   13. CHECKLIST
   ================================================================ */

.sss-checklist {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.sss-checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--sss-border);
  font-size: 15px;
  color: var(--sss-text);
  line-height: 1.5;
}

.sss-checklist li:last-child { border-bottom: none; }

.sss-check-mark {
  width: 22px;
  height: 22px;
  background: var(--sss-emerald);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.sss-check-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}


/* ================================================================
   14. INFO / PRIVACY BADGE
   ================================================================ */

.sss-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--sss-emerald-pale);
  border: 1px solid #a7f3d0;
  border-radius: var(--sss-radius-lg);
  padding: 14px 20px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--sss-emerald-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.5;
}

.sss-info-badge strong { color: var(--sss-emerald-dark); }


/* ================================================================
   15. PRODUCT FEATURE BLOCK
   ================================================================ */

.sss-feature-block {
  background: var(--sss-navy);
  border-radius: var(--sss-radius-lg);
  padding: 52px 40px;
  display: flex;
  gap: 48px;
  align-items: center;
}

.sss-feature-image {
  flex: 0 0 200px;
  text-align: center;
}

.sss-feature-image img {
  width: 170px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}

.sss-feature-content { flex: 1; }

.sss-feature-badge {
  display: inline-block;
  background: var(--sss-emerald);
  color: var(--sss-white);
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.sss-feature-content h2 {
  color: var(--sss-white) !important;
  font-size: clamp(20px, 3vw, 30px) !important;
  margin-bottom: 14px !important;
}

.sss-feature-content p {
  color: rgba(255,255,255,0.65) !important;
  font-size: 15px !important;
  font-family: 'Arial', sans-serif;
}

.sss-feature-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.sss-feature-spec {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--sss-radius);
  padding: 12px 16px;
}

.sss-feature-spec-label {
  font-family: 'Arial', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sss-feature-spec-val {
  font-family: 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--sss-white);
}


/* ================================================================
   16. CTA SECTION
   ================================================================ */

.sss-cta-section {
  background: var(--sss-navy);
  padding: 80px 24px;
  text-align: center;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.sss-cta-section h2 {
  color: var(--sss-white) !important;
  font-size: clamp(22px, 4vw, 40px) !important;
  margin-bottom: 14px !important;
}

.sss-cta-section p {
  color: rgba(255,255,255,0.6) !important;
  font-family: 'Arial', sans-serif;
  font-size: 17px !important;
  max-width: 520px;
  margin: 0 auto 36px !important;
  line-height: 1.6 !important;
}

.sss-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ================================================================
   17. BUTTONS
   ================================================================ */

.sss-btn-primary {
  background: var(--sss-orange);
  color: var(--sss-white);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 34px;
  border-radius: 40px;
  display: inline-block;
  transition: transform 0.15s, opacity 0.15s;
}

.sss-btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  color: var(--sss-white);
}

.sss-btn-outline {
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--sss-white);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 34px;
  border-radius: 40px;
  display: inline-block;
  transition: background 0.15s;
}

.sss-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--sss-white);
}

.sss-btn-emerald {
  background: var(--sss-emerald);
  color: var(--sss-white);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 34px;
  border-radius: 40px;
  display: inline-block;
  transition: transform 0.15s, opacity 0.15s;
}

.sss-btn-emerald:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: var(--sss-white);
}
/* ================================================================
   FIX — Button text colour contrast
   ================================================================ */

.sss-btn-primary,
.sss-btn-primary:hover,
.sss-btn-primary:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sss-btn-emerald,
.sss-btn-emerald:hover,
.sss-btn-emerald:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sss-btn-outline,
.sss-btn-outline:hover,
.sss-btn-outline:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ================================================================
   18. UTILITY TAGS
   ================================================================ */

.sss-tag {
  display: inline-block;
  background: var(--sss-emerald-pale);
  color: var(--sss-emerald-dark);
  font-family: 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sss-tag-orange {
  background: #fff3ee;
  color: #c2410c;
  border-color: #fed7aa;
}


/* ================================================================
   19. RESPONSIVE
   ================================================================ */

@media (max-width: 640px) {
  .sss-card-grid { grid-template-columns: 1fr; }
  .sss-solution-row { flex-direction: column; }
  .sss-benefit-row { flex-direction: column; }
  .sss-feature-block { flex-direction: column; padding: 36px 24px; }
  .sss-feature-image { flex: none; }
  .sss-feature-specs { grid-template-columns: 1fr; }
  .sss-stats-inner { grid-template-columns: repeat(2, 1fr); }
}


/* ================================================================
   20. BLOCKQUOTE STANDALONE
   ================================================================ */

.sss-blockquote {
  border-left: 4px solid var(--sss-emerald);
  padding: 24px 28px;
  background: var(--sss-emerald-pale);
  border-radius: 0 var(--sss-radius-lg) var(--sss-radius-lg) 0;
  margin: 36px auto;
  font-size: 18px;
  color: var(--sss-emerald-dark);
  font-style: italic;
  width: 100%;
  box-sizing: border-box;
}

.sss-blockquote p {
  color: var(--sss-emerald-dark) !important;
  font-size: 18px !important;
  margin-bottom: 10px !important;
  font-style: italic;
}

.sss-blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--sss-emerald-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}