/*
Theme Name: Right Advice Modern
Theme URI: https://rightadvice.org.uk/
Author: OpenAI
Description: Modern custom WordPress theme for Right Advice ORG UK.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: right-advice-modern
*/

:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #18324a;
  --muted: #5a7184;
  --primary: #0f5ea8;
  --primary-dark: #0a4378;
  --accent: #0e7490;
  --border: #dce6ef;
  --success: #0f766e;
  --shadow: 0 12px 40px rgba(24,50,74,.08);
  --radius: 20px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220,230,239,.8);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}
.brand-link { display:flex; align-items:center; gap:14px; color: var(--text); }
.brand-link:hover { color: var(--text); }
.site-logo { width: 68px; height: 68px; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(24,50,74,.08); }
.brand-text { display:flex; flex-direction:column; }
.brand-text strong { color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-text small { display:block; color: var(--muted); font-size: .83rem; font-weight: 500; }
.nav-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-menu a { color: var(--text); font-weight: 600; }
.hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at top right, rgba(15,94,168,.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eaf4ff; color: var(--primary-dark);
  border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 700;
}
.hero h1, .page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); line-height: 1.05; margin: 16px 0; letter-spacing: -.04em; }
.hero p.lead, .page-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.card, .service-card, .feature-card, .info-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 28px; }
.hero-card h3 { margin-top: 0; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.metric { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.metric strong { display: block; font-size: 1.35rem; }
.section { padding: 72px 0; }
.section.alt { background: #fff; }
.section-title { max-width: 720px; margin-bottom: 28px; }
.section-title h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.03em; }
.section-title p { color: var(--muted); margin: 0; }
.grid-3, .grid-2 { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-card, .feature-card { padding: 24px; }
.service-card h3, .feature-card h3 { margin-top: 0; margin-bottom: 10px; }
.service-card p, .feature-card p, .info-box p { color: var(--muted); }
.badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#eef7f7; color:var(--accent); font-weight:700; font-size:.83rem; margin-bottom:12px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 28px; position: relative; margin: 10px 0; }
.check-list li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }
.page-hero { padding: 58px 0 28px; background: linear-gradient(180deg, #fff 0%, #f7fafc 100%); }
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.article-card { padding: 32px; }
.sidebar-box { padding: 24px; margin-bottom: 20px; }
.sidebar-box h3 { margin-top: 0; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); background: #fff; margin-top: 56px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; color: var(--muted); font-size: .95rem; }
.site-footer a { color: var(--primary); }
.cta-band {
  background: linear-gradient(135deg, #0f5ea8 0%, #0a4378 100%);
  color: #fff; border-radius: 28px; padding: 34px; display:grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items:center;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0 0 10px; }
.cta-band .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.post-meta { color: var(--muted); font-size: .95rem; }
.wp-block-group, .entry-content > * + * { margin-top: 1rem; }
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-2, .content-wrap, .cta-band { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .article-card, .service-card, .feature-card, .hero-card, .sidebar-box { padding: 22px; }
  .metrics { grid-template-columns: 1fr; }
  .site-logo { width: 54px; height: 54px; }
  .brand-text small { max-width: 22ch; }
}
