:root {
  --blaze-navy: #0f1c2e;
  --blaze-navy-2: #16263d;
  --blaze-gold: #c9a227;
  --blaze-gold-2: #e0bc4a;
  --blaze-sand: #f6f1e8;
  --blaze-ink: #1a1a1a;
}
body.public-body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--blaze-ink);
  background: #fff;
}
.navbar-blaze {
  background: transparent !important;
}
.navbar-blaze .nav-link {
  color: var(--blaze-navy) !important;
  font-weight: 600;
}
.navbar-blaze .nav-link:hover,
.navbar-blaze .nav-link.active,
.navbar-blaze .nav-link.show {
  color: var(--blaze-gold) !important;
}
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
}
.brand-mark span { color: var(--blaze-gold); }
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(15,28,46,.94) 0%, rgba(15,28,46,.72) 48%, rgba(15,28,46,.42) 100%),
    url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  min-height: 86vh;
  color: #fff;
  display: flex;
  align-items: center;
}
.hero h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
}
.btn-gold {
  background: var(--blaze-gold);
  color: var(--blaze-navy);
  border: none;
  font-weight: 600;
}
.btn-gold:hover { background: var(--blaze-gold-2); color: var(--blaze-navy); }
.btn-outline-gold {
  border: 1px solid var(--blaze-gold);
  color: var(--blaze-gold);
}
.btn-outline-gold:hover { background: var(--blaze-gold); color: var(--blaze-navy); }
.section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
}
.card-service, .card-project {
  border: 0;
  box-shadow: 0 8px 30px rgba(15,28,46,.08);
  height: 100%;
}
.footer-blaze {
  background: var(--blaze-navy);
  color: rgba(255,255,255,.75);
}
.page-hero {
  background: var(--blaze-navy);
  color: #fff;
  padding: 4.5rem 0 3rem;
}

.page-hero .section-title {
  overflow-wrap: anywhere;
}
/* ERP chrome lives in erp.css so /app matches admin. */
.stat-card {
  border: 0;
  box-shadow: 0 6px 20px rgba(15,28,46,.07);
}
.analytics-bar .progress {
  background: #eef1f4;
}
.analytics-bar .progress-bar {
  max-width: 100%;
  background: var(--blaze-gold);
}
.kanban-col {
  background: #f3f4f6;
  border-radius: .75rem;
  min-height: 420px;
}
.kanban-card {
  background: #fff;
  border-radius: .5rem;
  padding: .75rem;
  margin-bottom: .6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.gantt-track {
  position: relative;
  height: 28px;
  background: #eef1f4;
  border-radius: 6px;
}
.gantt-bar {
  position: absolute;
  top: 4px;
  height: 20px;
  background: var(--blaze-gold);
  color: var(--blaze-navy);
  border-radius: 4px;
  font-size: 11px;
  line-height: 20px;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
}

html {
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

.navbar-blaze .site-logo,
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  background: transparent;
  padding: 0;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.site-logo:hover img {
  opacity: 0.95;
}

.site-logo img.site-logo-mark,
.site-logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  opacity: 1;
  border-radius: 8px;
}

.navbar-blaze .navbar-toggler {
  border-color: rgba(15, 28, 46, 0.28);
}

.navbar-blaze .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
}

.public-body form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not(.form-control):not(.form-check-input):not(.btn),
.public-body form select:not(.form-select):not(.form-control),
.public-body form textarea:not(.form-control) {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d4cbb8;
  border-radius: 0.4rem;
}

.public-body table,
.erp-workspace table,
.portal-body table {
  width: 100%;
}

.portal-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.55rem 0;
}

.portal-nav a:hover {
  color: var(--blaze-gold);
}

@media (min-width: 992px) {
  .portal-nav a {
    padding: 0.2rem 0;
  }
}

@media (max-width: 991.98px) {
  .navbar-blaze .navbar-collapse {
    padding: 0.75rem 0 1rem;
  }

  .navbar-blaze .nav-link {
    padding: 0.65rem 0;
  }

  .navbar-blaze .btn-gold {
    display: block;
    width: 100%;
    margin: 0.5rem 0 0 !important;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .public-body .table,
  .erp-workspace .table,
  .portal-body .table,
  .table-scroll {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    min-height: 0;
    padding: 3.25rem 0 2.75rem;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .hero .btn {
    display: block;
    width: 100%;
    margin: 0 0 0.7rem !important;
  }

  .page-hero {
    padding: 2.4rem 0 1.6rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .footer-blaze {
    margin-top: 2rem !important;
    padding-top: 2rem !important;
  }

  .kanban-col {
    min-height: 280px;
  }

  .gantt-track {
    min-width: 280px;
  }
}

@media (max-width: 575.98px) {
  .site-logo img {
    height: 42px;
  }

  .site-logo-mark {
    width: 40px;
    height: 40px;
  }
}

/* Public site — marketing layout (does not change /app ERP chrome). */
.public-body {
  background: #fbf8f2;
}

.site-header {
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 28, 46, 0.08);
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.06);
}

.site-header .navbar-blaze {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.site-topbar {
  background: #0a1420;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.16);
  padding: 0.45rem 0;
}

.site-topbar-contact,
.site-topbar-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.site-topbar-contact a,
.site-topbar-social a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-topbar-contact a:hover,
.site-topbar-social a:hover {
  color: var(--blaze-gold);
}

.site-topbar-social a {
  width: 1.85rem;
  height: 1.85rem;
  justify-content: center;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 50%;
  color: var(--blaze-gold);
  font-size: 0.92rem;
}

.site-topbar-social a:hover {
  background: var(--blaze-gold);
  color: var(--blaze-navy);
  border-color: var(--blaze-gold);
}

@media (max-width: 575.98px) {
  .site-topbar-contact span {
    display: none;
  }
}

.navbar-blaze {
  border-bottom: 0;
}

.navbar-blaze .dropdown-menu {
  border: 1px solid rgba(15, 28, 46, 0.06);
  border-radius: 10px;
  background: #fffef9;
  box-shadow: 0 16px 40px rgba(15, 28, 46, 0.12);
  padding: 0.5rem;
}

.navbar-blaze .dropdown-item {
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  color: var(--blaze-navy);
}

.navbar-blaze .dropdown-item:hover {
  background: var(--blaze-sand);
  color: var(--blaze-navy);
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  background: #1ebe5d;
  transform: scale(1.06);
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.7rem;
  }
}

.hero-kicker {
  letter-spacing: 0.22em;
  color: var(--blaze-gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-panel {
  max-width: 40rem;
}

.stat-strip {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.stat-tile {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 14px 40px rgba(15, 28, 46, 0.1);
  height: 100%;
}

.stat-tile strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: var(--blaze-navy);
  line-height: 1;
}

.stat-tile span {
  color: #6b655b;
  font-size: 0.88rem;
}

.eyebrow {
  color: var(--blaze-gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.cover-block {
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 28, 46, 0.05), rgba(15, 28, 46, 0.78)),
    linear-gradient(135deg, #1b3354, #0f1c2e 55%, #c9a227);
}

.cover-block.tone-2 { background: linear-gradient(180deg, rgba(15,28,46,.08), rgba(15,28,46,.8)), linear-gradient(135deg, #3a4d3c, #0f1c2e 60%, #c9a227); }
.cover-block.tone-3 { background: linear-gradient(180deg, rgba(15,28,46,.08), rgba(15,28,46,.8)), linear-gradient(135deg, #4a3728, #0f1c2e 60%, #c9a227); }
.cover-block.tone-4 { background: linear-gradient(180deg, rgba(15,28,46,.08), rgba(15,28,46,.8)), linear-gradient(135deg, #2c3e50, #16263d 55%, #c9a227); }

.card-project img,
.card-journal img,
.project-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-project,
.card-journal,
.card-service {
  overflow: hidden;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-project:hover,
.card-journal:hover,
.card-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 28, 46, 0.12);
}

.process-step {
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
}

.process-step .num {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--blaze-gold);
  font-size: 1.6rem;
  font-weight: 700;
}

.cta-band {
  background: linear-gradient(120deg, var(--blaze-navy), #1d3454);
  color: #fff;
  border-radius: 18px;
  padding: 2.5rem;
}

.quote-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.07);
  height: 100%;
}

.quote-card .stars {
  color: var(--blaze-gold);
  letter-spacing: 0.08em;
}

.filter-chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d8d0c2;
  color: var(--blaze-navy);
  text-decoration: none;
  font-size: 0.88rem;
  margin: 0 0.3rem 0.5rem 0;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--blaze-navy);
  color: #fff;
  border-color: var(--blaze-navy);
}

.page-hero {
  background:
    linear-gradient(115deg, rgba(15, 28, 46, 0.94), rgba(15, 28, 46, 0.72)),
    url("https://images.unsplash.com/photo-1487956382158-bb926046304a?auto=format&fit=crop&w=1600&q=70") center/cover;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body p + p {
  margin-top: 1rem;
}

.footer-blaze a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

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