/*
Theme Name: Barnard's Best Frame
Theme URI: https://barnardsbest.com
Author: Nico Barnard
Author URI: https://barnardsbest.com
Description: A minimal frame for Barnard's Best: branded header, matching footer, base styling and search/AI discoverability tags. Page bodies are custom HTML pasted into each page.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: barnards-best-frame
*/

/* ── Brand colors & fonts ── (the page-body HTML files carry the same values) */
:root {
  --navy:      #0d1b2a;
  --navy2:     #142236;
  --steel:     #1e3352;
  --sky:       #0EC8EE;
  --sky-lt:    #3DD6F5;
  --green:     #5BBF3E;
  --green-lt:  #74D456;
  --amber:     #f59e0b;
  --white:     #f5f7fa;
  --muted:     #8fa3b8;
  --card:      #162033;
  --radius:    14px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.bb-main { flex: 1 0 auto; width: 100%; }
.bb-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
#bb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,42,.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-bar #bb-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #bb-nav { top: 46px; } }

.bb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.bb-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.01em;
  color: var(--white);
  line-height: 1;
}
.bb-wordmark span { color: var(--sky); }
.bb-wordmark { white-space: nowrap; flex-shrink: 0; }

.bb-nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}
.bb-nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}
.bb-nav-links a:hover { color: var(--white); }
.bb-nav-links a.bb-nav-cta {
  background: var(--sky);
  color: #fff;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 24px rgba(14,200,238,.28);
  transition: background .18s, transform .18s;
  display: inline-block;
  white-space: nowrap;
}
.bb-nav-links a.bb-nav-cta:hover { background: var(--sky-lt); color: #fff; transform: translateY(-1px); }

/* Phones: keep the wordmark and the Get a Quote button, sized to fit side by side */
@media (max-width: 700px) {
  .bb-nav-inner { padding: 12px 16px; gap: 12px; }
  .bb-nav-links { gap: 0; flex-shrink: 0; }
  .bb-nav-links li:not(:last-child) { display: none; }
  .bb-wordmark { font-size: clamp(.78rem, 4vw, 1.05rem); }
  .bb-nav-links a.bb-nav-cta { padding: 9px 15px; font-size: .78rem; }
}

/* ── Footer ── */
#bb-footer {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 56px 0 28px;
  flex-shrink: 0;
}
.bb-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.bb-footer-brand { max-width: 340px; }
.bb-footer-tag { margin-top: 12px; font-size: .88rem; color: var(--muted); line-height: 1.65; }
.bb-footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.bb-footer-col h4 {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.bb-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bb-footer-col li, .bb-footer-col a { font-size: .88rem; color: var(--muted); }
.bb-footer-col a:hover { color: var(--sky); }
.bb-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  font-size: .78rem;
  color: rgba(143,163,184,.6);
}

/* ── Plain text pages (paragraph / heading blocks sit in a readable column) ── */
.bb-main > :is(h1, h2, h3, h4, p, ul, ol, blockquote) {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 16px;
  color: var(--muted);
}
.bb-main > :is(h1, h2, h3, h4) { font-family: var(--font-head); color: var(--white); line-height: 1.15; }
.bb-main > :is(ul, ol) { padding-left: 48px; }
.bb-main > :is(h1, h2, h3, h4, p, ul, ol, blockquote):first-child { margin-top: 120px; }
.bb-main > :is(h1, h2, h3, h4, p, ul, ol, blockquote):last-child { margin-bottom: 72px; }
.bb-main > :is(p, ul, ol, blockquote) a { color: var(--sky); text-decoration: underline; }
