/*
 * Tridhya Tech footer refresh
 * Load after the theme stylesheet. Styles the semantic office, footer and
 * copyright markup in index.html and can be adapted to the matching WP template.
 */

:root {
  --tt-footer-ink: #071b2b;
  --tt-footer-deep: #041421;
  --tt-footer-text: #d2dce5;
  --tt-footer-muted: #91a3b2;
  --tt-footer-accent: #08b9e8;
  --tt-footer-line: rgba(179, 203, 220, .17);
}

/* Offices: concise global footprint instead of a second address directory. */
section.our-offices {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 clamp(50px, 6vw, 76px);
  background: #f4f8fb;
}

section.our-offices::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #c8d8e3 18%, #c8d8e3 82%, transparent);
  transform: translateX(-50%);
}

.our-offices > .container > .row {
  display: block;
}

.our-offices h2 {
  margin: 0 0 34px;
  color: var(--tt-footer-ink);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  text-align: left;
}

.our-offices-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.our-offices .office-country {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid #e1eaf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(12, 42, 63, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.our-offices .office-country:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 185, 232, .45);
  box-shadow: 0 12px 28px rgba(12, 42, 63, .08);
}

.our-offices .office-country-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.our-offices .office-country-name img {
  flex: 0 0 34px;
  width: 34px;
  height: 24px;
  padding: 0;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(7, 27, 43, .12);
}

.our-offices .office-country-name span {
  width: auto;
  color: #18374b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.4;
}

.our-offices .office-city {
  margin: 7px 0 0 46px;
  color: #758b9a;
  font-size: 12px;
  line-height: 1.45;
}

/* Main footer */
section.footer {
  position: relative;
  overflow: hidden;
  padding: 66px 0 0;
  color: var(--tt-footer-text);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(8, 185, 232, .11), transparent 34%),
    linear-gradient(145deg, var(--tt-footer-ink), var(--tt-footer-deep));
}

.footer-navigation {
  display: block;
}

section.footer > .container:first-child > .row {
  align-items: flex-start;
  row-gap: 42px;
}

.footer .footer-logo {
  display: inline-flex;
  margin: 0 0 23px;
}

.footer .footer-logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.footer .about-tridhya {
  max-width: 390px;
  margin: 0 0 24px;
  color: var(--tt-footer-muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer .fc-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer .fc-details .cell-details,
.footer .fc-details a.email {
  width: auto;
  margin: 0;
}

.footer .fc-details .cell-details a,
.footer .fc-details a.email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f4f8fb;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.footer .fc-details img {
  flex: 0 0 auto;
  opacity: .85;
}

.footer .footer-menu-title {
  margin: 4px 0 19px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer .footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .footer-menu li {
  margin: 0 0 11px;
  padding: 0;
  line-height: 1.5;
}

.footer .footer-menu li a {
  color: var(--tt-footer-muted);
  font-size: 13px;
  opacity: 1;
  text-decoration: none;
  transition: color .18s ease;
}

.footer .footer-menu li a:hover,
.footer .fc-details .cell-details a:hover,
.footer .fc-details a.email:hover {
  color: var(--tt-footer-accent);
  opacity: 1;
}

/* Certifications, partners and social links share one quiet trust row. */
.footer .sub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 25px 0;
  border-top: 1px solid var(--tt-footer-line);
}

.footer .iso-adobe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer .iso-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer .iso-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer .iso-wrap a {
  color: #cbd7df;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
}

.footer .adobe-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px !important;
}

.footer .adobe-wrap img {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 38px;
  object-fit: contain;
}

.footer ul.social-media {
  gap: 9px;
}

.footer .social-media a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.footer .social-media a:hover {
  transform: translateY(-2px);
  border-color: var(--tt-footer-accent);
  background: rgba(8, 185, 232, .18);
}

.footer .social-media a img {
  max-width: 16px;
  max-height: 16px;
}

/* Bottom legal bar */
section.copyright-section {
  padding: 17px 0;
  color: var(--tt-footer-muted);
  background: #030f19;
}

.copyright-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 22px;
}

.copyright-section p,
.copyright-section .terms a {
  color: var(--tt-footer-muted);
  font-size: 12px;
  line-height: 1.5;
}

.copyright-section .terms a {
  text-decoration: none;
  transition: color .18s ease;
}

.copyright-section .terms a:hover {
  color: #fff;
}

@media (max-width: 991px) {
  section.footer {
    padding-top: 54px;
  }

  .our-offices-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer .sub-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  section.our-offices {
    padding: 52px 0;
  }

  .our-offices-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .our-offices .office-country {
    padding: 16px 14px;
  }

  .footer .sub-footer {
    margin-top: 36px;
    padding: 22px 0;
  }

  .footer .iso-adobe {
    width: 100%;
  }

  .footer .copyright-wrapper {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575px) {
  section.footer {
    padding-top: 44px;
  }

  .our-offices h2 {
    margin-bottom: 24px;
    font-size: 30px;
  }

  .our-offices .office-country-name {
    align-items: flex-start;
  }

  .our-offices .office-country-name span {
    font-size: 11px;
  }

  .our-offices .office-city {
    margin-left: 0;
  }

  .footer .footer-menu-title {
    margin-bottom: 12px;
  }

  .footer .sub-footer {
    align-items: flex-start;
  }

  .footer .iso-wrap {
    gap: 10px;
  }

  .footer .social-media-wrapper {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .our-offices .office-country,
  .footer .footer-menu li a,
  .footer .social-media a {
    transition: none;
  }
}
