/* ==========================================================================
   style.css — “Gov-style” inspired (independent service) + fuller layout
   IMPORTANT: Not GOV.UK branding. Clean, high-trust, accessible styling.
   ========================================================================== */

:root{
  /* Neutral “official” palette (not GOV.UK exact) */
  --ink: #0b0c0c;
  --text: #111827;
  --muted: #4b5563;
  --panel: #f8fafc;
  --bg: #ffffff;
  --border: #d1d5db;

  /* Accent (not GOV.UK exact) */
  --accent: #1d4ed8;
  --accent-2: #0ea5e9;
  --success: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;

  /* Focus */
  --focus: #ffdd00;
  --focus-ink: #0b0c0c;

  /* Layout */
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 8px 20px rgba(0,0,0,.08);

  /* Wider content to fill the screen more */
  --max: 1280px;

  /* Typography */
  --font: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

/* Base reset */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;

  /* Bigger overall */
  font-size: 17px;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; height:auto; }
a{ color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover{ text-decoration-thickness: 3px; }

a:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--focus);
  background: var(--focus);
  color: var(--focus-ink);
}

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

@media(min-width:768px){
  .container{ padding: 0 22px; }
}
@media(min-width:1200px){
  .container{ padding: 0 26px; }
}

/* Header / Nav */
header{
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid rgba(255,255,255,.12);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  color:#fff;
  text-decoration:none;
  letter-spacing:.2px;
  white-space: nowrap;
  font-size: 18px; /* bigger */
}

.nav__links{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav__links a{
  color:#fff;
  text-decoration:none;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav__links a:hover{
  background: rgba(255,255,255,.10);
}

.nav__links a:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--focus);
  background: var(--focus);
  color: var(--focus-ink);
}

/* Optional independent disclaimer bar */
.notice-bar{
  background: #fef9c3;
  color: var(--ink);
  border-bottom: 2px solid #f59e0b;
  padding: 10px 0;
  font-weight: 750;
}
.notice-bar small{
  display:block;
  font-weight: 500;
  color: #374151;
}

/* Hero (tighter + bigger) */
.hero{
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 75%);
  border-bottom: 1px solid var(--border);

  /* less whitespace */
  padding: 20px 0 12px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.hero .sub{
  margin: 0;
  max-width: 78ch;
  color: #374151;
  font-size: 18px;
}

@media(min-width:768px){
  .hero{
    padding: 24px 0 12px;
  }
  .hero .sub{
    font-size: 19px;
  }
}

/* Sections (less whitespace) */
section{ padding: 24px 0; }

@media(min-width:768px){
  section{ padding: 28px 0; }
}

section h2{
  color: var(--ink);
  font-size: 32px; /* bigger */
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

section .sub{
  margin: 0 0 14px; /* tighter */
  color: var(--muted);
  font-size: 16px;
}

/* Cards & grids (denser, fills screen) */
.grid-3{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width:900px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

@media(min-width:1200px){
  .grid-3{ gap: 20px; }
}

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);

  /* bigger presence */
  padding: 22px;
}

.card .icon{
  font-size: 30px;
  margin-bottom: 8px;
}

.card .meta{
  font-size: 13px;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.card h3{
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.card p{
  margin: 0 0 12px;
  color: var(--muted);
}

.features{
  padding-left: 18px;
  margin: 0 0 14px;
  color: #374151;
}

.bottom{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 10px;
  margin-top: 10px;
}

/* Buttons (bigger) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  /* bigger */
  padding: 13px 16px;

  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 850;
  cursor:pointer;
  text-decoration:none;
  line-height: 1;
  user-select:none;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:active{ transform: translateY(1px); }

.btn--primary,
.btn.primary{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover,
.btn.primary:hover{
  filter: brightness(.95);
}

.btn--secondary,
.btn.secondary{
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--secondary:hover,
.btn.secondary:hover{
  background: #f3f4f6;
}

.btn.ghost,
.btn--ghost{
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  text-decoration: underline;
}

.btn:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--focus);
  background: var(--focus);
  color: var(--focus-ink);
  border-color: var(--focus-ink);
}

/* Footer */
footer{
  border-top: 1px solid var(--border);
  background: #f8fafc;
  padding: 18px 0; /* tighter */
}

footer a{
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__text{
  margin: 10px 0 0;
  color: #374151;
  font-size: 14px;
}

/* Utility */
hr{ border:0; border-top: 1px solid var(--border); margin: 14px 0; }
small, .small{ font-size: 13px; color: var(--muted); }
.text-muted{ color: var(--muted); }
.text-ink{ color: var(--ink); }
.mb-0{ margin-bottom:0!important; }
.mt-0{ margin-top:0!important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}