:root {
  --brand-primary: #1e293b;
  --brand-secondary: #334155;
  --brand-blue: #2563eb;
  --brand-blue-light: #eff6ff;
  --brand-light: #f8fafc;
  --brand-white: #ffffff;
  --brand-border: #e2e8f0;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-main);
  color: var(--brand-secondary);
  background-color: var(--brand-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand-primary) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--brand-secondary) !important;
  margin: 0 0.5rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-blue) !important;
  transform: translateY(-1px);
}

/* Masthead / Hero */
.masthead {
  position: relative;
  background-color: var(--brand-primary);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 12rem 0 8rem;
  color: white;
  margin-bottom: 4rem;
}

.masthead .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #212529;
  opacity: 0.5;
}

.page-heading, .post-heading, .site-heading {
  position: relative;
  text-align: center;
}

.page-heading h1, .site-heading h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-top: 0;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subheading {
  font-size: 1.5rem;
  font-weight: 300;
  display: block;
  margin: 1rem 0 0;
  font-family: var(--font-main);
  color: rgba(255,255,255,0.9);
}

/* Content Area */
.container {
  max-width: 1140px;
}

.post-preview > a {
  color: var(--brand-primary);
  text-decoration: none;
}

.post-preview > a:focus, .post-preview > a:hover {
  color: var(--brand-blue);
}

.post-title {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.post-subtitle {
  font-weight: 300;
  margin: 0 0 1rem;
  color: var(--brand-secondary);
  font-size: 1.25rem;
}

.post-meta {
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 0;
  color: var(--brand-accent);
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Footer */
footer {
  padding: 4rem 0;
  background-color: var(--brand-light);
  border-top: 1px solid var(--brand-border);
  margin-top: 5rem;
}

.list-inline-item i {
  font-size: 1.5rem;
  color: var(--brand-primary);
  transition: var(--transition);
}

.list-inline-item i:hover {
  color: var(--brand-blue);
  transform: scale(1.1);
}

.copyright {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--brand-accent);
}

/* Specialty Headers */
.masthead.smallhead {
  padding: 8rem 0 6rem;
}

.content-wrapper {
  margin-top: -4rem !important;
}

.z-1 { z-index: 1; }

.rounded-3 { border-radius: 1rem !important; }

/* Content refinement */
.content h1, .content h2, .content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Legal Pages Styling */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--slate-700);
}

.legal-content section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 2rem;
}

.legal-content section:last-child {
  border-bottom: none;
}

.legal-content h3 {
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

/* Utilities */
.text-brand { color: var(--brand-blue) !important; }
.bg-brand { background-color: var(--brand-blue) !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-heading h1, .site-heading h1 {
    font-size: 2.5rem;
  }
  .masthead {
    padding: 8rem 0 4rem;
  }
  .masthead.smallhead {
    padding: 6rem 0 3rem;
  }
  .content-wrapper {
    margin-top: 0 !important;
  }
}

