/* ── SHARED STYLES — calebfoster.ai ── */
/* Applied to: index.html, journal/index.html, showcase/index.html */

/* ── CSS VARIABLES ── */
:root {
  --pink: #e91e63;
  --pink-light: #f06292;
  --dark: #1a1a1a;
  --white: #ffffff;
  --off-white: #fdf0f4;
  --slate: #455A64;
  --muted: rgba(26,26,26,0.65);
  --border: rgba(26,26,26,0.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; background: #1a1a1a; } /* dark overscroll on all pages */

/* ── BASE ── */
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--dark); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ── SKIP LINK ── */
.skip-link {
  position: fixed; top: -100%; left: 16px; z-index: 10000;
  background: var(--pink); color: #fff; padding: 12px 24px;
  border-radius: 0 0 8px 8px; font-weight: 700; font-size: 0.85rem;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── NAV — scrolled state (shared across all pages) ── */
nav.scrolled {
  background: rgba(26,26,26,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06); padding: 16px 48px;
}
nav.scrolled .btn-nav { background: var(--pink); color: var(--white); }

/* ── NAV LOGO MARK ── */
.nav-logo-mark img { width: 36px; height: 36px; display: block; position: relative; z-index: 1; }

/* ── LOGO RING ── */
.logo-ring {
  position: absolute; inset: -8px;
  width: calc(100% + 16px); height: calc(100% + 16px);
  pointer-events: none; overflow: visible; z-index: 2;
  animation: ringWobble 8s ease-in-out infinite;
  transform-origin: 50% 50%; will-change: transform;
}
@keyframes ringWobble {
  0%   { transform: perspective(80px) rotateX(20deg) rotateY(0deg) scaleX(1); }
  25%  { transform: perspective(80px) rotateX(-15deg) rotateY(25deg) scaleX(0.9); }
  50%  { transform: perspective(80px) rotateX(30deg) rotateY(-10deg) scaleX(1.05); }
  75%  { transform: perspective(80px) rotateX(-10deg) rotateY(-20deg) scaleX(0.92); }
  100% { transform: perspective(80px) rotateX(20deg) rotateY(0deg) scaleX(1); }
}
.logo-ring circle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 10; stroke-linecap: round; opacity: 0.45; }

/* ── NAV LINKS ── */
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: rgba(255,255,255,0.8); transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 101; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 36px 48px 24px; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; margin-bottom: 16px; }
.footer-logo { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer-logo span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; margin-top: 2px; }
.footer-nav { display: flex; gap: 28px; list-style: none; }
.footer-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-weight: 700; transition: color 0.2s; position: relative; }
.footer-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--pink); transition: width 0.25s ease; }
.footer-nav a:hover { color: var(--white); }
.footer-nav a:hover::after { width: 100%; }
.footer-right { text-align: right; }
.footer-mindboost { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-mindboost a { color: var(--pink); opacity: 1; transition: opacity 0.2s; text-decoration: underline; text-underline-offset: 2px; }
.footer-mindboost a:hover { opacity: 0.85; }
.footer-badges { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 16px 0 12px; }
.footer-badges img { height: 40px; width: auto; opacity: 0.7; filter: grayscale(100%) brightness(1.6); transition: opacity 0.3s, filter 0.3s; }
.footer-badges img:hover { opacity: 0.8; filter: grayscale(0%) brightness(1); }
.footer-bottom { padding-top: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.7); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a { color: rgba(255,255,255,0.7); font-weight: 700; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ── RESPONSIVE — TABLET (900px) ── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh;
    background: var(--pink); flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; z-index: 9998; padding: 80px 24px;
  }
  .nav-links.mobile-open li { list-style: none; text-align: center; }
  .nav-links.mobile-open a { color: var(--white); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; display: block; padding: 8px 0; }
  .nav-links.mobile-open a:hover { color: rgba(255,255,255,0.7); }
  .nav-links.mobile-open a::after { display: none; }
  .btn-nav { display: flex; }
  .hamburger { display: flex !important; z-index: 9999; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-right { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  footer { padding: 40px 24px; }
}

/* ── RESPONSIVE — MOBILE (480px) ── */
@media (max-width: 480px) {
  nav { padding: 16px 20px; }
  .btn-nav { display: none !important; }
  .hamburger { display: flex !important; }
  .footer-badges { gap: 20px; flex-wrap: wrap; }
  .footer-badges img { height: 32px; }
  footer { padding: 32px 20px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}

/* Enhanced focus-visible for interactive elements on dark/pink backgrounds */
.filter-btn:focus-visible,
.journal-card:focus-visible,
.showcase-item:focus-visible,
.btn-nav:focus-visible,
.nav-links a:focus-visible,
.service-card:focus-visible,
.service-link:focus-visible,
.hamburger:focus-visible,
.service-panel-close:focus-visible,
.footer-nav a:focus-visible,
.footer-bottom a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-white:focus-visible,
.btn-outline-white:focus-visible,
.btn-bubble-wrap:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 3px; }
.faq-item summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ── SCREEN READER ONLY ── */
.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; }
