:root {
  --navy: #043162;
  --navy-dark: #1c2533;
  --blue-primary: #1b5eb8;
  --blue-accent: #2d7dd2;
  --text-muted: #adb5bd;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --hero-min-height: 420px;
  --hero-min-height-md: 400px;
  --hero-min-height-sm: 360px;
  --hero-padding: 2.5rem 0 4.5rem;
  --hero-padding-md: 2.5rem 0 4rem;
  --hero-padding-sm: 2rem 0 3.5rem;
  --hero-overlap: 3.5rem;
  --hero-overlap-md: 2.5rem;
  --hero-overlap-sm: 2rem;
  --font-hero: clamp(1.75rem, 4vw, 2.5rem);
  --font-section: clamp(1.5rem, 3vw, 2rem);
  --font-card: 1rem;
  --font-body: 1rem;
  --font-body-sm: 0.875rem;
  --font-label: 0.95rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--navy);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ── Navbar ── */
.site-navbar {
  background: var(--white);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-navbar .navbar-brand img {
  height: 48px;
  width: auto;
}

.site-navbar .nav-link {
  color: var(--navy) !important;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem 1.25rem !important;
  transition: color 0.2s ease;
}

.site-navbar .nav-link:hover {
  color: var(--blue-primary) !important;
}

.site-navbar .nav-link.active {
  color: var(--blue-primary) !important;
  font-weight: 600;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ── Hero (shared banner height) ── */
.hero-section,
.about-hero,
.contact-hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  padding: var(--hero-padding);
  overflow: hidden;
}

.hero-section > .container,
.about-hero > .container,
.contact-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-section {
  background: url('../images/banner.webp') center right / cover no-repeat;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 31, 68, 0.97) 0%,
    rgba(10, 31, 68, 0.92) 35%,
    rgba(10, 31, 68, 0.55) 60%,
    rgba(10, 31, 68, 0.15) 85%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.hero-title,
.about-hero-title,
.contact-hero-title {
  font-size: var(--font-hero);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--white);
}

.about-hero-title,
.contact-hero-title {
  color: var(--white);
}

.hero-subtitle,
.about-hero-text,
.contact-hero-text {
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-hero-text,
.contact-hero-text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.about-label,
.contact-label {
  font-size: var(--font-label);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.btn-hero {
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hero:hover {
  background: var(--blue-accent);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Features Bar ── */
.features-wrapper {
  position: relative;
  z-index: 10;
  margin-top: calc(-1 * var(--hero-overlap));
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.features-bar {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem;
}

.feature-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.feature-divider {
  border-right: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
  .feature-divider {
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .feature-item {
    justify-content: center;
    text-align: left;
  }
}

/* ── Services ── */
.services-section {
  background: var(--light-bg);
  padding: 3rem 0 4rem;
}

.section-heading,
.philosophy-card h2,
.contact-info-heading,
.contact-form-card h2,
.engineers-title {
  font-size: var(--font-section);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.25rem;
}

.philosophy-card h2 {
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.contact-info-heading {
  margin-bottom: 0.5rem;
}

.contact-form-card h2 {
  margin-bottom: 0.5rem;
}

.engineers-title {
  margin-bottom: 0.5rem;
}

.committed-banner h2 {
  font-size: var(--font-section);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom:0.5rem;
}

.drive-card h3,
.contact-feature h3,
.why-card-body h3 {
  font-size: var(--font-card);
  font-weight: 700;
  color: var(--navy);
}

.service-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  border: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-card-label {
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.875rem 1rem;
  margin: 0;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}

.site-footer .footer-logo img {
  height: 48px;
  width: auto;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.footer-contact-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-contact-text a {
  color: inherit;
  text-decoration: none;
}

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

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item i {
  color: var(--blue-accent);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-contact-text {
  line-height: 1.5;
}

/* ── About Page ── */
.about-hero {
  background: url('../images/aboutus/banner.webp') center right / cover no-repeat;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 31, 68, 0.97) 0%,
    rgba(10, 31, 68, 0.9) 40%,
    rgba(10, 31, 68, 0.5) 65%,
    rgba(10, 31, 68, 0.1) 90%,
    transparent 100%
  );
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.philosophy-wrapper {
  position: relative;
  z-index: 10;
  margin-top: calc(-1 * var(--hero-overlap));
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.philosophy-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.philosophy-card p {
  font-size: var(--font-body);
  color: #000;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto;
}

.drives-section {
  padding: 0 0 3.5rem;
  background: var(--white);
}

.drive-card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.drive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.drive-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.drive-card h3 {
  margin-bottom: 0.75rem;
}

.drive-card p {
  font-size: var(--font-body-sm);
  color: #000;
  line-height: 1.6;
  margin: 0;
}

.engineers-section {
  background: #ebf5fb;
  padding: 3.5rem 0;
}

.engineers-intro {
  font-size: var(--font-body);
  color: #000;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.engineers-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.engineers-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.engineers-list li i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
}

.engineers-img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.committed-section {
  padding: 1.5rem 0 1.5rem;
  background: var(--white);
}

.committed-banner {
  background: var(--navy);
  border-radius: 16px;
  padding: 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.committed-banner img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.committed-banner p {
  font-size: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0;
}

/* ── Contact Page ── */
.contact-hero {
  background: url('../images/contact/banner.webp') center right / cover no-repeat;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 31, 68, 0.97) 0%,
    rgba(10, 31, 68, 0.92) 45%,
    rgba(10, 31, 68, 0.5) 70%,
    rgba(10, 31, 68, 0.1) 90%,
    transparent 100%
  );
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.contact-main {
  position: relative;
  z-index: 10;
  padding-bottom: 3rem;
  background: var(--white);
}

.contact-info-col {
  padding-top: 1.5rem;
}

.contact-info-sub {
  font-size: var(--font-body);
  color: #000;
  margin-bottom: 1.75rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-detail img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-detail a,
.contact-detail span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease;
}

.contact-detail a:hover {
  color: var(--blue-primary);
}

.contact-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ebf5fb;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.contact-feature img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-feature h3 {
  margin-bottom: 0.35rem;
}

.contact-feature p {
  font-size: var(--font-body-sm);
  color: #000;
  line-height: 1.5;
  margin: 0;
}

.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-card .form-intro {
  font-size: var(--font-body);
  color: #000;
  margin-bottom: 1.75rem;
}

.form-alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-alert-success {
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.form-alert-error {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.contact-form-card .form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-label-required::after {
  content: ' *';
  color: #dc3545;
  font-weight: 700;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.65rem 0.875rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.contact-form-card .form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 0.2rem rgba(27, 94, 184, 0.15);
}

.contact-form-card textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  width: 100%;
  max-width: 280px;
  display: block;
  margin: 1.5rem auto 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: var(--blue-accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.why-section {
  padding: 1.5rem 0 3.5rem;
  background: var(--white);
}

.why-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.why-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.why-card-body {
  padding: 1rem;
}

.why-card-body h3 {
  margin-bottom: 0.5rem;
}

.why-card-body p {
  font-size: var(--font-body-sm);
  color: #000;
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ── */
@media (min-width: 992px) {
  .hero-section,
  .about-hero,
  .contact-hero {
    height: var(--hero-min-height);
    min-height: var(--hero-min-height);
  }

  .drive-card-col {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .contact-form-col {
    margin-top: calc(-1 * var(--hero-overlap));
  }

  .contact-info-col {
    padding-top: 2rem;
  }
}

@media (max-width: 991.98px) {
  .site-footer .col-lg-3 {
    margin-bottom: 2rem;
  }

  .about-hero,
  .contact-hero {
    background-position: 75% center;
  }

  .philosophy-wrapper {
    margin-top: calc(-1 * var(--hero-overlap-md));
  }

  .committed-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  .hero-section,
  .about-hero,
  .contact-hero {
    min-height: var(--hero-min-height-md);
    padding: var(--hero-padding-md);
  }

  .contact-form-col {
    margin-top: 0;
  }

  .contact-info-col {
    padding-top: 0;
  }

  .contact-form-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section,
  .about-hero,
  .contact-hero {
    min-height: var(--hero-min-height-sm);
    padding: var(--hero-padding-sm);
    background-position: 70% center;
  }

  .hero-section::before,
  .about-hero::before,
  .contact-hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 31, 68, 0.95) 0%,
      rgba(10, 31, 68, 0.85) 70%,
      rgba(10, 31, 68, 0.5) 100%
    );
  }

  .features-wrapper {
    margin-top: calc(-1 * var(--hero-overlap-sm));
  }

  .service-card-img {
    height: 180px;
  }

  .philosophy-card {
    padding: 1.75rem 1.25rem;
  }

  .engineers-section {
    padding: 2.5rem 0;
  }

  .engineers-img {
    margin-top: 2rem;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  .why-card-img {
    height: 140px;
  }
}
