/* Scoped responsiveness corrections. Preserves the approved visual design and media. */
/* Card buttons must size to their content, overriding the site's 40px button reset. */
.section-page .about-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  align-self: stretch;
  gap: 0;
  height: auto;
  min-width: 0;
  margin-top: 0;
  font-family: inherit;
  white-space: normal;
}
.section-page .about-card .about-art { flex: none; width: 100%; }
.section-page .about-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.section-page .about-card h3, .section-page .about-card p { overflow-wrap: anywhere; }
.section-page .about-card .card-cta { min-height: 44px; margin-top: auto; }
.home-3d :is(.inner-button, .sol-btn, .depth-button, .submit-contact-form, .btn--orange) {
  box-sizing: border-box;
  min-height: 48px;
  height: auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.4;
}
.home-3d :is(.inner-button, .sol-btn, .depth-button) > span[aria-hidden] { flex-shrink: 0; }
.home-3d :is(.sol-card, .sol-tool, .sol-crosscards a, .tcm-rate-card, .tcm-steps article, .contact-aside-panel) { min-width: 0; overflow-wrap: anywhere; }
.home-3d :is(.sol-crosscards a, .sol-tool) { min-height: 48px; }
.home-3d :is(.page-modal__close, .homepage-modal__close) { width: 44px; height: 44px; min-width: 44px; padding: 0; margin-top: 0; }
.home-3d #explore-about { scroll-margin-top: 180px; }
/* One consistent, fully clickable contact group on every page. */
.footer__main .contact-information .tcm-footer-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__main .contact-information .tcm-footer-contact-list li { margin: 0; min-width: 0; }
.footer__main .contact-information .tcm-footer-contact-list .tcm-footer-action {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; width: 100%; box-sizing: border-box; color: #ffe3ac;
}
.footer__main .contact-information .tcm-footer-contact-list .tcm-footer-action > span { min-width: 0; overflow-wrap: anywhere; }
.footer__main .contact-information .tcm-footer-contact-list svg { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; opacity: 1; fill: none; stroke: currentColor; }
.footer__main .contact-information .tcm-footer-contact-list svg * { fill: none; stroke: inherit; }
@media (max-width: 890px) {
  .home-3d #explore-about { scroll-margin-top: 125px; }
  .home-3d :is(.about-card, .sol-card, .sol-tool, .sol-crosscards a):hover { transform: none; }
  .home-3d .sol-faq summary { min-height: 44px; align-items: center; }
}
@media (max-width: 610px) {
  .home-3d :is(.inner-button, .sol-actions, .sol-actions .sol-btn) { width: 100%; }
  .home-3d .bottom-cta-panel { width: 100%; box-sizing: border-box; }
  .home-3d .contact-form .form-actions { width: 100%; }
}
/* Reviews: prevent the slider's intrinsic width from sizing its entire section. */
.home-3d .testimonial-section {
  width: min(1260px, calc(100% - 32px));
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.home-3d .testimonial-section .testimonial-section-inner,
.home-3d .testimonial-section .container,
.home-3d .testimonial-section .row,
.home-3d .testimonial-section .testimonials,
.home-3d .testimonial-section .swiper-wrapper,
.home-3d .testimonial-section .swiper-slide {
  min-width: 0;
}
.home-3d .testimonial-section .testimonials {
  width: 100%;
  overflow: hidden;
}
/* Cards: keep original image height, prevent flex shrinking it into a thin strip. */
.home-3d .section-cards__image { flex-shrink: 0; }
.home-3d .section-cards__card { height: auto; flex: 1 0 auto; min-height: 0; padding-bottom: 70px; }
@media (max-width: 600px) {
  .home-3d .testimonial-section { width: calc(100% - 24px); padding: 28px 12px; }
  .home-3d .testimonial-section-inner { padding: 28px 0; }
  .home-3d .testimonial-section .container { padding-left: 8px; padding-right: 8px; }
  .home-3d .testimonial-section .row > .col-10 { flex: 0 0 100%; max-width: 100%; width: 100%; }
  .home-3d .testimonial blockquote p { overflow-wrap: break-word; }
}

/* Mobile controls and overlays: keep the desktop layout and artwork unchanged. */
@media (max-width: 890px) {
  .home-3d #main-header .nav-wrapper {
    width: 100%;
    visibility: hidden;
    pointer-events: none;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .home-3d header.opened #main-header .nav-wrapper {
    visibility: visible;
    pointer-events: auto;
  }
  .home-3d header.opened #main-header .nav-wrapper.sub-active {
    left: -100%;
    overflow: visible;
  }
  .home-3d #main-header .sub-wrapper,
  .home-3d #main-header .mobile-lang-location .sub-wrapper {
    width: 100%;
    right: -100%;
  }
  .home-3d #main-header .subnav,
  .home-3d #main-header .mobile-lang-location {
    width: 100%;
  }
  .home-3d #main-header .subnav {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .home-3d #main-header .nav-wrapper.sub-active .nav-main > li > a,
  .home-3d #main-header .nav-wrapper.sub-active .mobile-lang-location > li > a {
    visibility: hidden;
  }
  .home-3d #main-header .sub-wrapper.sub-opened { visibility: visible; }
  .section-page .page-wrapper .container { padding-left: 0; padding-right: 0; }
  .home-3d .contact-form input:not([type="checkbox"]),
  .home-3d .contact-form select,
  .home-3d .contact-form textarea,
  .home-3d .footer input,
  .home-3d .footer select,
  .home-3d #input-rate { font-size: 16px; }
  .home-3d .page-modal__panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
  }
  .home-3d .homepage-chat-panel {
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }
}
@media (max-height: 500px) {
  .home-3d .page-modal__panel {max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
  .home-3d .homepage-chat-panel {max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto}
}
@media (min-width: 891px) and (max-width: 1024px) {
  .home-3d .contact-form input:not([type="checkbox"]),.home-3d .contact-form select,.home-3d .contact-form textarea,.home-3d .footer input,.home-3d .footer select {font-size:16px}
}

/* Keep the existing desktop header on one row where possible after adding About CEO. */
@media (min-width: 891px) and (max-width: 1100px) {
  #main-header .logo-wrapper,
  #main-header .nav-wrapper,
  #main-header .cta { padding-left: 0 !important; padding-right: 0 !important; }
  #main-header .logo-wrapper img { width: 175px !important; }
  #main-header .nav-main > li > a.nav-link { padding-left: 8px !important; padding-right: 8px !important; }
  #main-header .nav-main .link-title { font-size: 11px !important; letter-spacing: -0.25px !important; }
}


/* Mortgage agent and brokerage compliance footer, scoped to the new footer strip. */
.footer .tcm-license-footer {
  padding: 33px 0 36px;
  background: #0d2431;
  color: #d0dbe0;
  border-top: 1px solid rgba(255,255,255,.13);
}
.footer .tcm-license-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(28px, 6vw, 100px);
  row-gap: 28px;
  align-items: start;
}
.footer .tcm-license-block { min-width: 0; }
.footer .tcm-license-name {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .015em;
  margin: 0 0 12px;
}
.footer .tcm-license-title {
  font-size: 15px;
  line-height: 1.45;
  color: #ffffff;
  font-weight: 800;
  margin: 0 0 10px;
}
.footer .tcm-license-detail-list { margin: 0; }
.footer .tcm-license-detail-list > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0 0 5px;
}
.footer .tcm-license-detail-list dt {
  font-weight: 700;
  color: #e6edf1;
}
.footer .tcm-license-detail-list dd { margin: 0; }
.footer .tcm-license-block p,
.footer .tcm-license-block address {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.65;
  font-style: normal;
  color: #d0dbe0;
}
.footer .tcm-license-brokerage { padding-top: 3px; }
@media (max-width: 767px) {
  .footer .tcm-license-footer { padding: 28px 0 31px; }
  .footer .tcm-license-grid { grid-template-columns: minmax(0,1fr); row-gap: 24px; }
  .footer .tcm-license-brokerage { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
}

/* Shared rate quote strip, homepage profile and mortgage tips. */
.header .tcm-rate-quote-bar {
  display: flex;
  justify-content: center;
}
.header .tcm-rate-quote-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #fff;
  padding: 5px 12px;
  font-weight: 800;
  text-decoration: none;
}
.header .tcm-rate-quote-bar__link:hover { text-decoration: underline; }
.header .tcm-rate-quote-bar__link:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.home-3d .tcm-ian-intro { padding-bottom: 38px; }
.home-3d .tcm-ian-intro .agent-cta__photo-wrapper { display: flex; }
.home-3d .tcm-ian-intro .agent-cta__photo-wrapper img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 18px;
}
.home-3d #mortgage-tips .testimonial-section-inner::before { display: none; }
.home-3d #mortgage-tips .swiper-slide { text-align: center; }
.home-3d #mortgage-tips .swiper-slide h3 { margin: 0 0 12px; font-size: 21px; }
.home-3d #mortgage-tips .swiper-slide p { margin: 0; line-height: 1.65; color: #465c65; }
.tcm-tip-controls { display: none; }
.swiper-initialized + .tcm-tip-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
.tcm-tip-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #c9d5d5;
  color: #142f3d;
  background: #fff;
  font: 20px/1 Arial, sans-serif;
  cursor: pointer;
}
.tcm-tip-controls button:hover, .tcm-tip-controls button:focus-visible { border-color: #ce2029; }
.section-page .about-art .tcm-about-photo { object-fit: cover; }
.section-page .about-art .tcm-about-photo[src$="ian-raza-home.webp"] { object-position: 50% 23%; }
@media (max-width: 767px) {
  .home-3d .tcm-ian-intro { padding-bottom: 28px; }
  .home-3d .tcm-ian-intro .agent-cta__photo-wrapper img { width: min(100%, 240px); }
}
