/* forenly.ai header (l2c, kurucu 01.12.2026)
   - "whop'u da ekle, marka logo, marka adı, tag daha büyük olsun" · "logoyu bi tık daha büyük yap"
   - "bu 3 element bir arada hamburger menü altında açılsın" (social icons, theme switch, Book a meeting)
   Desktop (>=1024): one row, everything visible.
   Below 1024: logo + FORENLY AI + tag + menu button; the button opens one card with the three elements. */

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .fn-nav a[href="/"] > img { width: 66px !important; height: 66px !important; }
  .fn-nav a[href="/"] .fn-ink { font-size: 26px !important; }
  .fn-nav a[href="/"] .fn-brand-tag { font-size: 14px !important; margin-top: 5px !important; }
}

/* ---------- Phone and tablet ---------- */
@media (max-width: 1023.98px) {
  /* Brand: bigger, always shown */
  .fn-nav a[href="/"] > img { display: block !important; width: 52px !important; height: 52px !important; }
  .fn-nav a[href="/"] .fn-ink { font-size: 23px !important; }
  .fn-nav a[href="/"] .fn-brand-tag { font-size: 13px !important; margin-top: 4px !important; }

  /* The old full-screen sheet and the lone theme button stay hidden */
  #fn-sheet, .fn-nav button.fn-iconbtn[title="Colour theme"] { display: none !important; }

  /* Menu button: 44 px target, quiet surface */
  .fn-nav button[aria-controls="fn-sheet"] {
    display: grid !important; width: 44px !important; height: 44px !important;
    border: 1px solid var(--fn-line) !important; border-radius: 12px !important;
    background: var(--fn-bg) !important; color: var(--fn-ink) !important;
  }
  .fn-nav.fn-open button[aria-controls="fn-sheet"] { background: var(--fn-hover) !important; }

  /* Closed: the three elements are not in the bar */
  .fn-nav > .container > div.lg\:flex,
  .fn-nav div.hidden.lg\:block,
  .fn-nav a[href="/book/"] { display: none !important; }

  /* Open: one card under the bar */
  .fn-nav.fn-open > .container::before {
    content: ""; position: absolute; top: 80px; left: 12px; right: 12px; height: 212px;
    background: var(--fn-card, var(--fn-bg)); border: 1px solid var(--fn-line); border-radius: 20px;
    box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px -12px rgb(0 0 0 / .22);
    animation: fn-menu-in .16s ease-out both;
  }
  .fn-nav.fn-open > .container > div.lg\:flex {
    display: flex !important; position: absolute; top: 96px; left: 28px; right: 28px;
    animation: fn-menu-in .16s ease-out both;
  }
  .fn-nav.fn-open [role="list"] {
    width: 100%; justify-content: space-between; gap: 0 !important;
  }
  .fn-nav.fn-open [role="list"] a {
    width: 44px !important; height: 44px !important; border-radius: 12px !important;
  }
  .fn-nav.fn-open [role="list"] a svg { width: 20px !important; height: 20px !important; }

  .fn-nav.fn-open div.hidden.lg\:block {
    display: flex !important; position: absolute; top: 156px; left: 28px; right: 28px;
    align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid var(--fn-line);
    animation: fn-menu-in .16s ease-out both;
  }
  .fn-nav.fn-open div.hidden.lg\:block::before {
    content: "Theme"; font-size: 15px; font-weight: 600; color: var(--fn-ink);
  }
  .fn-nav .fn-switch button { width: 36px !important; height: 36px !important; }

  .fn-nav.fn-open a[href="/book/"] {
    display: flex !important; position: absolute !important; top: 224px; left: 28px; right: 28px;
    height: 52px !important; justify-content: center; font-size: 16px !important;
    --star-border-surface: var(--fn-action, #252b27) !important;
    --star-border-text: var(--fn-action-ink, #ffffff) !important;
    animation: fn-menu-in .16s ease-out both;
  }
}

@keyframes fn-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fn-nav *, .fn-nav > .container::before { animation: none !important; }
}

/* 01.12.2026 founder brief: "WhatsApp button in the navigation", "Floating WhatsApp button fixed at bottom-right" */
/* Floating WhatsApp, bottom right */
.fh-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1f9d55; color: #fff; font: 600 15px/1 "Instrument Sans", Inter, system-ui, sans-serif; text-decoration: none;
  box-shadow: 0 10px 28px -10px rgb(0 0 0 / .45); transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .18s; }
.fh-float:hover { transform: translateY(-2px); background: color-mix(in oklab, #1f9d55 88%, #000); }
.fh-float:active { transform: scale(.97); }
.fh-float:focus-visible { outline: 2px solid #2a4c99; outline-offset: 3px; }
.fh-float svg { width: 26px; height: 26px; }
@media (max-width: 559px) { .fh-float { width: 56px; padding: 0; justify-content: center; } .fh-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Header WhatsApp button (desktop row and phone menu card) */
.fn-nav [role="list"] a[title="WhatsApp"] { color: #fff !important; background: #1f9d55 !important; border-radius: 999px !important; width: auto !important; padding: 0 14px 0 12px !important; gap: 8px; margin-right: 6px; }
.fn-nav [role="list"] a[title="WhatsApp"]::after { content: "WhatsApp"; font: 600 14px/1 "Instrument Sans", Inter, system-ui, sans-serif; }
.fn-nav [role="list"] a[title="WhatsApp"]:hover { background: color-mix(in oklab, #1f9d55 88%, #000) !important; }

@media (max-width: 1023.98px) {
  .fn-nav [role="list"] a[title="WhatsApp"] { width: 44px !important; padding: 0 !important; margin-right: 0; }
  .fn-nav [role="list"] a[title="WhatsApp"]::after { content: none; }
}
@media (max-width: 379.98px) { .fn-nav.fn-open [role="list"] a { width: 40px !important; } }
