/* Boosst — flexbox site shell */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #1A61FF;
  --accent-dark: #0b3fc4;
  --navy: #16163F;
  --ink: #1c2430;
  --muted: #5b6470;
  --line: #e6e8ec;
  --bg: #f6f7f9;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --max-width: 1160px;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

main { flex: 1; }

.site-wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover { text-decoration: none; color: #fff; }
.site-logo span { color: var(--accent); }
.site-logo--footer { margin-bottom: 8px; }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  color: #cfd6df;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }

.site-nav a.nav-about {
  background: var(--accent);
  color: #fff;
  margin-left: 4px;
}

.site-nav a.nav-about:hover,
.site-nav a.nav-about.active { background: var(--accent-dark); color: #fff; }

.site-nav a.nav-cta {
  border: 1px solid rgba(255,255,255,0.25);
}

/* Hero / page header */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #0b409c);
  color: #fff;
  padding: 52px 0;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  max-width: 760px;
}

.page-hero .subtitle {
  margin-top: 12px;
  color: #d7dee8;
  font-size: 1.05rem;
  max-width: 680px;
}

.page-header {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-content {
  padding: 2rem 0 3rem;
}

.page-content > * + * { margin-top: 1rem; }

/* Home sections */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0b409c 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 720px;
  line-height: 1.15;
}

.home-hero .lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: #d7dee8;
  max-width: 640px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover { border-color: #fff; text-decoration: none; color: #fff; }

.home-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.home-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-card {
  flex: 1 1 280px;
  padding: 24px;
  background: var(--bg);
  border-radius: 6px;
  border-left: 4px solid var(--accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.posts-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.post-card {
  flex: 1 1 300px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.post-card-body { padding: 18px; }

.post-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }

.post-card p { font-size: 0.875rem; color: var(--muted); }

/* Blog listing (r-template_blog.php) */
.blog-container { padding: 2rem 0 3rem; }

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.blog-card-header h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.blog-card-header a { color: var(--ink); text-decoration: none; }
.blog-card-header a:hover { color: var(--accent); }

.blog-preview p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c7cbe0;
  border-top: 3px solid var(--accent);
  margin-top: auto;
  padding: 34px 0 16px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
}

.footer-brand { max-width: 420px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; color: #9298bd; margin-top: 8px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: flex-start;
}

.footer-links a {
  color: #c7cbe0;
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  font-size: 0.8125rem;
  color: #7b81a6;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 6px 10px; font-size: 0.75rem; }
}
