/* ===================================================
   LegalToolGuide.com — Premium UI Architecture (v3)
   US Legal Authority • March 2026
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy-950: #020617;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --gold-500: #b88e2d;
  --gold-400: #d4a843;
  --gold-alpha: rgba(212, 168, 67, 0.15);
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-900: #0f172a;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --container-max: 1200px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 20px 40px -10px rgba(2, 6, 23, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(2, 6, 23, 0.3);
}

/* --- Base Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; transition: var(--transition); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-navy { background-color: var(--navy-950); color: var(--white); }
.text-gold { color: var(--gold-400); }

/* --- Grid System --- */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Component: Hero 3.0 --- */
.hero-wrapper {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 70% 30%, var(--navy-800) 0%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero-content { position: relative; z-index: 10; padding-right: 40px; }
.hero-visual {
  position: relative;
  z-index: 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }

/* --- Component: Expert Ledger --- */
.expert-ledger-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}
.expert-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-premium); border-color: var(--gold-500); }
.expert-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 32px; right: 32px; height: 3px;
  background: var(--navy-900);
  transition: var(--transition);
}
.expert-card:hover::after { background: var(--gold-500); }

/* --- Glassmorphism --- */
.glass-overlay {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); }

/* --- Component: Categories Matrix --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.category-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: var(--navy-900);
}
.category-card:hover { transform: translateY(-5px); border-color: var(--gold-500); background: var(--white); box-shadow: var(--shadow-premium); }
.category-card h3 { font-size: 1.1rem; margin-bottom: 0; }

/* --- Component: Comparison Hub --- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.comparison-btn {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  color: var(--navy-900);
  transition: var(--transition);
}
.comparison-btn:hover { background: var(--navy-950); color: var(--white); border-color: var(--navy-950); }

/* --- Component: Authority List --- */
.authority-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  list-style: none;
  margin: 32px 0;
}
.authority-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--navy-800);
}
.authority-point-item::before { content: '✓'; color: var(--gold-500); font-weight: 900; }

/* --- Header Architecture --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: var(--transition);
}
.nav-link:hover { color: var(--gold-400); opacity: 1; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 4px;
  transition: var(--transition);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--navy-950);
    gap: 40px;
    transform: translateX(100%);
    opacity: 0;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
  }
  
  .grid-2, .grid-4, .expert-ledger-grid { grid-template-columns: 1fr; }
  .hero-wrapper { min-height: auto; padding: 100px 0; flex-direction: column; }
  .hero-content { padding-right: 0; margin-bottom: 60px; text-align: center; }
  .section-padding { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 60px 0; }
  .category-grid, .comparison-grid, .authority-points { grid-template-columns: 1fr; }
}
