/*
Theme Name: Imagistack
Theme URI: https://imagistack.com
Author: Imagistack (converted from Claude Design export)
Author URI: https://imagistack.com
Description: Custom theme for Imagistack — AI-native product engineering. Faithful conversion of the Claude Design static export into a responsive WordPress theme with an editable primary navigation menu and site-wide header/footer chrome.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imagistack
*/

/* ---------------------------------------------------------------
   GLOBAL BASE (shared across every page; page-specific CSS lives
   inside each template's own <style> block, preserved verbatim)
----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #F9F9F9;
  color: #1A1917;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------------------------------------------------------------
   PRIMARY NAV MENU  (wp_nav_menu output, styled to match export)
----------------------------------------------------------------- */
.primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  margin: 0;
  padding: 0;
}
.primary-menu li { position: relative; }
.primary-menu a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(243, 237, 228, 0.82);
  transition: color 0.2s;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: #F9F9F9;
}

/* Sub-menus (if the client adds dropdowns from Appearance → Menus) */
.primary-menu ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1A1917;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  z-index: 120;
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.primary-menu li:hover > ul.sub-menu { display: flex; }
.primary-menu ul.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
}
.primary-menu ul.sub-menu a:hover { background: rgba(16,185,129,0.12); color: #10B981; }

/* ---------------------------------------------------------------
   MOBILE NAV
----------------------------------------------------------------- */
.mobile-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  padding: 13px 0;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  color: #F3EDE4;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
}
.mobile-menu a:hover { color: #10B981; }
.mobile-menu .sub-menu { list-style: none; padding-left: 14px; }

/* Footer nav lists rendered via wp_nav_menu */
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { font-size: 14px; color: rgba(243,237,228,0.70); transition: color 0.2s; }
.footer-menu a:hover { color: #10B981; }

.nl:hover { color: #F3EDE4 !important; }

/* Top-bar menu (FAQ / Policies) */
.topbar-menu { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.topbar-menu a { font-size: 11.5px; color: rgba(243,237,228,0.62); font-family: 'DM Sans'; transition: color 0.2s; }
.topbar-menu a:hover { color: #10B981; }

/* ---------------------------------------------------------------
   RESPONSIVE CHROME  (header + mobile toggle)
----------------------------------------------------------------- */
@media (max-width: 900px) {
  .primary-menu { display: none !important; }
  .nav-cta { display: none !important; }
  .ham-btn { display: flex !important; margin-left: auto; }
}
@media (min-width: 901px) {
  .ham-btn { display: none !important; }
  #mob-nav { display: none !important; }
}
@media (max-width: 768px) {
  .topbar-tagline { display: none !important; }
}

/* WP admin bar offset so fixed top bar isn't hidden behind it */
body.admin-bar .site-topbar { top: 32px; }
body.admin-bar .site-nav { top: 68px; }
@media (max-width: 782px) {
  body.admin-bar .site-topbar { top: 46px; }
  body.admin-bar .site-nav { top: 82px; }
}
