/* ================================================================
   BarkLens Standalone Theme
   Base + Navbar + Footer + Blog + WPBakery dark compat
   ================================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0a0f0d !important;
  color: #e8ede9 !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

::selection { background: rgba(58,153,157,0.3); color: #fff; }

a { color: #4fd1c5; text-decoration: none; transition: color 0.2s; }
a:hover { color: #5cd6c8; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #e8ede9;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

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

/* ── Focus ── */
*:focus-visible {
  outline: 2px solid rgba(79,209,197,0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.bl-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.bl-navbar.is-scrolled {
  background: rgba(10,15,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(58,153,157,0.08);
}
.bl-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 48px;
}
@media (max-width: 480px) { .bl-navbar-inner { padding: 0 18px; } }

/* Logo */
.bl-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.bl-logo img { border-radius: 10px; }
.bl-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #e8ede9;
}
@media (min-width: 1024px) { .bl-logo-text { font-size: 26px; } }
.bl-logo-teal { color: #4fd1c5; }
.bl-logo-tm { font-size: 10px; color: white; margin-left: 2px; vertical-align: super; }

/* Desktop nav */
.bl-desktop-nav {
  display: none;
  align-items: center;
  gap: 36px;
}
@media (min-width: 1024px) { .bl-desktop-nav { display: flex !important; } }

/* Nav link hover underline — !important to override WP defaults */
.bl-desktop-nav a.bl-nav-link,
a.bl-nav-link {
  position: relative;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0;
  color: #e8ede9 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 0 !important;
  transition: color 0.2s;
  display: inline;
}
.bl-desktop-nav a.bl-nav-link::after,
a.bl-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: #4fd1c5;
  transition: width 0.3s ease;
}
.bl-desktop-nav a.bl-nav-link:hover,
a.bl-nav-link:hover { color: #4fd1c5 !important; text-decoration: none !important; }
.bl-desktop-nav a.bl-nav-link:hover::after,
a.bl-nav-link:hover::after { width: 100%; }
a.bl-nav-link.is-active { color: #4fd1c5 !important; }
a.bl-nav-link.is-active::after { width: 100%; }

/* Ghost CTA — !important to override WP link defaults */
.bl-desktop-nav a.bl-ghost,
a.bl-ghost {
  display: inline-flex;
  align-items: center;
  border-radius: 24px !important;
  border: 1px solid rgba(79,209,197,0.25) !important;
  background: rgba(79,209,197,0.1) !important;
  padding: 9px 24px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: rgb(79,209,197) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  font-family: inherit;
}
.bl-ghost:hover {
  background: rgba(79,209,197,0.15) !important;
  border-color: rgba(79,209,197,0.35) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79,209,197,0.1);
  color: #4fd1c5;
}

/* Filled CTA (solid teal) — Customizer option */
.bl-cta-filled {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: none;
  background: #3A999D;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}
.bl-cta-filled:hover {
  background: #4fb5b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58,153,157,0.3);
  color: white;
}

/* Hamburger */
.bl-mobile-hamburger {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 1024px) { .bl-mobile-hamburger { display: none !important; } }
.bl-hamburger-line {
  display: block;
  height: 2px;
  border-radius: 9999px;
  background: #e8ede9;
}

/* ================================================================
   MOBILE MENU
   ================================================================ */
@keyframes bl-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes bl-overlay-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes bl-slide-in    { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes bl-slide-out   { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes bl-menu-item-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bl-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: bl-overlay-in 0.3s ease forwards;
}
.bl-mobile-overlay.is-closing {
  animation: bl-overlay-out 0.3s ease forwards;
}

.bl-mobile-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80%; max-width: 340px;
  background: linear-gradient(180deg, #111814 0%, #0e1311 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(58,153,157,0.12);
  border-radius: 20px 0 0 20px;
  display: flex;
  flex-direction: column;
  animation: bl-slide-in 0.35s cubic-bezier(0.16,1,0.3,1) forwards;
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bl-mobile-overlay.is-closing .bl-mobile-panel {
  animation: bl-slide-out 0.3s cubic-bezier(0.4,0,1,1) forwards;
}
.bl-mobile-overlay.is-closing .bl-mobile-nav li,
.bl-mobile-overlay.is-closing .bl-mobile-nav-cta-item {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Panel header: close button row */
.bl-mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  flex-shrink: 0;
}

/* CTA as first nav item — matches desktop ghost button */
.bl-mobile-nav-cta-item {
  border-bottom: 1px solid rgba(58,153,157,0.06);
  padding: 14px 0;
  opacity: 0;
  animation: bl-menu-item-in 0.35s ease 0.05s forwards;
}
.bl-mobile-nav-cta-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid rgba(79,209,197,0.25);
  background: rgba(79,209,197,0.1);
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(79,209,197);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
  text-align: center;
}
.bl-mobile-nav-cta-item a:hover {
  background: rgba(79,209,197,0.15);
  border-color: rgba(79,209,197,0.35);
}

/* Close button: matches hamburger menu button style */
.bl-mobile-close {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  color: #e8ede9;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bl-mobile-close svg line {
  stroke: #e8ede9;
}

/* Nav links area */
.bl-mobile-nav {
  padding: 8px 24px 0;
  flex: 1;
}
.bl-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.bl-mobile-nav li {
  border-bottom: 1px solid rgba(58,153,157,0.06);
  opacity: 0;
  animation: bl-menu-item-in 0.35s ease forwards;
}
.bl-mobile-nav li:nth-child(1) { animation-delay: 0.08s; }
.bl-mobile-nav li:nth-child(2) { animation-delay: 0.14s; }
.bl-mobile-nav li:nth-child(3) { animation-delay: 0.20s; }
.bl-mobile-nav li:nth-child(4) { animation-delay: 0.26s; }
.bl-mobile-nav li:nth-child(5) { animation-delay: 0.32s; }
.bl-mobile-nav li:nth-child(6) { animation-delay: 0.38s; }
.bl-mobile-nav li:nth-child(7) { animation-delay: 0.44s; }
.bl-mobile-nav li:last-child { border-bottom: none; }

.bl-mobile-nav a,
.bl-mobile-nav li a {
  display: flex;
  align-items: center;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(232,237,233,0.8);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.bl-mobile-nav a:hover,
.bl-mobile-nav li a:hover,
.bl-mobile-nav a:active,
.bl-mobile-nav li a:active {
  color: #4fd1c5;
  padding-left: 6px;
}
.bl-mobile-nav a.is-active,
.bl-mobile-nav li a.is-active {
  color: #4fd1c5;
  font-weight: 500;
}

.bl-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, #3A999D 0%, #2d8a8e 100%);
  padding: 15px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(58,153,157,0.2);
  border: none;
  letter-spacing: 0.01em;
}
.bl-mobile-cta:hover,
.bl-mobile-cta:active {
  background: linear-gradient(135deg, #4fb5b8 0%, #3A999D 100%);
  color: white;
  box-shadow: 0 6px 28px rgba(58,153,157,0.3);
  transform: translateY(-1px);
}

/* Subtle brand line at top of panel */
.bl-mobile-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(79,209,197,0.2) 50%, transparent 100%);
  border-radius: 20px 0 0 0;
}


/* ================================================================
   FOOTER
   ================================================================ */
.bl-footer { border-top: 1px solid rgba(58,153,157,0.08); }
.bl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 48px;
}
@media (max-width: 480px) { .bl-footer-inner { padding: 18px 18px; } }

.bl-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 1024px) {
  .bl-footer-top { flex-direction: row; justify-content: space-between; }
}

.bl-footer-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}
.bl-footer-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(200,215,205,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
a.bl-footer-feature:hover { color: rgba(200,215,205,0.6); }

.bl-footer-legal {
  display: flex;
  align-items: center;
  gap: 0;
}
.bl-footer-legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.bl-footer-legal li {
  display: flex;
  align-items: center;
}
.bl-footer-legal li + li::before {
  content: '·';
  color: rgba(200,215,205,0.15);
  margin: 0 12px;
  font-size: 14px;
}
.bl-footer-legal a {
  font-size: 13px;
  color: rgba(200,215,205,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.bl-footer-legal a:hover { color: rgba(200,215,205,0.7); }

.bl-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(58,153,157,0.06);
  padding-top: 20px;
  text-align: center;
}
@media (min-width: 1024px) {
  .bl-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ================================================================
   CONTENT AREA
   ================================================================ */
.bl-content-area {
  padding-top: 64px;
  min-height: calc(100vh - 64px);
}

/* ================================================================
   BLOG — Single Post
   ================================================================ */
.bl-single-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}
@media (max-width: 480px) { .bl-single-post { padding: 48px 18px 80px; } }
.bl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(200,215,205,0.5);
  margin-bottom: 32px;
  transition: color 0.2s;
}
.bl-back-link:hover { color: #4fd1c5; }
.bl-post-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}
.bl-post-date {
  display: block;
  font-size: 13px;
  color: rgba(200,215,205,0.4);
  margin-bottom: 32px;
}
.bl-post-thumbnail { margin-bottom: 32px; border-radius: 16px; overflow: hidden; }
.bl-post-thumbnail img { width: 100%; display: block; }
.bl-post-content { color: rgba(220,230,225,0.8); font-size: 16px; line-height: 1.75; }
.bl-post-content h2, .bl-post-content h3 { color: #e8ede9; margin-top: 2em; }
.bl-post-content a { color: #4fd1c5; }
.bl-post-content img { border-radius: 12px; margin: 1.5em 0; }

/* ================================================================
   BLOG — Archive Grid
   ================================================================ */
.bl-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 48px 80px;
}
@media (max-width: 480px) { .bl-archive { padding: 16px 18px 80px; } }
.bl-archive-header { margin-bottom: 48px; }
.bl-section-label {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #3A999D;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.bl-archive-title {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 500;
  margin: 0;
}

.bl-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) { .bl-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bl-post-grid { grid-template-columns: repeat(3, 1fr); } }

.bl-post-card {
  background: #111814;
  border: 1px solid rgba(58,153,157,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bl-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.bl-post-card-thumb img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.bl-post-card-body { padding: 20px; }
.bl-post-card-date { font-size: 12px; color: rgba(200,215,205,0.4); display: block; margin-bottom: 8px; }
.bl-post-card-title { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.bl-post-card-title a { color: #e8ede9; text-decoration: none; transition: color 0.2s; }
.bl-post-card-title a:hover { color: #4fd1c5; }
.bl-post-card-excerpt { font-size: 14px; line-height: 1.6; color: rgba(200,215,205,0.5); margin: 0 0 12px; }
.bl-read-more { font-size: 13px; font-weight: 500; color: #4fd1c5; }

.bl-pagination { margin-top: 48px; text-align: center; }
.bl-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.bl-pagination a, .bl-pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: rgba(200,215,205,0.5);
  border: 1px solid rgba(58,153,157,0.12);
}
.bl-pagination a:hover { border-color: #4fd1c5; color: #4fd1c5; }
.bl-pagination .current { background: #3A999D; color: #0a0f0d; border-color: #3A999D; }

/* ================================================================
   WPBAKERY DARK THEME COMPAT
   ================================================================ */
.wpb_wrapper,
.vc_row,
.vc_column_container,
.wpb_text_column,
.wpb_content_element { color: #e8ede9; }
.vc_row { background-color: transparent; }
.vc_custom_heading { color: #e8ede9 !important; }
