/* Contact Us inner page styling matched to UDesign reference screenshots */

.contact-page-shell {
  background: #111;
  color: #f8f8f8;
}

.contact-page-main {
  background: #fff;
  color: #333;
  min-height: calc(100vh - 96px);
  position: relative;
}

/* Page Hero Banner */
.contact-page-hero-rail {
  background: #111;
  position: relative;
  margin: 0;
  z-index: 1;
}

.contact-page-banner {
  width: 100%;
  max-width: 1764px;
  height: 320px;
  margin: 0 auto -60px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(17, 17, 17, 0.65), rgba(17, 17, 17, 0.65)), url("assets/theme/business-consulting-6/wp-content/uploads/sites/87/2022/10/bg-1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-page-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

.contact-page-banner h1 {
  margin: 0 0 12px;
  color: #fff;
  font: 600 46px/1.1 Poppins, var(--font-body);
  letter-spacing: -1.2px;
}

.contact-page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #bebebe;
  font: 400 16px/1.5 Poppins, var(--font-body);
}

.contact-page-breadcrumb a {
  color: #696969;
  transition: color 0.3s ease;
}

.contact-page-breadcrumb a:hover,
.contact-page-breadcrumb a:focus {
  color: #bebebe;
}

.contact-page-breadcrumb .delimiter {
  color: #696969;
  font-size: 15px;
}

/* Section 1: Get in Touch With Us matched to Screenshot 04-14-26 */
.contact-locations-section {
  background: #1c1c1f;
  color: #fff;
  padding: 100px 0 110px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.contact-locations-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.contact-locations-title {
  margin: 0 0 60px;
  text-align: center;
  color: #fff;
  font: 500 42px/1.2 Poppins, var(--font-body);
  letter-spacing: -0.8px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  width: 100%;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #232326;
  border-radius: 0;
  overflow: hidden;
  min-height: 520px;
}

.location-image-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 520px;
  background: #18181a;
}

.location-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.25, 1);
}

.location-card:hover .location-image-wrap img {
  transform: scale(1.05);
}

.location-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(237, 112, 65, 0.85) 0%, rgba(218, 91, 40, 0.6) 45%, rgba(20, 20, 20, 0.3) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.location-card:hover .location-image-overlay,
.location-card:focus-within .location-image-overlay {
  opacity: 1;
}

.location-info {
  padding: 60px 55px;
  background: #232326;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.location-info h3 {
  margin: 0 0 16px;
  color: #fff;
  font: 500 28px/1.2 Poppins, var(--font-body);
  letter-spacing: -0.5px;
}

.location-desc {
  margin: 0 0 32px;
  color: #88888b;
  font: 400 13px/1.7 Poppins, var(--font-body);
  max-width: 400px;
}

.location-details {
  display: flex;
  gap: 48px;
  margin-bottom: 22px;
}

.location-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.location-detail-label {
  color: #666669;
  font: 400 12px/1.2 Poppins, var(--font-body);
}

.location-detail-value {
  color: #fff;
  font: 400 14px/1.4 Poppins, var(--font-body);
  text-decoration: none;
  transition: color 0.3s ease;
}

.location-detail-value:hover,
.location-detail-value:focus {
  color: #ed7041;
}

.location-address {
  margin-bottom: 28px;
}

.location-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.location-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 500 14px/1 Poppins, var(--font-body);
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.location-socials a:hover,
.location-socials a:focus-visible {
  background: #ed7041;
  border-color: #ed7041;
  transform: translateY(-2px);
}

.location-socials a:hover,
.location-socials a:focus-visible {
  background: #ed7041;
  border-color: #ed7041;
  color: #fff;
  transform: translateY(-2px);
}

/* Section 2: Send a Message */
.contact-form-section {
  position: relative;
  background: #f8f8f8;
  padding: 160px 30px 140px;
  overflow: visible;
}

.contact-form-container {
  width: min(100%, 1224px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-form-title {
  margin: 0 0 44px;
  color: #38383a;
  font: 600 38px/1.2 Poppins, var(--font-body);
  letter-spacing: -0.7px;
}

.contact-main-form {
  max-width: 100%;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 20px;
}

.contact-input-wrap input {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 2px;
  padding: 18px 22px;
  color: #333;
  font: 400 14px Poppins, var(--font-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  outline: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-input-wrap input::placeholder,
.contact-textarea-wrap textarea::placeholder {
  color: #aaa;
}

.contact-input-wrap input:focus,
.contact-textarea-wrap textarea:focus {
  box-shadow: 0 4px 16px rgba(237, 112, 69, 0.15);
}

.contact-textarea-wrap {
  margin-bottom: 32px;
}

.contact-textarea-wrap textarea {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 2px;
  padding: 18px 22px;
  color: #333;
  font: 400 14px Poppins, var(--font-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  outline: none;
  resize: vertical;
  min-height: 200px;
  transition: box-shadow 0.3s ease;
}

.contact-submit-btn {
  background: #ed7041;
  border: 0;
  color: #fff;
  padding: 18px 42px;
  font: 500 15px/1 Poppins, var(--font-body);
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-submit-btn:hover,
.contact-submit-btn:focus-visible {
  background: #d95b28;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(237, 112, 69, 0.3);
}

/* Background Geometry Overlay Accents matched to about.html */
.contact-form-section:before {
  content: "";
  position: absolute;
  right: -125px;
  top: 89px;
  width: 250px;
  height: 250px;
  border: 1px solid #ed7041;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 1;
}

.contact-form-section:after {
  content: "";
  position: absolute;
  right: 0;
  top: 296px;
  width: 0;
  height: 0;
  border-top: 96px solid transparent;
  border-bottom: 96px solid transparent;
  border-left: 0;
  border-right: 95px solid #ed7041;
  pointer-events: none;
  z-index: 1;
}

/* Contact CTA Section matched to reference screenshot */
.contact-cta-section {
  position: relative;
  background: #151515 url("assets/theme/business-consulting-6/wp-content/uploads/sites/87/2024/12/bg-2.jpg") center/cover no-repeat;
  color: #fff;
  margin: 0;
  padding: 115px 30px 125px;
  text-align: center;
  overflow: hidden;
}

.contact-cta-content {
  max-width: 830px;
  margin: 0 auto;
}

.contact-cta-content h2 {
  max-width: 570px;
  margin: 0 auto 17px;
  color: #fff;
  font: 400 45px/1.2 Poppins, var(--font-body);
  letter-spacing: -0.8px;
}

.contact-cta-content p {
  max-width: 830px;
  margin: 0 auto 42px;
  color: #777;
  font: 400 16px/1.6 Poppins, var(--font-body);
}

.contact-cta-content .button {
  background: transparent;
  border: 1px solid #ed7041;
  color: #ed7041;
  padding: 18px 37px;
  font: 500 16px/1 Poppins, var(--font-body);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-cta-content .button:hover,
.contact-cta-content .button:focus-visible {
  background: #ed7041;
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .contact-form-section:before,
  .contact-form-section:after {
    display: none;
  }
  .contact-page-banner {
    height: 265px;
    margin-bottom: -48px;
    padding: 0 22px;
  }
  .contact-page-banner h1 {
    font-size: 38px;
  }
  .contact-locations-section {
    padding: 100px 22px 110px;
  }
  .contact-locations-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .location-card {
    grid-template-columns: 1fr;
  }
  .location-image-wrap {
    min-height: 240px;
  }
  .location-info {
    padding: 30px 24px;
  }
  .contact-form-section {
    padding: 120px 22px 90px;
  }
  .contact-form-title {
    font-size: 32px;
    margin-bottom: 32px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-cta-section {
    padding: 95px 22px 85px;
  }
  .contact-cta-content h2 {
    font-size: 34px;
  }
  .contact-cta-content p {
    font-size: 14px;
    margin-bottom: 32px;
  }
  .contact-cta-content .button {
    font-size: 14px;
    padding: 16px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page-breadcrumb a,
  .location-card,
  .location-image-wrap img,
  .location-socials a,
  .contact-input-wrap input,
  .contact-textarea-wrap textarea,
  .contact-submit-btn,
  .contact-cta-content .button {
    transition: none;
  }
}
