/* ─── Variables ────────────────────────────────────────────────────────── */
:root {
  --bs-primary:        #3d6be0;
  --bs-primary-rgb:    61, 107, 224;
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
  --navbar-height:     70px;
  --section-padding:   5rem;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { font-family: var(--bs-font-sans-serif); color: #1a1a2e; }
.py-6 { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }

/* ─── Navbar ────────────────────────────────────────────────────────────── */
#mainNav {
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}
#mainNav.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); }
.navbar-brand { font-size: 1.25rem; color: var(--bs-primary) !important; letter-spacing: -.5px; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: #444 !important; padding: .5rem .9rem !important; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--bs-primary) !important; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-gradient { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.65));
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* ─── Animations ────────────────────────────────────────────────────────── */
.animate-fade-up { animation: fadeUp 0.8s ease both; }
.delay-1         { animation-delay: 0.15s; }
.delay-2         { animation-delay: 0.3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Page header ───────────────────────────────────────────────────────── */
.page-header { border-bottom: 1px solid #e9ecef; }
.page-header h1 { color: #1a1a2e; }

/* ─── Feature cards ─────────────────────────────────────────────────────── */
.feature-card { border-radius: 16px !important; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(61,107,224,.12) !important; }
.feature-icon {
  width: 52px; height: 52px;
  background: rgba(61, 107, 224, .1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--bs-primary);
}

/* ─── Blog cards ────────────────────────────────────────────────────────── */
.blog-card { border-radius: 16px !important; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1) !important; }
.blog-thumb { height: 200px; object-fit: cover; }
.blog-thumb-placeholder { height: 200px; }

/* ─── Contact form ──────────────────────────────────────────────────────── */
.contact-form .form-control {
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(61,107,224,.12);
}
.contact-form .form-label { font-size: .85rem; color: #555; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a2e;
  color: #adb5bd;
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.site-footer h5, .site-footer h6 { color: #fff; }
.footer-links { line-height: 2; }
.footer-links li, .footer-links a { color: #adb5bd; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #adb5bd;
  text-decoration: none;
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.footer-social:hover { background: var(--bs-primary); color: #fff; }

/* ─── Umbraco rich-text content ─────────────────────────────────────────── */
.umbraco-content h1, .umbraco-content h2,
.umbraco-content h3, .umbraco-content h4 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.umbraco-content p  { color: #555; line-height: 1.8; }
.umbraco-content a  { color: var(--bs-primary); }
.umbraco-content img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; }
.umbraco-content ul, .umbraco-content ol { color: #555; line-height: 2; }
.umbraco-content blockquote {
  border-left: 4px solid var(--bs-primary);
  padding: 1rem 1.5rem;
  background: rgba(61,107,224,.05);
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
}

/* ─── Badges ────────────────────────────────────────────────────────────── */
.bg-primary-subtle { background: rgba(61, 107, 224, .1) !important; }
.text-primary       { color: var(--bs-primary) !important; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,107,224,.35);
  background: #2d57cc;
  border-color: #2d57cc;
}
.btn-outline-primary { border-radius: 50px; font-weight: 500; border-color: var(--bs-primary); color: var(--bs-primary); }
.btn-outline-primary:hover { background: var(--bs-primary); border-color: var(--bs-primary); }
.btn-outline-secondary { border-radius: 50px; font-weight: 500; }

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.rounded-4 { border-radius: 1rem !important; }
.placeholder-img { min-height: 300px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
}
