/* Bootstrap 5.3 handles layout/spacing; this file holds brand styles only */
:root {
  --orange: #fd6b01;
  --orange-dark: #d95a00;
  --black: #111;
  --muted: #bbb;

  --bs-body-font-family: Arial, Helvetica, sans-serif;
  --bs-body-color: #333;
  --bs-primary: var(--orange);
  --bs-primary-rgb: 253, 107, 1;
  --bs-link-color-rgb: 253, 107, 1;
  --bs-link-hover-color-rgb: 217, 90, 0;
}

.accent { color: var(--orange); }

.rule {
  display: block;
  width: 54px;
  height: 3px;
  background: var(--orange);
  margin: 14px 0 22px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--orange);
}

.logo { background: #fff; padding: 8px; line-height: 0; }
@media (min-width: 768px) {
  .logo { margin-left: 100px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: #fff;
  overflow: hidden;
}
.hero-content { max-width: 1320px; } /* header2.webp is 2x this for sharp screens */
.hero-img { height: auto; }
/* Wide screens: fade the image edges into the background */
@media (min-width: 1321px) {
  .hero-img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
}
.hero-text { top: 12%; left: 6%; }
.hero h1 { font-size: min(5.5vw, 56px); line-height: 1.05; }
.tagline { margin-top: 0.8em; font-size: min(2.2vw, 22px); }

/* ---------- Welcome ---------- */
.welcome h2 { font-size: 28px; color: var(--black); margin: 0; }
.welcome-text p { font-size: 14px; color: #444; margin-bottom: 12px; }
.welcome-card { min-height: 335px; }
.card-image {
  background:
    url("images/building.webp") right center / cover no-repeat;
}
.card-panel {
  width: 62%;
  height: 72%;
  background: rgba(30,30,30,.96);
  padding: 26px 24px;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}
.card-panel::after {
  /* tapered orange edge along the slant; 82% must match the clip-path above */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  clip-path: polygon(calc(82% - 3px) 0, 82% 0, 100% 100%, calc(100% - 8px) 100%);
  pointer-events: none;
}
.card-panel h3 { font-size: 18px; line-height: 1.35; max-width: 220px; margin: 0; }
.card-panel .rule { width: 42px; margin: 14px 0 18px; }
.card-panel li { gap: 22px; font-size: 14px; margin-bottom: 26px; }
.card-panel li img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, #141414, #1d1d1d); }
.services h2 { font-size: 32px; margin: 0; }
.services .rule { margin: 8px 0 12px; }
.services .intro { color: #ddd; font-size: 16px; }

.service .icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%; /* hides the square corners of the icon background */
}
.service h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  letter-spacing: .3px;
}
.service p { font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* Dividers between services: only between items on the same row */
.service { border-left: 1px solid #3a3a3a; }
.service:nth-child(2n+1) { border-left: 0; }                /* 2 per row */
@media (min-width: 768px) {                                 /* 3 per row */
  .service:nth-child(n) { border-left: 1px solid #3a3a3a; }
  .service:nth-child(3n+1) { border-left: 0; }
}
@media (min-width: 992px) {                                 /* 6 per row */
  .service:nth-child(n) { border-left: 1px solid #3a3a3a; }
  .service:first-child { border-left: 0; }
}

/* ---------- Partners ---------- */
.partners h2 { font-size: 24px; font-weight: 500; color: var(--black); margin: 0; }
.partners .rule { width: 64px; margin-top: 8px; margin-bottom: 26px; }
.partner-logos li {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #ddd;
}
.partner-logos li:nth-child(2n+1) { border-left: 0; }
@media (min-width: 768px) {
  .partner-logos li:nth-child(n) { border-left: 1px solid #ddd; }
  .partner-logos li:first-child { border-left: 0; }
}
.partner-logos img { height: 46px; width: auto; max-width: 75%; object-fit: contain; }

/* ---------- Contact ---------- */
.contact { background: var(--black); }
.contact-image {
  /* right-aligned within the same 1320px frame as the hero */
  right: max(0px, (100% - 1320px) / 2);
  width: min(100%, 924px);
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(17,17,17,0) 10%),
    url("images/footer.webp") right center / cover no-repeat;
}
/* Wide screens: fade the right edge into the background */
@media (min-width: 1321px) {
  .contact-image {
    -webkit-mask-image: linear-gradient(to right, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, #000 92%, transparent 100%);
  }
}
.contact-icon { width: 80px; height: 80px; background: var(--orange); color: #fff; }
.contact-icon .bi { font-size: 40px; line-height: 1; }
.contact h2 { font-size: 26px; }
.contact p { font-size: 14px; color: #ddd; }

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--orange);
  --bs-btn-border-color: var(--orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--orange-dark);
  --bs-btn-hover-border-color: var(--orange-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--orange-dark);
  --bs-btn-active-border-color: var(--orange-dark);
  --bs-btn-font-size: 14px;
}
.btn-brand .bi { font-size: 18px; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 2px solid var(--orange);
  color: #ccc;
  font-size: 12px;
}
.site-footer .line { width: 190px; height: 2px; background: var(--orange-dark); }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
  .hero-img { height: 300px; object-fit: cover; object-position: right center; }
  .hero-text { top: 50%; transform: translateY(-50%); }
  .hero h1 { font-size: clamp(34px, 7vw, 48px); text-shadow: 0 2px 8px rgba(0,0,0,.8); }
  .tagline { font-size: 18px; }
  .contact-image { opacity: .3; width: 100%; }
}
@media (max-width: 575.98px) {
  .card-panel { width: 85%; }
}
