/* ============================================================
   14erDigital — Shared Stylesheet
   ============================================================ */

/* --- CSS Variables ----------------------------------------- */
:root {
  --navy:        #17294A;
  --ridge:       #1E3D6E;
  --ember:       #E8622A;
  --ember-hover: #cf4f1a;
  --bg:          #EEF1F7;
  --grey:        #536B85;   /* darkened from original for WCAG AA on white */
  --white:       #FFFFFF;

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius:    12px;
  --radius-sm:  8px;
  --shadow:    0 2px 20px rgba(13,31,60,.08);
  --shadow-md: 0 4px 32px rgba(13,31,60,.12);
  --transition: .2s ease;
  --container: 1140px;
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(circle, rgba(13,31,60,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--navy);
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Fine grain overlay — breaks up flat digital surfaces (incl. white
   and navy sections, which sit above the dot-grid). Fixed to the
   viewport so it reads as screen texture, not page content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }
p  { color: var(--grey); line-height: 1.7; }
p.lead { font-size: 1.1rem; color: var(--grey); max-width: 580px; }
strong { color: var(--navy); }

/* --- Layout helpers ---------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.section-white   { background: var(--white); }
.section-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: .875rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ember);
  flex-shrink: 0;
}
.section-head { margin-bottom: 1rem; }
.section-intro { color: var(--grey); margin-bottom: 0; max-width: 560px; }
.section-sub   { color: var(--grey); margin-top: .75rem; margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;         gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ember);
  color: var(--white);
  border-color: var(--ember);
}
.btn-primary:hover { background: var(--ember-hover); border-color: var(--ember-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--ember);
  color: var(--ember);
}
.btn-outline:hover { background: var(--ember); color: var(--white); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); }

/* --- Cards ------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,98,42,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ember);
  margin-bottom: 1.25rem;
}

/* --- Hero -------------------------------------------------- */
.hero {
  background:
    radial-gradient(ellipse 700px 420px at 12% -15%, rgba(232,98,42,.10), transparent 60%),
    radial-gradient(ellipse 600px 500px at 100% 115%, rgba(30,61,110,.55), transparent 55%),
    var(--navy);
  color: var(--white);
  padding: 5rem 0 4.5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
}
.hero h1 em { color: var(--ember); font-style: normal; display: block; }
.hero p.lead {
  color: rgba(255,255,255,.72);
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse 650px 400px at 88% -10%, rgba(232,98,42,.10), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--ridge) 100%);
  padding: 4rem 0;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.68); font-size: 1.05rem; max-width: 600px; }
.page-hero .section-label { color: rgba(255,255,255,.55); }

/* --- Hero stats ---------------------------------------------
   Sits flush inside the hero on the navy background instead of a
   white card overlapping the section edge. */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stats .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ember);
  line-height: 1;
  margin-bottom: .35rem;
}
.hero-stats p {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  line-height: 1.45;
  margin: 0;
}

/* --- Features grid ----------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
.feature-card-main {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card-img { height: 220px; overflow: hidden; flex-shrink: 0; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-body { padding: 2rem; flex: 1; }
.feature-card-body .card-icon { margin-bottom: 1rem; }
.feature-card-body h3 { margin-bottom: .6rem; }

/* --- Page visual (inner-page hero banner) ------------------- */
.page-visual { padding: 2.5rem 0 0; }
.page-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* --- Process ----------------------------------------------- */
.process-visual {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.process-visual img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: .55rem;
  left: .75rem;
  right: .75rem;
  height: 1px;
  background: rgba(13,31,60,.1);
}
.process-step { position: relative; padding-top: 1.75rem; }
.process-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  position: absolute;
  top: 0;
  left: 0;
}
.process-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: .6rem;
}
.process-step p { font-size: .9rem; }

/* --- Service list ------------------------------------------ */
.service-list {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  margin-top: 1.5rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--grey);
  font-size: .95rem;
  line-height: 1.55;
}
.check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(232,98,42,.1);
  border-radius: 50%;
  color: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

/* --- Services panel ---------------------------------------- */
.services-panel {
  background: linear-gradient(150deg, var(--navy) 0%, var(--ridge) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}
.services-panel-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.75rem;
}
.services-panel-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.services-panel-items { display: flex; flex-direction: column; gap: 1.5rem; }
.services-panel-item  { display: flex; gap: 1rem; align-items: flex-start; }
.panel-icon {
  color: var(--ember);
  flex-shrink: 0;
  margin-top: .1rem;
}
.services-panel-item strong {
  color: var(--white);
  display: block;
  margin-bottom: .25rem;
  font-size: .92rem;
}
.services-panel-item span {
  color: rgba(255,255,255,.58);
  font-size: .875rem;
  line-height: 1.6;
}

/* --- Testimonial ------------------------------------------- */
.testimonial-wrap { max-width: 760px; margin: 0 auto; }
.testimonial-card {
  background:
    radial-gradient(ellipse 500px 320px at 90% 0%, rgba(232,98,42,.09), transparent 55%),
    var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
}
.testimonial-card blockquote {
  font-size: 1.08rem;
  line-height: 1.78;
  color: rgba(255,255,255,.88);
  margin-bottom: 1.75rem;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--white);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-author strong { color: var(--white); font-size: .92rem; display: block; }
.testimonial-author span  { color: rgba(255,255,255,.5); font-size: .8rem; }

/* --- CTA band ---------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--ember) 0%, #c94d1a 100%);
  padding: 4.5rem 0;
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: .75rem; }
.cta-band p  { color: rgba(255,255,255,.82); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .btn { background: var(--white); color: var(--ember); border-color: var(--white); }
.cta-band .btn:hover { background: var(--bg); border-color: var(--bg); }

/* --- Footer ------------------------------------------------ */
footer {
  background:
    radial-gradient(ellipse 800px 300px at 15% 0%, rgba(30,61,110,.4), transparent 60%),
    var(--navy);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .brand { color: var(--white); display: inline-block; margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.55); }
footer h4 {
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
footer ul li { margin-bottom: .5rem; }
footer ul li a { font-size: .875rem; transition: color var(--transition); }
footer ul li a:hover { color: var(--ember); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a:hover { color: var(--ember); }

/* --- Forms ------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d4dae8;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--ember); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: .92rem;
}

/* --- Work grid (our work / portfolio page) ------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.work-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(13,31,60,.09);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.work-card-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.work-card-cover--placeholder {
  width: 100%;
  height: 240px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--ridge) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: rgba(255,255,255,.55);
}
.work-card-cover--placeholder .card-icon { margin-bottom: 0; background: rgba(255,255,255,.1); color: var(--white); }
.work-card-cover--placeholder span { font-size: .82rem; font-weight: 600; }
.work-card-body { padding: 2.5rem; display: flex; flex-direction: column; flex: 1; }
.work-card-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ember);
  background: rgba(232,98,42,.1);
  padding: .3rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.work-card-body h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.work-card-role { color: var(--grey); font-size: .95rem; margin-bottom: 1.25rem; }
.work-card-body p.desc { margin-bottom: 1.5rem; }
.work-card-actions { display: flex; gap: .875rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.75rem; }
.work-card-pending { color: var(--grey); font-size: .88rem; font-style: italic; margin-top: auto; padding-top: 1.75rem; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .work-card-img, .work-card-cover--placeholder { height: 200px; }
  .work-card-body { padding: 1.75rem; }
}

/* --- Focus panel (about page) ------------------------------ */
.focus-panel {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.focus-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: .5rem; }
.focus-item { display: flex; gap: 1rem; align-items: flex-start; }
.focus-check {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.focus-item strong { display: block; margin-bottom: .2rem; }
.focus-item span   { color: var(--grey); font-size: .88rem; }

/* --- Scroll reveal ----------------------------------------- */
/* Content is visible by default. Only the `js` class (set by an inline
   script in <head>) opts into the animation — so if JS fails to run or
   the observer misfires, text still renders instead of vanishing. */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: .08s; }
html.js .reveal-delay-2 { transition-delay: .16s; }
html.js .reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner         { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual        { display: none; }
  .hero p.lead        { max-width: 100%; }
  .features-grid      { grid-template-columns: 1fr 1fr; }
  .feature-card-main  { grid-row: auto; grid-column: span 2; }
  .process-grid       { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .grid-2             { grid-template-columns: 1fr; }
  .grid-3             { grid-template-columns: 1fr 1fr; }
  .grid-4             { grid-template-columns: 1fr 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section             { padding: 3.5rem 0; }
  .hero               { padding: 3.5rem 0; }
  .features-grid      { grid-template-columns: 1fr; }
  .feature-card-main  { grid-column: auto; }
  .grid-3, .grid-4    { grid-template-columns: 1fr; }
  .process-grid       { grid-template-columns: 1fr; }
  .process-visual img { height: 200px; }
  .page-visual img    { height: 200px; }
  .hero-stats         { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-grid        { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; gap: .5rem; text-align: center; }
  .form-row           { grid-template-columns: 1fr; }

}

/* ============================================================
   DUAL PILLAR FEATURES — Design + SEO co-equal
   ============================================================ */
.features-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.feature-card-lg {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(13,31,60,.09);
  border-top: 3px solid var(--ember);
  box-shadow: none;
}
.feature-card-lg .feature-card-body { display: flex; flex-direction: column; flex: 1; }
.feature-card-lg .service-list { margin-top: auto; padding-top: 1.25rem; }
/* (feature image + SERP mock removed — cards are now icon + text) */

/* Tertiary (CRM) card — visually quieter, full width */
.feature-tertiary {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(13,31,60,.08);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: none;
}
.feature-tertiary h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.feature-tertiary p { margin: 0; font-size: .92rem; }
.tertiary-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid rgba(13,31,60,.14);
  border-radius: 20px;
  padding: .28rem .7rem;
  white-space: nowrap;
}

/* SEO pillar sub-cards (services page) */
.seo-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.seo-pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-top: 3px solid var(--ember);
  box-shadow: 0 2px 12px rgba(13,31,60,.05);
}
.seo-pillar h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.seo-pillar p { font-size: .9rem; }
.seo-pillar ul { margin-top: 1rem; display: flex; flex-direction: column; gap: .45rem; }
.seo-pillar ul li {
  font-size: .86rem;
  color: var(--grey);
  padding-left: 1.1rem;
  position: relative;
}
.seo-pillar ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
}

/* Numbered step badge (restored) */
.step-num {
  width: 40px;
  height: 40px;
  background: var(--ember);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .seo-pillars { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .features-duo    { grid-template-columns: 1fr; }
  .feature-tertiary {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: left;
  }
}

/* ============================================================
   INDUSTRY PAGES
   ============================================================ */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.industry-card {
  background: var(--white);
  border: 1px solid rgba(13,31,60,.09);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: block;
}
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.industry-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.industry-card p  { font-size: .88rem; margin-bottom: .9rem; }
.industry-card .more { font-size: .82rem; font-weight: 600; color: var(--ember); }

.pain-list { display: flex; flex-direction: column; gap: 1rem; }
.pain-item {
  background: var(--white);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  box-shadow: 0 2px 10px rgba(13,31,60,.05);
}
.pain-item strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.pain-item p { font-size: .87rem; margin: 0; }

.kw-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.kw-chip {
  font-size: .8rem;
  color: var(--grey);
  background: var(--bg);
  border: 1px solid rgba(13,31,60,.08);
  border-radius: 20px;
  padding: .35rem .8rem;
}

@media (max-width: 900px) { .industry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; } }



/* ============================================================
   SITE HEADER
   Single authoritative block. Mobile-first: the mobile panel is
   the default and the horizontal bar is layered on at >=961px.
   Dropdowns are driven by an .open class from JS (click), with
   hover as a progressive enhancement on fine-pointer devices —
   so they work on touch screens of any width.
   ============================================================ */
:root { --header-h: 64px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(13,31,60,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand span { color: var(--ember); }

/* ---- Hamburger ------------------------------------------- */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}
.menu-btn:hover  { background: var(--bg); }
.menu-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.menu-bars { position: relative; display: block; width: 22px; height: 16px; }
.menu-bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .18s ease;
}
.menu-bars i:nth-child(1) { top: 0; }
.menu-bars i:nth-child(2) { top: 7px; }
.menu-bars i:nth-child(3) { top: 14px; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Nav shell (mobile default) --------------------------- */
.primary-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid rgba(13,31,60,.07);
  padding: 1.25rem 1.5rem 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.primary-nav.open { opacity: 1; visibility: visible; transform: none; }
body.nav-open { overflow: hidden; }

.nav-list { display: flex; flex-direction: column; gap: .25rem; }
.nav-list > li { border-bottom: 1px solid rgba(13,31,60,.06); }
.nav-list > li:last-child { border-bottom: none; }

.nav-link,
.nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .9rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.nav-link:hover, .nav-group-btn:hover { color: var(--ember); }
.nav-link.active, .nav-group.is-current > .nav-group-btn { color: var(--ember); }
.nav-link:focus-visible,
.nav-group-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 4px; }

.caret { flex-shrink: 0; transition: transform .22s ease; color: var(--grey); }
.nav-group.open > .nav-group-btn .caret { transform: rotate(180deg); color: var(--ember); }

/* ---- Dropdown panel (mobile: accordion) ------------------- */
.nav-panel {
  display: none;
  padding: .25rem 0 .9rem .9rem;
  margin-bottom: .25rem;
  border-left: 2px solid rgba(232,98,42,.3);
}
.nav-group.open > .nav-panel { display: block; }
.nav-panel a {
  display: block;
  padding: .55rem 0;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-panel strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.nav-panel small {
  display: none;
  font-size: .775rem;
  color: var(--grey);
  line-height: 1.45;
  margin-top: .1rem;
}
.nav-panel a:hover strong { color: var(--ember); }
.nav-panel-all {
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ember);
}

.header-cta {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  white-space: normal;
}

/* ============================================================
   DESKTOP HEADER  (>=961px)
   The bar needs ~780px for 6 items; 961 leaves comfortable room.
   ============================================================ */
@media (min-width: 961px) {
  :root { --header-h: 72px; }

  .menu-btn { display: none; }

  .primary-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: none;
    border: none;
    padding: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list { flex-direction: row; align-items: center; gap: 1.6rem; }
  .nav-list > li { border-bottom: none; position: relative; }

  .nav-link,
  .nav-group-btn {
    width: auto;
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--grey);
    white-space: nowrap;
    gap: .3rem;
  }
  .nav-link:hover, .nav-group-btn:hover,
  .nav-link.active, .nav-group.is-current > .nav-group-btn { color: var(--navy); }
  .nav-group.is-current > .nav-group-btn { font-weight: 600; }

  /* Floating panel */
  .nav-panel {
    display: block;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 292px;
    padding: .5rem;
    margin: 0;
    background: var(--white);
    border: 1px solid rgba(13,31,60,.09);
    border-left: 1px solid rgba(13,31,60,.09);
    border-radius: var(--radius);
    box-shadow: 0 14px 44px rgba(13,31,60,.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav-group.open > .nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  /* Hover bridge so the pointer can travel into the panel */
  .nav-group::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 15px;
  }
  .nav-panel a { padding: .65rem .8rem; }
  .nav-panel a:hover { background: var(--bg); }
  .nav-panel strong { font-size: .875rem; }
  .nav-panel small  { display: block; }
  .nav-panel-all {
    border-bottom: 1px solid rgba(13,31,60,.07);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: .25rem;
    padding-bottom: .6rem !important;
  }

  .header-cta { margin-top: 0; white-space: nowrap; flex-shrink: 0; }
}

/* Hover-open only where a real pointer exists (never on touch) */
@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .nav-group:hover > .nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-group:hover > .nav-group-btn .caret { transform: rotate(180deg); }
}

/* ============================================================
   LEAD MAGNET — guide landing page + gate
   ============================================================ */
.guide-hero {
  background:
    radial-gradient(ellipse 650px 400px at 88% -10%, rgba(232,98,42,.10), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--ridge) 100%);
  padding: 4rem 0 4.5rem;
}
.guide-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3.5rem;
  align-items: start;
}
.guide-intro h1 { color: var(--white); margin-bottom: 1rem; }
.guide-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.guide-points { margin-top: 0; }
.guide-points li { color: rgba(255,255,255,.8); }
.guide-points .check-icon { background: rgba(232,98,42,.22); }
.guide-note {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  max-width: 520px;
}

/* ---- Gate card ------------------------------------------- */
.gate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(13,31,60,.28);
  padding: 2.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.gate-badge {
  display: inline-block;
  background: rgba(232,98,42,.1);
  color: var(--ember);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.gate-title { font-size: 1.5rem; margin-bottom: .5rem; }
.gate-copy  { font-size: .93rem; margin-bottom: 1.5rem; }
.gate-submit {
  width: 100%;
  text-align: center;
  padding: .9rem 1.25rem;
  font-size: 1rem;
  white-space: normal;
}
.gate-fineprint {
  font-size: .78rem;
  color: var(--grey);
  margin-top: .9rem;
  line-height: 1.55;
  text-align: center;
}
.gate-fineprint a { color: var(--ember); font-weight: 600; text-decoration: underline; }
.gate-error {
  background: #fdecea;
  border: 1px solid #f5c2bc;
  color: #a02216;
  font-size: .85rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.gate-tick {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232,98,42,.12);
  color: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.field-invalid { border-color: var(--ember) !important; }

/* ---- Self-assessment list -------------------------------- */
.score-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.score-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.5;
}
.score-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: .22rem;
  border: 2px solid rgba(13,31,60,.2);
  border-radius: 4px;
}

/* ---- Homepage promo band --------------------------------- */
.guide-band {
  background:
    radial-gradient(ellipse 500px 320px at 100% 0%, rgba(232,98,42,.09), transparent 55%),
    var(--navy);
  border-radius: var(--radius);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.guide-band .section-label { color: var(--ember); }
.guide-band h2 { color: var(--white); margin-bottom: .6rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.guide-band p  { color: rgba(255,255,255,.72); max-width: 560px; margin: 0; font-size: .95rem; }
.guide-band-actions { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.guide-band-actions .btn { text-align: center; }
.guide-band-meta {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-align: center;
}

@media (max-width: 900px) {
  .guide-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gate-card { position: static; }
  .guide-band { grid-template-columns: 1fr; gap: 1.75rem; padding: 2rem; }
}
@media (max-width: 640px) {
  .gate-card { padding: 1.75rem 1.5rem; }
}

/* Guide unlock — dual action buttons */
.gate-actions { display: flex; flex-direction: column; gap: .6rem; }
.gate-filesize { display: block; font-size: .72rem; font-weight: 500; opacity: .7; margin-top: .1rem; }

/* ============================================================
   LONG-FORM GUIDE ARTICLE
   ============================================================ */
.guide-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Sticky table of contents */
.guide-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  font-size: .875rem;
}
.guide-toc-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: .9rem;
}
.guide-toc-label::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--grey);
  opacity: .5;
  flex-shrink: 0;
}
.guide-toc ol { list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; margin-bottom: .1rem; }
.guide-toc a {
  display: block;
  padding: .45rem .7rem .45rem 2rem;
  border-radius: var(--radius-sm);
  color: var(--grey);
  line-height: 1.4;
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: .7rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ember);
  opacity: .65;
}
.guide-toc a:hover { background: var(--bg); color: var(--navy); }
.guide-toc-pdf {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(13,31,60,.1);
}

/* Article body */
.guide-article { max-width: 720px; }
.guide-article > section { padding: 0; margin-bottom: 3.5rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.guide-article h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  margin-bottom: 1rem;
  padding-top: .5rem;
}
.guide-article h3 {
  font-size: 1.1rem;
  margin: 2rem 0 .75rem;
}
.guide-article p { margin-bottom: 1.15rem; }
.guide-article p:last-child { margin-bottom: 0; }
.guide-article strong { color: var(--navy); font-weight: 600; }

.guide-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(232,98,42,.1);
  padding: .3rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.guide-lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--grey);
  padding-left: 1.1rem;
  border-left: 3px solid var(--ember);
  margin-bottom: 2rem !important;
}

/* Numbered steps */
.guide-steps { counter-reset: gstep; margin: 1.5rem 0; }
.guide-step {
  counter-increment: gstep;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
}
.guide-step::before {
  content: counter(gstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 2.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ember);
  opacity: .45;
}
.guide-step strong { display: block; margin-bottom: .3rem; color: var(--navy); }
.guide-step p { margin-bottom: 0; font-size: .95rem; }

/* Callout boxes */
.callout {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-left: 4px solid var(--ember);
  background: var(--bg);
}
.callout-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ember);
  margin-bottom: .6rem;
}
.callout-title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--ember);
  flex-shrink: 0;
}
.callout p { font-size: .95rem; margin-bottom: .75rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--dark {
  background: var(--navy);
  border-left-color: var(--ember);
}
.callout--dark p { color: rgba(255,255,255,.78); }
.callout--dark strong { color: var(--white); }
.callout--dark a { color: var(--ember); font-weight: 600; text-decoration: underline; }
.callout--rule { background: rgba(232,98,42,.07); }

/* Tables */
.guide-table-wrap { overflow-x: auto; margin: 1.75rem 0; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
.guide-table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  padding: .7rem .9rem;
  border-bottom: 2px solid rgba(13,31,60,.12);
  vertical-align: bottom;
}
.guide-table td {
  padding: .9rem;
  border-bottom: 1px solid rgba(13,31,60,.08);
  color: var(--grey);
  line-height: 1.55;
  vertical-align: top;
}
.guide-table td:first-child { color: var(--navy); font-weight: 600; white-space: nowrap; }
.guide-table tr:last-child td { border-bottom: none; }

/* Self-assessment / checklists */
.score-check { counter-reset: sc; margin: 1.5rem 0; }
.score-check li {
  counter-increment: sc;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(13,31,60,.07);
  font-size: .95rem;
  color: var(--grey);
  line-height: 1.5;
}
.score-check li:last-child { border-bottom: none; }
.score-check li::before {
  content: counter(sc);
  flex-shrink: 0;
  width: 1.6rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ember);
  opacity: .6;
  padding-top: .1rem;
}
.score-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .92rem;
}
.score-band dt { font-weight: 800; color: var(--ember); white-space: nowrap; }
.score-band dd { color: var(--grey); line-height: 1.55; }

.tear-list { margin: 1.25rem 0; }
.tear-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .5rem 0;
  font-size: .93rem;
  color: var(--grey);
  line-height: 1.5;
}
.tear-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: .2rem;
  border: 2px solid rgba(13,31,60,.25);
  border-radius: 4px;
}

/* Guide hero */
.guide-head {
  background:
    radial-gradient(ellipse 650px 400px at 88% -10%, rgba(232,98,42,.10), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--ridge) 100%);
  padding: 4rem 0 3.5rem;
}
.guide-head h1 { color: var(--white); margin-bottom: 1rem; max-width: 780px; }
.guide-head .guide-sub { margin-bottom: 1.75rem; }
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.guide-meta .btn { margin-right: .5rem; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; }
  .guide-toc {
    position: static;
    background: var(--white);
    border: 1px solid rgba(13,31,60,.08);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
  }
  .guide-article { max-width: none; }
}
@media (max-width: 640px) {
  .callout { padding: 1.25rem 1.35rem; }
  .guide-step { padding-left: 2.6rem; }
}
