/* ==========================================================================
   ProstaLife UK - Modern, Accessible, Compliant Healthcare Stylesheet
   Tailored for UK Men's Health Editorial Platform
   ========================================================================== */

:root {
  --primary: #1e3a8a;          /* Deep Navy */
  --primary-hover: #172554;
  --secondary: #0284c7;        /* Medical Cyan / Blue */
  --accent: #0d9488;           /* Teal */
  --accent-light: #f0fdfa;
  --text-main: #0f172a;        /* Slate 900 */
  --text-body: #334155;        /* Slate 700 */
  --text-muted: #64748b;       /* Slate 500 */
  --bg-page: #f8fafc;          /* Slate 50 */
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  --success: #15803d;
  --warning: #b45309;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1180px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Base Elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Top Editorial & Compliance Banner (Google Ads Trust Metric)
   ========================================================================== */
.compliance-banner {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid #1e293b;
  line-height: 1.4;
}

.compliance-banner a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
}

.compliance-banner a:hover {
  color: #7dd3fc;
}

/* Top contact strip */
.top-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-strip-left, .top-strip-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-badge-uk {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-area:hover {
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-title span {
  color: var(--secondary);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.25;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: #eff6ff;
  color: var(--primary);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-teal {
  background-color: #ccfbf1;
  color: #0f766e;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-subtitle {
  color: var(--secondary);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.hero-title {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: #93c5fd;
  text-underline-offset: 6px;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-trust-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-main-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 280px;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-main);
}

.floating-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.stats-strip {
  background: var(--primary);
  color: #ffffff;
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item h3 {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: #93c5fd;
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.35;
}

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #f1f5f9;
}

.section-white {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 4 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.pillar-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
}

/* ==========================================================================
   Interactive Self-Check Widget (Quality & Session Duration Engine)
   ========================================================================== */
.widget-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.widget-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.quiz-option:hover {
  border-color: var(--secondary);
  background-color: #f0f9ff;
}

.quiz-option.selected {
  border-color: var(--primary);
  background-color: #eff6ff;
  color: var(--primary);
  font-weight: 600;
}

.quiz-option input[type="radio"] {
  margin-right: 1rem;
  accent-color: var(--primary);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.quiz-progress-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.quiz-result-box {
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  margin-top: 1.5rem;
}

.quiz-result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quiz-result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Hydration Calculator Widget
   ========================================================================== */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 1.5rem;
}

.calc-input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.calc-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 1rem;
  background-color: #ffffff;
  color: var(--text-main);
}

.calc-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.calc-timetable {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
}

.timetable-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.timetable-item:last-child {
  border-bottom: none;
}

.time-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.time-action strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-main);
}

.time-action span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Research Articles / Guides Grid
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.article-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-card-body h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.article-card-body h3 a:hover {
  color: var(--primary);
}

.article-card-body p {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
}

.author-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Red Flag Notice Box (Crucial for Medical Compliance)
   ========================================================================== */
.notice-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2.5rem 0;
}

.notice-box h4 {
  color: #991b1b;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notice-box p {
  color: #7f1d1d;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.notice-box ul {
  padding-left: 1.25rem;
  color: #7f1d1d;
  font-size: 0.875rem;
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.15s;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
  color: var(--secondary);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Reader Testimonials / Trust Proof
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: #f59e0b;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.user-details strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-main);
}

.user-details span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About Page & Team Cards
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #eff6ff;
}

.team-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-group {
  margin-bottom: 1.25rem;
}

.contact-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
  font-size: 0.875rem;
}

.form-status.success {
  display: block;
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   Article Deep Dive Page Typography
   ========================================================================== */
.article-header {
  background: #ffffff;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-header-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-main-title {
  font-size: 2.35rem;
  line-height: 1.22;
  margin-bottom: 1rem;
}

.article-content-body {
  max-width: 820px;
  margin: 2.5rem auto 4rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1e293b;
}

.article-content-body h2 {
  font-size: 1.6rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e2e8f0;
}

.article-content-body h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content-body ul, .article-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content-body li {
  margin-bottom: 0.5rem;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.citation-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.citation-box h5 {
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-disclaimer-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #94a3b8;
}

.footer-disclaimer-box strong {
  color: #f1f5f9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   Cookie Banner (PECR / UK GDPR)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 520px;
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: none;
  border: 1px solid #334155;
  font-size: 0.875rem;
}

.cookie-banner.visible {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-cookie-accept {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-cookie-accept:hover {
  background: #0369a1;
}

.btn-cookie-decline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-cookie-decline:hover {
  background: #1e293b;
  color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: opacity 0.2s, transform 0.2s;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-main-img {
    height: 380px;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }
  .site-nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .pillars-grid, .articles-grid, .testimonials-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
