/* =========================================================
   APEX GLOBAL XOLUTIONS — CONTACT PAGE
   Screenshot-matched desktop layout + responsive behavior
   ========================================================= */

:root {
  --blue: #008ae4;
  --blue-dark: #0554a2;
  --footer-blue: #0554a2;
  --white: #ffffff;
  --black: #000000;
  --text: #ffffff;
  --muted: rgba(255,255,255,.72);
  --font: "Fira Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #6b7a7a;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  width: min(1280px, calc(100% - 80px));
  height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 10000;
  animation: headerDrop .75s cubic-bezier(.2,.75,.2,1) both;
}

.brand {
  width: 190px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 62px;
  margin-left: auto;
}

.main-nav > a,
.item-link,
.item-link4 {
  color: #0554a2;
  font-size: 14px;
  font-weight: 500;
  transition: opacity .25s ease, transform .25s ease;
}

.main-nav > a:hover,
.item-link:hover,
.item-link4:hover {
  opacity: .7;
  transform: translateY(-2px);
}

/* Exact Service text color used by the Apex navigation */
.home {
  color: #0554a2;
}

.agx-service-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;

  font: inherit;
  color: #0554a2;

  display: flex;
  align-items: center;
  gap: 5px;

  cursor: pointer;

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

/* EXACT SAME HOVER FEEL AS HOME / ABOUT / CONTACT */
.agx-service-button:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.agx-service-button .home {
  color: #0554a2;
  font-size: 14px;
  font-weight: 500;
}

.agx-dropdown-icon {
  width: 20px;
  height: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.header-line2 {
  width: 20px;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}


.quote-button {
  width: 184px;
  height: 58px;
  border-radius: 32px;
  background: #008ae4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 9px 20px rgba(0,139,227,.13);
  transition: transform .25s ease, box-shadow .25s ease;
}

.quote-button span {
  font-size: 21px;
  line-height: 1;
}

.quote-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,139,227,.22);
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
  width: calc(100% - 166px);
  height: 210px;
  margin: 0 auto;
  border-radius: 21px;
  background: #0554a2;
  display: flex;
  align-items: center;
  padding-left: clamp(80px, 12.1vw, 234px);
  overflow: hidden;
}

.page-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(35px, 3vw, 46px);
  font-weight: 700;
  letter-spacing: -.7px;
}

/* =========================================================
   CONTACT PANEL
   ========================================================= */

.contact-panel {
  width: min(1295px, calc(100% - 120px));
  min-height: 665px;
  margin: 87px auto 85px;
  padding: 90px 78px;
  border-radius: 19px;
  background: linear-gradient(132deg, #008ae4 0%, #0554a2 55%, #0554a2 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 66px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  top: -260px;
  right: -100px;
  background: rgba(255,255,255,.055);
  pointer-events: none;
}

.contact-copy {
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin: 0 0 26px;
  color: #fff;
  font-size: clamp(42px, 3.5vw, 61px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.7px;
}

.intro {
  width: 520px;
  max-width: 100%;
  margin: 0 0 18px;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 21px;
}

.contact-details a {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  transition: transform .22s ease, opacity .22s ease;
}

.contact-details a:hover {
  transform: translateX(4px);
  opacity: .8;
}

.detail-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #008ae4;
  font-size: 12px;
  
}

.publishing-question {
  margin: 0 0 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.publishing-button {
  width: 273px;
  min-height: 57px;
  border-radius: 30px;
  background: #008ae4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  text-decoration: none !important;
  transition: transform .25s ease, background .25s ease;
}


.publishing-button:hover {
  transform: translateY(-3px);
  background: #008ae4;
}

/* =========================================================
   FORM
   ========================================================= */

.contact-form {
  width: 100%;
  position: relative;
  z-index: 1;
}

.field {
  position: relative;
  margin-bottom: 12px;
}

.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  border: 0;
  outline: 0;
  background: #fff;
  color: #6b7a7a;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 13px;
  box-shadow: none;
  transition: box-shadow .25s ease, transform .25s ease;
}

.field input {
  height: 58px;
}

.field textarea {
  height: 150px;
  padding-top: 18px;
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7a7a;
  opacity: .72;
}

.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.24);
}

.submit-button {
  width: 100%;
  height: 58px;
  margin-top: 0;
  border: 0;
  border-radius: 7px;
  background: #008ae4;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  background: #008ae4;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

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

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  width: calc(100% - 40px);
  min-height: 665px;
  margin: 0 auto;
  padding: 62px clamp(55px, 12.1vw, 232px) 38px;
  border-radius: 29px 29px 26px 26px;
  background: #0554a2;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.footer-main {
  display: grid;
  grid-template-columns: 2.25fr .85fr .95fr 1.35fr;
  column-gap: 65px;
  flex: 1;
}

.footer-column {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: 245px;
  margin-bottom: 31px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 365px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

.footer-column h3 {
  margin: 5px 0 27px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.quick-links,
.service-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quick-links a,
.service-list a {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  transition: color .2s ease, transform .2s ease;
}

.quick-links a:hover,
.service-list a:hover {
  color: #fff;
  transform: translateX(3px);
}

.subscribe-form {
  width: 365px;
  max-width: 100%;
  margin-top: 34px;
}

.subscribe-form label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 12px;
}

.subscribe-row {
  height: 42px;
  border-bottom: 1px solid rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.subscribe-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.subscribe-row button {
  flex: 0 0 auto;
  width: 118px;
  height: 37px;
  border: 0;
  border-radius: 20px;
  background: #008ae4;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.subscribe-row button:hover {
  transform: translateY(-2px);
  background: #008ae4;
}

.footer-contact h3 {
  margin-bottom: 28px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,.83);
  font-size: 13px;
  line-height: 1.55;
}

.footer-contact-item:hover {
  color: #fff;
}

.footer-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #008ae4;
  color: #fff;
  font-size: 11px;
}

.footer-contact-item strong {
  display: block;
  color: #fff;
  font-weight: 500;
}

.footer-contact-item p {
  margin: 0;
  color: rgba(255,255,255,.68);
}

.footer-bottom {
  min-height: 74px;
  padding-top: 23px;
  border-top: 1px solid rgba(255,255,255,.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 12px;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 27px;
}

.legal-links a {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  transition: color .2s ease;
}

.legal-links a:hover {
  color: #fff;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2,.7,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-panel.reveal {
  transition-delay: .08s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

  .site-header {
    width: calc(100% - 50px);
  }

  .main-nav {
    gap: 34px;
  }

  .header-actions {
    gap: 18px;
  }

  .quote-button {
    width: 155px;
  }

  .page-title {
    width: calc(100% - 90px);
  }

  .contact-panel {
    width: calc(100% - 90px);
    padding: 70px 55px;
    column-gap: 45px;
  }

  .contact-copy h2 {
    font-size: 48px;
  }

  .site-footer {
    width: calc(100% - 30px);
    padding-left: 70px;
    padding-right: 70px;
  }

  .footer-main {
    column-gap: 35px;
  }
}

/* =========================================================
   SMALL TABLET / LARGE PHONE
   ========================================================= */

@media (max-width: 900px) {

  .site-header {
    height: 82px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .page-title {
    width: calc(100% - 40px);
    height: 155px;
    border-radius: 16px;
    padding-left: 45px;
  }

  .page-title h1 {
    font-size: 36px;
  }

  .contact-panel {
    width: calc(100% - 40px);
    margin-top: 55px;
    padding: 55px 40px;
    grid-template-columns: 1fr;
    row-gap: 55px;
  }

  .contact-copy h2 {
    font-size: 46px;
  }

  .contact-form {
    max-width: 620px;
  }

  .site-footer {
    width: calc(100% - 20px);
    padding: 55px 45px 30px;
    min-height: auto;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr;
    row-gap: 50px;
  }

  .footer-bottom {
    margin-top: 45px;
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .site-header {
    width: calc(100% - 30px);
    height: 75px;
    gap: 10px;
  }

  .brand {
    width: 145px;
  }

  .header-actions {
    gap: 15px;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .quote-button {
    width: 118px;
    height: 43px;
    font-size: 11px;
    gap: 6px;
  }

  .quote-button span {
    font-size: 17px;
  }

  .menu-button {
    font-size: 13px;
  }

  .page-title {
    width: calc(100% - 24px);
    height: 120px;
    margin-top: 0;
    border-radius: 13px;
    padding-left: 28px;
  }

  .page-title h1 {
    font-size: 28px;
  }

  .contact-panel {
    width: calc(100% - 24px);
    margin: 35px auto 45px;
    padding: 40px 23px 43px;
    border-radius: 14px;
    row-gap: 40px;
  }

  .contact-copy h2 {
    margin-bottom: 20px;
    font-size: 37px;
    letter-spacing: -1px;
  }

  .desktop-break {
    display: none;
  }

  .intro {
    font-size: 14px;
    line-height: 1.5;
  }

  .contact-details {
    gap: 9px;
  }

  .contact-details a {
    font-size: 14px;
  }

  .publishing-question {
    font-size: 14px;
    margin-top: 22px;
  }

  .publishing-button {
    width: 230px;
    min-height: 49px;
    font-size: 12px;
  }

  .field {
    margin-bottom: 9px;
  }

  .field input {
    height: 50px;
    font-size: 12px;
    border-radius: 7px;
  }

  .field textarea {
    height: 125px;
    font-size: 12px;
    border-radius: 7px;
  }

  .submit-button {
    height: 50px;
    font-size: 12px;
  }

  .site-footer {
    width: calc(100% - 12px);
    border-radius: 20px 20px 16px 16px;
    padding: 45px 28px 25px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 38px;
  }

  .footer-logo {
    width: 205px;
    margin-bottom: 23px;
  }

  .footer-brand p {
    max-width: 100%;
    font-size: 12px;
  }

  .subscribe-form {
    margin-top: 27px;
  }

  .footer-column h3 {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .quick-links a,
  .service-list a,
  .footer-contact-item {
    font-size: 12px;
  }

  .footer-bottom {
    margin-top: 38px;
    padding-top: 20px;
    gap: 18px;
  }

  .footer-bottom p {
    font-size: 10px;
    line-height: 1.5;
  }

  .legal-links {
    gap: 12px 18px;
  }

  .legal-links a {
    font-size: 10px;
  }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

  .brand {
    width: 128px;
  }

  .quote-button {
    width: 105px;
    font-size: 10px;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

  .publishing-button {
    width: 100%;
  }

  .site-footer {
    padding-left: 21px;
    padding-right: 21px;
  }
}


/* =========================================================
   FINAL CONTACT-PAGE DETAIL OVERRIDES
   ========================================================= */

/* Search and hamburger are intentionally absent. */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* Exact requested service dropdown */
.agx-service-dropdown {
  position: relative;
}

.agx-service-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.agx-service-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 230px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(5, 84, 162, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

.agx-service-menu.agx-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.agx-service-item {
  display: block;
  padding: 11px 14px;
  border-radius: 9px;
  color: #0554a2;
  text-decoration: none;
  font-family: "Fira Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.agx-service-item:hover {
  background-color: rgba(5, 84, 162, 0.07);
  opacity: 0.78;
}

.agx-dropdown-icon {
  width: 20px;
  height: auto;
  display: block;
}

/* CTA must look like a button, never an underlined link. */
.publishing-button,
.publishing-button:hover,
.publishing-button:focus,
.publishing-button:active {
  text-decoration: none !important;
}

.publishing-button {
  gap: 0 !important;
}

/* Reference footer separators between address, phone, WhatsApp and email. */
.footer-contact-divider {
  width: 100%;
  height: 1px;
  margin: 0 0 13px;
  background: rgba(255, 255, 255, 0.25);
}

.footer-contact-divider + .footer-contact-item {
  margin-bottom: 13px;
}

.footer-contact-item.address-item {
  margin-bottom: 13px;
}
.publishing-button {
  text-decoration: underline !important;
  text-decoration-color: #ffffff !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
}
.footer-contact-item > span:not(.footer-icon) {
  position: relative;
  top: 4px;
}
.subscribe-row button {
  position: relative;
  top: -7px;
}