/* =========================================================
   Alliance Facility Management — site stylesheet
   Palette sampled from the live site's header/hero screenshot
   ========================================================= */
:root{
  --brand:        #a31f2b;   /* primary maroon/red */
  --brand-dark:   #6d141d;   /* darker maroon for hover/active */
  --brand-overlay: rgba(122,31,42,.82); /* hero caption panel */
  --nav-bg:       #c9c9c9;   /* light grey header bar */
  --ink:          #222222;
  --muted:        #5c5c5c;
  --light-bg:     #f6f6f6;
  --border:       #e3e3e3;
}

body{
  font-family: 'Cabin', Arial, sans-serif;
  color: var(--ink);
}
h1,h2,h3,h4,h5,
.navbar-brand,
.nav-link{
  font-family: 'Cabin', Arial, sans-serif;
}
a{ color: var(--brand); text-decoration:none; }
a:hover{ color: var(--brand); text-decoration:none; }

/* ---------- Topbar / Navigation ---------- */
.site-header{
  background: var(--nav-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.navbar{
  padding: 6px 0;
}
.navbar-brand img{
  height: 50px;
}
.navbar-brand .brand-text{
  font-family:'Cabin',sans-serif;
  font-weight:700;
  font-size:1.25rem;
  color:#1c1c1c;
  line-height:1.05;
  letter-spacing:.5px;
}
.navbar-brand .brand-text span{ color: var(--brand); }
.navbar-brand small{
  display:block;
  font-size:.55rem;
  letter-spacing:2px;
  font-weight:600;
  color:#555;
}
.navbar-nav .nav-link{
  color:#2b2b2b;
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.3px;
  text-transform:uppercase;
  padding: 10px 16px !important;
  border-bottom:2px solid transparent;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover{
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.dropdown-menu{
  border-radius:6px;
  border-color: var(--border);
  font-size:.92rem;
  padding: 10px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.dropdown-item{ padding: 10px 22px; }
.dropdown-item:hover, .dropdown-item:focus{ background:var(--light-bg); color:var(--brand); }

/* ---------- Hero carousel ---------- */
.hero-carousel .carousel-item{
  height: 460px;
  background-size: cover;
  background-position: center;
}
.hero-carousel .carousel-item::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.08);
}
.hero-caption-box{
  position:absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  min-height: 150px;
  display:flex; flex-direction:column; justify-content:center;
  background: var(--brand-overlay);
  color:#fff;
  padding: 36px 42px;
  z-index: 3;
}
.hero-caption-box h2{
  font-size:2.1rem;
  font-weight:700;
  margin-bottom:14px;
}
.hero-caption-box .rule{
  width:70px; height:3px; background:#fff; margin-bottom:0;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{
  width:5%;
}
.hero-carousel .carousel-indicators [data-bs-target]{
  width:11px;height:11px;border-radius:50%;
  background:#fff; opacity:.85; margin:0 5px;
  border:none;
}
.hero-carousel .carousel-indicators .active{
  background: var(--brand);
}

/* ---------- Section basics ---------- */
section{ padding: 70px 0; }
.section-title{
  font-weight:700;
  font-size:2rem;
  margin-bottom:18px;
  color:#1c1c1c;
}
.section-rule{
  width:60px;height:3px;background:var(--brand);margin-bottom:24px;
}
.text-muted-custom{ color: var(--muted); }

/* ---------- About ---------- */
.about-img{
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.cert-list li{
  display:flex;justify-content:space-between;
  padding:10px 0;border-bottom:1px dashed var(--border);
  font-size:.92rem;
}
.cert-list li:last-child{ border-bottom:none; }

/* ---------- Vision / Mission ---------- */
.vm-card{
  padding:38px 34px;height:100%;
}
.vm-card.brand{ background: var(--brand); color:#fff; }
.vm-card.light{ background: var(--light-bg); }
.vm-card h3{ font-weight:700; margin-bottom:14px; }

/* ---------- Core values ---------- */
.value-card{
  border:1px solid var(--border);
  padding:26px;height:100%;
  background:#fff;
}
.value-card .num{
  font-weight:700;color:var(--brand);font-size:1.4rem;margin-bottom:8px;
}
.value-card h5{ font-weight:700; font-size:1rem; }
.value-card p{ color:var(--muted); font-size:.92rem; margin-bottom:0; }

/* ---------- Leadership ---------- */
.leader-card{ text-align:center; }
.leader-card img{
  width:150px;height:150px;object-fit:cover;border-radius:50%;
  margin:0 auto 16px; border:4px solid var(--light-bg);
  box-shadow:0 0 0 1px var(--border);
}
.leader-card h5{ font-weight:700; margin-bottom:2px; }
.leader-card span{ color:var(--brand); font-size:.85rem; font-weight:600; }

/* ---------- Services ---------- */
.nav-tabs.services-tabs{ border:none; margin-bottom: 30px; }
.services-tabs .nav-link{
  border:1px solid var(--border);
  border-radius:0;
  font-weight:700;
  color: var(--muted);
  padding: 12px 30px;
  margin-right:6px;
}
.services-tabs .nav-link.active{
  background: var(--brand); color:#fff; border-color:var(--brand);
}
.service-card{
  border:1px solid var(--border);
  padding: 24px;
  height:100%;
  display:flex; gap:18px; align-items:flex-start;
  background:#fff;
}
.service-card img{ width:52px;height:52px;flex:none; }
.service-card h5{ font-weight:700; font-size:1rem; margin-bottom:6px; }
.service-card p{ color:var(--muted); font-size:.9rem; margin-bottom:0; }

/* ---------- Gallery ---------- */
.gallery-item{
  overflow:hidden; position:relative; margin-bottom: 24px;
}
.gallery-item img{
  width:100%; height:220px; object-fit:cover;
  transition: transform .4s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }

/* ---------- Why choose us ---------- */
.why-us{ background: var(--brand); color:#fff; }
.why-item{
  padding: 26px 10px;
}
.why-item .chk{
  width:40px;height:40px;border:2px solid #fff;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px; font-weight:700;
}
.why-item h6{ color:#fff; font-weight:700; font-size:.98rem; }

/* ---------- Footer ---------- */
footer{
  background:#000000; color:#bbb; padding: 50px 0 18px;
}
footer h6{
  color:#fff; font-weight:700; margin-bottom:16px;
}
footer a{ color:#bbb; text-decoration:none; }
footer a:hover{ color:var(--brand); text-decoration:none; }
footer .office-block{ margin-bottom:16px; font-size:.88rem; }
footer .office-block b{ display:block; color:#fff; font-size:.9rem; }
.footer-bottom{
  border-top:1px solid #333; margin-top:30px; padding-top:18px;
  font-size:.8rem; color:#888;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.footer-logo{ height:52px; margin-bottom:14px; }

@media (max-width: 767px){
  .hero-caption-box{ left:5%; right:5%; padding:22px 24px; }
  .hero-caption-box h2{ font-size:1.5rem; }
  .hero-carousel .carousel-item{ height:340px; }
  .page-banner{ height:260px; }
  .page-banner-box{ padding:18px 22px; }
}

/* ---------- Added for multi-page rebuild ---------- */
.top-strip{
  background: #0d0d0d;
  color:#f1e4e6;
  font-size:.78rem;
  padding:7px 0;
}
.top-strip-item{ margin:2px 10px; }
.top-strip-item i{ color:#fff; margin-right:5px; }

.page-banner{
  background-size:cover;
  background-position:center;
  color:#fff;
  height:360px;
  display:flex;
  align-items:center;
  margin-bottom:0;
  border-bottom:4px solid var(--brand);
}
.page-banner-box{
  background: var(--brand-overlay);
  padding: 28px 38px;
  display:inline-block;
  max-width:560px;
}
.page-banner h1{
  color:#fff;
  font-size:2.1rem;
  font-weight:700;
  margin-bottom:8px;
}
.page-banner .breadcrumbs{
  font-size:.85rem;
  color:#e8d4d6;
}
.page-banner .breadcrumbs a{ color:#fff; }

.icon-card{
  border:1px solid var(--border);
  padding:28px 24px;
  background:#fff;
  transition:.2s;
}
.icon-card:hover{ box-shadow:0 10px 24px rgba(0,0,0,.08); transform:translateY(-3px); }
.icon-card .ic{
  width:52px;height:52px;border-radius:50%;
  background: rgba(163,31,43,.09);
  color:var(--brand);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;margin-bottom:16px;
}
.icon-card h5{ font-weight:700; font-size:1.02rem; margin-bottom:8px; }
.icon-card p{ color:var(--muted); font-size:.9rem; margin-bottom:0; }

.brand-card{
  background: var(--brand);
  color:#fff;
  padding:34px;
}
.brand-card h3,.brand-card h5{ color:#fff; }
.brand-card p{ color:#f2dfe1; }

.list-check{ list-style:none; padding-left:0; }
.list-check li{
  position:relative; padding-left:28px; margin-bottom:12px; color:var(--ink);
}
.list-check li::before{
  content:"\2713";
  position:absolute; left:0; top:0;
  color:var(--brand); font-weight:700;
}

.team-card-sm{
  border:1px solid var(--border); background:#fff;
  text-align:center; padding:32px 20px; height:100%;
}
.team-card-sm .avatar{
  width:88px;height:88px;border-radius:50%;
  background:var(--brand); color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-size:1.8rem; margin:0 auto 16px;
}
.team-card-sm h5{ font-weight:700; margin-bottom:2px; }
.team-card-sm .role{
  color:var(--brand); font-weight:700; font-size:.78rem;
  text-transform:uppercase; margin-bottom:10px;
}
.team-card-sm p{ color:var(--muted); font-size:.88rem; margin-bottom:0; }

.form-control-custom{
  border:1px solid var(--border); border-radius:0; padding:11px 14px; font-size:.92rem;
}
.form-control-custom:focus{
  border-color:var(--brand); box-shadow:0 0 0 3px rgba(163,31,43,.12); outline:none;
}
.btn-brand{
  background:var(--brand); color:#fff; border:none; padding:11px 26px; font-weight:600;
}
.btn-brand:hover{ background:var(--brand-dark); color:#fff; }
.btn-outline-brand{
  background:transparent; border:2px solid #fff; color:#fff; padding:9px 24px; font-weight:600;
}
.btn-outline-brand:hover{ background:#fff; color:var(--brand); }

.contact-item{ margin-bottom:18px; }
.contact-item i{ color:var(--brand); width:20px; }
.contact-item strong{ display:block; margin-bottom:2px; }
.contact-item span{ color:var(--muted); font-size:.92rem; }

.home-hero-static{
  background:linear-gradient(rgba(20,4,6,.75),rgba(20,4,6,.75)), url('../img/hero-1.jpg');
  background-size:cover; background-position:center;
  color:#fff; padding:110px 0; text-align:center;
}
.home-hero-static h1{ font-size:2.5rem; font-weight:700; margin-bottom:18px; }
.home-hero-static p{ max-width:720px; margin:0 auto 30px; font-size:1.1rem; color:#f0dfe0; }

/* ---------- Form success modal ---------- */
.success-overlay{
  position:fixed; inset:0; background:rgba(10,10,10,.55);
  display:none; align-items:center; justify-content:center; z-index:2000;
}
.success-overlay.show{ display:flex; }
.success-box{
  background:#fff; border-radius:8px; padding:40px 36px; max-width:360px; width:90%;
  text-align:center; box-shadow:0 20px 50px rgba(0,0,0,.25);
  animation: successPop .25s ease;
}
@keyframes successPop{ from{ transform:scale(.85); opacity:0; } to{ transform:scale(1); opacity:1; } }
.success-check{
  width:64px; height:64px; border-radius:50%; background:var(--brand);
  color:#fff; font-size:1.8rem; display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
}
.success-box h4{ margin-bottom:8px; }
.success-box p{ color:var(--muted); margin-bottom:22px; font-size:.92rem; }
.success-box button{
  background:var(--brand); color:#fff; border:none; padding:9px 28px; font-weight:600; cursor:pointer;
}
.success-box button:hover{ background:var(--brand-dark); }
.form-error-msg{ color:var(--brand); font-size:.85rem; margin-top:8px; display:none; }

/* ---------- Leadership carousel (About Us) ---------- */
.leadership-carousel{ max-width:760px; margin:0 auto; cursor:pointer; }
.leadership-carousel .carousel-item{ padding: 10px 60px 40px; }
.leadership-carousel .carousel-control-prev,
.leadership-carousel .carousel-control-next{ width:44px; opacity:.85; }
.leadership-carousel .carousel-control-prev-icon,
.leadership-carousel .carousel-control-next-icon{
  background-color: var(--brand); border-radius:50%; padding:18px; background-size:50%;
}
.leadership-indicators{ position:static; margin-top:6px; }
.leadership-indicators [data-bs-target]{
  width:9px;height:9px;border-radius:50%;background:var(--border);opacity:1;border:none;margin:0 5px;
}
.leadership-indicators .active{ background:var(--brand); }
