/* ============================================================
   Pabrifan IT — site stylesheet
   Bootstrap 5.3 token overrides + custom design system
   ============================================================ */

:root {
  --site-primary: #161616;
  --site-primary-light: #515151;
  --site-primary-dark: #090909;
  --site-secondary: #606060;
  --site-accent: #0096b5;
  --bs-body-bg: #f5f5f5;
  --bs-body-color: #020202;
  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-link-color: #161616;
  --bs-link-hover-color: #090909;
  --site-surface: #f4f4f4;
  --site-text-secondary: #454545;
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  letter-spacing: 0.2px;
}

a { color: var(--site-primary); transition: color 0.2s ease; }
a:hover { color: var(--site-primary-dark); }

.btn-primary { background-color: var(--site-primary); border-color: var(--site-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--site-primary-dark); border-color: var(--site-primary-dark); color: #fff; }
.btn-outline-primary { color: var(--site-primary); border-color: var(--site-primary); background-color: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--site-primary); border-color: var(--site-primary); color: #fff; }
.bg-primary { background-color: var(--site-primary) !important; }
.text-primary { color: var(--site-primary) !important; }
.border-primary { border-color: var(--site-primary) !important; }

/* ---------- Buttons: pill-with-icon family ---------- */
.btn {
  border-radius: 9999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-width: 1.5px;
}
.btn:hover, .btn:focus {
  transform: scale(1.02);
}
.btn-icon-arrow::after {
  content: "\2192";
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-icon-arrow::after,
.btn-icon-arrow:hover::after {
  transform: translateX(3px);
}
.btn-accent {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
  color: #fff;
}
.btn-accent:hover, .btn-accent:focus {
  background-color: #007890;
  border-color: #007890;
  color: #fff;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: 6px;
  border: 1.5px solid rgba(96, 96, 96, 0.35);
  padding: 0.65rem 0.9rem;
  background-color: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 150, 181, 0.15);
}
label { font-weight: 600; color: var(--site-text-secondary); margin-bottom: 0.3rem; }

/* ---------- Cards: soft-medium-radius + colored-tint shadow ---------- */
.card {
  border-radius: 12px;
  border: 1px solid rgba(96, 96, 96, 0.15);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.1);
  background-color: var(--site-surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(22, 22, 22, 0.15);
}
.card-stack { height: auto; }
.card-row { height: 100%; }

img {
  border-radius: 8px;
}

/* ---------- Section rhythm: consistent bg with hairline borders ---------- */
.site-section {
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid rgba(96, 96, 96, 0.18);
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
.site-section:last-of-type { border-bottom: none; }

/* ---------- Distinctive border accent ---------- */
.accent-rule {
  width: 64px;
  height: 3px;
  background-color: var(--site-accent);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.accent-border-left {
  border-left: 3px solid var(--site-accent);
  padding-left: 1.25rem;
}
.step-number {
  border: 1.5px solid var(--site-accent);
  color: var(--site-accent);
  border-radius: 9999px;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- Utility bar ---------- */
.utility-bar {
  background-color: var(--site-primary-dark);
  color: #f5f5f5;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.utility-bar a {
  color: #f5f5f5;
  text-decoration: none;
  opacity: 0.9;
}
.utility-bar a:hover { opacity: 1; color: var(--site-accent); }

/* ---------- Navbar ---------- */
.navbar {
  background-color: var(--bs-body-bg);
  border-bottom: 1px solid rgba(96, 96, 96, 0.18);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar-brand-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--site-primary);
}
.nav-link {
  font-weight: 500;
  color: var(--site-text-secondary) !important;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--site-primary) !important;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--site-accent);
  transition: width 0.2s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ---------- Hero: asymmetric overlap ---------- */
.hero-wrap {
  position: relative;
  padding-top: 3rem;
}
.hero-img-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.15);
}
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.hero-overlap-card {
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(96, 96, 96, 0.15);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.12);
  padding: 2.5rem;
  position: relative;
}
@media (min-width: 992px) {
  .hero-overlap-card {
    margin-top: 6rem;
    margin-right: -3.5rem;
    z-index: 2;
  }
  .hero-img-frame {
    height: 32rem;
  }
}

/* ---------- Testimonials ---------- */
.testimonial-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--site-text-secondary);
}
.testimonial-author {
  font-size: 0.9rem;
  color: var(--site-secondary);
  margin-top: 0.75rem;
}

/* ---------- Map frame ---------- */
.map-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(96, 96, 96, 0.18);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.1);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* ---------- Footer: compact-row ---------- */
.site-footer {
  background-color: var(--site-primary-dark);
  color: #f0f0f0;
}
.site-footer a {
  color: #f0f0f0;
  text-decoration: none;
}
.site-footer a:hover { color: var(--site-accent); }
.footer-top {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(240, 240, 240, 0.7);
}
.footer-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 0.92rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: var(--site-primary-dark);
  color: #f5f5f5;
  padding: 1rem 1.25rem;
  display: none;
  box-shadow: 0 -8px 24px rgba(22, 22, 22, 0.2);
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- 404 ---------- */
.error-main {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Misc ---------- */
.hero-title { font-size: 2.4rem; }
.step-number-sm { width: 2.2rem; height: 2.2rem; font-size: 0.95rem; }
.lab-image { object-fit: cover; max-height: 26rem; }
.quote-confirmation { background-color: #fff; border: 1.5px solid var(--site-accent); border-radius: 8px; }
.map-frame-contact { height: 280px; }
.footer-heading { font-family: 'DM Sans', sans-serif; letter-spacing: 1px; }
.cookie-btn-decline { color: #f5f5f5; border-color: #f5f5f5; background-color: transparent; }
.cookie-btn-decline:hover, .cookie-btn-decline:focus { background-color: #f5f5f5; color: var(--site-primary-dark); border-color: #f5f5f5; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--site-accent);
}
.lead { color: var(--site-text-secondary); }
.text-secondary-custom { color: var(--site-text-secondary); }
