/* ==========================================================================
   LogikDoc marketing site — custom styles on top of Bootstrap 5.3
   Palette: deep navy #14365c / #0f2a43, gold accent #c9a14e, slate greys
   ========================================================================== */

:root {
  --ld-navy: #14365c;
  --ld-navy-dark: #0f2a43;
  --ld-gold: #c9a14e;
  --ld-gold-dark: #a87f2e;
  --ld-slate: #51637a;
  --ld-bg-soft: #f6f8fb;
  --ld-border: #e3e9f0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: #2b3a4d;
}

.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- Utility colors ---------- */
.text-navy { color: var(--ld-navy) !important; }
.text-gold { color: var(--ld-gold) !important; }
.bg-navy { background-color: var(--ld-navy) !important; }
.bg-navy-dark { background-color: var(--ld-navy-dark) !important; }
.bg-soft { background-color: var(--ld-bg-soft) !important; }

/* ---------- Buttons ---------- */
.btn-gold {
  --bs-btn-bg: var(--ld-gold);
  --bs-btn-border-color: var(--ld-gold);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--ld-gold-dark);
  --bs-btn-hover-border-color: var(--ld-gold-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ld-gold-dark);
  --bs-btn-active-border-color: var(--ld-gold-dark);
  --bs-btn-active-color: #fff;
  font-weight: 600;
}

.btn-outline-light-gold {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, 0.55);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: #fff;
}

.btn-navy {
  --bs-btn-bg: var(--ld-navy);
  --bs-btn-border-color: var(--ld-navy);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--ld-navy-dark);
  --bs-btn-hover-border-color: var(--ld-navy-dark);
  --bs-btn-hover-color: #fff;
  font-weight: 600;
}

/* ---------- Navbar ---------- */
.navbar-ld {
  background-color: rgba(15, 42, 67, 0.97);
  backdrop-filter: blur(6px);
}

.navbar-ld .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  margin-inline: 0.25rem;
}

.navbar-ld .nav-link:hover,
.navbar-ld .nav-link:focus {
  color: #fff;
}

.navbar-ld .nav-link.active {
  color: var(--ld-gold);
}

.navbar-ld .navbar-brand {
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(15, 42, 67, 0.94) 35%, rgba(20, 54, 92, 0.72) 70%, rgba(20, 54, 92, 0.45)),
    url("../img/hero-legal.jpg") center / cover no-repeat;
  padding: 9rem 0 6rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 38rem;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(201, 161, 78, 0.6);
  color: var(--ld-gold);
  border-radius: 50rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-mockup {
  filter: drop-shadow(0 24px 48px rgba(8, 22, 38, 0.45));
}

/* Page header for inner pages */
.page-header {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(15, 42, 67, 0.95), rgba(20, 54, 92, 0.82)),
    url("../img/hero-legal.jpg") center / cover no-repeat;
  padding: 8.5rem 0 4rem;
}

.page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.page-header .breadcrumb,
.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.page-header .breadcrumb .active {
  color: var(--ld-gold);
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  color: var(--ld-gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--ld-navy);
}

/* ---------- Feature cards ---------- */
.feature-card {
  border: 1px solid var(--ld-border);
  border-radius: 0.9rem;
  background: #fff;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20, 54, 92, 0.12);
  border-color: rgba(201, 161, 78, 0.55);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(20, 54, 92, 0.08);
  color: var(--ld-navy);
  font-size: 1.4rem;
}

.feature-card:hover .feature-icon {
  background: var(--ld-navy);
  color: var(--ld-gold);
}

/* ---------- Workflow steps ---------- */
.step-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ld-gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.workflow-line {
  border-left: 2px dashed rgba(201, 161, 78, 0.5);
  margin-left: 21px;
  padding-left: 39px;
  padding-bottom: 2rem;
}

.workflow-item:last-child .workflow-line {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* ---------- Stats band ---------- */
.stats-band {
  background:
    linear-gradient(rgba(15, 42, 67, 0.93), rgba(15, 42, 67, 0.93)),
    url("../img/feature-library.jpg") center / cover no-repeat;
  color: #fff;
}

.stat-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ld-gold);
}

/* ---------- Image treatments ---------- */
.img-rounded-shadow {
  border-radius: 1rem;
  box-shadow: 0 18px 44px rgba(20, 54, 92, 0.22);
}

.img-accent-frame {
  position: relative;
  display: inline-block;
}

.img-accent-frame::after {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--ld-gold);
  border-radius: 1rem;
  z-index: -1;
}

/* ---------- Values / about cards ---------- */
.value-card {
  border: 1px solid var(--ld-border);
  border-radius: 0.9rem;
  height: 100%;
  background: #fff;
}

.value-card .bi {
  font-size: 1.6rem;
  color: var(--ld-gold-dark);
}

/* ---------- Contact ---------- */
.contact-info-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 161, 78, 0.14);
  color: var(--ld-gold-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ld-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 161, 78, 0.22);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--ld-navy-dark), var(--ld-navy));
  color: #fff;
  border-radius: 1.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--ld-navy-dark);
  color: rgba(255, 255, 255, 0.72);
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--ld-gold);
}

.footer h6 {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.social-icon:hover {
  border-color: var(--ld-gold);
  background: rgba(201, 161, 78, 0.12);
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

#backToTop.show {
  display: inline-flex;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .hero {
    padding: 7.5rem 0 4.5rem;
  }

  .img-accent-frame::after {
    display: none;
  }
}
