/*
 * STOLARX – brand override CSS
 * Nadpisuje Bootstrap blue → brand brown (#8b5a2b)
 */

:root {
  --stolarx-brown:      #8b5a2b;
  --stolarx-brown-dark: #6d4520;
  --stolarx-brown-deep: #2c1a0e;
  --stolarx-beige:      #faf8f5;
  --stolarx-beige-mid:  #f0e6d8;
}

/* ── Links ──────────────────────────────────────────── */
a {
  color: var(--stolarx-brown);
}
a:hover {
  color: var(--stolarx-brown-dark);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary,
.btn-submit {
  background-color: var(--stolarx-brown) !important;
  border-color:     var(--stolarx-brown) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-submit:hover {
  background-color: var(--stolarx-brown-dark) !important;
  border-color:     var(--stolarx-brown-dark) !important;
}
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--stolarx-brown-dark) !important;
  border-color:     var(--stolarx-brown-dark) !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 90, 43, 0.35) !important;
}

.btn-outline,
.btn-outline-primary {
  border-color: var(--stolarx-brown) !important;
  color:        var(--stolarx-brown) !important;
  background:   transparent !important;
}
.btn-outline:hover,
.btn-outline-primary:hover {
  background-color: var(--stolarx-brown) !important;
  color: #fff !important;
}

/* ── Forms / inputs – focus border & ring ────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--stolarx-brown) !important;
  box-shadow:   0 0 0 0.2rem rgba(139, 90, 43, 0.20) !important;
  outline: none !important;
}

/* floating labels colour on focus */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--stolarx-brown) !important;
}

/* ── Focus ring for any element ──────────────────────── */
*:focus-visible {
  outline-color: var(--stolarx-brown) !important;
  box-shadow: 0 0 0 0.2rem rgba(139, 90, 43, 0.25) !important;
}

/* ── Page title & breadcrumbs ────────────────────────── */
.page-title .breadcrumbs a,
.page-title .breadcrumbs ol li.current {
  color: var(--stolarx-brown);
}

/* ── Section titles – fix overlapping watermark ─────── */
/*
 * Original template uses span.description-title as an absolutely-positioned
 * giant watermark behind h2. With a dark brand colour it becomes visible and
 * overlaps the heading. We convert it to a clean small label above h2 instead.
 */
.section-title span {
  position: static !important;   /* remove absolute positioning */
  display: block !important;
  font-size: 0.8rem !important;  /* small label, not giant watermark */
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--stolarx-brown) !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}
.section-title h2 {
  position: static !important;  /* no need for z-index trick any more */
  z-index: auto !important;
  color: var(--stolarx-brown-deep) !important;
}

/* ── Read-more / continue links in hero ─────────────── */
.blog-hero-content .read-more {
  background: var(--stolarx-brown);
  border-color: var(--stolarx-brown);
}
.blog-hero-content .read-more:hover {
  background: var(--stolarx-brown-dark);
}

/* ── About section badges ────────────────────────────── */
.experience-badge,
.projects-badge {
  background: var(--stolarx-brown);
}

/* ── Check list icons ────────────────────────────────── */
.check-list li i {
  color: var(--stolarx-brown);
}

/* ── Team / cards social icons ───────────────────────── */
.social-overlay .social-icons a:hover,
.social-links a:hover {
  background: var(--stolarx-brown);
  border-color: var(--stolarx-brown);
}

/* ── Footer links ────────────────────────────────────── */
footer a {
  color: var(--stolarx-brown) !important;
}
footer a:hover {
  color: var(--stolarx-brown-dark) !important;
}

/* ── Scroll-top button ───────────────────────────────── */
.scroll-top {
  background: var(--stolarx-brown);
}
.scroll-top:hover {
  background: var(--stolarx-brown-dark);
}

/* ── Mobile nav toggle ───────────────────────────────── */
.mobile-nav-toggle {
  color: var(--stolarx-brown) !important;
}

/* ── Category badge / tags in hero ──────────────────── */
.category-badge,
.cat-badge {
  background: var(--stolarx-brown);
}

/* ── Pagination dots (swiper) ────────────────────────── */
.swiper-pagination-bullet-active {
  background: var(--stolarx-brown) !important;
}

/* ── Contact info icon containers ───────────────────── */
.icon-container {
  background: color-mix(in srgb, var(--stolarx-brown) 15%, transparent) !important;
  color: var(--stolarx-brown) !important;
}
.icon-container i {
  color: var(--stolarx-brown) !important;
}

/* ── Blog card btn-read-more ─────────────────────────── */
.btn-read-more,
.readmore {
  color: var(--stolarx-brown) !important;
}
.btn-read-more:hover,
.readmore:hover {
  color: var(--stolarx-brown-dark) !important;
}

/* ── Feature icons ───────────────────────────────────── */
.feature-icon {
  background: color-mix(in srgb, var(--stolarx-brown) 12%, transparent);
  color: var(--stolarx-brown);
}
.feature-icon i {
  color: var(--stolarx-brown);
}

/* ── Dark background sections – force white text ─────── */
/*
 * Any element with dark brown background needs white text regardless of
 * what --default-color is set to globally.
 */
.express-banner,
.express-banner h2,
.express-banner p {
  color: #ffffff !important;
}

.express-banner .contact-pill,
.express-banner .contact-pill span {
  color: #2c1a0e !important;
}
.express-banner .contact-pill:hover,
.express-banner .contact-pill:hover span {
  color: #ffffff !important;
}

.info-highlight,
.info-highlight h4,
.info-highlight p {
  color: #ffffff !important;
}

/* ── Hero content on dark overlay ────────────────────── */
.blog-hero-content,
.blog-hero-content h1,
.blog-hero-content .meta span,
.blog-hero-content .date {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

/* ── Footer bottom bar ───────────────────────────────── */
.footer-bottom {
  color: var(--stolarx-brown-deep);
}

/* ── Bootstrap text-primary class override ───────────── */
.text-primary {
  color: var(--stolarx-brown) !important;
}

/* ── Bootstrap border-primary override ──────────────── */
.border-primary {
  border-color: var(--stolarx-brown) !important;
}

/* ── Bootstrap bg-primary override ──────────────────── */
.bg-primary {
  background-color: var(--stolarx-brown) !important;
}

/* ── Obszar działania ─────────────────────────────────── */
#obszar { background: #faf8f5; }
.area-card {
  background: #fff;
  border-radius: 12px;
  padding: 26px 28px;
  height: 100%;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border-top: 3px solid var(--stolarx-brown, #8b5a2b);
}
.area-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.area-card h4 i { color: var(--stolarx-brown, #8b5a2b); font-size: 1.3rem; }
.area-card-main { background: linear-gradient(135deg, #2c1a0e 0%, #8b5a2b 100%); border-top-color: #2c1a0e; }
.area-card-main h4, .area-card-main h4 i { color: #fff !important; }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.area-list li {
  background: #f5ece1;
  color: #2c1a0e;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.area-card-main .area-list li { background: rgba(255,255,255,0.16); color: #fff; }

/* ── Contact info panel (dark brown) – readable links & icons ── */
.contact .contact-info-panel .info-card .icon-container {
  background: rgba(255, 255, 255, 0.25) !important;
}
.contact .contact-info-panel .info-card .icon-container i {
  color: #ffffff !important;
}
.contact .contact-info-panel .info-card .card-content p {
  opacity: 1;
}
.contact .contact-info-panel .info-card a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact .contact-info-panel .info-card a:hover {
  color: #f5e6d3 !important;
}
