/* Staff images fallback - ensure they're visible even if animation fails */
.about__team__overlay {
  display: none !important;
}

.about__team__photo {
  opacity: 1 !important;
  transform: none !important;
}

/* Google Reviews Styling */
#google-reviews-container {
  display: none;
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 20px;
}

.google-reviews__header {
  text-align: center;
  margin-bottom: 50px;
}

.google-reviews__header h2 {
  font-family: gt_walsheim, Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #0F2044;
  margin-bottom: 20px;
}

.google-reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
}

.google-reviews__stars {
  color: #FFA500;
  font-size: 24px;
  letter-spacing: 2px;
}

.google-reviews__score {
  font-weight: 700;
  font-size: 24px;
  color: #0F2044;
}

.google-reviews__count {
  color: #666;
  font-size: 16px;
}

.google-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.google-review-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.google-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: #0F2044;
}

.google-review-card__header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.google-review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0F2044 0%, #2e8cb8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.google-review-card__author-info {
  flex: 1;
  min-width: 0;
}

.google-review-card__name {
  display: block;
  font-family: gt_walsheim, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #0F2044;
  margin-bottom: 5px;
}

.google-review-card__rating {
  color: #FFA500;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.google-review-card__time {
  font-size: 13px;
  color: #999;
}

.google-review-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  font-style: italic;
}

.google-reviews__error {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 16px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .google-reviews__header h2 {
    font-size: 26px;
  }

  .google-reviews__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .google-review-card {
    padding: 20px;
  }
}

/* Fix footer layout to prevent overlapping elements */

#footer__contact {
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 30px;
}

#footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 70px;
}

#footer__logo {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

#footer__logo svg {
    width: 220px;
    height: auto;
}

#footer__copyright {
    margin-bottom: 20px;
}

#footer__credits {
    margin-left: 0 !important;
}

#footer__credits a {
    color: #8e8e8e;
}

#footer__credits a:hover {
    color: #c6c6c6;
}

/* Keep loading animation strokes light gray throughout the entire animation */
#main-loading__lines path {
    stroke: #f9f9f9 !important;
}

/* Logo color switching - override main.css rules */

/* DEFAULT STATE: Logo should be white on dark backgrounds (videos) */
.page-id-home #logo .logo-text path {
    fill: #fff !important;
}

.page-id-home #logo .logo-line {
    fill: #f92931 !important; /* Red lines */
}

/* CONTRAST STATE: When on white sections, text turns black */
.page-id-home #logo.logo--contrast .logo-text path {
    fill: #000 !important;
}

.page-id-home #logo.logo--contrast .logo-line {
    fill: #000 !important;
}

/* Keep house icon colors intact in ALL states */
.page-id-home #logo polygon[fill="#d7e8ea"],
.page-id-home #logo rect[fill="#d7e8ea"] {
    fill: #d7e8ea !important; /* Light gray house parts */
}

.page-id-home #logo polygon[fill="#2e8cb8"] {
    fill: #2e8cb8 !important; /* Blue house parts */
}

.page-id-home #logo polygon[fill="#f72f3c"] {
    fill: #f72f3c !important; /* Red house parts */
}

.page-id-home #logo polygon[fill="#fcfdfd"] {
    fill: #fcfdfd !important; /* White star */
}

/* Remove blueprint background from solutions service sections */
.page-id-solutions #solutions__service,
#solutions-page #solutions__service,
div[id="solutions__service"] {
    background-image: none !important;
    background: #fff !important;
}

/* Ensure it works across all screen sizes */
@media screen and (min-width: 1024px) {
    .page-id-solutions #solutions__service,
    #solutions-page #solutions__service,
    div[id="solutions__service"] {
        background-image: none !important;
        background: #fff !important;
    }
}

@media screen and (min-width: 1280px) {
    .page-id-solutions #solutions__service,
    #solutions-page #solutions__service,
    div[id="solutions__service"] {
        background-image: none !important;
        background: #fff !important;
    }
}

/* Google Reviews Box Hover Effect */
#google-reviews-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
    background: #f8f9fa !important;
}

#google-reviews-cta a {
    cursor: pointer;
}

/* Keep testimonials title on one line and center it - MAXIMUM SPECIFICITY */
body.page-id-process #process-page #process__header #process__title {
    white-space: nowrap !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.page-id-process #process-page #process__header {
    text-align: center !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-id-process #process-page #process__header #process__intro {
    text-align: center !important;
}

body.page-id-process #process-page #process__header #process__intro .process__intro__txt {
    text-align: center !important;
}

@media screen and (max-width: 767px) {
    body.page-id-process #process__title {
        font-size: 34px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }
}

.nav__item[data-id="call-now"] .nav__link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #132042 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    border: 1px solid #132042 !important;
    min-height: 44px;
}

.nav__item[data-id="call-now"] .nav__link .nav__link__label {
    color: #fff !important;
}

.no-touchevents .nav__item[data-id="call-now"] .nav__link:hover {
    background-color: #0d152c !important;
    border-color: #0d152c !important;
}

@media screen and (min-width: 768px) {
    body.page-id-contact #contact__header__txt {
        margin-top: -128px !important;
    }
}

body.page-id-contact #contact__form__name .contact__form__name-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

body.page-id-contact #contact__form__name .contact__form__name-row input {
    flex: 1 1 240px;
    min-width: 200px;
}

body.page-id-contact #contact__form__name .contact__form__title {
    display: block !important;
}

body.page-id-contact #contact__form__name__first,
body.page-id-contact #contact__form__name__last {
    display: block !important;
}

body.page-id-about #logo svg {
    display: none !important;
}

body.page-id-about #logo .logo-dark {
    display: block !important;
    width: 100%;
    height: auto;
}

/* Disable About page intro animations */
body.page-id-about #about__content,
body.page-id-about #about__content *,
body.page-id-about #about__body,
body.page-id-about #about__body__intro,
body.page-id-about .about__lead,
body.page-id-about .about__team__member,
body.page-id-about .about__body__text {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
}

body.page-id-about #about-page {
    padding-top: 75px !important;
}

body.page-id-about #about__anim-in-shape-1,
body.page-id-about #about__anim-in-shape-2 {
    display: none !important;
}

/* Responsive adjustments for Google Reviews section */
@media screen and (max-width: 768px) {
    #google-reviews-cta {
        margin: 60px 20px 60px !important;
        padding: 40px 25px !important;
    }

    #google-reviews-cta h2 {
        font-size: 28px !important;
    }

    #google-reviews-cta > div:nth-child(2) {
        flex-direction: column !important;
        gap: 15px !important;
    }
}
/* Homepage scroll arrow color swap - blue default, white on hover */
#home-scroll-cta__btn__picto svg path {
    fill: #132042 !important; /* Blue for default state */
}

#home-scroll-cta__btn:hover #home-scroll-cta__btn__picto svg path {
    fill: #fff !important; /* White on hover */
}

/* default hidden state for mobile-specific logo */
#logo .logo-mobile-light {
    display: none;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Mobile logo scaling */
@media screen and (max-width: 767px) {
    #logo {
        transform-origin: top left !important;
        transform: scale(0.65) !important;
    }

    #logo svg,
    #logo img {
        width: 100% !important;
        height: auto !important;
    }

    body.page-id-projects #logo svg {
        display: none !important;
    }

    body.page-id-projects #logo .logo-mobile-light {
        display: block !important;
    }

    body.page-id-solutions #solutions__subtitle {
        font-size: 38px !important;
        line-height: 1.15 !important;
        margin-bottom: 30px !important;
    }

    body.page-id-solutions #solutions__intro {
        margin-bottom: 40px !important;
    }

    body.page-id-solutions #solutions__title-wrapper {
        margin-top: 80px !important;
        margin-bottom: 60px !important;
    }

    body.page-id-solutions #solutions__experts {
        margin-top: 120px !important;
    }
}

/* Position decorative lines only on text section, not over video */
#home-landing__lines {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%) !important;
}

/* On mobile, show lines across full width */
@media screen and (max-width: 767px) {
    #home-landing__lines {
        clip-path: none !important;
    }
}

/* Section 6 arrow colors - navy blue default, white on hover */
#home-screen-6 #home-scroll-cta__btn__picto svg path {
    fill: #132042 !important;
}

#home-screen-6 #home-scroll-cta__btn:hover #home-scroll-cta__btn__picto svg path {
    fill: #fff !important;
}
