/* Romami LLC - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --romami-black: #1a1a1a;
  --romami-dark: #2d2d2d;
  --romami-gold: #c9a84c;
  --romami-gold-light: #ddb96b;
  --romami-white: #ffffff;
  --romami-grey: #f5f5f5;
  --romami-grey-dark: #888888;
  --deed-red: #DC2626;
  --lien-green: #059669;
  --hybrid-blue: #2563EB;
  --redemption-amber: #D97706;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Navigation - Light theme */
.romami-nav {
  background: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1a1a1a;
}

.nav-logo svg {
  width: 40px;
  height: 40px;
  fill: #c9a84c;
}

.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a84c;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #c9a84c;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #555;
  font-size: 0.85rem;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
  color: #c9a84c;
}

.nav-cta {
  background: #c9a84c;
  color: #1a1a1a !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #ddb96b;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer - Dark grey instead of black */
.romami-footer {
  background: #2d2d2d;
  color: #aaa;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  color: #c9a84c;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #999;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  display: block;
  color: #999;
  text-decoration: none;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #c9a84c;
}

.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-gold {
  background: #c9a84c;
  color: #1a1a1a;
}

.btn-gold:hover {
  background: #ddb96b;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #c9a84c;
  border: 2px solid #c9a84c;
}

.btn-outline:hover {
  background: #c9a84c;
  color: #1a1a1a;
}

.btn-dark {
  background: #1a1a1a;
  color: #ffffff;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Form elements */
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #c9a84c;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #2d2d2d;
}

/* Tables - lighter headers */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #2d2d2d;
  color: #c9a84c;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

tr:hover td {
  background: #f5f5f5;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-deed { background: #fee2e2; color: #991b1b; }
.badge-lien { background: #d1fae5; color: #065f46; }
.badge-hybrid { background: #dbeafe; color: #1e40af; }
.badge-redemption { background: #fef3c7; color: #92400e; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Utility */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-dark { background: #1a1a1a; color: #ffffff; }
.section-grey { background: #f5f5f5; }
.text-center { text-align: center; }
.text-gold { color: #c9a84c; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .section { padding: 2rem 0; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Map styles */
.map-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.map-state {
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.2s;
}

.map-state:hover {
  stroke-width: 3;
  filter: brightness(1.1);
}

.map-state-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: white;
  text-anchor: middle;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.map-tooltip {
  position: absolute;
  background: #1a1a1a;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  display: none;
}

/* State detail panel */
.state-panel {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.state-panel h2 {
  color: #1a1a1a;
  margin-bottom: 1rem;
}

/* Admin */
.admin-sidebar {
  background: #2d2d2d;
  min-height: 100vh;
  padding: 2rem 0;
  width: 260px;
  position: fixed;
  left: 0;
  top: 0;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
  color: #c9a84c;
  background: #3a3a3a;
  border-left-color: #c9a84c;
}

.admin-main {
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
  background: #f8f9fa;
}

.admin-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.admin-stat {
  text-align: center;
  padding: 1.5rem;
}

.admin-stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c9a84c;
  font-family: 'Playfair Display', serif;
}

.admin-stat .label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #2d2d2d;
  z-index: 2000;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.mobile-nav.open {
  transform: translateX(0);
  display: block;
}

.mobile-nav a {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid #444;
  font-size: 1rem;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
}

.mobile-overlay.open {
  display: block;
}
