/* Farmeci Blog — Design System
   Brand: NHS / NICE / Patient.info-style — clean, trustworthy, plain English.
*/

:root {
  --c-primary: #4885B7;
  --c-bright: #0690FE;
  --c-light: #DAEFFF;
  --c-dark: #001E36;
  --c-black: #000000;
  --c-white: #FFFFFF;

  --c-ink: #001E36;
  --c-ink-soft: #3a5773;
  --c-muted: #6b7c91;
  --c-line: #e3edf6;
  --c-bg: #ffffff;
  --c-bg-soft: #f5fafe;

  --font-display: 'League Spartan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 30, 54, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 30, 54, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 30, 54, 0.12);

  --container: 1140px;
  --container-narrow: 760px;
}

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

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

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

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

a {
  color: var(--c-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--c-dark);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 64px 0; }
.section--lg { padding: 96px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--light { background: var(--c-light); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-black);
}
.site-logo svg { height: 32px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-dark);
  text-decoration: none;
}
.site-nav a:hover { color: var(--c-bright); }
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--c-bright);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav .nav-cta:hover { background: #0078dd; color: var(--c-white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--c-dark);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    padding: 8px 24px 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .site-nav .nav-cta { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(6, 144, 254, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(72, 133, 183, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--c-light) 100%);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bright);
  background: var(--c-white);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 144, 254, 0.2);
  margin-bottom: 24px;
}
.hero h1 { max-width: 18ch; margin-bottom: 18px; }
.hero p.lead {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--c-ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--c-bright); color: var(--c-white); }
.btn--primary:hover { background: #0078dd; color: var(--c-white); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-dark);
  border: 1.5px solid var(--c-dark);
}
.btn--ghost:hover { background: var(--c-dark); color: var(--c-white); }
.btn--white { background: var(--c-white); color: var(--c-dark); }
.btn--white:hover { background: var(--c-light); }

/* Category pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pill:hover, .pill.is-active {
  background: var(--c-bright);
  color: var(--c-white);
  border-color: var(--c-bright);
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6, 144, 254, 0.3);
}
.post-card__cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(6, 144, 254, 0.15), rgba(72, 133, 183, 0.20)),
    var(--c-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.post-card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-bright);
  margin-bottom: 10px;
}
.post-card h3 { font-size: 1.15rem; margin: 0 0 10px; line-height: 1.3; }
.post-card p { color: var(--c-ink-soft); font-size: 0.95rem; margin: 0 0 16px; }
.post-card__meta {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Featured post */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } }
.featured__cover {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(600px 300px at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--c-bright), var(--c-primary));
  position: relative;
}
.featured__cover::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 80%, rgba(255, 255, 255, 0.15), transparent 50%);
}
.featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bright);
  margin-bottom: 12px;
}
.featured h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); margin: 0 0 14px; }
.featured p { color: var(--c-ink-soft); margin: 0 0 20px; }

/* Trust badges */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-badge { display: flex; align-items: center; gap: 12px; }
.trust-badge__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-light);
  color: var(--c-bright);
  display: flex; align-items: center; justify-content: center;
}
.trust-badge__icon svg { width: 22px; height: 22px; }
.trust-badge__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-dark);
  font-size: 0.95rem;
  line-height: 1.25;
}
.trust-badge__sub { color: var(--c-muted); font-size: 0.8rem; }

/* Subscribe */
.subscribe {
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.subscribe h2 { color: var(--c-white); margin-bottom: 12px; }
.subscribe p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0 auto 28px; }
.subscribe__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe__form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.10);
  color: var(--c-white);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.subscribe__form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.subscribe__form input[type="email"]:focus { background: rgba(255, 255, 255, 0.15); outline-color: var(--c-bright); }
.subscribe__form button { white-space: nowrap; }
.subscribe__note { margin-top: 16px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.subscribe__success {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 18px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe__success.is-visible { display: block; }
@media (max-width: 540px) { .subscribe__form { flex-direction: column; } }

/* Footer */
.site-footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--c-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-white);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 10px; font-size: 0.92rem; }
.footer-brand p { max-width: 38ch; font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); margin: 16px 0; }
.footer-reg {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}

/* Footer logo on dark needs white treatment */
.footer-logo svg .logo-wordmark { fill: var(--c-white); }

/* === BLOG ARTICLE === */
.article-wrap { padding: 56px 0 96px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-bright); }
.breadcrumb span[aria-hidden="true"] { color: var(--c-line); }

.article-header { margin-bottom: 32px; }
.article-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bright);
  background: var(--c-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  text-decoration: none;
}
.article-header h1 { margin: 0 0 18px; max-width: 22ch; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.article-byline strong { color: var(--c-dark); font-weight: 600; }
.article-byline .dot { color: var(--c-line); }

.quick-answer {
  margin: 28px 0;
  background: var(--c-light);
  border-left: 4px solid var(--c-bright);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.quick-answer__label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--c-bright);
  margin-bottom: 8px;
}
.quick-answer p { margin: 0; font-size: 1.05rem; color: var(--c-dark); }

.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.6rem; margin-top: 2.2em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8em; color: var(--c-dark); }
.article-body ul li, .article-body ol li { margin-bottom: 0.4em; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--c-primary);
  background: var(--c-bg-soft);
  font-style: italic;
  color: var(--c-ink-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.safety-callout {
  margin: 32px 0;
  background: var(--c-light);
  border-left: 4px solid var(--c-bright);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.safety-callout__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.safety-callout__title svg { width: 20px; height: 20px; color: var(--c-bright); }
.safety-callout p { margin: 0; color: var(--c-ink); font-size: 0.97rem; }

.faq { margin-top: 48px; }
.faq h2 { margin-bottom: 18px; }
.faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--c-white);
}
.faq details[open] { border-color: rgba(6, 144, 254, 0.3); box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--c-bright);
  flex: none;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 14px 0 0; color: var(--c-ink-soft); }

/* Consultation CTA at end of article */
.cta-card {
  margin: 56px 0 0;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--c-bright) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-card h2 { color: var(--c-white); margin: 0 0 12px; font-size: 1.6rem; }
.cta-card p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 50ch;
  margin: 0 auto 24px;
  font-size: 1.02rem;
}
.cta-card .btn { background: var(--c-white); color: var(--c-dark); }
.cta-card .btn:hover { background: var(--c-light); color: var(--c-dark); }

/* Related posts */
.related { margin-top: 64px; }
.related h2 { font-size: 1.5rem; margin-bottom: 24px; }

/* Category landing page */
.cat-hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--c-light), #fff);
}
.cat-hero .container { max-width: 880px; }
.cat-hero h1 { margin-bottom: 16px; }
.cat-hero p { color: var(--c-ink-soft); font-size: 1.1rem; max-width: 60ch; }
.cat-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* About + team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 800px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  padding: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-dark);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.team-card__role { color: var(--c-bright); font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.team-card__reg { color: var(--c-muted); font-size: 0.85rem; }

/* Prose pages (legal, contact, about body) */
.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 48px 0 80px;
}
.prose h1 { margin-bottom: 12px; }
.prose .updated { color: var(--c-muted); font-size: 0.9rem; margin-bottom: 32px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-card, .subscribe, .related, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
