/* =======================================================
   BASE STYLES - Classic Numismatic Design System
   Professional, Trustworthy, Timeless
   ======================================================= */

@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Playfair+Display:wght@400;600;700;800&family=Lato:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  /* ===== CLASSIC NUMISMATIC COLOR PALETTE ===== */

  /* Primary Colors */
  --primary-blue: #005b96; /* Logo accents, active states, icons */
  --teal-accent: #2d9cdb; /* Status badges, "Active" labels */
  --deep-navy: #0b132b; /* Main headings, high-contrast text */

  /* Text Colors */
  --body-gray: #5d6d7e; /* Metadata, long-form text */
  --text-dark: #0b132b; /* Primary text */
  --text-medium: #5d6d7e; /* Secondary text */
  --text-light: #8b98a5; /* Tertiary text, placeholders */

  /* Surface Colors */
  --soft-surface: #f8f9fa; /* Card backgrounds, alternates */
  --bg-white: #ffffff; /* Main background */
  --border-stroke: #e1e8ed; /* Separators, input borders */

  /* Semantic Colors */
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  --accent-gold: #d4af37; /* Coin accent gold */

  /* Hover States */
  --primary-hover: #004a7a; /* Darker blue for hover */
  --teal-hover: #2488bd; /* Darker teal for hover */

  /* ===== SHADOWS - Soft "Floating" Effect ===== */
  --shadow-xs: 0px 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0px 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0px 4px 24px rgba(0, 0, 0, 0.06); /* Card shadow */
  --shadow-lg: 0px 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0px 12px 48px rgba(0, 0, 0, 0.1);

  /* ===== TYPOGRAPHY ===== */
  --font-heading: "Lucida Bright", serif;
  --font-body: "Lucida Bright", serif;

  /* Font Weights */
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* ===== SPACING - Air & Breathing Room ===== */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Gutter Spacing */
  --gutter: 24px;
  --gutter-lg: 32px;

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px; /* Standard card radius */
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ===== LAYOUT ===== */
  --container-width: 1200px;

  /* ===== TRANSITIONS ===== */
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Z-INDEX SCALE ===== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--body-gray);
  line-height: var(--line-height-relaxed);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--deep-navy);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===== ASTRA HEADER & NAVIGATION FIXES ===== */
/* Force navigation to match the "Original" Shop Page Style */

.main-header-bar,
.ast-main-header-bar {
  background-color: var(--soft-surface) !important; /* Light grey/white feel */
  border-bottom: 1px solid var(--border-stroke) !important;
}

.main-navigation .main-header-menu .menu-item a {
  color: var(--primary-blue) !important;
  font-family: var(--font-heading) !important;
  font-weight: 500 !important; /* Medium weight for clarity */
  font-size: 16px !important;
  transition: var(--transition) !important;
}

.main-navigation .main-header-menu .menu-item:hover > a {
  color: var(--primary-hover) !important;
}

/* Fix "Broken" Black/Bold Active State on Home Page */
.main-navigation .main-header-menu .menu-item.current-menu-item > a,
.main-navigation .main-header-menu .menu-item.current_page_item > a {
  color: var(--primary-blue) !important;
  font-weight: 500 !important;
}

/* Standardize Search Bar to match Shop */
.ast-search-menu-icon .search-form .search-field {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-stroke) !important;
}

.ast-search-menu-icon .search-form .search-submit {
  background-color: var(--primary-blue) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

/* =======================================================
   HEADER CONSISTENCY FIX
   Keep header container at standard width even on full-width pages
   ======================================================= */

.site-header .ast-container {
  max-width: 1240px !important;
  margin: 0 auto !important;
}

/* Header Z-Index Fixes */
#masthead,
.site-header,
.ast-main-header-wrap {
  z-index: 999999 !important;
  overflow: visible !important;
}
