/* ==========================================================================
   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 carousel ---------------------------------------------------------
   Each slide's --slide-image and --slide-position are set inline per entry
   (see index.njk) -- --slide-position is the CMS "Image position" field,
   letting an editor choose which part of a photo stays visible once it's
   cropped to fill the frame (background-size: cover). */
.sempya-hero-carousel { position: relative; }
.sempya-hero-slide {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(28,22,17,.86) 0%, rgba(28,22,17,.68) 38%, rgba(28,22,17,.30) 70%, rgba(28,22,17,.12) 100%),
    var(--slide-image, none) var(--slide-position, center center) / cover no-repeat;
  background-color: var(--umber);
}
@media (max-width: 991.98px) {
  /* Narrow screens put text over the middle of the frame, so the horizontal
     gradient stops working - fall back to a gentler vertical one. */
  .sempya-hero-slide {
    min-height: 60vh;
    background:
      linear-gradient(180deg, rgba(28,22,17,.72) 0%, rgba(28,22,17,.55) 55%, rgba(28,22,17,.75) 100%),
      var(--slide-image, none) var(--slide-position, center center) / cover no-repeat;
  }
}
.sempya-hero-slide .sempya-eyebrow { color: var(--orange); letter-spacing: .15em; }
.sempya-hero-slide h1 { text-shadow: 0 2px 18px rgba(28,22,17,.55); }
.sempya-hero-slide p  { text-shadow: 0 1px 10px rgba(28,22,17,.55); }

/* Owl controls */
.sempya-hero-carousel .owl-nav { position: absolute; inset: 0; pointer-events: none; }
.sempya-hero-carousel .owl-nav button.owl-prev,
.sempya-hero-carousel .owl-nav button.owl-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; pointer-events: auto;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  color: #fff !important; font-size: 1.4rem; line-height: 1; transition: .3s;
}
.sempya-hero-carousel .owl-nav button.owl-prev { left: 18px; }
.sempya-hero-carousel .owl-nav button.owl-next { right: 18px; }
.sempya-hero-carousel .owl-nav button:hover { background: var(--brown) !important; }
.sempya-hero-carousel .owl-dots {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
}
.sempya-hero-carousel .owl-dot { display: inline-block; }
.sempya-hero-carousel .owl-dot span {
  display: inline-block; width: 26px; height: 4px; margin: 0 4px;
  background: rgba(255,255,255,.4); transition: .3s;
}
.sempya-hero-carousel .owl-dot.active span { background: var(--orange); width: 40px; }
@media (max-width: 767.98px) { .sempya-hero-carousel .owl-nav { display: none; } }

/* --- 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; } }
