/* ══════════════════════════════════════
   Making Tax Digital UK — Shared Styles
   ══════════════════════════════════════ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-primary:  #1a56a0;
  --blue-dark:     #0f3460;
  --blue-accent:   #dbeafe;
  --blue-light:    #f0f7ff;
  --blue-faint:    #f8fafc;
  --text-body:     #000000;
  --text-mid:      #1a1a1a;
  --text-muted:    #4a4a4a;
  --border:        #e5e7eb;
  --green:         #16a34a;
  --green-light:   #f0fdf4;
  --green-border:  #bbf7d0;
  --white:         #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 19px;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
@media (max-width: 768px) {
  body { font-size: 16px; }
}

/* ── Typography helpers ── */
h1, h2, h3, h4 {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.2;
}

/* ── Top Bar ── */
.topbar {
  height: 8px;
  background: var(--blue-dark);
}

/* ── Layout helpers ── */
.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.container-wide {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.container-narrow {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ── Section spacing ── */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

/* ── Section backgrounds ── */
.bg-white   { background: var(--white); }
.bg-faint   { background: var(--blue-faint); }
.bg-light   { background: var(--blue-light); }
.bg-accent  { background: var(--blue-accent); }
.bg-dark    { background: var(--blue-dark); }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-primary-block {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.btn-primary-block:hover { background: var(--blue-dark); }

/* ── Eyebrow pills ── */
.pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.pill-blue {
  background: var(--blue-accent);
  color: var(--blue-primary);
  border: 1px solid var(--blue-primary);
}
.pill-green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-border);
}

/* ── Dividers ── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Section headings ── */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.section-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .section-heading h2 { font-size: 2.25rem; }
}
.section-heading p {
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* ════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════ */
.site-nav {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.nav-brand-icon { font-size: 1.125rem; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.625rem 0.75rem; }
}

/* ════════════════════════════════════
   HERO
   ════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, rgba(15,52,96,0.88) 0%, rgba(26,86,160,0.75) 100%), url('/images/hero-home.jpg') center/cover no-repeat;
  padding: 3.5rem 0 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0 5.5rem; }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 0.75rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .hero-sub { font-size: 1.1875rem; }
}

.hero-body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
}
.hero-trust span { display: flex; align-items: center; gap: 0.375rem; }

/* ════════════════════════════════════
   PROSE TYPOGRAPHY
   ════════════════════════════════════ */
.prose h2 { font-size: 1.5rem; font-weight: 700; color: var(--blue-dark); margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.125rem; font-weight: 600; color: var(--blue-dark); margin: 1.75rem 0 0.75rem; }
.prose p { font-size: 1.0625rem; color: var(--text-mid); margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { font-size: 1.0625rem; color: var(--text-mid); margin-bottom: 0.375rem; }
.prose strong { color: var(--text-body); }
.prose a { color: var(--blue-primary); font-weight: 500; }
.prose a:hover { color: var(--blue-dark); }
.prose .callout {
  border-left: 4px solid var(--blue-primary);
  background: var(--blue-light);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.prose .callout p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.prose .callout p:last-child { margin-bottom: 0; }

/* ── Callout boxes (standalone) ── */
.callout {
  border-left: 4px solid var(--blue-primary);
  background: var(--blue-light);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.callout-icon { flex-shrink: 0; font-size: 1.125rem; margin-top: 0.125rem; }
.callout p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }
.callout p strong { color: var(--text-body); }
.callout-yellow {
  border-left-color: #ca8a04;
  background: #fefce8;
}
.callout-yellow p { color: #713f12; }
.callout-green {
  border-left-color: var(--green);
  background: var(--green-light);
}
.callout-green p { color: #166534; }

/* ════════════════════════════════════
   CTA STRIP
   ════════════════════════════════════ */
.cta-strip {
  background: var(--blue-accent);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .cta-strip h2 { font-size: 2rem; }
}
.cta-strip p {
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 0.9375rem;
}

/* ════════════════════════════════════
   FOOTER
   ════════════════════════════════════ */
.site-footer {
  background: var(--blue-dark);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-brand p {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand span {
  display: block;
  font-size: 0.75rem;
  color: #93c5fd;
  margin-top: 0.25rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.875rem;
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--white); }
.footer-disc {
  text-align: center;
  margin-top: 1.5rem;
}
.footer-disc p {
  font-size: 0.75rem;
  color: #93c5fd;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.footer-disc p + p { margin-top: 0.5rem; }
.footer-disc a { color: #bfdbfe; }
.footer-disc a:hover { color: var(--white); }
.footer-disclaimer {
  text-align: center;
  margin-top: 0.25rem;
}
.footer-disclaimer p {
  font-size: 0.75rem;
  color: #93c5fd;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.footer-disclaimer p + p { margin-top: 0.5rem; }
.footer-disclaimer a { color: #bfdbfe; }
.footer-disclaimer a:hover { color: var(--white); }

/* ── Responsive type ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.875rem; }
  .section-heading h2 { font-size: 1.625rem; }
}
