/* ═══════════════════════════════════════════
   FBP GLOBAL STYLES
   Applied to ALL pages site-wide
   ═══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --fbp-primary: #2563eb;
  --fbp-accent: #3b82f6;
  --fbp-accent-light: #60a5fa;
  --fbp-pink: #06b6d4;
  --fbp-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #06b6d4 100%);
  --fbp-gradient-hero: linear-gradient(160deg, #0f172a 0%, #0c1e4a 40%, #1e3a5f 70%, #1e293b 100%);
  --fbp-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #172554 100%);
  --fbp-glass: rgba(255,255,255,0.08);
  --fbp-glass-border: rgba(255,255,255,0.12);
  --fbp-radius: 16px;
  --fbp-max-w: 1200px;
  --fbp-navy: #0f172a;
  --fbp-dark-bg: #0a0a1a;
  --fbp-text: #334155;
  --fbp-text-light: #64748b;
  --fbp-text-heading: #1a1a2e;
}

/* ── ANIMATIONS ── */
@keyframes fbp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes fbp-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fbp-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── REVEAL ANIMATION ── */
.fbp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.fbp-reveal.fbp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   GLOBAL TYPOGRAPHY
   ═══════════════════════════════════════════ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  color: var(--fbp-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.site-title {
  font-family: 'Space Grotesk', sans-serif !important;
  color: var(--fbp-text-heading) !important;
  letter-spacing: -0.5px;
  line-height: 1.2 !important;
}

h1, .entry-title { font-size: clamp(2rem, 4vw, 2.8rem) !important; font-weight: 800 !important; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; font-weight: 800 !important; }
h3 { font-size: 1.35rem !important; font-weight: 700 !important; }
h4 { font-size: 1.15rem !important; font-weight: 700 !important; }

p, li, td, th, dd, dt {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fbp-text);
}

a {
  color: var(--fbp-primary);
  transition: color 0.2s;
}
a:hover {
  color: var(--fbp-accent);
}

/* ═══════════════════════════════════════════
   NAVIGATION (used on all pages)
   ═══════════════════════════════════════════ */
.fbp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,12,41,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.fbp-nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.fbp-nav-logo span {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.fbp-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fbp-nav-links a {
  color: rgba(255,255,255,0.7) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  text-decoration: none !important;
}
.fbp-nav-links a:hover,
.fbp-nav-links a.fbp-active {
  color: #fff !important;
}
.fbp-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--fbp-gradient);
  transition: width 0.3s;
}
.fbp-nav-links a:hover::after,
.fbp-nav-links a.fbp-active::after {
  width: 100%;
}
.fbp-nav-cta {
  background: var(--fbp-gradient) !important;
  background-size: 200% auto !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  -webkit-text-fill-color: #fff !important;
}
.fbp-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.35);
}
.fbp-nav-cta::after { display: none !important; }

.fbp-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}


/* ── SERVICES DROPDOWN ── */
.fbp-has-dropdown {
  position: relative;
}

.fbp-has-dropdown > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.fbp-dropdown-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.fbp-has-dropdown:hover .fbp-dropdown-arrow,
.fbp-has-dropdown.fbp-dropdown-open .fbp-dropdown-arrow {
  transform: rotate(180deg);
}

.fbp-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: rgba(15, 12, 41, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  z-index: 100000;
}

.fbp-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(15, 12, 41, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fbp-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.fbp-has-dropdown:hover > .fbp-dropdown,
.fbp-has-dropdown.fbp-dropdown-open > .fbp-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.fbp-dropdown li {
  margin: 0;
}

.fbp-dropdown a {
  display: block !important;
  padding: 10px 20px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: color 0.2s, background 0.2s, padding-left 0.2s !important;
  text-decoration: none !important;
}

.fbp-dropdown a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  padding-left: 24px !important;
}

.fbp-dropdown a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--fbp-gradient);
  vertical-align: middle;
  margin-right: 0;
  transition: width 0.2s, margin-right 0.2s;
}

.fbp-dropdown a:hover::before {
  width: 12px;
  margin-right: 8px;
}

.fbp-has-dropdown > a::after {
  display: none !important;
}

/* ── MOBILE DROPDOWN ── */
@media (max-width: 900px) {
  .fbp-nav-links.fbp-nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 0;
    z-index: 99998;
    overflow-y: auto;
  }

  .fbp-nav-links.fbp-nav-open li {
    width: 100%;
  }

  .fbp-nav-links.fbp-nav-open a {
    font-size: 1.1rem !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .fbp-nav-links.fbp-nav-open .fbp-dropdown {
    position: static;
    transform: none;
    min-width: unset;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .fbp-nav-links.fbp-nav-open .fbp-dropdown::before {
    display: none;
  }

  .fbp-nav-links.fbp-nav-open .fbp-has-dropdown::after {
    display: none;
  }

  .fbp-nav-links.fbp-nav-open .fbp-has-dropdown.fbp-dropdown-open .fbp-dropdown {
    max-height: 400px;
    padding: 8px 0 8px 16px;
  }

  .fbp-nav-links.fbp-nav-open .fbp-dropdown a {
    font-size: 0.95rem !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .fbp-nav-links.fbp-nav-open .fbp-dropdown a:hover {
    background: transparent !important;
    padding-left: 8px !important;
  }

  .fbp-nav-links.fbp-nav-open .fbp-nav-cta {
    margin-top: 24px;
    text-align: center;
    border-bottom: none !important;
  }
}

body.logged-in .fbp-nav-links.fbp-nav-open {
  top: 104px;
}
@media (max-width: 782px) {
  body.logged-in .fbp-nav-links.fbp-nav-open {
    top: 118px;
  }
}

/* ═══════════════════════════════════════════
   SITE WRAPPER & INNER PAGE CONTENT
   ═══════════════════════════════════════════ */

/* Push content below fixed nav */
.fbp-site-wrapper {
  padding-top: 72px;
  min-height: calc(100vh - 72px);
}

/* ── Page Header Banner ── */
/* This creates a dark gradient banner at the top of every inner page */
.fbp-site-wrapper > .ast-container,
.fbp-site-wrapper > #content,
.fbp-site-wrapper > .site-content {
  /* Let Astra's content flow naturally */
}

/* Override Astra layout containers for full-width feel */
.ast-container {
  max-width: var(--fbp-max-w) !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Inner page content area */
.site-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Entry content typography improvements */
.entry-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fbp-text);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.entry-content h2 {
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--fbp-gradient);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.entry-content img {
  border-radius: var(--fbp-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.entry-content blockquote {
  border-left: 4px solid var(--fbp-accent);
  background: linear-gradient(135deg, rgba(59,130,246,0.04), rgba(37,99,235,0.04));
  padding: 20px 28px;
  border-radius: 0 var(--fbp-radius) var(--fbp-radius) 0;
  margin: 2em 0;
  font-style: italic;
  color: var(--fbp-text-heading);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content a {
  color: var(--fbp-accent);
  text-decoration: underline;
  text-decoration-color: rgba(59,130,246,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.entry-content a:hover {
  text-decoration-color: var(--fbp-accent);
  color: var(--fbp-primary);
}

/* ═══════════════════════════════════════════
   BLOG / ARCHIVE STYLES
   ═══════════════════════════════════════════ */

/* Blog post cards on archive pages */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background: #fff !important;
  border-radius: var(--fbp-radius) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
  border: 1px solid #f0f0f5 !important;
  padding: 32px !important;
  margin-bottom: 28px !important;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s !important;
}

.ast-separate-container .ast-article-post:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1) !important;
}

/* Post title styling */
.ast-article-post .entry-title a,
.blog .entry-title a {
  color: var(--fbp-text-heading) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.ast-article-post .entry-title a:hover,
.blog .entry-title a:hover {
  color: var(--fbp-accent) !important;
}

/* Post meta */
.entry-meta,
.entry-meta a {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  color: var(--fbp-text-light) !important;
}
.entry-meta a:hover {
  color: var(--fbp-accent) !important;
}

/* Category badges */
.cat-links a,
.entry-meta .cat-links a {
  display: inline-block;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(37,99,235,0.08));
  color: var(--fbp-accent) !important;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.cat-links a:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.15));
}

/* Featured images */
.ast-article-post .post-thumb-img-content img,
.post-thumbnail img {
  border-radius: var(--fbp-radius) !important;
  transition: transform 0.5s;
}
.ast-article-post:hover .post-thumb-img-content img {
  transform: scale(1.03);
}

/* Read more links */
.ast-read-more-container a,
.read-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fbp-accent) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: gap 0.3s;
}
.ast-read-more-container a:hover,
.read-more a:hover {
  gap: 10px;
}
.ast-read-more-container a::after,
.read-more a::after {
  content: '\2192';
}

/* ── Single Post Styles ── */
.single .entry-title {
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
  margin-bottom: 16px !important;
}

.single .entry-meta {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f5;
}

/* ═══════════════════════════════════════════
   BUTTONS & UI ELEMENTS
   ═══════════════════════════════════════════ */
.fbp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.fbp-btn-primary {
  background: var(--fbp-gradient);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}
.fbp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.45);
  background-position: right center;
  color: #fff;
}

/* WordPress buttons */
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background: var(--fbp-gradient) !important;
  background-size: 200% auto !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.3s !important;
  cursor: pointer;
}
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59,130,246,0.35);
  background-position: right center !important;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--fbp-accent) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1) !important;
  outline: none !important;
}

/* ═══════════════════════════════════════════
   WORDPRESS WIDGETS & SIDEBAR
   ═══════════════════════════════════════════ */
.widget {
  background: #fff;
  border-radius: var(--fbp-radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f5;
  margin-bottom: 24px;
}
.widget-title,
.widget h2 {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--fbp-gradient);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.ast-pagination .nav-links .page-numbers {
  font-family: 'Inter', sans-serif !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s !important;
}
.ast-pagination .nav-links .page-numbers.current,
.ast-pagination .nav-links .page-numbers:hover {
  background: var(--fbp-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ═══════════════════════════════════════════
   COMMENTS
   ═══════════════════════════════════════════ */
.comments-area {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #f0f0f5;
}
.comment-list .comment {
  border-radius: var(--fbp-radius);
  padding: 20px;
  margin-bottom: 16px;
  background: #f8fafc;
}

/* ═══════════════════════════════════════════
   FOOTER (used on all pages)
   ═══════════════════════════════════════════ */
.fbp-footer {
  background: var(--fbp-dark-bg);
  padding: 64px 48px 32px;
  color: rgba(255,255,255,0.5);
}
.fbp-footer-grid {
  max-width: var(--fbp-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.fbp-footer-brand p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
  color: rgba(255,255,255,0.45);
}
.fbp-footer h5 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.fbp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fbp-footer-links li { margin-bottom: 10px; }
.fbp-footer-links a {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.45) !important;
  transition: color 0.2s;
  text-decoration: none !important;
}
.fbp-footer-links a:hover { color: #c4b5fd !important; }
.fbp-footer-bottom {
  max-width: var(--fbp-max-w);
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}
.fbp-footer-social { display: flex; gap: 16px; }
.fbp-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5) !important;
  transition: all 0.3s;
  font-size: 0.85rem;
  text-decoration: none !important;
}
.fbp-footer-social a:hover {
  background: var(--fbp-accent);
  color: #fff !important;
}

/* ═══════════════════════════════════════════
   HIDE ASTRA DEFAULT ELEMENTS
   ═══════════════════════════════════════════ */

/* Hide Astra's built-in header/footer — we override them */
.ast-above-header-wrap,
.ast-below-header-wrap,
#ast-desktop-header,
#ast-mobile-header,
.main-header-bar-wrap,
.site-header,
.ast-footer-overlay,
.ast-small-footer,
.site-footer,
footer.site-footer,
.ast-above-footer-wrap,
.ast-below-footer-wrap,
#colophon {
  display: none !important;
}

/* Hide WP admin bar spacing conflicts */
body.logged-in .fbp-nav {
  top: 32px;
}
body.logged-in .fbp-site-wrapper {
  padding-top: 104px; /* 72px nav + 32px admin bar */
}
@media (max-width: 782px) {
  body.logged-in .fbp-nav {
    top: 46px;
  }
  body.logged-in .fbp-site-wrapper {
    padding-top: 118px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .fbp-nav { padding: 0 24px; }
  .fbp-nav-links { display: none; }
  .fbp-nav-toggle { display: block; }
  .fbp-footer { padding: 48px 24px 24px; }
  .fbp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .fbp-footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   HOMEPAGE OVERRIDE
   Body class on homepage to skip inner styles
   ═══════════════════════════════════════════ */
body.page-template-page-home .fbp-site-wrapper,
body.page-template-page-home .site-content {
  padding-top: 0 !important;
}
/* Homepage nav/footer are self-contained in page-home.php (standalone HTML) */
