/* Shared public-site header (floating pill nav on desktop / static rounded
   box on mobile, plus its slide-in drawer) and footer — see
   views/partials/header.ejs and views/partials/footer.ejs.
   Single source of truth: replaces what used to be up to 14 separate
   copies of this CSS (three of which had drifted into an older nav pattern
   that never got the mobile treatment, and a footer that didn't match the
   desktop design at all). Every page that includes those partials must
   also link this stylesheet, and must still define the color/font custom
   properties it uses (--pink, --pink-strong, --dark, --gray, --gray-light,
   --border, --shadow-sm etc.) in its own :root block, same as before —
   those vary slightly in value across pages and stay page-local.
*/

/* ── LANG SWITCHER ── */
.lang-switcher { position: relative; display: flex; align-items: center; margin-left: 4px; }
.lang-globe-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 10px; border: none; background: none; cursor: pointer; border-radius: 8px; color: var(--gray); transition: color 0.15s, background 0.15s; }
.lang-globe-btn:hover { background: var(--pink-light); color: var(--pink-strong); }
.lang-globe-btn svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.lang-globe-btn .lang-code { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.4px; }
.lang-globe-btn .lang-chevron { width: 12px; height: 12px; transition: transform 0.15s ease; }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }
.lang-drop { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid rgba(20,20,43,0.08); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); overflow: hidden; z-index: 300; min-width: 64px; }
.lang-switcher.open .lang-drop { display: block; }
.lang-drop-opt { display: block; padding: 7px 14px; font-size: 0.78rem; font-weight: 800; color: var(--gray); text-decoration: none; letter-spacing: 0.4px; transition: background 0.12s; }
.lang-drop-opt:hover { background: var(--pink-light); color: var(--pink-strong); }
.lang-drop-opt.active { color: var(--pink-strong); background: var(--pink-light); }

/* ── ACCOUNT MENU (session-aware header — replaces Login/Get Started once
   authenticated; see views/partials/header.ejs) ── */
.account-menu { position: relative; display: flex; align-items: center; }
.account-menu-btn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: none; border-radius: 50px; background: var(--gray-lighter); color: var(--dark); font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background 0.15s; max-width: 200px; }
.account-menu-btn:hover { background: var(--gray-light); }
.account-menu-btn .account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-btn .lang-chevron { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.15s ease; }
.account-menu.open .lang-chevron { transform: rotate(180deg); }
.account-drop { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid rgba(20,20,43,0.08); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); overflow: hidden; z-index: 300; min-width: 180px; }
.account-menu.open .account-drop { display: block; }
.account-drop a { display: block; padding: 11px 16px; font-size: 0.85rem; font-weight: 700; color: var(--dark); text-decoration: none; transition: background 0.12s; }
.account-drop a:hover { background: var(--pink-light); color: var(--pink-strong); }
.account-drop a.danger { color: #C9405B; }
.account-drop a.danger:hover { background: #FFF0F0; }

.mob-account { display: none; margin-top: 24px; }
.mob-account-label { font-size: 0.78rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.mob-account a { font-size: 1rem; }
.mob-account a.danger { color: #C9405B; }

/* ── NAV ── */
nav { position: fixed; top: 20px; left: 48px; right: 48px; z-index: 1000; max-width: 1320px; margin: 0 auto; padding: 6px 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.92); border: 1px solid rgba(0,0,0,0.05); border-radius: 26px; box-shadow: 0 10px 34px rgba(20,20,43,0.07); backdrop-filter: blur(24px); transition: all 0.3s ease; }
nav.scrolled { top: 12px; box-shadow: 0 12px 38px rgba(20,20,43,0.1); }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-logo .suggar { color: var(--dark); }
.nav-logo .dot-me { color: var(--pink-strong); }
.nav-links { display: flex; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { text-decoration: none; color: var(--gray); font-weight: 600; font-size: 0.92rem; transition: color 0.25s; }
.nav-links a:hover { color: var(--dark); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.mobile-toggle { display: none; background: none; border: none; color: var(--dark); font-size: 1.5rem; cursor: pointer; padding: 8px; border-radius: 8px; line-height: 1; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 1002; background: white; flex-direction: column; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mob-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--gray-light); position: sticky; top: 0; background: white; z-index: 1; }
.mob-nav-close { background: var(--gray-lighter); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--dark); display: flex; align-items: center; justify-content: center; }
.mob-nav-body { padding: 8px 20px 32px; display: flex; flex-direction: column; }
.mobile-nav a { font-size: 1.1rem; font-weight: 700; color: var(--dark); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--gray-light); display: block; }
.mobile-nav .mob-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; border: none; }
.mobile-nav .mob-cta a { border: none; text-align: center; border-radius: 50px; padding: 14px 20px; }
.mob-lang { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-light); align-items: center; justify-content: center; }
.mob-lang .lang-drop-opt { font-size: 0.8rem; padding: 6px 12px; border-radius: 8px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 56px 0 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.footer-inner { padding: 0 max(48px, calc((100% - 1320px) / 2)); }
.footer-top { display: flex; align-items: stretch; gap: 64px; margin-bottom: 24px; }
.footer-brand { flex: 0 0 400px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 28px 30px; }
.footer-brand .nav-logo .suggar { color: white; }
.footer-brand .nav-logo .dot-me { color: var(--pink); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-top: 12px; max-width: 320px; }
.footer-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 6px 16px 6px 6px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.footer-badge-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(232,131,154,0.15); color: var(--pink); display: flex; align-items: center; justify-content: center; font-size: 0.92rem; flex-shrink: 0; }
.footer-menu { display: flex; flex: 1; justify-content: space-between; padding-top: 4px; }
.footer-col { text-align: left; min-width: 140px; padding: 0 32px; border-left: 1px solid rgba(255,255,255,0.08); }
.footer-col:first-child { padding-left: 0; border-left: none; }
.footer-col:last-child { padding-right: 0; }
.footer-col h4 { color: var(--pink); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.9rem; text-decoration: none; padding: 7px 0; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-col a .footer-chevron { color: rgba(255,255,255,0.3); transition: transform 0.2s, color 0.2s; }
.footer-col a:hover .footer-chevron { color: var(--pink); transform: translateX(2px); }
.footer-connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 20px 30px; margin-bottom: 24px; }
.footer-connect-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-connect-label { color: var(--pink); font-weight: 800; font-size: 0.9rem; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: color 0.2s; }
.footer-email:hover { color: white; }
/* SM-389 (supersedes the SM-354 light chip): the footer logo sits directly on the dark brand card - no white box. The supplied transparent artwork is used as is (proportions, colours, transparency untouched); only a faint light halo is added so its dark wordmark stays readable on the dark panel. */
.footer-brand .nav-logo { background: none; border-radius: 0; padding: 0; }
.footer-brand .footer-logo-img { width: 230px; max-width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,0.45)) drop-shadow(0 0 6px rgba(255,255,255,0.12)); }
.footer-email svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: 0.82rem; gap: 12px; color: rgba(255,255,255,0.5); padding: 0 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; text-decoration: none; color: rgba(255,255,255,0.55); transition: all 0.2s; font-size: 0.9rem; }
.footer-social a:hover { background: var(--pink-strong); color: white; border-color: var(--pink-strong); }
.cookie-settings-link { color: rgba(255,255,255,0.55) !important; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.cookie-settings-link:hover { color: white !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { left: 16px; right: 16px; padding: 10px 20px; }
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .footer-top { flex-direction: column; }
  .footer-brand { flex: none; }
  .footer-menu { flex-wrap: wrap; gap: 28px; }
  .footer-col { flex: 1 1 160px; border-left: none; padding: 0; }
}
@media (max-width: 768px) {
  /* Nav drops out of fixed/floating positioning and becomes a plain static
     bar in normal document flow — so page content no longer needs extra
     top padding to clear it (see each page's .hero/.page-wrap padding-top,
     fixed alongside this file: the padding-top used to ALSO reserve a
     fixed nav's worth of space here, double-counting real space the
     now-static nav already occupies — that double count was the actual
     cause of the large empty gap under the mobile header). */
  /* "Mobile Header: Display Navigation Bar Inside Rounded Container" —
     the static bar keeps its normal-flow positioning (no fixed-nav
     clearance needed below it), but is drawn as the same rounded white
     box as the desktop pill, inset from the viewport edges via margin
     rather than a wrapper element. The top inset respects the notch /
     Dynamic Island safe area without adding to it on devices that have
     none. */
  nav { position: static; padding: 8px 18px; max-width: none; margin: max(10px, env(safe-area-inset-top)) 16px 0; background: #fff; border: 1px solid #eeeef3; border-radius: 24px; box-shadow: 0 4px 14px rgba(20,20,40,0.04); }
  nav.scrolled { padding: 8px 18px; box-shadow: 0 4px 14px rgba(20,20,40,0.04); }
  /* The logo's desktop size (60px) made the header taller than its own
     44px-min touch-target hamburger button, so it alone dictated a ~77px
     bar. Shrinking it below that floor lets the button's own min-height
     set the header's real height instead — a properly compact ~61px bar,
     with the logo and button still sharing one centered row via nav's
     existing `align-items: center`. */
  .nav-logo img { height: 40px; }
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .footer-brand { padding: 24px 22px; }
  .footer-connect { padding: 18px 22px; }
  footer { padding: 40px 0 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .footer-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .footer-menu { flex-direction: column; gap: 20px; }
  .footer-col { flex: none; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-connect { align-items: flex-start; flex-direction: column; }
}
