:root {
  --brand-blue: #00376A;
  --brand-deep: #001B34;
  --grey-light: #f2f2f2;
  --grey-mid: #e6e6e6;
  --text-dark: #1a1a1a;
  --text-muted: #1a1a1a;
  --bs-body-font-family: "Open Sans", sans-serif;
  --bs-headings-font-family: "Playfair Display", serif;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--bs-headings-font-family);
  color: var(--text-dark);
  line-height: 1.2;
}

.section-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 64px;
}

.section-desc {
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--text-muted);
  line-height: 1.6;
}


.container {
  width: 100%;
  max-width: 1280px;
}

a {
  text-decoration: none;
}
/*NAVIGATION*/

.main-nav {
  background: rgba(0,0,0,0.60);
  padding: 0.6rem 0;
  transition: 0.25s ease;
}

.nav-shadow {
  background: rgba(0,0,0,0.35);
}

.nav-logo {
  height: 80px;
}

.nav-links .nav-link {
  font-size: 14px;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: bold;
  transition: 0.25s ease;
}

.nav-link.active {
  border-bottom: 2px solid #FF5757;
}

.nav-item {
  margin-right: 8px;
}

.nav-links .nav-link:hover {
  color: #dfefff;
  border-bottom: 2px solid #FF5757;
}

.nav-contact .nav-phone {
  font-weight: 600;
  color: #ffffff;
}

.nav-contact .nav-email {
  font-size: 0.85rem;
  color: #cfe7ff;
}

/*HERO */

.hero {
  position: relative;
  height: 100vh;          
  min-height: 600px;      
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, url('/assets/images/hero-bg.jpg'));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,0.25),rgba(0,0,0,0.45));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 1rem 2rem;
}

.hero-title {
  font-size: 76px;
  color: #ffffff;
  margin-bottom: 48px;
  font-weight: 700;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
}

.hero-btn {
  margin-bottom: 20px!important;
}

.hero-btn,
.about-btn,
.biz-btn {
  padding: 0.85rem 1.5rem;
  margin: 0 6px;
  font-weight: 600;
  border-radius: 8px;
}

.hero-btn.btn-primary,
.hero-btn.btn-outline-light,
.about-btn,
.biz-btn,
.recent-btn,
.project-btn {
  width: 100%;
  max-width: 200px;
}

.hero-btn.btn-primary {
  background: #00A1FF;
  border: none;
  box-shadow: 0 10px 20px rgba(0,135,255,0.2);
}

.hero-btn.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}

.hero-btn.btn-primary:hover,
.hero-btn.btn-outline-light:hover,
.about-btn:hover,
.biz-btn:hover,
.recent-btn:hover,
.project-btn:hover {
  background: var(--brand-blue);
  border-color: transparent;
}

.hero-logo-strip {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 24px;
  background: rgba(0, 67, 129, 0.75);
  box-shadow: 0 14px 32px rgba(0,27,52,0.18);
  z-index: 3;
  overflow-x: auto; /* Enable horizontal scrolling on the outer container */
  scrollbar-width: none; /* Hide scrollbar for cleaner look */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-strip::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit browsers */
}

.brand-strip img {
  max-height: 48px;
  opacity: 0.95;
}

.logo-carousel {
  overflow: hidden;
}

.brand-strip {
  display: flex;
  width: max-content; /* Allow content to expand beyond container width */
  gap: 40px; /* Space between logos */
  align-items: center;
  justify-content: center; /* Center logos if content is narrower than container */
}

.brand-logo {
  max-height: 48px;
  opacity: 0.95;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .brand-logo {
    max-height: 30px;
  }
}

@media (max-width: 520px) {
  .brand-strip img {
    max-height: 24px;
  }
}

@media (max-width: 438px) {
  .hero-logo-strip {
    display: none;
  }
}


/* WELCOME SECTION */

.welcome-section {
  padding: 80px 16px;
}


/* BUSINESS CARDS */

.business-section {
  padding: 70px 0;
}

.business-section .section-title {
  font-size: 40px;
}

.biz-card {
  border-radius: 18px;
  overflow: hidden;
  border: none;
  background: #ffffff;
  transition: 0.3s ease;
  height: 100%;
}

.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 40px rgba(8,22,48,0.08);
}

.biz-img {
  width: 100%;
  height: auto;
}

.biz-body {
  padding: 22px 28px;
}

.biz-title {
  font-size: 32px;
  font-weight: 700;
}

.biz-card .biz-title {
  height: 76px;
}

.biz-link {
  text-align: right;
  position: relative;
}

.biz-btn {
  width: 150px;
  padding: 10px 8px;
}

/* Recent Works slider */

.recent-works {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f2f2f2 0%, #dfdfdf 100%);
}

.recent-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  margin-bottom: 100px;
}

.recent-works .section-title {
  margin-bottom: 40px;
}

.recent-works .section-desc {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin-bottom: 80px;
}

.recent-track {
  display: flex;
  gap: 20px;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  overflow-x: auto;    
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
}

.recent-track::-webkit-scrollbar { 
  display: none; 
}

.recent-slide {
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  max-width: calc((100% - 3 * 20px) / 4);
  box-sizing: border-box;
}

.recent-card { 
  width: 100%; 
  border-radius: 16px; 
  overflow: hidden;  
  padding: 0 16px;
}

.recent-img { 
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block; 
  margin-bottom: 26px;
}

.recent-body { 
  padding: 14px 0;
}

.recent-title { 
  font-weight: 700;
  margin: 0 0 6px 0;
  font-size: 24px;
  height: 76px;
  margin-bottom: 26px;
}

.recent-sub { 
  color: var(--text-muted);
  font-size: 16px; 
}

.recent-btn {
  max-width: 140px;
  font-weight: 600;
  padding: 8px;
}

/* Controls */
.recent-prev, .recent-next {
  min-width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  padding:0 8px;
}


@media (max-width: 992px) {
  .recent-slide { 
    flex: 0 0 calc((100% - 1 * 20px) / 2); 
    max-width: calc((100% - 1 * 20px) / 2); 
  } 
}
@media (max-width: 576px) {
  .recent-slide { 
    flex: 0 0 100%; max-width:100%; 
  } 
}

/* ==========================================================
   PROJECTS
========================================================== */
.project-section {
  padding: 80px 0;
}

.project-section a {
  text-decoration: none;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 40px rgba(8,22,48,0.08);
}

.project-img {
  width: 100%;
  height: auto;
}

.project-body {
  padding: 4px 40px;
}

.project-card h5 {
  font-size: 28px;
  font-weight: 600;
  text-align: left;
  height: 70px;
}

.project-btn {
  font-weight: 600;
  padding: 8px;
}

/* ==========================================================
   FOOTER
========================================================== */
.site-footer {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 70px 0 0;
}

.footer-logo {
  height: 80px;
  margin-bottom: 32px;
}

.footer-about h5 {
  font-size: 40px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-about p {
  margin-bottom: 32px;
}

.footer-about .btn {
  background: #00A1FF;
  width: 100%;
  max-width: 200px;
  padding: 12px 8px;
  font-weight: 600;
}

.footer-about .btn:hover {
  background-color: #001B34;
}

.footer-links-col h5,
.footer-contact h5 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 32px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 24px;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 16px;
  padding-left: 32px;
  background-size: 24px;
}

.footer-contact p.addr {
  background: url('/assets/images/address.png') no-repeat top left;
}

.footer-contact p.tel {
  background: url('/assets/images/call.png') no-repeat top left;
}

.footer-contact p.fax {
  background: url('/assets/images/fax.png') no-repeat top left;
}

.footer-contact p.mail {
  background: url('/assets/images/email.png') no-repeat top left;
}

.footer-contact a {
  text-decoration: none;
  color: #fff;
}

.footer-socials {
  margin-top: 40px;
}

.footer-socials a {
  margin-right: 12px;
  color: #ffffff;
  opacity: 0.9;
}

.footer-socials a:hover {
  opacity: 1;
}

.footer-bottom {
  background-color: #001B34;
  margin-top: 30px;
  font-size: 14px;
  text-align: center;
  color: #fff;
  padding: 32px 16px;
  font-weight: 400;
}

/* 
  Service cards are used for all cards in the 
  major landing pages of Contractors, Plant and Transport   
*/
.service-card {
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .card-text {
  flex-grow: 1;
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* About Us - Policies section */
.policies a {
  color: #001B34;
}

/* The PDF SVG */
.policies img {
  width: 40px;
}