/* ==========================================================================
   Brits Global — template styles (Bootstrap 5.3 overrides)
   Layout modelled on the reference: header / hero + callback form / welcome /
   services / split CTA / why choose us / gallery / who we help / footer
   ========================================================================== */

:root {
  --bg-navy: #09539a;
  --bg-blue: #09539a;
  --bg-red: #f15f23;
  --bg-red-dark: #d94e15;
  --bg-lilac: #ebebf7;
  --bg-grey: #f4f5f8;
  --bg-text: #3b4456;
  --bg-heading: #09539a;
  --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --bs-body-color: var(--bg-text);
}

body { font-size: .9rem; line-height: 1.8; }
h1, h2, h3, h4, h5 { color: var(--bg-heading); font-weight: 600; }
a { color: var(--bg-blue); }
img { max-width: 100%; }

/* Image fallback: if a placeholder photo fails to load the frame still looks intentional */
.img-frame { background: linear-gradient(135deg, var(--bg-navy), var(--bg-blue)); }

/* ---------- Section headings ---------- */
.section { padding: 5rem 0; }
.eyebrow { font-size: .8rem; color: #555; margin-bottom: .15rem; }
.section-title { font-size: 2rem; color: var(--bg-red); margin-bottom: 1rem; }
.section-title.is-navy { color: var(--bg-heading); }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--bg-red); color: #fff; border: 2px solid var(--bg-red);
  font-weight: 600; border-radius: 4px; padding: .55rem 1.5rem;
}
.btn-brand:hover, .btn-brand:focus { background: var(--bg-red-dark); border-color: var(--bg-red-dark); color: #fff; }
.btn-outline-light-brand {
  border: 2px solid #fff; color: #fff; font-weight: 600; border-radius: 4px; padding: .55rem 1.5rem;
}
.btn-outline-light-brand:hover { background: #fff; color: var(--bg-navy); }

/* ---------- Header ---------- */
.site-header { background: #fff; padding: 1rem 0; box-shadow: 0 2px 10px rgba(9, 83, 154, .06); position: relative; z-index: 10; }
.site-logo img { height: 58px; width: auto; }
.header-badges { gap: 1.75rem; align-items: center; }
.header-badge {
  display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600;
  color: var(--bg-navy); line-height: 1.2; white-space: nowrap;
}
.header-badge i { font-size: 1.35rem; color: var(--bg-red); }
.header-email { align-items: center; gap: .5rem; white-space: nowrap; }
.header-email a { color: #333; font-size: .85rem; font-weight: 500; text-decoration: none; }
.header-email a:hover { color: var(--bg-red); }
.header-email i { color: var(--bg-navy); font-size: 1.3rem; }

/* ---------- Hero + call back form ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: flex-end;
  background: var(--bg-navy) url("https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&w=1920&q=75") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9, 83, 154, .55) 0%, rgba(9, 83, 154, .1) 55%, rgba(9, 83, 154, 0) 100%);
}
.hero-text { position: relative; color: #fff; padding-bottom: 5rem; }
.hero-text h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.2; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-text p { font-size: 1.05rem; max-width: 30rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.callback {
  position: relative; background: rgba(9, 83, 154, .94); padding: 1.6rem 1.75rem 1.4rem; color: #fff;
}
.callback h2 { color: #fff; font-weight: 400; text-align: center; font-size: 1.65rem; margin-bottom: 1rem; }
.callback h2 strong { font-weight: 800; }
.callback .form-control { border-radius: 2px; font-size: .82rem; padding: .45rem .6rem; border: 0; }
.callback .privacy-link { color: #fff; font-size: .8rem; text-decoration: none; }
.callback .privacy-link:hover { text-decoration: underline; }

/* ---------- Welcome ---------- */
.welcome { background: var(--bg-lilac); }
.welcome-img {
  width: 100%; max-width: 460px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; margin: 0 auto;
  box-shadow: 0 20px 40px rgba(9, 83, 154, .15);
}
.welcome-img img { width: 100%; height: 100%; object-fit: cover; }
.welcome h3 { font-size: .9rem; font-weight: 700; color: #111; }
.welcome p { text-align: justify; }
.hl-red { color: var(--bg-red); font-weight: 600; }
.hl-blue { color: #09539a; font-weight: 600; }
.hl-dark { color: #111; font-weight: 700; }

/* ---------- Services ---------- */
.service-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(180deg, var(--bg-blue), var(--bg-navy));
  display: grid; place-items: center; color: #fff; font-size: 2rem;
  transition: transform .25s ease;
}
.service-card:hover .service-icon { transform: translateY(-4px); }
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { font-size: .82rem; max-width: 18rem; margin: 0 auto; }

/* ---------- Split CTA ---------- */
.split-cta .split-img { min-height: 340px; background-color: var(--bg-navy); background-size: cover; background-position: center; }
.split-cta .split-text {
  background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-blue) 100%); color: #fff;
  padding: 3.5rem clamp(1.5rem, 4vw, 3.5rem);
}
.split-cta h2 { color: #fff; font-size: .95rem; font-weight: 700; }
.split-cta p { font-size: .85rem; text-align: justify; }

/* ---------- Why choose us ---------- */
.why-circle {
  width: 220px; height: 220px; border-radius: 50%; background: var(--bg-lilac); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 1.5rem; transition: background .25s ease;
}
.why-circle i { font-size: 2.6rem; color: var(--bg-navy); margin-bottom: .75rem; }
.why-circle h3 { font-size: .9rem; font-weight: 700; color: #111; margin: 0; line-height: 1.35; }
.why-circle:hover { background: #dcdcf2; }

/* ---------- Gallery ---------- */
.gallery-item { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Who we help (replaces the reference's supplier logo strip) ---------- */
.who-help { background: var(--bg-grey); }
.who-help h2 { font-size: 1.15rem; font-weight: 500; color: #222; }
.who-tile {
  background: #fff; border: 1px solid #dfe2ea; height: 100%; padding: 1.1rem .75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; color: var(--bg-navy); font-size: .85rem; line-height: 1.3;
}
.who-tile i { font-size: 1.6rem; color: var(--bg-red); margin-bottom: .35rem; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-blue) 100%); color: #fff; padding: 3.5rem 0 2.5rem; font-size: .82rem; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo { background: #fff; border-radius: 8px; padding: .6rem .8rem; display: inline-block; }
.footer-logo img { height: 46px; width: auto; }
.footer-list li { display: flex; gap: .7rem; margin-bottom: .75rem; }
.footer-list i { font-size: 1rem; margin-top: .15rem; }
.footer-map { border: 0; width: 100%; height: 170px; border-radius: 4px; }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 4px;
  background: var(--bg-blue); color: #fff; display: grid; place-items: center; font-size: 1.4rem;
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 50; text-decoration: none;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--bg-red); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { min-height: 0; display: block; padding-top: 4rem; }
  .hero-text { padding-bottom: 2rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
  .why-circle { width: 190px; height: 190px; }
  .site-logo img { height: 44px; }
  .welcome p, .split-cta p { text-align: left; }
}

/* ---------- Policy pages (cookie policy etc.) ---------- */
.page-banner { background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-blue) 100%); color: #fff; padding: 3.5rem 0 3rem; }
.page-banner h1 { color: #fff; font-size: 2.2rem; margin-bottom: .35rem; }
.page-crumb { font-size: .8rem; margin-bottom: .75rem; opacity: .9; }
.page-crumb a { color: #fff; text-decoration: none; }
.page-crumb a:hover { text-decoration: underline; }
.page-crumb i { font-size: .65rem; margin: 0 .35rem; }
.policy { padding-top: 3.5rem; }
.policy-body { max-width: 50rem; }
.policy-body h2 { font-size: 1.25rem; color: var(--bg-heading); margin: 2.25rem 0 .75rem; }
.policy-body ul { padding-left: 1.2rem; }
.policy-body li { margin-bottom: .5rem; }
.policy-body li::marker { color: var(--bg-red); }
.policy-contact { background: var(--bg-grey); border-left: 4px solid var(--bg-red); padding: 1rem 1.25rem; border-radius: 4px; }

/* ---------- Call back form: status message + spam trap ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.callback-status { margin-top: .75rem; padding: .6rem .9rem; border-radius: 4px; font-size: .85rem; font-weight: 500; }
.callback-status.is-ok { background: #e7f6ec; color: #17663a; border-left: 4px solid #2a9d5c; }
.callback-status.is-error { background: #fff1ea; color: #9a3412; border-left: 4px solid var(--bg-red); }
.callback.is-checked .form-control:invalid { border-color: var(--bg-red); box-shadow: 0 0 0 .15rem rgba(241, 95, 35, .35); }
