/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f8fafc;
  color: #102748;
}

/* =========================
   ECHELON HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a {
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #2454a3;
}

.desktop-nav a.active {
  font-weight: 700;
}

/* Mobile Menu Button */

.mobile-menu-button {
  display: none;
  border: none;
  background: transparent;
  color: #102748;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile Navigation */

.mobile-nav {
  display: none;
  padding: 16px 24px;
  border-top: 1px solid #eeeeee;
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: #2454a3;
}

.mobile-nav.open {
  display: block;
}

/* Responsive Header */

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }
}

/* Engineering Services Section */
.services-section {
  padding: 65px 24px;
  min-height: 100vh;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #102748;
}

.section-heading p {
  font-size: 15px;
  line-height: 1.8;
  color: #52647c;
}

/* Services Grid */
.services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Service Card */
.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 39, 72, 0.1);
}

/* Service Images */
.service-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* Card Content */
.service-number,
.service-card h3,
.service-card p,
.service-tags {
  margin-left: 24px;
  margin-right: 24px;
}

.service-number {
  display: block;
  margin-top: 22px;
  color: #2454a3;
  font-size: 25px;
  font-weight: 700;
}

.service-card h3 {
  margin-top: 14px;
  margin-bottom: 12px;
  font-size: 18px;
  color: #102748;
}

.service-card p {
  margin-bottom: 24px;
  color: #52647c;
  font-size: 13px;
  line-height: 1.9;
}

/* Technology Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 24px;
}

.service-tags span {
  background: #eff6ff;
  color: #2454a3;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* Tablet */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .services-section {
    padding: 45px 16px;
  }

  .section-heading h1 {
    font-size: 26px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

/* HERO SECTION */
.hero-section {
  min-height: 700px;
  background-image: url("../images/hero-engineering.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #ffffff;
}

.hero-overlay {
  min-height: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(7, 25, 45, 0.94) 0%,
    rgba(7, 25, 45, 0.78) 55%,
    rgba(7, 25, 45, 0.68) 100%
  );
  padding: 70px max(8%, calc((100% - 1280px) / 2));
}

.hero-content {
  max-width: 850px;
}

.hero-label {
  color: #80c4ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 32px;
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 750;
  line-height: 1.27;
  margin-bottom: 35px;
}

.hero-content h1 span {
  color: #80bdff;
}

.hero-description {
  max-width: 700px;
  color: #f1f5f9;
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 42px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #155df5;
  color: #ffffff;
  padding: 19px 29px;
  border: 1px solid #155df5;
  border-radius: 7px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hero-button:hover {
  background: #1049c5;
}

.hero-button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .hero-section,
  .hero-overlay {
    min-height: 620px;
  }

  .hero-overlay {
    padding: 55px 24px;
  }

  .hero-label {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .hero-content h1 {
    font-size: 43px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-button {
    width: fit-content;
  }
}

/* ABOUT ECHELON SECTION */
.about-section {
  background: #ffffff;
  padding: 85px 24px;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* About Description */
.about-description {
  max-width: 950px;
  margin: 0 auto 45px;
  text-align: center;
}

.about-description p {
  color: #52647c;
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 18px;
}

/* About Cards */
/* About Cards */
.about-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  min-height: 160px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 39, 72, 0.1);
}

.about-card h3 {
  color: #102748;
  font-size: 19px;
  margin-bottom: 12px;
}

.about-card p {
  color: #52647c;
  font-size: 14px;
  line-height: 1.8;
}

/* Engineering Approach */

/* OUR ENGINEERING APPROACH */

.engineering-approach {
  margin-top: 65px;
  padding: 70px 35px;
  border-radius: 12px;
  text-align: center;

  background:
    linear-gradient(rgba(16, 39, 72, 0.82), rgba(16, 39, 72, 0.82)),
    url("../images/OurEngineeringApproach.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.engineering-approach h3 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 18px;
}

.engineering-approach p {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.9;
  margin-top: 65px;
  padding: 110px 35px;
  border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-section {
    padding: 55px 18px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }
}
/* About Card Images */
.about-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* BUSINESS SEGMENTS SECTION */
.business-segments-section {
  background: #f8fafc;
  padding: 85px 24px;
}

.business-segments-container {
  max-width: 1100px;
  margin: 0 auto;
}

.business-segments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.business-segment-card {
  background: #ffffff;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.business-segment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 39, 72, 0.1);
}

.segment-number {
  display: block;
  color: #2454a3;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
}

.business-segment-card h2 {
  color: #102748;
  font-size: 23px;
  margin-bottom: 16px;
}

.business-segment-card p {
  color: #52647c;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.business-segment-card h3 {
  color: #102748;
  font-size: 16px;
  margin-bottom: 14px;
}

.business-segment-card ul {
  padding-left: 20px;
}

.business-segment-card li {
  color: #52647c;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .business-segments-section {
    padding: 55px 18px;
  }

  .business-segments-grid {
    grid-template-columns: 1fr;
  }

  .business-segment-card {
    padding: 25px;
  }
}

/* ENGINEERING EXPERTISE SECTION */

.expertise-section {
  background: #ffffff;
  padding: 85px 24px;
}

.expertise-container {
  max-width: 1100px;
  margin: 0 auto;
}

.expertise-heading {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.expertise-heading > p:first-child {
  color: #2454a3;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.expertise-heading h2 {
  color: #102748;
  font-size: 34px;
  margin-bottom: 18px;
}

.expertise-description {
  color: #52647c;
  font-size: 15px;
  line-height: 1.9;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background: #f8fafc;
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 39, 72, 0.1);
}

.expertise-card span {
  display: inline-block;
  color: #2454a3;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
}

.expertise-card h3 {
  color: #102748;
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.expertise-card p {
  color: #52647c;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .expertise-section {
    padding: 55px 18px;
  }

  .expertise-heading h2 {
    font-size: 28px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    padding: 25px;
  }
}

/* PROJECTS SHOWCASE SECTION */

.projects-section {
  background: #f8fafc;
  padding: 85px 24px;
}

.projects-container {
  max-width: 1280px;
  margin: 0 auto;
}

.projects-heading {
  text-align: center;
  margin-bottom: 55px;
}

.projects-heading > p:first-child {
  color: #2454a3;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.projects-heading h2 {
  color: #102748;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.projects-description {
  max-width: 650px;
  margin: 0 auto;
  color: #52647c;
  font-size: 15px;
  line-height: 1.9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.project-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(16, 39, 72, 0.12);
}

.project-visual {
  height: 190px;
  overflow: hidden;
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-visual img {
  transform: scale(1.05);
}

.project-blue {
  background: linear-gradient(to bottom right, #dbeafe, #cbd5e1);
}

.project-indigo {
  background: linear-gradient(to bottom right, #e0e7ff, #bfdbfe);
}

.project-slate {
  background: linear-gradient(to bottom right, #e2e8f0, #d1d5db);
}

.project-cyan {
  background: linear-gradient(to bottom right, #cffafe, #bfdbfe);
}

.project-content {
  padding: 24px;
}

.project-category {
  color: #2454a3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.project-content h3 {
  color: #102748;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.project-content > p:last-child {
  color: #52647c;
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-section {
    padding: 55px 18px;
  }

  .projects-heading h2 {
    font-size: 28px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* CONTACT SECTION */

.contact-section {
  background: #ffffff;
  padding: 85px 24px;
}

.contact-container {
  max-width: 1150px;
  margin: 0 auto;
}

.contact-heading {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 55px;
}

.contact-heading > p:first-child {
  color: #2454a3;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.contact-heading h2 {
  color: #102748;
  font-size: 34px;
  margin-bottom: 18px;
}

.contact-heading > p:last-child {
  color: #52647c;
  font-size: 15px;
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-container,
.contact-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
}

.contact-form-container h3,
.contact-info h3 {
  color: #102748;
  font-size: 22px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #102748;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #102748;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2454a3;
  box-shadow: 0 0 0 3px rgba(36, 84, 163, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.contact-submit-button {
  width: 100%;
  padding: 14px 20px;
  background: #2454a3;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-submit-button:hover {
  background: #102748;
}

.contact-info-card {
  padding: 20px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.contact-info-card h4 {
  color: #102748;
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-info-card p {
  color: #52647c;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 55px 18px;
  }

  .contact-heading h2 {
    font-size: 28px;
  }

  .contact-form-container,
  .contact-info {
    padding: 24px;
  }
}

/* FOOTER SECTION */

.site-footer {
  background: #102748;
  color: #ffffff;
  padding: 65px 24px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 45px;
}

.footer-about img {
  width: 190px;
  max-width: 100%;
  height: auto;
  margin-bottom: 22px;
  background: #ffffff;
  padding: 8px;
  border-radius: 6px;
}

.footer-about p {
  max-width: 380px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.9;
}

.footer-links h3,
.footer-services h3 {
  font-size: 18px;
  margin-bottom: 22px;
  color: #ffffff;
}

.footer-links a {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-services p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  color: #cbd5e1;
  font-size: 13px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px 20px 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* OFFICE CONTACT INFORMATION */

.contact-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
}

.office-section {
  margin-bottom: 35px;
}

.office-section:last-child {
  margin-bottom: 0;
}

.office-section > h4 {
  color: #2454a3;
  font-size: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.office-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.office-card h5 {
  color: #102748;
  font-size: 17px;
  margin-bottom: 14px;
}

.office-card p {
  color: #52647c;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.office-card p:last-child {
  margin-bottom: 0;
}

.office-card a {
  color: #2454a3;
  text-decoration: none;
  font-weight: 500;
}

.office-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-info {
    padding: 22px;
  }

  .office-card {
    padding: 16px;
  }
}

/* HORIZONTAL OFFICE LAYOUT */

.contact-info {
  width: 100%;
  box-sizing: border-box;
}

.contact-info > h3 {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info > .office-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.office-section > h4 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.office-card {
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .contact-info > .office-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .contact-info > .office-section {
    grid-template-columns: 1fr;
  }
}

/* UPDATED CONTACT SECTION LAYOUT */

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 45px;
  align-items: center;
}

/* ENQUIRY FORM CENTERED */

.contact-form-container {
  width: 100%;
  max-width: 750px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* OFFICE INFORMATION */

.contact-info {
  width: 100%;
  box-sizing: border-box;
}

.contact-info > h3 {
  text-align: center;
  margin-bottom: 30px;
}

/* THREE OFFICE CARDS HORIZONTALLY */

.contact-info > .office-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.office-section > h4 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.office-card {
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

/* RESPONSIVE LAYOUT */

@media (max-width: 900px) {
  .contact-info > .office-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .contact-info > .office-section {
    grid-template-columns: 1fr;
  }
}

/* FINAL CONTACT LAYOUT */

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.contact-form-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-info {
  width: 100%;
  box-sizing: border-box;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.office-card {
  margin-bottom: 0;
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .office-grid {
    grid-template-columns: 1fr;
  }
}

/* ENGINEERING EXPERTISE IMAGES */

.expertise-card {
  overflow: hidden;
}

.expertise-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .expertise-card img {
    height: 200px;
  }
}
