
/* ==============================
   RESET
============================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #18283a;
  background: #ffffff;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ==============================
   TOP BAR
============================== */

.topbar {
  background: #173f35;
  color: #ffffff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.4px;
}


/* ==============================
   HEADER
============================== */

header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5eaf0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  width: min(1200px, calc(100% - 40px));
  min-height: 78px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #173f35;
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}

.logo-icon {
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  border-radius: 7px;

  font-size: 26px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu a {
  color: #263a33;
  font-size: 14px;
  font-weight: 600;

  position: relative;
  transition: color 0.25s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  background: #3f806b;
  transition: width 0.25s ease;
}

.menu a:hover {
  color: #3f806b;
}

.menu a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #173f35;
  font-size: 28px;
  cursor: pointer;
}


/* ==============================
   SERVICES PAGE
============================== */

.page {
  padding: 75px 0 85px;

  background:
    linear-gradient(
      180deg,
      #f5faff 0%,
      #ffffff 38%,
      #ffffff 100%
    );
}

.section-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}


/* ==============================
   PAGE TITLE
============================== */

.section-title {
  text-align: center;

  color: #163d63;

  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.15;

  margin-bottom: 15px;

  font-weight: 700;
  letter-spacing: -1px;
}

.page > .section-inner > p {
  color: #607386 !important;
  font-size: 16px;
  line-height: 1.8;
}


/* ==============================
   SERVICE CARD
============================== */

.service-card {
  display: grid;
  grid-template-columns: 38% 62%;

  min-height: 285px;

  margin-bottom: 24px;

  background: #ffffff;

  border: 1px solid #dce8f3;

  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 8px 25px rgba(47, 104, 153, 0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);

  border-color: #bfd8ec;

  box-shadow:
    0 16px 35px rgba(47, 104, 153, 0.12);
}


/* ==============================
   SERVICE IMAGE
============================== */

.service-image {
  height: 285px;
  overflow: hidden;

  background: #eaf4fc;
}

.service-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.45s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.04);
}


/* ==============================
   SERVICE CONTENT
============================== */

.service-content {
  padding: 38px 45px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #ffffff;
}

.service-number {
  display: inline-block;

  margin-bottom: 9px;

  color: #4d8bbd;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 2px;
}

.service-content h2 {
  margin-bottom: 12px;

  color: #163d63;

  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
}

.service-content p {
  max-width: 570px;

  color: #647687;

  font-size: 15px;
  line-height: 1.75;
}


/* ==============================
   CTA
============================== */

.light {
  padding: 75px 0;

  background:
    linear-gradient(
      135deg,
      #eef7ff 0%,
      #ffffff 100%
    );

  border-top: 1px solid #e0edf7;
}

.light .section-title {
  color: #163d63;
  font-size: clamp(30px, 4vw, 43px);
}

.light p {
  color: #637589;
  line-height: 1.8;
}


/* ==============================
   BUTTON
============================== */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 27px;

  border-radius: 7px;

  font-size: 14px;
  font-weight: 700;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn.primary {
  background: #256da3;
  color: #ffffff;
}

.btn.primary:hover {
  background: #195987;

  transform: translateY(-2px);

  box-shadow:
    0 9px 22px rgba(37, 109, 163, 0.22);
}


/* ==============================
   FOOTER
   SAME DESIGN AS BEFORE
============================== */

footer {
  background: navy;
  color: #dce8e3;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: auto;

  padding: 70px 0 55px;

  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 50px;
}

.footer-title {
  margin-bottom: 15px;

  color: #ffffff;

  font-size: 23px;
  font-weight: 700;
}

.footer-title span {
  color: #91b7a9;
}

.footer-inner > div:first-child p {
  max-width: 330px;

  color: #aebfb8;

  font-size: 14px;
  line-height: 1.8;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 15px;
}

.footer-col a {
  margin-bottom: 9px;

  color: #afc0b9;

  font-size: 14px;

  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-col p {
  color: #afc0b9;
  font-size: 14px;
  line-height: 1.7;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.10);

  padding: 25px 20px;

  text-align: center;

  color: #8fa49c;

  font-size: 12px;
  line-height: 1.7;
}


/* ==============================
   TABLET
============================== */

@media (max-width: 900px) {

  .menu {
    gap: 18px;
  }

  .menu a {
    font-size: 13px;
  }

  .service-card {
    grid-template-columns: 40% 60%;
    min-height: 260px;
  }

  .service-image {
    height: 260px;
  }

  .service-content {
    padding: 30px 32px;
  }

  .service-content h2 {
    font-size: 25px;
  }

  .service-content p {
    font-size: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}


/* ==============================
   MOBILE
============================== */

@media (max-width: 700px) {

  .topbar {
    padding: 9px 15px;
    font-size: 11px;
  }

  .nav {
    width: calc(100% - 30px);
    min-height: 65px;
  }

  .logo {
    font-size: 16px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .mobile-toggle {
    display: block;
  }

  .menu {
    display: none;

    position: absolute;
    top: 65px;
    left: 0;

    width: 100%;

    padding: 20px;

    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    background: #ffffff;

    border-bottom: 1px solid #e0e8ef;

    box-shadow:
      0 10px 25px rgba(0, 0, 0, 0.06);
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    font-size: 15px;
  }


  /* PAGE */

  .page {
    padding: 55px 0 65px;
  }

  .section-inner {
    width: calc(100% - 30px);
  }

  .section-title {
    font-size: 34px;
  }

  .page > .section-inner > p {
    font-size: 14px;
    margin-bottom: 32px !important;
  }


  /* SERVICE CARD */

  .service-card {
    display: block;

    margin-bottom: 20px;

    border-radius: 13px;
  }

  .service-image {
    height: 190px;
  }

  .service-image img {
    height: 190px;
  }

  .service-content {
    padding: 25px 22px 28px;
  }

  .service-number {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .service-content h2 {
    font-size: 23px;
    margin-bottom: 10px;
  }

  .service-content p {
    font-size: 14px;
    line-height: 1.7;
  }


  /* CTA */

  .light {
    padding: 60px 0;
  }

  .light .section-title {
    font-size: 29px;
  }


  /* FOOTER */

  .footer-inner {
    width: calc(100% - 30px);

    padding: 55px 0 40px;

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .footer-inner > div:first-child p {
    max-width: 100%;
  }

  .copyright {
    padding: 22px 15px;
    font-size: 11px;
  }
}


/* ==============================
   SMALL MOBILE
============================== */

@media (max-width: 400px) {

  .logo {
    font-size: 14px;
  }

  .section-title {
    font-size: 30px;
  }

  .service-image {
    height: 175px;
  }

  .service-image img {
    height: 175px;
  }

  .service-content {
    padding: 23px 19px 26px;
  }

  .service-content h2 {
    font-size: 21px;
  }

  .btn {
    width: 100%;
  }
}
