/* ==========================================================================
   Sempya brand layer over the HighTech template.
   The palette swap (blue->Coffee Brown, green->Flame Orange, near-black->Deep
   Umber, off-white->Warm Cream) was applied directly in bootstrap.min.css and
   style.css so only ONE palette exists in the build. Values are verbatim from
   assets/sempya-color-palette.pdf.
   ========================================================================== */

:root {
  --brown:        #503925;  /* Coffee Brown  - primary: nav, buttons, body text */
  --orange:       #ec9725;  /* Flame Orange  - accent: DARK BACKGROUNDS ONLY    */
  --olive:        #5c7a52;  /* Moss Olive    - success                          */
  --ochre:        #b5790a;  /* Ochre         - warning                          */
  --terracotta:   #b2402f;  /* Terracotta    - danger, and accent on LIGHT      */
  --cream:        #f7f4ef;  /* Warm Cream    - page background                  */
  --umber:        #1c1611;  /* Deep Umber    - dark sections                    */
  --beige-tint:   #ece4de;  /* card / pill background                           */
  --beige-border: #ddd0c6;  /* dividers, borders                                */
}

body { background-color: #FFFFFF; }

/* --- Accent contrast guard -------------------------------------------------
   Flame Orange is 7.69:1 on Deep Umber and 4.62:1 on Coffee Brown - both fine.
   But it is only 2.12:1 on Warm Cream and 2.3:1 on white, so it must never
   carry text on a light background. HighTech used its bright green the same
   way, so anywhere .text-secondary lands on light, swap to Terracotta
   (5.22:1 on cream) which is still unmistakably Sempya. */
.bg-light .text-secondary,
.bg-white .text-secondary,
section:not(.bg-dark):not(.bg-primary) .text-secondary,
.text-secondary.on-light {
  color: var(--terracotta) !important;
}

/* --- Wordmark -------------------------------------------------------------
   Now an SVG traced from the original art (potrace, 10x upsample), so it is
   resolution-independent - no max-width cap needed any more. */
.sempya-wordmark { height: 54px; width: auto; display: block; }
@media (max-width: 991.98px) { .sempya-wordmark { height: 42px; } }
.footer .sempya-wordmark { height: 62px; }

/* --- Inner page header ----------------------------------------------------- */
.page-header {
  background: linear-gradient(rgba(28, 22, 17, .86), rgba(28, 22, 17, .86)),
              var(--page-header-image, none) center center no-repeat;
  background-size: cover;
  background-color: var(--umber);
}
.page-header .breadcrumb-item a { color: #FFFFFF; text-decoration: none; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* --- Hero ------------------------------------------------------------------ */
.sempya-hero {
  background: linear-gradient(rgba(28, 22, 17, .80), rgba(28, 22, 17, .74)),
              var(--hero-image, none) center center no-repeat;
  background-size: cover;
  background-color: var(--umber);
  min-height: 74vh;
  display: flex;
  align-items: center;
}
@media (max-width: 767.98px) { .sempya-hero { min-height: 60vh; } }

/* --- Service cards --------------------------------------------------------- */
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--beige-border);
  border-top: 4px solid var(--brown);
  height: 100%;
  transition: .35s;
}
.service-card:hover { box-shadow: 0 .5rem 2rem rgba(80,57,37,.14); transform: translateY(-4px); }
.service-card .service-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--beige-tint);
  color: var(--brown);
  font-size: 1.35rem;
  border-radius: 50%;
}
.service-card.is-featured { border-top-color: var(--orange); }

/* --- Chips ----------------------------------------------------------------- */
.chip {
  display: inline-block;
  background: var(--beige-tint);
  border: 1px solid var(--beige-border);
  color: var(--brown);
  padding: .5rem 1rem;
  margin: 0 .5rem .6rem 0;
  font-weight: 500;
}

/* --- Stat band ------------------------------------------------------------- */
.stat-band { background: var(--umber); }
.stat-band .stat-value { font-family: 'Saira', sans-serif; font-size: 2.6rem; line-height: 1; color: var(--orange); }
.stat-band .stat-label { color: rgba(255,255,255,.75); }

/* --- Utilities the template lacks ------------------------------------------ */
.py-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
@media (max-width: 767.98px) { .py-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; } }

/* Bootstrap's .text-body is dark; keep it readable on the dark sections. */
.bg-dark .text-body, .footer .text-body { color: rgba(255,255,255,.75) !important; }

.footer .copyright .template-credit,
.footer .template-credit { opacity: .6; font-size: .875rem; }

/* Pages whose last section is light need breathing room before the dark
   footer; pages ending in a .bg-dark band must NOT get a white strip, so
   this is applied per page (pb-6) rather than as a blanket footer margin. */
.pb-6 { padding-bottom: 6rem !important; }
.pt-5.pb-6 { padding-top: 3rem !important; }
@media (max-width: 767.98px) { .pb-6 { padding-bottom: 3.5rem !important; } }
