:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --accent: #6366f1;
  --bg: #f8fafc;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(16px);
  --text: #0f172a;
  --text-muted: #64748b;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, hsla(243, 75%, 58%, 0.03) 0, transparent 50%),
    radial-gradient(at 100% 100%, hsla(243, 75%, 58%, 0.03) 0, transparent 50%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation (Glassmorphism) --- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.desktop-nav {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* --- Hero & Typography --- */
.hero-section {
  padding: 80px 0 40px;
  text-align: center;
}

.heritage-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 48px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Business Grid (Professional Overhaul) --- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}

.business-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 232, 240, 0.6);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.business-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.b-images {
  height: 240px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.b-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.business-card:hover .b-images img {
  transform: scale(1.15);
}

.b-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.b-tag {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.b-verified {
  background: #059669;
  color: white;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.b-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.b-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.b-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.i-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.i-row i {
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.8;
}

.b-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.b-btn {
  padding: 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.b-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.b-btn.primary:hover {
  background: var(--accent);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.b-btn.secondary {
  background: #f1f5f9;
  color: var(--text);
}

.b-btn.secondary:hover {
  background: #e2e8f0;
}

/* --- Facts Page (Magazine Style) --- */
.facts-magazine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

@media (min-width: 992px) {
  .facts-magazine {
    grid-template-columns: 2fr 1fr;
  }
}

.magazine-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: var(--shadow-md);
}

.mag-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--text);
}

.mag-text {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 20px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.fact-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.fact-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.fact-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* News Cards */
.news-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease;
}

.news-card:hover { border-color: var(--primary); }

.news-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

/* --- Placeholders & Helpers --- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.name-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  height: 100%;
  padding: 20px;
  text-align: center;
}

.pc-title { font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.pc-subtitle { font-size: 0.8rem; opacity: 0.8; font-weight: 500; margin-top: 4px; }

/* --- Footer Nav & Mobile --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 24px;
  z-index: 1001;
}

@media (min-width: 768px) { .bottom-nav { display: none; } }

.bottom-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom-nav a.active { color: var(--primary); }
.bottom-nav a i { font-size: 1.4rem; }

/* Custom Preloader */
#loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f1f5f9;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

/* Utility Animations */
.fade-in {
  animation: reveal 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}