/*
 * AnchorLabs Global CSS
 * Neve overrides, sticky header, social icons, announcement bar,
 * 404 page, print styles, utility classes
 */

/* ── Announcement Bar ─────────────────────────────────────────────────────── */
#al-announcement-bar {
  background: #0F172A;
  color: #CBD5E1;
  text-align: center;
  padding: 10px 24px;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.5;
  position: relative;
  z-index: 9998;
}
#al-announcement-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
#al-announcement-bar strong { color: #fff; }

/* ── Sticky Header ────────────────────────────────────────────────────────── */
.hfg-header.is-sticky {
  box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}
/* Neve handles sticky via its own settings — this enhances the shadow */
.neve-main-nav-container { transition: box-shadow .2s; }

/* ── Social Icons ─────────────────────────────────────────────────────────── */
.al-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.al-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #94A3B8;
  background: transparent;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.al-social-icons a:hover {
  color: #2563EB;
  background: rgba(37,99,235,.08);
}
.al-social-icons svg { display: block; }

/* Social icons in footer (inline, lighter) */
.al-footer-social .al-social-icons a {
  color: #64748B;
  width: 32px;
  height: 32px;
}
.al-footer-social .al-social-icons a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ── Neve Body / Layout Overrides ─────────────────────────────────────────── */
.neve-main {
  min-height: 60vh;
}
/* Remove default Neve content padding on custom templates */
.page-template-template-product-landing .neve-main,
.page-template-template-products .neve-main,
.page-template-template-about .neve-main,
.page-template-template-contact .neve-main,
.page-template-template-support .neve-main,
.page-template-template-services .neve-main,
.page-template-template-legal .neve-main,
.single-post .neve-main,
.category .neve-main,
.page-template-page-articles .neve-main {
  padding: 0 !important;
}
/* Remove Neve container on our custom layouts */
.page-template-template-product-landing .container,
.page-template-template-products .container,
.page-template-template-about .container,
.page-template-template-contact .container,
.page-template-template-support .container,
.page-template-template-services .container,
.single-post .container,
.category .container,
.page-template-page-articles .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── Neve Page Header Override ────────────────────────────────────────────── */
/* Already in brand.css but repeat here for completeness */
.nv-page-title-wrap { display: none !important; }

/* ── Support Page Notion Cards ────────────────────────────────────────────── */
.al-notion-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 60px;
}
.al-notion-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s, transform .2s;
}
.al-notion-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.al-notion-card-icon { font-size: 2rem; }
.al-notion-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}
.al-notion-card p {
  font-size: .9rem;
  color: #64748B;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.al-notion-card .al-btn-primary {
  align-self: flex-start;
  font-size: .875rem;
  padding: 10px 22px;
  margin-top: 4px;
}

/* ── 404 Page ─────────────────────────────────────────────────────────────── */
.al-404-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.al-404-inner { max-width: 520px; }
.al-404-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: #E2E8F0;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -.05em;
}
.al-404-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 12px;
}
.al-404-text {
  color: #64748B;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 32px;
}
.al-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Print Styles ─────────────────────────────────────────────────────────── */
@media print {
  .hfg-header, #al-cart-drawer, #al-cart-overlay, #al-announcement-bar,
  #al-reading-progress, .al-cart-trigger, .al-related-section,
  .al-author-bio-wrap, .al-article-footer, .al-footer { display: none !important; }
  .al-article-body { font-size: 12pt; line-height: 1.6; max-width: 100%; padding: 0; }
  .al-article-header { padding: 0; text-align: left; }
  .al-article-hero img { max-height: 300px; }
  a { color: #000; text-decoration: none; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: .8em; color: #666; }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.al-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.al-text-center { text-align: center; }
.al-mt-0 { margin-top: 0; }
.al-mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Logo Tagline (sits snug under the site logo, right-aligned to it) ────── */
.site-logo .brand { display: inline-flex !important; flex-direction: column; align-items: flex-end; line-height: 1; }
.site-logo .brand img { display: block; margin: 0; }
.site-logo .brand::after {
  content: "AI-Native Notion Solutions";
  display: block;
  margin-top: 1px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748B;
  text-align: right;
  white-space: nowrap;
}

/* ── Footer social icons (injected into .al-footer-bottom) ───────────────── */
.al-foot-social { display: flex; align-items: center; gap: 14px; }
.al-foot-social a { color: #94A3B8; display: inline-flex; transition: color .15s; }
.al-foot-social a:hover { color: #fff; }
.al-foot-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .al-notion-cards-row { grid-template-columns: 1fr; }
  .al-404-code { font-size: 6rem; }
  .site-logo .brand::after { font-size: .56rem; letter-spacing: .1em; }
}
