:root {
  --navy: #1c2e4a;
  --navy-dark: #1c2e4a;
  --orange: #f5a524;
  --orange-dark: #e08e0f;
  --cream: #ffffff;
  --gray-text: #6b7280;
  --light-bg: #f7f7fb;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  /* safety net: prevents accidental horizontal scroll from any child overflow */
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 36px);
}

/* ---------- HEADER ---------- */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 12px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  z-index: 101;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

nav ul {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
}

nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  opacity: .92;
  transition: opacity .2s, color .2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

nav a:hover {
  opacity: 1;
  color: var(--orange);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 102;
  transition: background 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

/* Animated Hamburger to X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- NAV RIGHT GROUP (nav + language switcher) ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch {
  position: relative;
  z-index: 101;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s ease;
}

.lang-switch-btn:hover,
.lang-switch-btn:focus {
  background: rgba(255, 255, 255, .28);
  outline: none;
}

.lang-switch-btn .lang-caret {
  font-size: 10px;
  transition: transform .2s ease;
}

.lang-switch-menu.active + .lang-switch-btn .lang-caret,
.lang-switch-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  overflow: hidden;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 300;
}

.lang-switch-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #1a1a2e;
  cursor: pointer;
}

.lang-switch-menu button:hover {
  background: #f2f3f7;
}

.lang-switch-menu button.active-lang {
  font-weight: 700;
  color: var(--orange);
}

@media (max-width: 768px) {
  .nav-right {
    gap: 10px;
  }

  .lang-switch-btn {
    padding: 7px 11px;
    font-size: 12px;
  }
}

.btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.btn-orange {
  background: var(--orange);
  color: #1a1a2e;
}

.btn-orange:hover {
  background: var(--orange-dark);
}

/* ---------- HERO (Full image 57.jpeg aspect ratio) ---------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 608;
  min-height: auto;
  display: flex;
  align-items: center;
  background: url('image/57.jpg') center / cover no-repeat;
  background-size: cover;
  background-position: center center;
}

.hero-content {
  max-width: 620px;
  width: 100%;
  padding-top: clamp(40px, 8vw, 60px);
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-content .btn-orange {
  padding: 14px 30px;
  font-size: 15px;
}

/* ---------- SECTION HEADINGS ---------- */
.section {
  padding: clamp(50px, 8vw, 90px) 0;
}

.section-tight {
  padding: clamp(40px, 6vw, 70px) 0;
}

.heading {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin-bottom: clamp(28px, 5vw, 50px);
  color: #181430;
}

.heading .accent {
  background: var(--orange);
  padding: 2px 12px;
  border-radius: 4px;
  color: #181430;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.services-grid>* {
  min-width: 0;
}

.service-card {
  background: var(--navy);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 40px) clamp(18px, 4vw, 26px);
  text-align: center;
  color: #fff;
  transition: transform .25s ease;
  min-width: 0;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  font-size: 13.5px;
  color: #c7c4e0;
}

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

.projects-grid>* {
  min-width: 0;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.project-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.project-card .label {
  padding: 18px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card .label span.arrow {
  color: var(--orange);
}

/* ---------- VALUE PROPOSITION ---------- */
.value-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.value-row>* {
  min-width: 0;
}

.value-row.reverse .value-img {
  order: 2;
}

.value-row.reverse .value-text {
  order: 1;
}

.value-img img {
  border-radius: 14px;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.value-text .eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.value-text h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #181430;
}

.value-text p {
  color: var(--gray-text);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 440px;
  width: 100%;
}

.value-img-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-img-split img {
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.value-img-split img:first-child {
  grid-column: 1/3;
  height: 190px;
}

/* ---------- CUSTOMERS ---------- */
.customers-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 0 90px;
  filter: grayscale(1);
  opacity: .55;
}

.customers-strip div {
  font-weight: 800;
  font-size: 15px;
  color: #181430;
}

/* ---------- CTA / CONTACT ---------- */
.cta {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(rgba(15, 12, 40, .82), rgba(15, 12, 40, .82)),
    url('image/57.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 34px;
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.cta-form input,
.cta-form textarea {
  padding: 14px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #1a1a2e;
  width: 100%;
  min-width: 0;
}

.cta-form textarea {
  grid-column: 1/3;
  min-height: 90px;
  resize: vertical;
}

.cta-form button {
  grid-column: 1/3;
  justify-self: center;
  margin-top: 6px;
  padding: 14px 40px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy-dark);
  color: #c7c4e0;
  padding: clamp(50px, 8vw, 70px) 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(32px, 6vw, 50px);
}

.footer-grid>* {
  min-width: 0;
}

.footer-grid h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-grid p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-grid ul li {
  margin-bottom: 10px;
  font-size: 13.5px;
}

.footer-grid ul li a:hover {
  color: #fff;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
}

.newsletter-form button {
  background: var(--orange);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  color: #1a1a2e;
  white-space: nowrap;
  flex-shrink: 0;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: #8b87ab;
}

/* ---------- RESPONSIVE ---------- */

/* Small laptops / large tablets (up to 1024px): ease grid density */
@media(max-width:1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Tablets & Mobile (up to 768px): mobile menu bar & stacked layouts */
@media(max-width:768px) {
  .nav-wrap {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  header {
    padding: 16px 0;
  }

  /* Dropdown Menu Bar Set on the Right */
  nav,
  header nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 40px));
    background: var(--navy);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease, padding 0.3s ease;
    z-index: 999;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav.active,
  header nav.active {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
    padding: 16px;
  }

  nav ul,
  header nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  nav ul li,
  header nav ul li {
    width: 100%;
  }

  nav ul li a,
  header nav ul li a {
    display: block;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: right;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  }

  nav ul li a:hover,
  header nav ul li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--orange);
    transform: translateX(-4px);
  }

  /* Responsive Hero Image (Full 1600x608 Aspect Ratio) */
  .hero {
    width: 100%;
    aspect-ratio: 1600 / 608;
    min-height: auto;
    background-size: cover;
    background-position: center center;
  }

  .hero-content {
    padding-top: clamp(10px, 3vw, 24px);
  }

  .hero-content h1 {
    font-size: clamp(24px, 6vw, 34px);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .value-row,
  .value-row.reverse {
    grid-template-columns: 1fr;
  }

  .value-row.reverse .value-img {
    order: 1;
  }

  .value-row.reverse .value-text {
    order: 2;
  }

  .value-text p {
    max-width: 100%;
  }

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

  /* Span lone last item full-width when it is the odd one out in a 2-col row */
  .footer-grid>*:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .cta-form {
    grid-template-columns: 1fr;
  }

  .cta-form textarea,
  .cta-form button {
    grid-column: 1;
  }

  .customers-strip {
    justify-content: center;
    text-align: center;
  }
}

/* Large phones (up to 600px): intermediate single-column adjustments */
@media(max-width:600px) {
  .page-content h2 {
    padding-left: 20px;
  }

  .hero {
    width: 100%;
    aspect-ratio: 1600 / 608;
    min-height: auto;
  }

  .heading {
    font-size: clamp(20px, 5.5vw, 26px);
    margin-bottom: clamp(20px, 4vw, 32px);
  }

  .section {
    padding: clamp(40px, 7vw, 70px) 0;
  }

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

  /* Reset the odd-child span — no longer needed in single column */
  .footer-grid>*:last-child:nth-child(odd) {
    grid-column: 1;
  }

  .service-card h3 {
    font-size: 17px;
  }

  .service-card p {
    font-size: 13px;
  }
}

/* Small phones (up to 480px): single-column everywhere */
@media(max-width:480px) {
  .logo {
    display: none;
  }

  .hero {
    width: 100%;
    aspect-ratio: 1600 / 608;
    min-height: auto;
  }

  .hero-content {
    padding-top: 10px;
  }

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

  .service-card {
    padding: 24px 18px;
  }

  .value-img img {
    height: 220px;
  }

  .value-img-split {
    grid-template-columns: 1fr;
  }

  .value-img-split img:first-child {
    grid-column: 1;
    height: 150px;
  }

  .value-img-split img {
    height: 150px;
  }

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

  .newsletter-form input {
    flex: 1 1 auto;
  }

  .cta-form button {
    padding: 14px 24px;
    width: 100%;
  }

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

  .project-card .label {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* Very small phones (up to 380px) */
@media(max-width:380px) {
  .hero {
    width: 100%;
    aspect-ratio: 1600 / 608;
    min-height: auto;
  }

  .logo {
    font-size: 18px;
  }

  .nav-wrap {
    padding: 12px 0;
  }

  .btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .newsletter-form button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .footer-bottom {
    font-size: 11px;
  }
}