:root {
  --navy: #07162d;
  --navy-2: #0d2442;
  --red: #e62b2f;
  --red-dark: #bd171b;
  --steel: #748093;
  --light-steel: #f2f5f8;
  --white: #ffffff;
  --ink: #172033;
  --muted: #657186;
  --shadow: 0 18px 45px rgba(7, 22, 45, 0.13);
}

/* Base layout and brand system */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.top-bar {
  background: var(--navy);
  padding: 0.55rem 0;
}

.top-bar a {
  color: var(--white);
  opacity: 0.9;
}

.main-nav {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(7, 22, 45, 0.08);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 1.15rem;
  font-weight: 800;
  gap: 0.65rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--red), var(--navy));
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.main-nav .nav-link {
  color: var(--navy);
  font-weight: 700;
  padding: 1rem 0.8rem;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover {
  color: var(--red);
}

.btn {
  border-radius: 4px;
  font-weight: 800;
  padding: 0.78rem 1.25rem;
}

.btn-brand {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-brand:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-dark-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.btn-dark-navy:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: var(--white);
}

.btn-whatsapp {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}

/* First viewport presentation */
.hero-section {
  background: linear-gradient(rgba(7, 22, 45, 0.65), rgba(7, 22, 45, 0.78)), url("../images/hero-engineering.jpg") center/cover;
  color: var(--white);
  min-height: calc(100vh - 106px);
  position: relative;
}

.hero-content {
  display: flex;
  min-height: calc(100vh - 106px);
  align-items: center;
  padding-bottom: 5rem;
  padding-top: 5rem;
}

.hero-section h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin-bottom: 2rem;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.text-red {
  color: var(--red);
}

.section {
  padding: 5.5rem 0;
}

.section-heading {
  margin: 0 auto 3rem;
  max-width: 760px;
  text-align: center;
}

.section-heading h2,
.about-preview h2,
.why-section h2,
.cta-panel h2,
.contact-form-wrap h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
}

.section-heading p,
.about-preview p,
.why-section p {
  color: var(--muted);
}

.section-image {
  border-radius: 6px;
  box-shadow: var(--shadow);
  height: 460px;
  object-fit: cover;
  width: 100%;
}

.bg-light-steel {
  background: var(--light-steel);
}

/* Reusable cards and feature blocks */
.feature-mini,
.why-item {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(116, 128, 147, 0.18);
  box-shadow: 0 12px 30px rgba(7, 22, 45, 0.06);
  display: flex;
  gap: 0.85rem;
  min-height: 78px;
  padding: 1rem;
}

.feature-mini i,
.why-item i {
  color: var(--red);
  font-size: 1.6rem;
}

.feature-mini span,
.why-item span {
  color: var(--navy);
  font-weight: 800;
}

.service-card,
.info-card,
.value-card {
  background: var(--white);
  border: 1px solid rgba(116, 128, 147, 0.2);
  box-shadow: 0 14px 34px rgba(7, 22, 45, 0.07);
  height: 100%;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.project-card:hover,
.value-card:hover {
  border-color: rgba(230, 43, 47, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service-card i,
.info-card i,
.value-card i {
  color: var(--red);
  font-size: 2.4rem;
}

.service-card h3,
.value-card h3,
.why-item h3 {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 900;
  margin-top: 1rem;
}

.service-card p,
.value-card p,
.info-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.counter-section,
.process-section {
  background: linear-gradient(135deg, var(--navy), #102e54);
  color: var(--white);
  padding: 4rem 0;
}

.counter-box {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2rem 1rem;
}

.counter-box span {
  color: var(--white);
  display: block;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
}

.counter-box p {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  margin: 0.8rem 0 0;
}

.project-card {
  background: var(--white);
  border: 1px solid rgba(116, 128, 147, 0.18);
  box-shadow: 0 14px 34px rgba(7, 22, 45, 0.07);
  display: block;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-card div {
  padding: 1.4rem;
}

.project-card span {
  color: var(--red);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.project-card h2,
.project-card h3 {
  color: var(--navy);
  font-size: 1.22rem;
  font-weight: 900;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.compliance-section {
  background: linear-gradient(rgba(7, 22, 45, 0.88), rgba(7, 22, 45, 0.88)), url("../images/compliance-safety.jpg") center/cover;
}

.compliance-section h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 900;
}

.compliance-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 2rem;
}

.compliance-panel i {
  color: var(--red);
  font-size: 3rem;
}

.cta-section {
  padding: 4.5rem 0;
}

.cta-panel {
  align-items: center;
  background: var(--light-steel);
  border-left: 6px solid var(--red);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 2.5rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 1.5rem;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  font-weight: 900;
}

.site-footer h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  margin-bottom: 0.45rem;
}

.site-footer a:hover {
  color: var(--white);
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.socials a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  text-align: center;
}

/* Persistent mobile-friendly contact action */
.whatsapp-float {
  align-items: center;
  background: #16a34a;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
  color: var(--white);
  display: flex;
  font-size: 1.8rem;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 58px;
  z-index: 1000;
}

.whatsapp-float:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.page-hero {
  background: linear-gradient(rgba(7, 22, 45, 0.78), rgba(7, 22, 45, 0.82)), url("../images/compliance-safety.jpg") center/cover;
  color: var(--white);
  padding: 7.5rem 0;
}

.about-hero {
  background-image: linear-gradient(rgba(7, 22, 45, 0.78), rgba(7, 22, 45, 0.82)), url("../images/team-construction.jpg");
}

.services-hero {
  background-image: linear-gradient(rgba(7, 22, 45, 0.78), rgba(7, 22, 45, 0.82)), url("../images/engineers-site.jpg");
}

.projects-hero {
  background-image: linear-gradient(rgba(7, 22, 45, 0.78), rgba(7, 22, 45, 0.82)), url("../images/office-tower.jpg");
}

.contact-hero {
  background-image: linear-gradient(rgba(7, 22, 45, 0.78), rgba(7, 22, 45, 0.82)), url("../images/commissioning.jpg");
}

/* Inner page components */
.info-card h2 {
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 900;
  margin-top: 1rem;
}

.process-step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  height: 100%;
  padding: 1.5rem;
}

.process-step span {
  color: var(--red);
  font-size: 2rem;
  font-weight: 900;
}

.process-step h3 {
  color: var(--white);
  font-weight: 900;
  margin-top: 0.8rem;
}

.process-step p {
  color: rgba(255, 255, 255, 0.72);
}

.service-detail {
  background: var(--white);
  border: 1px solid rgba(116, 128, 147, 0.18);
  box-shadow: 0 14px 34px rgba(7, 22, 45, 0.07);
  display: grid;
  grid-template-columns: 190px 1fr;
  height: 100%;
  overflow: hidden;
}

.service-detail img {
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  width: 100%;
}

.service-detail div {
  padding: 1.5rem;
}

.service-detail i {
  color: var(--red);
  font-size: 2rem;
}

.service-detail h2 {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 900;
  margin-top: 0.75rem;
}

.service-detail p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(116, 128, 147, 0.28);
  color: var(--navy);
  font-weight: 800;
  padding: 0.7rem 1.1rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.project-item {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-item.is-hidden {
  display: none;
}

.contact-form-wrap,
.contact-panel,
.map-placeholder {
  background: var(--white);
  border: 1px solid rgba(116, 128, 147, 0.18);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-control,
.form-select {
  border-radius: 4px;
  min-height: 50px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 0.18rem rgba(230, 43, 47, 0.16);
}

.contact-line {
  align-items: flex-start;
  border-bottom: 1px solid rgba(116, 128, 147, 0.2);
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-line i {
  color: var(--red);
  font-size: 1.5rem;
}

.contact-line strong,
.contact-line span {
  display: block;
}

.contact-line span {
  color: var(--muted);
}

.map-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #e8edf3, #f8fafc);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

.map-placeholder i {
  color: var(--red);
  font-size: 3rem;
}

.map-placeholder h2 {
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 900;
}

.form-note {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .main-nav .nav-link {
    padding: 0.7rem 0;
  }

  .hero-section,
  .hero-content {
    min-height: 720px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 4rem 0;
  }

  .hero-section,
  .hero-content {
    min-height: 640px;
  }

  .section-image {
    height: 330px;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail img {
    height: 230px;
  }

  .page-hero {
    padding: 5.5rem 0;
  }

  .contact-form-wrap,
  .contact-panel,
  .map-placeholder,
  .cta-panel {
    padding: 1.4rem;
  }
}

@media (max-width: 420px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .brand-mark {
    height: 36px;
    width: 36px;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 0.78rem 1rem;
  }

  .whatsapp-float {
    bottom: 16px;
    height: 52px;
    right: 16px;
    width: 52px;
  }
}
