/*--------------------------------------------------------------
# Groat Construction Ltd - build overrides
# Loaded after topfloor.css and topfloor-responsive.css.
# Keep this file small: template fixes only, no redesign.
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. Sticky "All Services" sidebar (service detail pages)
#    .page-wrapper ships with `overflow: hidden`, which silently
#    kills position:sticky. `overflow-x: clip` keeps the template's
#    horizontal clipping but restores sticky behaviour.
--------------------------------------------------------------*/
.page-wrapper {
  overflow: visible;
  overflow-x: clip;
}

.service-details {
  overflow: visible;
}

.service-details__sidebar {
  position: sticky;
  top: 120px;
}

@media only screen and (max-width: 991px) {
  .service-details__sidebar {
    position: static;
    top: auto;
  }
}

/*--------------------------------------------------------------
# 2. Logo sizing (the SVGs have no intrinsic px size)
--------------------------------------------------------------*/
.main-menu-two__logo a {
  padding: 28px 75px 28px 45px;
}

.main-menu-two__logo img {
  width: auto;
  height: 64px;
  object-fit: contain;
}

.footer-widget-two__logo img {
  width: auto;
  height: 80px;
  object-fit: contain;
}

.mobile-nav__content .logo-box img {
  width: auto;
  height: 70px;
  object-fit: contain;
}

@media only screen and (max-width: 1199px) {
  .main-menu-two__logo a {
    padding: 26px 70px 26px 30px;
  }

  .main-menu-two__logo img {
    height: 56px;
  }
}

/*--------------------------------------------------------------
# 3. Hero: cover the clipped panel, and fit the logo in the hexagon
--------------------------------------------------------------*/
.main-slider-two__img {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.main-slier-two__small-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--topfloor-black);
}

.main-slier-two__small-img img {
  width: 70%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.main-slider-two__video-text a {
  color: inherit;
}

.main-slider-two__video-text a:hover {
  color: #333333;
}

/*--------------------------------------------------------------
# 4. About: keep the demo's image proportion, badge instead of counter
--------------------------------------------------------------*/
.about-two__img img {
  aspect-ratio: 460 / 498;
  object-fit: cover;
}

.about-two__text--second {
  margin-top: 20px;
}

.about-two__accreditation-img {
  position: relative;
  display: block;
  flex: 0 0 auto;
  max-width: 84px;
  width: 100%;
}

.about-two__accreditation-img img {
  width: 100%;
  height: auto;
}

.about-two__happy-client .about-two__happy-client-content {
  margin-left: 20px;
}

.about-two__happy-client .about-two__text {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  font-family: var(--topfloor-font-two);
}

/*--------------------------------------------------------------
# 5. Process cards: the template ships title only, we add one line
--------------------------------------------------------------*/
.process-one__text {
  margin-top: 12px;
}

/*--------------------------------------------------------------
# 6. Gallery: keep the four cards the same height
--------------------------------------------------------------*/
.project-two__img img {
  aspect-ratio: 3 / 2;
}

/*--------------------------------------------------------------
# 7. Testimonials: review title, Trustpilot link, no avatar frame
--------------------------------------------------------------*/
.testimonial-two__img img {
  aspect-ratio: 600 / 700;
  object-fit: cover;
}

.testimonial-two__trustpilot-link {
  position: relative;
  display: block;
  margin-top: -15px;
  margin-bottom: 25px;
}

.testimonial-two__trustpilot-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--topfloor-font-two);
  font-size: 16px;
  font-weight: 600;
  color: var(--topfloor-black);
}

.testimonial-two__trustpilot-link a span {
  font-size: 12px;
}

.testimonial-two__trustpilot-link a:hover {
  color: #333333;
}

.testimonial-two__heading {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 18px;
  margin-bottom: 10px;
}

.testimonial-two__single .testimonial-one__ratting {
  margin-top: 5px;
}

.testimonial-two__single .testimonial-two__text {
  font-size: 18px;
  line-height: 30px;
}

.testimonial-two__client-info {
  gap: 0;
}

.testimonial-two__client-content h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

/*--------------------------------------------------------------
# 8. Footer work grid: arrow overlay replaces the instagram link
--------------------------------------------------------------*/
.footer-widget-two__portfolio-img img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.footer-widget-two__portfolio-img a span {
  font-size: 14px;
}

/* ---- service pages ---- */

/*--------------------------------------------------------------
# 9. Page header: the template's demo backdrop was already dark.
#    The client photos are not, so restore contrast behind the
#    white heading and breadcrumb. (.page-header__bg already
#    ships background-size: cover.)
--------------------------------------------------------------*/
.page-header__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 26, 0.6);
}

/*--------------------------------------------------------------
# 10. Quote block image: gcvan.jpg is 4:3 and the demo shot was
#     ~1.63:1, so crop to the demo proportion on every page that
#     carries the contact-one block.
--------------------------------------------------------------*/
.contact-one__img img {
  aspect-ratio: 520 / 319;
  object-fit: cover;
}

/*--------------------------------------------------------------
# 11. Service details: the body text block is the last child now
#     that the demo's "Repairs & Upgrades" and "Service Process"
#     blocks are gone, so give the left column its own bottom
#     spacing instead of relying on those.
--------------------------------------------------------------*/
.service-details__left {
  padding-bottom: 10px;
}

.service-details__img-one img {
  aspect-ratio: 850 / 530;
  object-fit: cover;
}

.service-details__img-boxes {
  margin-top: 40px;
}

/* ---- client review round 1 ---- */

/*--------------------------------------------------------------
# 12. Services cards: dark-tinted service photo on hover.
#     Both grids (index .services-four, services.html .service-one).
#     The photo is a REAL element, .groat-card-bg, inserted as the
#     first child of each card with its background-image inline.
#     This replaced a `--card-img` custom property on the column:
#     Chrome resolves url() inside a custom property against the
#     stylesheet that reads it, so every photo was requested from
#     assets/css/assets/images/customer/... and 404'd. An inline
#     background-image on a real element resolves against the page.
#     The template's own .service-one__single::before is a
#     base-colour panel that slides in on hover; it is switched
#     off here so it cannot paint over the photo.
--------------------------------------------------------------*/
.services-four__single,
.service-one__single {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* kill the template's sliding base-colour panel on services.html */
.service-one__single::before,
.service-one__single:hover::before {
  display: none;
}

.groat-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s linear;
  z-index: 0;
  pointer-events: none;
}

.groat-card-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  background-color: rgba(26, 26, 26, 0.78);
}

.services-four__single:hover .groat-card-bg,
.service-one__single:hover .groat-card-bg {
  opacity: 1;
}

/* content must sit above the photo layer */
.services-four__single > .services-four__title,
.services-four__single > .services-four__text,
.services-four__single > .services-four__read-more,
.service-one__single > .service-one__icon,
.service-one__single > .service-one__title,
.service-one__single > .service-one__text,
.service-one__single > .service-one__read-more {
  position: relative;
  z-index: 1;
}

/* the index icon is pinned bottom-right by the template: keep it
   absolute, only lift its stacking order */
.services-four__single > .services-four__icon {
  z-index: 1;
}

/* index cards: the template left these dark on hover */
.services-four__single:hover .services-four__title a,
.services-four__single:hover .services-four__title a:hover,
.services-four__single:hover .services-four__text,
.services-four__single:hover .services-four__read-more a,
.services-four__single:hover .services-four__read-more a:hover,
.services-four__single:hover .services-four__read-more a span,
.services-four__single:hover .services-four__icon span {
  color: var(--topfloor-white);
}

.services-four__single:hover .services-four__icon::before {
  background-color: rgba(var(--topfloor-white-rgb), 0.15);
}

/* services.html cards already switch to white; the icon plate does not */
.service-one__single:hover .service-one__icon::before {
  background-color: rgba(var(--topfloor-white-rgb), 0.14);
}

/*--------------------------------------------------------------
# 13. Services cards: equal height, aligned icon/title/text/link.
#     The card's own margin-bottom moves onto the column so the
#     card can stretch to the full row height.
--------------------------------------------------------------*/
.groat-service-col {
  display: flex;
  margin-bottom: 30px;
}

.groat-service-col > .services-four__single,
.groat-service-col > .service-one__single {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

.services-four__title,
.service-one__title {
  min-height: 68px;
}

.services-four__text,
.service-one__text {
  min-height: 96px;
}

.groat-service-col > .services-four__single > .services-four__read-more {
  margin-top: auto;
  align-self: flex-start;
}

.groat-service-col > .service-one__single > .service-one__read-more {
  margin-top: auto;
  align-self: center;
}

@media only screen and (max-width: 767px) {
  .services-four__title,
  .service-one__title {
    min-height: 0;
  }

  .services-four__text,
  .service-one__text {
    min-height: 0;
  }
}

/*--------------------------------------------------------------
# 14. Work process: compact single-row timeline.
#     Replaces the six tall .process-one__single cards. Deliberately
#     does not reuse .process-one__* styling - the white card, the
#     110px icon and the 40px padding are what made it tall.
--------------------------------------------------------------*/
.process-timeline {
  position: relative;
  display: block;
  background-color: var(--topfloor-primary);
  padding: 90px 0 70px;
  z-index: 1;
}

.process-timeline__row {
  position: relative;
  counter-reset: gc-step;
}

/* the connecting line, behind the icons, first centre to last centre */
.process-timeline__row::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 8.3333%;
  right: 8.3333%;
  height: 1px;
  background-color: var(--topfloor-bdr-color);
  z-index: -1;
}

@media only screen and (max-width: 1199px) {
  .process-timeline__row::before {
    display: none;
  }
}

.process-timeline__single {
  position: relative;
  display: block;
  text-align: center;
  padding: 0 5px;
  margin-bottom: 30px;
}

.process-timeline__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 auto;
  background-color: var(--topfloor-base);
  border-radius: 50%;
  z-index: 1;
}

.process-timeline__icon span {
  position: relative;
  display: inline-block;
  font-size: 30px;
  color: var(--topfloor-white);
  transition: all 500ms linear;
  transition-delay: 0.1s;
  transform: scale(1);
}

.process-timeline__single:hover .process-timeline__icon span {
  transform: scale(0.9);
}

.process-timeline__icon::after {
  counter-increment: gc-step;
  content: counter(gc-step);
  position: absolute;
  top: -4px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: var(--topfloor-font-two);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: var(--topfloor-black);
  background-color: var(--topfloor-white);
  border: 1px solid var(--topfloor-bdr-color);
  border-radius: 50%;
}

.process-timeline__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-top: 18px;
}

.process-timeline__text {
  font-size: 15px;
  line-height: 25px;
  margin-top: 6px;
}

/*--------------------------------------------------------------
# 15. Gallery: keep the zoom and the overlay, drop the tilt.
#     Overrides .project-two__single:hover .project-two__img img,
#     which shipped `scale(1.1) rotate(5deg)`.
--------------------------------------------------------------*/
.project-two__single:hover .project-two__img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# 16. Marquee bands: the filled hover look becomes the default.
#     .sliding-text__title and .sliding-text-two__title shipped
#     `color: transparent` + a 1px #868686 text stroke, with the
#     ::before (content: attr(data-hover)) wiping in on hover.
#     Now filled by default and the wipe layer is gone, so hover
#     is a no-op. .sliding-text-three__title already shipped
#     filled, so it is left alone.
--------------------------------------------------------------*/
.sliding-text__title,
.sliding-text-two__title,
.sliding-text__list li .sliding-text__title:hover,
.sliding-text-two__list li .sliding-text-two__title:hover {
  color: #868686;
  -webkit-text-stroke: 1px transparent;
}

.sliding-text__title::before,
.sliding-text-two__title::before {
  display: none;
  content: none;
}

/*--------------------------------------------------------------
# 17. Footer: solid black, no backdrop graphic.
#     The .site-footer-two__bg element is removed from all 12
#     pages; this keeps the solid colour explicit and hides the
#     element if it ever comes back.
--------------------------------------------------------------*/
.site-footer-two {
  background-color: var(--topfloor-black);
}

.site-footer-two__bg {
  display: none;
}

/*--------------------------------------------------------------
# 18. Preloader: the logo, gently pulsing, instead of the
#     spinner and the G-R-O-A-T letter animation.
#     .handle-preloader keeps its dark background-color.
--------------------------------------------------------------*/
.handle-preloader .animation-preloader {
  position: absolute;
  text-align: center;
  z-index: 100;
}

.preloader-logo {
  display: block;
  width: 220px;
  max-width: 72vw;
  height: auto;
  margin: 0 auto;
  animation: gc-preloader-pulse 1.4s ease-in-out infinite;
}

@keyframes gc-preloader-pulse {
  0% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.55;
  }
}

@media only screen and (max-width: 767px) {
  .preloader-logo {
    width: 160px;
  }
}

/*--------------------------------------------------------------
# 19. Hero below 1200px: the kitchen photo as a full-bleed,
#     dark-tinted background with white text.
#
#     What the template did: topfloor-responsive.css hides
#     .main-slider-two__img, .main-slier-two__small-img-box and
#     .main-slier-two__shape-1/2/3 with `display: none` in three
#     separate blocks (992-1199, 768-991, max 767), leaving the
#     slide on its own `background-color: var(--topfloor-primary)`
#     (#f5f5f5) with dark text. The photo panel is otherwise an
#     885px-wide absolute panel on the right, clipped with
#     `clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%)` and
#     revealed by swiper via `.swiper-slide-active` (opacity +
#     translateX). Desktop is untouched by this section.
#
#     The .main-slider-two .swiper-slide .main-slider-two__img
#     selector matches the specificity of the template's
#     `.swiper-slide-active` reveal rule, so opacity/transform
#     are pinned here rather than waiting on swiper.
--------------------------------------------------------------*/
@media only screen and (max-width: 1199px) {

  /* The photo: full-bleed layer behind the whole slide. */
  .main-slider-two .swiper-slide {
    position: relative;
  }

  .main-slider-two .swiper-slide .main-slider-two__img {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    -webkit-clip-path: none;
    clip-path: none;
    opacity: 1;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    -webkit-transition: none;
    transition: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
  }

  .main-slider-two .swiper-slide .main-slider-two__img::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(26, 26, 26, .7);
    z-index: 1;
  }

  /* Keep the decorative shapes and the logo hexagon hidden. */
  .main-slider-two .main-slier-two__small-img-box,
  .main-slider-two .main-slier-two__shape-1,
  .main-slider-two .main-slier-two__shape-2,
  .main-slider-two .main-slier-two__shape-3 {
    display: none;
  }

  /* Text sits above the photo. */
  .main-slider-two .container,
  .main-slider-two__content {
    position: relative;
    z-index: 2;
  }

  .main-slider-two__sub-title,
  .main-slider-two__title,
  .main-slider-two__text {
    color: #ffffff;
  }

  /* Primary button: the template's filled dark pill keeps its
     colour and its hover wipe, plus an edge so it reads. */
  .main-slider-two__btn.thm-btn {
    border: 1px solid rgba(255, 255, 255, .6);
  }

  /* Phone link beside the white disc. */
  .main-slider-two__video-text,
  .main-slider-two__video-text a {
    color: #ffffff;
  }

  .main-slider-two__video-text a:hover {
    color: #d4d4d4;
  }
}

/*--------------------------------------------------------------
# 20. Quote form (contact-one): the template styles only text and
#     email inputs; the phone field is type="tel" and needs the same.
--------------------------------------------------------------*/
.contact-one__input-box input[type="tel"] {
  height: 62px;
  width: 100%;
  border: 1px solid var(--topfloor-white);
  background-color: transparent;
  padding-left: 20px;
  padding-right: 50px;
  outline: none;
  color: var(--topfloor-white);
  display: block;
  border-radius: 5px;
}

/*--------------------------------------------------------------
# 21. Page header H1. Every page now carries one H1 that names the
#     service and the town, so the banner heading is an <h1>
#     instead of the template's <h2>. The template styles that
#     heading by tag, so the h1 needs the same rules. The new
#     headings are sentences rather than one-word labels, so the
#     size steps down from 75px to keep the banner in proportion.
--------------------------------------------------------------*/
.page-header__inner h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 66px;
  color: var(--topfloor-white);
  text-transform: capitalize;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

@media only screen and (max-width: 991px) {
  .page-header__inner h1 {
    font-size: 40px;
    line-height: 50px;
    letter-spacing: -1px;
  }
}

@media only screen and (max-width: 767px) {
  .page-header__inner h1 {
    font-size: 30px;
    line-height: 40px;
    letter-spacing: 0;
  }
}

/*--------------------------------------------------------------
# 22. Intrinsic image sizing. Every <img> now carries width and
#     height attributes so the browser reserves the space before
#     the file arrives. The template sizes images with width:100%,
#     so the height has to stay automatic or the new attribute
#     would squash them. Class-based rules (the logos) still win.
--------------------------------------------------------------*/
img {
  height: auto;
}

/*--------------------------------------------------------------
# 23. Service area line in the footer and under the services
#     heading.
--------------------------------------------------------------*/
.groat-area-line {
  margin-top: 14px;
}

.service-one .section-title .groat-area-line {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--topfloor-gray);
}
