/* ==========================================================================
   Jab Journey — jabjourney.co.uk
   Clean modern health/wellness. Mobile-first.
   ========================================================================== */

:root {
  --teal:        #1a5f5a;
  --teal-dark:   #124440;
  --teal-light:  #2d817a;
  --amber:       #e8a045;
  --amber-dark:  #c9832c;
  --bg:          #f8f8f6;
  --bg-alt:      #ffffff;
  --ink:         #1a1a1a;
  --ink-soft:    #4a4a4a;
  --ink-mute:    #6e6e6e;
  --rule:        #e2e1dc;
  --rule-soft:   #eeede9;

  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:  1120px;
  --read:  720px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(26,26,26,.06), 0 8px 24px rgba(26,26,26,.05);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin-inline: auto; }

.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;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 66px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: .32em;
}
.brand-mark { color: var(--teal); }
.brand-dot {
  width: .42em; height: .42em; border-radius: 50%;
  background: var(--amber); display: inline-block; align-self: center;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 8px 12px; border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--rule-soft); color: var(--ink); }
.nav a.is-active { color: var(--teal); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 6px; padding: 7px 10px; cursor: pointer; color: var(--ink);
  font-size: 1.05rem; line-height: 1;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; padding: 8px 20px 16px;
    gap: 0; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  background: linear-gradient(170deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 68px 0 62px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,69,.18) 0%, transparent 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber); margin: 0 0 18px;
}

.hero-title {
  font-size: clamp(2rem, 5.6vw, 3.3rem);
  margin: 0 0 20px; color: #fff; max-width: 15ch;
}
.hero-title em { font-style: normal; color: var(--amber); }

.hero-sub {
  font-size: 1.1rem; line-height: 1.65; color: rgba(255,255,255,.88);
  max-width: 56ch; margin: 0 0 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- buttons - */

.btn {
  display: inline-block; font-family: var(--font-display);
  font-size: .97rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 26px; border-radius: 7px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-amber { background: var(--amber); color: #1a1a1a; }
.btn-amber:hover { background: var(--amber-dark); color: #1a1a1a; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); color: #fff; }

/* ----------------------------------------------------------- stats strip - */

.stats {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; text-align: center;
}
.stat-value {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 700; color: var(--teal); line-height: 1.1; letter-spacing: -0.03em;
}
.stat-label {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 6px;
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
}

/* -------------------------------------------------------------- sections - */

.section { padding: 62px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--rule); }

.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-eyebrow {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--amber-dark);
  margin: 0 0 10px;
}
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.15rem); margin: 0 0 12px; }
.section-sub { color: var(--ink-soft); font-size: 1.03rem; margin: 0; }

/* ----------------------------------------------------------- intro block - */

.intro-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 46px; align-items: start;
}
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; gap: 30px; } }

.intro-body p { margin: 0 0 16px; color: var(--ink-soft); }
.intro-body p:last-child { margin-bottom: 0; }
.intro-body strong { color: var(--ink); }

.intro-card {
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.intro-card h3 { font-size: 1.05rem; margin: 0 0 14px; }
.intro-card ul { margin: 0; padding-left: 0; list-style: none; }
.intro-card li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: .95rem; color: var(--ink-soft);
}
.intro-card li:last-child { margin-bottom: 0; }
.intro-card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
}

/* ------------------------------------------------------------ post cards - */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.post-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3d2cc;
}

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px;
}
.pill {
  font-family: var(--font-display); font-size: .7rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  background: rgba(26,95,90,.09); color: var(--teal);
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.post-time { font-size: .8rem; color: var(--ink-mute); }

.post-card h3 { font-size: 1.16rem; margin: 0 0 10px; letter-spacing: -0.02em; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal); }

.post-excerpt {
  font-size: .94rem; color: var(--ink-soft); margin: 0 0 18px; flex-grow: 1;
}
.post-more {
  font-family: var(--font-display); font-size: .89rem; font-weight: 600;
  color: var(--teal); text-decoration: none;
}
.post-more:hover { text-decoration: underline; }

/* ---------------------------------------------------------- filter chips - */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-chip {
  font-family: var(--font-display); font-size: .87rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--rule); color: var(--ink-soft);
  padding: 8px 16px; border-radius: 100px; cursor: pointer;
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--teal); color: var(--teal); }
.filter-chip.is-active {
  background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600;
}

.no-results {
  text-align: center; padding: 42px 0; color: var(--ink-mute); display: none;
}

/* -------------------------------------------------------------- articles - */

.article-header { padding: 46px 0 30px; border-bottom: 1px solid var(--rule); }
.article-title {
  font-size: clamp(1.75rem, 4.6vw, 2.6rem); margin: 12px 0 16px; letter-spacing: -0.03em;
}
.article-standfirst {
  font-size: 1.13rem; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.6;
}
.article-byline {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: .88rem; color: var(--ink-mute);
}

.article-body { padding: 34px 0 12px; }
.article-body h2 {
  font-size: 1.52rem; margin: 44px 0 14px; padding-top: 6px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.17rem; margin: 30px 0 10px; }
.article-body p { margin: 0 0 19px; }
.article-body ul, .article-body ol { margin: 0 0 19px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { font-weight: 650; }

.article-body blockquote {
  margin: 26px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amber);
  font-size: 1.06rem; color: var(--ink-soft); font-style: italic;
}

.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 38px 0; }

.table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.article-body table {
  border-collapse: collapse; width: 100%; min-width: 480px; font-size: .93rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--rule); padding: 10px 13px; text-align: left; vertical-align: top;
}
.article-body th {
  background: rgba(26,95,90,.06); font-family: var(--font-display);
  font-weight: 600; color: var(--teal-dark);
}
.article-body tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }

/* --------------------------------------------------------- callout boxes - */

.callout {
  border-radius: var(--radius); padding: 18px 22px; margin: 26px 0;
  font-size: .95rem; line-height: 1.62;
}
.callout p { margin: 0 0 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout-title {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px;
}

.callout-medical {
  background: #fdf6ea; border: 1px solid #f0dcb8; color: #6b4d1c;
}
.callout-medical .callout-title { color: var(--amber-dark); }

.callout-affiliate {
  background: var(--bg-alt); border: 1px solid var(--rule); color: var(--ink-mute);
  font-size: .88rem;
}
.callout-affiliate .callout-title { color: var(--ink-soft); }

.callout-key {
  background: rgba(26,95,90,.06); border: 1px solid rgba(26,95,90,.18); color: var(--ink-soft);
}
.callout-key .callout-title { color: var(--teal); }

/* ------------------------------------------------------------ share/bio -- */

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 34px 0; }
.share-label {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
  margin-right: 4px;
}
.share a {
  font-family: var(--font-display); font-size: .87rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--rule); color: var(--ink-soft);
  padding: 8px 15px; border-radius: 100px; text-decoration: none;
  transition: all .15s ease;
}
.share a:hover { border-color: var(--teal); color: var(--teal); }

.author-bio {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 24px; margin: 30px 0;
}
.author-avatar {
  flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(150deg, var(--teal), var(--teal-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.author-bio h4 { font-size: 1rem; margin: 0 0 6px; }
.author-bio p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.related { margin: 40px 0 10px; }
.related h3 { font-size: 1.2rem; margin-bottom: 18px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { border-top: 1px solid var(--rule); }
.related-list li:last-child { border-bottom: 1px solid var(--rule); }
.related-list a {
  display: block; padding: 15px 0; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 500;
}
.related-list a:hover { color: var(--teal); }
.related-list .pill { margin-right: 10px; }

/* ------------------------------------------------------------- progress -- */

.progress-hero {
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 30px; margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.progress-bar-outer {
  background: var(--rule-soft); border-radius: 100px; height: 15px;
  overflow: hidden; margin: 20px 0 10px;
}
.progress-bar-inner {
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  height: 100%; border-radius: 100px; transition: width .8s ease;
}
.progress-scale {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: var(--ink-mute);
}

.weigh-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.weigh-table th, .weigh-table td {
  border-bottom: 1px solid var(--rule); padding: 12px 10px; text-align: left;
}
.weigh-table th {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute);
}
.weigh-empty { color: var(--ink-mute); font-style: italic; }

/* ------------------------------------------------------------ resources -- */

.kit-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.kit-item {
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
}
.kit-item h3 { font-size: 1.04rem; margin: 0 0 8px; }
.kit-item .kit-why {
  font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; flex-grow: 1;
}
.kit-price {
  font-family: var(--font-display); font-size: .84rem; font-weight: 600;
  color: var(--amber-dark); margin: 0 0 14px;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding: 11px 0 11px 32px;
  border-bottom: 1px solid var(--rule-soft); font-size: .96rem;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 4px; top: 11px;
  color: var(--teal); font-weight: 700;
}

/* ------------------------------------------------------------ newsletter - */

.newsletter {
  background: linear-gradient(165deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff; padding: 54px 0;
}
.newsletter-inner { max-width: 620px; margin-inline: auto; text-align: center; }
.newsletter h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,.86); margin: 0 0 26px; }

.signup-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.signup-form input[type="email"] {
  flex: 1 1 280px; min-width: 0;
  padding: 13px 16px; font-size: 1rem; font-family: var(--font-body);
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 7px;
  background: rgba(255,255,255,.1); color: #fff;
}
.signup-form input[type="email"]::placeholder { color: rgba(255,255,255,.6); }
.signup-form input[type="email"]:focus {
  outline: none; border-color: var(--amber); background: rgba(255,255,255,.16);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-note { font-size: .82rem; color: rgba(255,255,255,.62); margin: 16px 0 0; }
.form-msg { margin: 14px 0 0; font-size: .93rem; font-weight: 500; min-height: 1.4em; }
.form-msg.ok { color: #a8e6c8; }
.form-msg.err { color: #ffc0b0; }

/* Inline (light) variant used at the end of articles */
.newsletter-inline {
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px; margin: 34px 0; text-align: center;
}
.newsletter-inline h3 { font-size: 1.2rem; margin-bottom: 8px; }
.newsletter-inline p { color: var(--ink-soft); margin: 0 0 20px; font-size: .95rem; }
.newsletter-inline .signup-form input[type="email"] {
  border-color: var(--rule); background: var(--bg); color: var(--ink);
}
.newsletter-inline .signup-form input[type="email"]::placeholder { color: var(--ink-mute); }
.newsletter-inline .signup-form input[type="email"]:focus { border-color: var(--teal); background: #fff; }
.newsletter-inline .form-note { color: var(--ink-mute); }
.newsletter-inline .form-msg.ok { color: var(--teal); }
.newsletter-inline .form-msg.err { color: #b3402a; }

/* ------------------------------------------------------------- ad slots -- */

.ad-slot { margin: 34px auto; text-align: center; min-height: 0; }
.ad-slot:empty { display: none; }

/* ---------------------------------------------------------------- footer - */

.site-footer {
  background: var(--ink); color: rgba(255,255,255,.72);
  padding: 50px 0 26px; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; margin-bottom: 34px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

.footer-brand {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: #fff; margin: 0 0 10px;
}
.footer-about { margin: 0; max-width: 42ch; }

.site-footer h4 {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 12px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 22px;
  font-size: .84rem; color: rgba(255,255,255,.55);
}
.footer-legal p { margin: 0 0 10px; }
.footer-legal p:last-child { margin-bottom: 0; }
