/*
Theme Name: FB AutoPilot Studio
Theme URI: https://craftedbyhenry.com
Author: Henry
Description: Custom theme converted from the FB AutoPilot Studio static HTML site. Includes a marketing home page, pricing page with PayPal subscribe button, and legal pages (privacy, terms, refund).
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fbap
*/

/* Baseline fallback styles — each page/template also loads its own
   dedicated stylesheet (see assets/css/) that matches the original
   design exactly. These rules only apply where a page has no
   dedicated stylesheet (e.g. search results, 404). */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
  background: #fafaf9;
}
a { color: #2563eb; }
img { max-width: 100%; height: auto; }

/* "Buy Full Template" button in the top menu (shown on every page) */
.nav-links a.nav-buy { display: inline-block; margin-left: 24px; padding: 8px 15px; border-radius: 10px; background: linear-gradient(120deg, #2563eb, #0ea5e9); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.nav-links a.nav-buy:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14, 165, 233, .35); }

/* Let the top bar wrap on narrow phones (same behaviour the home page already had) */
.nav { flex-wrap: wrap; gap: 12px; }

/* ---------- Mobile menu (hamburger) ---------- */
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; margin-left: auto; border: 1px solid rgba(0, 0, 0, .14); border-radius: 12px; background: #fff; color: #1a1a1a; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-legal .nav-links { display: inline; }

@media (max-width: 820px) {
  html body .nav .nav-toggle { display: inline-flex; }
  html body .nav .nav-links { display: none; flex: 0 0 100%; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 6px; max-height: calc(100vh - 140px); overflow-y: auto; }
  html body .nav.nav-open .nav-links { display: flex; }
  html body .nav .nav-links a { display: block; margin: 0; padding: 13px 4px; font-size: 16px; border-top: 1px solid rgba(128, 128, 128, .2); }
  html body .nav .nav-links a.nav-buy,
  html body .nav .nav-links a.nav-cta { margin: 12px 0 4px; padding: 13px; font-size: 15px; font-weight: 700; text-align: center; border-top: 0; }
  /* Solid panel behind the open menu so background effects never show through the links */
  html body:not(.fbap-buy) .nav:not(.nav-legal).nav-open { background: rgba(250, 250, 249, .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 0 0 20px 20px; box-shadow: 0 22px 44px rgba(0, 0, 0, .09); }
  html body .nav.nav-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  html body .nav-legal .nav-home { margin: 0; font-size: 16px; }
}
