/* ===== SCOPED RESET ===== */
.ta-contact-revamp {
  font-family: 'Poppins', sans-serif;
}

.ta-contact-revamp * {
  box-sizing: border-box;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO ===== */
.contact-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;

  display: flex;
  align-items: center;

  background: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c")
    center / cover no-repeat;

  overflow: hidden;
}

/* OVERLAY */
.contact-hero__overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(6,18,35,0.95) 0%,
      rgba(6,18,35,0.85) 40%,
      rgba(6,18,35,0.6) 70%,
      rgba(6,18,35,0.4) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(6,18,35,0.2),
      rgba(6,18,35,0.95)
    );
}

/* CONTENT */
.contact-hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

/* TAG */
.contact-hero__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.contact-hero__tag .line {
  width: 40px;
  height: 2px;
  background: #ff6a1a;
}

.contact-hero__tag span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff6a1a;
}

/* TITLE */
.contact-hero__title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
}

.contact-hero__title .white {
  color: #fff;
}

.contact-hero__title .orange {
  color: #ff6a1a;
}

/* SUBTITLE */
.contact-hero__subtitle {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* SCROLL */
.contact-hero__scroll {
  position: absolute;
  right: 30px;
  bottom: 80px;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.4);
}

/* ===== CONTACT CARDS ===== */
.contact-cards {
  margin-top: -52px;
  padding-bottom: 72px;
  position: relative;
  z-index: 3;
}

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

/* CARD */
.contact-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(15,23,42,0.012) 0 1px,
      rgba(15,23,42,0) 1px 28px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(15,23,42,0.012) 0 1px,
      rgba(15,23,42,0) 1px 28px
    ),
    linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,250,252,0.9) 100%),
    #ffffff;
  border: 1px solid #d7e1ec;
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -1px 0 rgba(255,255,255,0.34),
    0 18px 42px rgba(15,23,42,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,106,26,0.24) 0%, rgba(255,255,255,0) 72%);
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255,106,26,0.12) 0%, rgba(255,106,26,0.05) 38%, rgba(255,106,26,0) 72%);
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,106,26,0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    0 22px 48px rgba(255, 255, 255, 0.12);
}

/* ICON */
.contact-card .icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: linear-gradient(135deg, #ff6a1a 0%, #ff952f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255,106,26,0.22);
}

.contact-card .icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.contact-card > div:last-child {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* TEXT */
.contact-card span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.contact-card p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #10233f;
  overflow-wrap: anywhere;
}

/* ===== CERTIFICATIONS ===== */
.certifications {
  --cert-gap: 24px;
  position: relative;
  padding: 24px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.certifications__intro {
  text-align: center;
  margin-bottom: 30px;
}

.certifications__tag {
  justify-content: center;
}

.certifications__title {
  max-width: 680px;
  margin: 0 auto;
  font-size: 36px;
  line-height: 1.15;
  color: #10233f;
}

.certifications__subtitle {
  max-width: 660px;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: #65758f;
}

.certifications__marquee {
  position: relative;
  display: flex;
  gap: var(--cert-gap);
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
}

.certifications__track {
  display: flex;
  gap: var(--cert-gap);
  flex: 0 0 auto;
  min-width: max-content;
  animation: certifications-scroll 28s linear infinite;
}

.certifications__marquee:hover .certifications__track {
  animation-play-state: paused;
}

.certification-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 96px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
}

.certification-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.04);
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form {
  padding: 40px 0 120px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* WRAPPER */
.contact-form__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #e7edf4;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.08);
}

/* ===== LEFT IMAGE ===== */
.contact-form__image {
  position: relative;
  min-height: 610px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.contact-form__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY */
.contact-form__image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 40px;
  background: linear-gradient(
    180deg,
    rgba(8,15,30,0.14) 0%,
    rgba(8,15,30,0.38) 46%,
    rgba(8,15,30,0.92) 100%
  );
  color: #fff;
}

.contact-form__image-overlay::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(8,15,30,0.02) 0%,
    rgba(8,15,30,0.34) 42%,
    rgba(8,15,30,0.74) 100%
  );
  z-index: 0;
}

.contact-form__image-overlay > * {
  position: relative;
  z-index: 1;
}

.contact-form__image-overlay h3 {
  max-width: 420px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(2, 6, 23, 0.45);
}

.contact-form__image-overlay span {
  color: #ff6a1a;
}

.contact-form__image-overlay p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 12px rgba(2, 6, 23, 0.42);
}

/* ===== FORM CARD ===== */
.contact-form__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 8px 14px 0;
}

.contact-form__card h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #10233f;
}

.contact-form__card .subtitle {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #65758f;
}

/* FORM */
.contact-form__fields {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* INPUTS */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid #d6deea;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  min-height: 110px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6f7f98;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255,106,26,0.9);
  box-shadow: 0 0 0 4px rgba(255,106,26,0.12);
}

/* BUTTON */
.contact-form button {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6a1a, #ff952f);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,106,26,0.3);
}

.contact-form button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@keyframes certifications-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - var(--cert-gap)));
  }
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies {
  padding: 96px 0 110px;
  background: #f3f5f8;
}

.case-studies .container {
  max-width: 1180px;
}

/* HEADER */
.case-studies__header {
  text-align: left;
}

.case-studies__header h2 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1e293b;
}

.case-studies__header span {
  color: #ff6a1a;
}

.case-studies__header p {
  margin-top: 12px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

/* GRID */
.case-studies__grid {
  margin-top: 44px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* CARD */
.case-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 154px;
  min-width: 0 !important;

  padding: 24px 28px;
  border-radius: 18px;

  background: #fdfdff;
  border: 1px solid rgba(148,163,184,0.28);

  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  border-color: rgba(255,106,26,0.4);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  transform: translateY(-2px);
}

/* THUMBNAIL */
.case-card__thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(148,163,184,0.24);
  background: #ffffff;
}

.case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card__content {
  flex: 1;
  min-width: 0 !important;
}

/* TEXT */
.case-card h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.case-card p {
  margin: 8px 0 0 0 !important;
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* CTA */
.case-studies__cta {
  margin-top: 42px;
  text-align: center;
}

.case-studies__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 200px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;

  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  transition: 0.3s;
}

.case-studies__btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.case-studies__btn:hover {
  transform: translateY(-2px);
  background: #020617;
}

/* ===== LOCATIONS SECTION ===== */
.locations {
  position: relative;
  padding: 100px 0 110px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}

.locations__hemisphere {
  position: absolute;
  left: 50%;
  bottom: -176px;
  width: min(1700px, 142vw);
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.locations__hemisphere svg {
  width: 100%;
  height: 100%;
  display: block;
}

.locations__hemisphere .earth-dot {
  fill: rgba(15, 23, 42, 0.14);
}

.locations__hemisphere .earth-dot--dense {
  fill: rgba(15, 23, 42, 0.22);
}

.locations__hemisphere .earth-dots-field {
  fill: url(#locationsDotPattern);
  opacity: 0.22;
}

.locations__hemisphere .earth-land {
  fill: url(#locationsDotPatternDense);
  opacity: 0.3;
}

.locations__hemisphere .earth-lat,
.locations__hemisphere .earth-lon {
  fill: none;
  stroke: rgba(15, 23, 42, 0.09);
  stroke-width: 1;
}

.locations__hemisphere .earth-rim {
  fill: none;
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* HEADER */
.locations__header {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.locations__header h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.locations__header p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  opacity: 0.72;
}

.locations__header span {
  color: #ff6a1a;
}

/* GRID */
.locations__grid {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARD */
.loc-card {
  display: block;
  border-radius: 18px;
  padding: 12px 12px 18px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.loc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,106,26,0.28);
  box-shadow: 0 16px 34px rgba(15,23,42,0.1);
}

.loc-card:focus-visible {
  outline: 3px solid rgba(255,106,26,0.2);
  outline-offset: 2px;
}

.loc-card__media {
  position: relative;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.loc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,0.22) 0%, rgba(2,6,23,0.48) 100%);
}

.loc-card__top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ICON */
.loc-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.loc-card__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.1;
}

.loc-card__arrow {
  width: 17px;
  height: 17px;
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease;
}

.loc-card:hover .loc-card__arrow {
  color: #ff6a1a;
  transform: translate(2px, -2px);
}

/* TITLE */
.loc-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #44474e;
  margin-top: 2px;
}

/* COUNTRY */
.loc-card span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ff6a1a;
}

/* ADDRESS */
.loc-card p {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #525157;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .locations__hemisphere {
    width: 172vw;
    height: 350px;
    bottom: -146px;
  }

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

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

  .locations {
    padding: 72px 0 82px;
  }

  .locations__hemisphere {
    width: 196vw;
    height: 260px;
    bottom: -120px;
    opacity: 0.82;
  }

  .locations__header h2 {
    font-size: 32px;
  }

  .locations__header p {
    font-size: 15px;
  }

  .loc-card__media {
    height: 120px;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .case-studies {
    padding: 70px 0 82px;
  }

  .case-studies__header h2 {
    font-size: 36px;
  }

  .case-studies__header p {
    font-size: 15px;
  }

  .case-studies__grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
    gap: 16px;
  }

  .case-card {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .case-card__thumb {
    width: 58px;
    height: 58px;
  }

  .case-card h3 {
    font-size: 15px;
  }

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

  .case-studies__btn {
    min-width: 240px;
    min-height: 52px;
    padding: 12px 24px;
    font-size: 13px;
  }
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-hero {
    min-height: 460px;
  }

  .certifications {
    padding-bottom: 72px;
  }

  .certifications__title {
    font-size: 30px;
  }

  .certifications__track {
    animation-duration: 22s;
  }

  .contact-form {
    padding: 28px 0 100px;
  }

  .contact-form__shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 22px;
  }

  .contact-form__image {
    min-height: 420px;
  }

  .contact-form__card {
    padding: 0 4px 4px;
  }
}

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

  .contact-hero__title {
    font-size: 42px;
  }

  .contact-hero {
    min-height: 440px;
  }

  .contact-card {
    min-height: auto;
    padding: 22px;
  }

  .contact-card p {
    font-size: 14px;
  }

  .certifications {
    --cert-gap: 16px;
    padding: 8px 0 64px;
  }

  .certifications__intro {
    margin-bottom: 24px;
  }

  .certifications__title {
    font-size: 26px;
  }

  .certifications__subtitle {
    font-size: 15px;
  }

  .certifications__marquee {
    gap: var(--cert-gap);
  }

  .certifications__track {
    gap: var(--cert-gap);
    animation-duration: 18s;
  }

  .certification-logo {
    min-width: 200px;
    height: 94px;
    padding: 14px;
    border-radius: 18px;
  }

  .contact-form__shell {
    padding: 18px;
    border-radius: 24px;
    gap: 22px;
  }

  .contact-form__image {
    min-height: 340px;
    border-radius: 20px;
  }

  .contact-form__image-overlay {
    padding: 26px;
  }

  .contact-form__image-overlay::before {
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 186px;
  }

  .contact-form__image-overlay h3,
  .contact-form__card h3 {
    font-size: 22px;
  }

  .contact-form__card .subtitle {
    font-size: 15px;
  }

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