/* ========================================
   3cAxis Technologies
   Contact Page
   ======================================== */

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


html {
  width: 100%;
  min-height: 100%;
}


body {
  width: 100%;
  min-height: 100vh;

  background-color: #f4f7fb;

  color: #1f2937;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  line-height: 1.6;
}


/* ========================================
   Top Navigation
   ======================================== */

.top-ribbon {
  position: relative;

  width: 100%;
  height: 64px;

  background-color: #1e87fc;

  z-index: 100;
}


.nav-container {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 1600px;
  height: 100%;

  margin: 0 auto;

  padding-left: clamp(16px, 2vw, 34px);
  padding-right: clamp(16px, 2vw, 34px);
}


.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  gap: clamp(12px, 1.7vw, 30px);
}


.nav-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  color: #ffffff;

  font-size:
    clamp(
      11px,
      0.82vw,
      15px
    );

  font-weight: 600;

  letter-spacing: 0.04em;

  text-decoration: none;
  text-transform: uppercase;

  white-space: nowrap;

  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}


.nav-link:not(.nav-cta)::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 4px;

  width: 0;
  height: 2px;

  background-color: #ffffff;

  transform: translateX(-50%);

  transition: width 0.2s ease;
}


.nav-link:not(.nav-cta):hover::after,
.nav-link.active:not(.nav-cta)::after {
  width: 100%;
}


.nav-link:hover {
  opacity: 0.88;
}


.nav-cta {
  min-height: 40px;

  padding-left:
    clamp(
      12px,
      1.2vw,
      22px
    );

  padding-right:
    clamp(
      12px,
      1.2vw,
      22px
    );

  border: 2px solid #ffffff;

  border-radius: 6px;
}


.nav-cta:hover {
  color: #1e87fc;

  background-color: #ffffff;

  opacity: 1;
}


.mobile-brand,
.menu-toggle,
.menu-button {
  display: none;
}


/* ========================================
   Page Hero
   ======================================== */

.page-hero {
  width: 100%;

  padding:
    72px
    24px
    78px;

  background:
    linear-gradient(
      135deg,
      #0d7bfd 0%,
      #1e87fc 55%,
      #45a1ff 100%
    );

  color: #ffffff;

  text-align: center;
}


.page-hero-content {
  max-width: 820px;

  margin: 0 auto;
}


.eyebrow {
  margin-bottom: 12px;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.16em;

  opacity: 0.9;
}


.page-hero h1 {
  margin-bottom: 18px;

  font-size:
    clamp(
      36px,
      5vw,
      58px
    );

  line-height: 1.1;
}


.hero-text {
  max-width: 700px;

  margin: 0 auto;

  font-size:
    clamp(
      17px,
      2vw,
      20px
    );

  color:
    rgba(
      255,
      255,
      255,
      0.94
    );
}


/* ========================================
   Main Contact Area
   ======================================== */

.contact-main {
  width: 100%;

  padding:
    60px
    24px
    80px;
}


.contact-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.35fr);

  gap: 32px;

  width: 100%;
  max-width: 1180px;

  margin: 0 auto;

  align-items: start;
}


/* ========================================
   Cards
   ======================================== */

.contact-info-card,
.contact-form-card {
  background-color: #ffffff;

  border:
    1px solid
    #e3eaf3;

  border-radius: 16px;

  box-shadow:
    0 10px 35px
    rgba(
      15,
      51,
      92,
      0.08
    );
}


.contact-info-card {
  padding:
    38px
    34px;
}


.contact-form-card {
  padding:
    38px
    40px;
}


/* ========================================
   Section Headings
   ======================================== */

.section-heading {
  margin-bottom: 30px;
}


.section-label {
  margin-bottom: 7px;

  color: #0d7bfd;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.14em;
}


.section-heading h2 {
  margin-bottom: 12px;

  color: #172033;

  font-size:
    clamp(
      25px,
      3vw,
      32px
    );

  line-height: 1.2;
}


.section-heading p:not(.section-label) {
  color: #667085;

  font-size: 15px;
}


/* ========================================
   Contact Information
   ======================================== */

.contact-method {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-top: 8px;
}


.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  width: 48px;
  height: 48px;

  border-radius: 50%;

  background-color: #eaf4ff;

  color: #0d7bfd;

  font-size: 22px;
  font-weight: 700;
}


.contact-method h3 {
  margin-bottom: 2px;

  color: #172033;

  font-size: 17px;
}


.contact-method a {
  color: #0d7bfd;

  font-size: 16px;

  text-decoration: none;
}


.contact-method a:hover {
  text-decoration: underline;
}


.divider {
  width: 100%;
  height: 1px;

  margin:
    32px
    0;

  background-color: #e7ecf3;
}


/* ========================================
   Consultation CTA
   ======================================== */

.consultation-box {
  padding: 24px;

  border:
    1px solid
    #d9eaff;

  border-radius: 12px;

  background-color: #f5faff;
}


.consultation-box h3 {
  margin-bottom: 10px;

  color: #172033;

  font-size: 19px;
}


.consultation-box p {
  margin-bottom: 18px;

  color: #667085;

  font-size: 14px;
}


.consultation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding:
    0
    18px;

  border-radius: 7px;

  background-color: #0d7bfd;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.03em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


.consultation-link:hover {
  background-color: #0868d6;

  transform: translateY(-1px);
}


/* ========================================
   Form
   ======================================== */

.contact-form {
  width: 100%;
}


.form-row {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


.form-group {
  display: flex;
  flex-direction: column;

  margin-bottom: 20px;
}


.form-group label {
  margin-bottom: 7px;

  color: #273248;

  font-size: 14px;
  font-weight: 600;
}


.form-group label span,
.required-note span {
  color: #d92d20;
}


.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  border:
    1px solid
    #cfd8e5;

  border-radius: 8px;

  background-color: #ffffff;

  color: #172033;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.form-group input,
.form-group select {
  height: 48px;

  padding:
    0
    14px;
}


.form-group textarea {
  min-height: 170px;

  padding: 13px 14px;

  resize: vertical;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0d7bfd;

  box-shadow:
    0 0 0 3px
    rgba(
      13,
      123,
      253,
      0.12
    );
}


/* ========================================
   Submit Button
   ======================================== */

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 52px;

  margin-top: 4px;

  border: 0;

  border-radius: 8px;

  background-color: #0d7bfd;

  color: #ffffff;

  cursor: pointer;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 15px;
  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.submit-button:hover {
  background-color: #0868d6;

  box-shadow:
    0 7px 18px
    rgba(
      13,
      123,
      253,
      0.22
    );

  transform: translateY(-1px);
}


.submit-button:active {
  transform: translateY(0);
}


.required-note {
  margin-top: 12px;

  color: #7a8495;

  font-size: 12px;

  text-align: right;
}


/* ========================================
   Footer
   ======================================== */

.site-footer {
  width: 100%;

  padding:
    26px
    20px;

  background-color: #172033;

  color:
    rgba(
      255,
      255,
      255,
      0.72
    );

  font-size: 13px;

  text-align: center;
}


/* ========================================
   Tablet
   ======================================== */

@media screen and (max-width: 900px) {

  .contact-layout {
    grid-template-columns: 1fr;
  }


  .contact-info-card,
  .contact-form-card {
    max-width: 720px;

    margin:
      0
      auto;

    width: 100%;
  }
}


/* ========================================
   Mobile Navigation
   ======================================== */

@media screen and (max-width: 768px) {

  .top-ribbon {
    height: 56px;

    background-color: #0d7bfd;
  }


  .nav-container {
    justify-content: space-between;

    padding-left: 16px;
    padding-right: 16px;
  }


  .mobile-brand {
    display: block;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    letter-spacing: 0.04em;

    text-decoration: none;

    white-space: nowrap;

    z-index: 102;
  }


  .menu-toggle {
    position: absolute;

    display: block;

    opacity: 0;

    pointer-events: none;
  }


  .menu-button {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    gap: 5px;

    cursor: pointer;

    z-index: 103;
  }


  .menu-button span {
    display: block;

    width: 25px;
    height: 2px;

    background-color: #ffffff;

    border-radius: 2px;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }


  .menu-toggle:checked
  + .menu-button
  span:nth-child(1) {
    transform:
      translateY(7px)
      rotate(45deg);
  }


  .menu-toggle:checked
  + .menu-button
  span:nth-child(2) {
    opacity: 0;
  }


  .menu-toggle:checked
  + .menu-button
  span:nth-child(3) {
    transform:
      translateY(-7px)
      rotate(-45deg);
  }


  .main-nav {
    position: absolute;

    left: 0;
    top: 56px;

    display: flex;
    flex-direction: column;

    align-items: stretch;

    width: 100%;

    gap: 0;

    padding:
      10px
      16px
      16px;

    background-color:
      rgba(
        13,
        123,
        253,
        0.98
      );

    opacity: 0;

    visibility: hidden;

    transform:
      translateY(-10px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;

    z-index: 101;
  }


  .menu-toggle:checked
  ~ .main-nav {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
  }


  .nav-link {
    justify-content: flex-start;

    width: 100%;

    min-height: 48px;

    padding:
      0
      8px;

    border-bottom:
      1px solid
      rgba(
        255,
        255,
        255,
        0.22
      );

    font-size: 14px;
  }


  .nav-link:not(.nav-cta)::after {
    display: none;
  }


  .nav-cta {
    justify-content: center;

    margin-top: 12px;

    border:
      2px solid
      #ffffff;

    border-radius: 6px;
  }


  .page-hero {
    padding:
      54px
      20px
      58px;
  }


  .contact-main {
    padding:
      36px
      16px
      56px;
  }


  .contact-info-card,
  .contact-form-card {
    padding:
      28px
      22px;
  }


  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }


  .consultation-box {
    padding: 20px;
  }

}


/* ========================================
   Small Phones
   ======================================== */

@media screen and (max-width: 420px) {

  .mobile-brand {
    font-size: 14px;
  }


  .page-hero h1 {
    font-size: 34px;
  }


  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }


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

}
