.page-template-landing-page .hero-title {
  max-width: 720px;
}
h1 mark,
h2 mark {
  font-family: "Playfair Display", serif;
  text-transform: capitalize;
}
img {
  width: 100%;
}
.hidden {
  display: none !important;
}
.bls-button-with-icon img {
  padding: 0 0 0 4px;
}
.hero-call-cta img {
  padding: 0 12px 0 0;
  width: 12px;
}
.bls-button-with-icon .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e6b36a;
  color: #fff;
  border-radius: 40px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}
.bls-button-with-icon img {
  transition: all 0.3s ease;
}

.bls-button-with-icon .wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 179, 106, 0.35);
  background-color: #eabb72;
  transform: scale(1.08);
}
.bls-button-with-icon .wp-block-button__link:hover img {
  transform: rotate(30deg);
}
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.wp-block-cover.contain-image img {
  object-fit: contain;
}
.phone-cta a img {
  vertical-align: middle;
  width: 16px !important;
  margin-right: 10px;
}
/* Header */

/* Home Hero Animation */
.home-hero-section {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, #cfd9e4 0%, #bcc7d2 50%, #c9beb2 100%);

  overflow: hidden;
}
.hero-title-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 30px;
  will-change: transform, opacity;
}
.hero-image-wrap {
  position: absolute;
  left: 50%;
  top: 70vh;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  z-index: 100;
  transform-origin: center center;
  will-change: transform;
}
.hero-cloud-left,
.hero-cloud-right {
  position: fixed;
  top: 60vh;
  pointer-events: none;
  will-change: transform;
}

/* Initial state for load animation */
.hero-cloud-left {
  transform: translateY(250px);
  left: 0;
}

.hero-cloud-right {
  transform: translateY(250px);
  right: 0;
}
.hero-overlay-text-wrap {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 110;
  width: 100%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-overlay-text-title {
  font-size: clamp(6rem, 12vw, 12rem) !important;
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  color: transparent !important;
  background-image: url("/wp-content/uploads/2026/05/home.png");
  background-repeat: repeat-x;
  background-size: 140% auto;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: imageScroll 12s linear infinite;
}
.hero-overlay-text-tagline {
  /* font-size: clamp(1rem, 2vw, 3rem) !important; */
  line-height: 1;
  text-align: center;
  color: transparent !important;
  background-image: url("/wp-content/uploads/2026/05/home.png");
  background-repeat: repeat-x;
  background-size: 140% auto;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: imageScroll 12s linear infinite;
}

@keyframes imageScroll {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* Hero */
.hero-bg {
  overflow: hidden;
}
.hero-bg .wp-block-cover__image-background {
  width: 100%;
  object-fit: cover;
  will-change: transform;
}

.reveal-line {
  overflow: hidden;
  will-change: transform, clip-path;
}



/* Services */
.services-section {
  position: relative;
}

.services-wrapper {
  will-change: transform;
}
.service-card {
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  /* position: absolute; */
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  /* transform: translateY(-8px) rotateX(2deg) rotateY(-2deg); */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  background: #3e3e3e !important;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card h4,
.service-card h5,
.service-card p {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover h4,
.service-card:hover h5,
.service-card:hover p {
  color: #fff !important;
}
.service-card:hover h6 {
  color: #eabb72 !important;
}

.service-card:hover h4 {
  transform: translateY(-2px);
}
.service-card:hover h5 {
  transform: translateY(-1px);
}

.service-card:hover p {
  transform: translateY(-10px);
}
.service-card-view-details {
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(30px);
}
.service-card:hover .service-card-view-details {
  opacity: 1;
  transform: translateY(0);
}

/* Stats */
.stats-image-header .wp-block-cover__image-background {
  object-fit: fill;
  width: auto;
  height: 240px;
}

/* Project Card */
.project-section-left h2 {
  position: absolute;
  bottom: 110px;
}
.project-section-left .project-link-group {
  position: absolute;
  bottom: 6px;
}
.project-section-right h2 {
  position: absolute;
  bottom: 20px;
}
.project-section-right .project-link-group-right {
  position: absolute;
  bottom: 6px;
  right: 20px;
}

.testimonials-wrapper .swiper-slide > div {
  margin: 4px;
}

/* Services Page*/
.hero-arch {
  overflow: hidden;
}
.services-page-card-group {
  transform-origin: center center;
  will-change: transform;
}
.services-page-card-wrapper {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: none !important;
}
.services-page-card-wrapper h2 {
  position: absolute;
  z-index: 4;
  padding: 0 12px;
}
.services-page-card-wrapper .arrow-icon {
  position: absolute;
  right: 0;
  bottom: 0;
}
.services-page-card-img {
  z-index: 2;
}
.services-page-card-wrapper .arrow-icon,
.services-page-card-wrapper img {
  transition: transform 0.5s ease;
}
.services-page-card-wrapper:hover .arrow-icon {
  transform: rotate(30deg);
}
.services-page-card-wrapper:hover img {
  /* transform: scale(1.2) */
}
.services-card-list {
  padding: 0 16px;
}

/* Contact Form */
.custom-contact-form {
  max-width: 800px;
  margin: auto;
}

.custom-contact-form .form-row {
  display: flex;
  gap: 16px;
}
.custom-contact-form .form-group {
  margin: 10px 0;
}
.custom-contact-form .form-group p {
  margin: 0;
}
.custom-contact-form .form-group p .wpcf7-not-valid-tip {
  margin: 8px 0;
}

.custom-contact-form input,
.custom-contact-form textarea {
  width: 100%;
  padding: 16px 24px;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  background: transparent;
  font-size: 16px;
  color: #222;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: Figtree;
}

.custom-contact-form textarea {
  height: 260px;
  resize: none;
}

.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder {
  color: #bdbdbd;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  border-color: #111;
}

.custom-contact-form .wpcf7-submit {
  background: #eabb72;
  color: #fff;
  border: none;
  padding: 22px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-contact-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  background: #0d203a;
}
.custom-contact-form form.wpcf7-form .wpcf7-response-output {
  margin: 4px 0;
  border-radius: 8px;
}
.consent-checkbox {
  text-align: left;
}

.consent-checkbox .wpcf7-list-item {
  margin: 0;
}

.consent-checkbox input[type="checkbox"] {
  width: auto;
}
.is-layout-constrained > iframe {
  max-width: 100% !important;
}

/* Works */
.works-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.works-tabs::-webkit-scrollbar {
  display: none;
}

.works-tabs .wp-block-button {
  flex: 0 0 auto;
}
.works-tabs .wp-block-button a {
  min-width: 160px;
  background: white;
  border: 1px solid #ccc;
  color: #000;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  font-family: Figtree;
  font-size: 16px;
  transition: all 0.3s ease;
}
.works-tabs .wp-block-button a:hover {
  background: #eabb72;
  color: white;
  border: 1px solid #eabb72;
}
.works-tabs .wp-block-button.active a {
  background: #eabb72;
  border-radius: 12px;
  color: white;
  outline: none;
  border: 1px solid #eabb72;
}

/* Hide all galleries */
.works-gallery {
  display: none;
}

/* Show active gallery */
.works-gallery.active {
  display: flex;
}
.works-gallery figure {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/*Google maps*/
.chennai-map {
  display: none;
}

.active .wp-block-button__link {
  background: #222;
  color: #fff;
  border-radius: 24px;
}

.show-tenkasi,
.show-chennai {
  position: relative;
}

.show-tenkasi .wp-block-button__link,
.show-chennai .wp-block-button__link {
  position: relative;
  min-width: 300px;
}

/* Active button arrow */
.show-tenkasi.active .wp-block-button__link::after,
.show-chennai.active .wp-block-button__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #222; /* Match the active button color */
}

.stats-number-wrapper {
  flex-wrap: wrap;
}
.stats-number-wrapper .wp-block-group {
  min-width: 240px;
}
.stats-number-wrapper h2 {
  font-size: 4rem !important;
  font-weight: 300 !important;
}
.stats-number-wrapper p {
  font-size: 1.2rem !important;
  text-transform: uppercase;
}

/* Desktop only */
@media (min-width: 991px) {
  .site-header {
    position: fixed;
    /* top: 16px; */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    margin: auto;
    z-index: 999;
    /* border-radius: 40px; */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); */
    transition: none;
    will-change: transform, background-color;
    overflow: hidden;
  }
  .header-active a,
  .header-active
    ul.header-nav-menu
    li.wp-block-navigation-item
    a.wp-block-navigation-item__content {
    /* color: #a5a5a5; */
  }
  .header-active .barilivespace-brand-logo-text {
    display: none;
  }
  .header-active .barilivespace-brand-logo {
    padding-left: 16px;
  }
  .contact-column-wrapper {
    padding-top: 120px;
  }
  .contact-left-content {
    min-height: 700px;
  }
}

/* Tablet only */
@media (max-width: 1023px) {
  .hero-image-wrap {
    top: 40vh;
  }
  .hero-content-wrapper .hero-right-thumb {
    display: none;
  }
  .stats-diagnol-image {
    display: none;
  }
  .contact-left-content {
    min-height: 600px;
  }
  .project-link-group-right img {
    width: 46px !important;
  }
}

/* Mobile only */
@media (max-width: 768px) {
  .site-header {
    box-shadow: 0 2px 10px #eee;
  }
  .header-nav-menu {
    order: 2;
  }
  .has-modal-open ul.header-nav-menu {
    padding: 60px 0;
    justify-content: stretch;
    width: 100%;
  }
  .has-modal-open ul.header-nav-menu li {
    border-bottom: 1px solid #454545;
    padding-bottom: 16px;
    width: 100%;
  }
  .has-modal-open
    ul.header-nav-menu
    li.wp-block-navigation-item
    a.wp-block-navigation-item__content {
    outline: none;
    padding-left: 20px;
    display: inline-block;
  }
  .has-modal-open .wp-block-navigation__responsive-container-close {
    margin: 2rem 1.2rem;
  }
  .home-hero-section {
    height: 80vh;
    padding-top: 20px !important;
  }
  .hero-image-wrap {
    top: 38vh;
  }
  .title-wrapper {
    flex-direction: column;
  }
  .title-wrapper h3,
  .title-wrapper p {
    text-align: left;
  }

  .home-cards-bg .wp-block-cover__image-background {
    display: none;
  }

  .reveal-group h3.home-section-head, .reveal-group p.home-section-desc {
    text-align: left;
  }


  .services-card-row {
    flex-direction: column;
  }
  .services-card-row .service-card .service-card-head {
    flex-direction: column;
  }
  .services-card-row .service-card .service-card-head .services-card-image {
    flex-basis: auto;
  }
  .services-card-row .service-card .service-card-head .service-card-head-left {
    padding-bottom: 20px;
  }

  .project-four-column-row {
    flex-direction: column;
  }
  .project-card-section {
    flex-direction: column;
  }
  .project-card-section .project-link-group {
    gap: 10px;
  }
  .project-card-section .project-link-group h3 {
    font-size: 16px !important;
  }
  .project-card-section .project-link-group .project-arrow-icon {
    width: 24px;
  }
  .project-card-section .project-link-group.project-link-group-right {
    width: 50px;
    right: 10px;
  }
  .project-section-left h2 {
    bottom: 80px;
  }
  .footer-social-icons {
    justify-content: center;
  }
  .footer-logo-wrapper p {
    text-align: left;
  }
  .footer-copyrights {
    flex-direction: column;
    text-align: center;
  }

  .contact-left-content {
    min-height: 600px;
  }
  .contact-column-wrapper {
    flex-direction: column;
    padding-top: 0 !important;
  }
  .custom-contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .custom-contact-form input,
  .custom-contact-form textarea {
    font-size: 16px;
    padding: 16px 18px;
  }

  .custom-contact-form .wpcf7-submit {
    font-size: 18px;
    padding: 18px;
  }
  /*about */
  .about-stats-pattern-image {
    position: absolute;
  }
  .about-me-block {
    flex-direction: column;
  }
  .about-me-content {
    order: 2;
  }
  /*service*/
  .services-page-card-wrapper {
    max-width: 360px;
    margin: auto !important;
  }
  /*contact*/
  .contact-column-wrapper {
    padding-bottom: 0 !important;
  }
  .contact-left-content {
    min-height: 260px;
  }
  .contact-form-wrapper {
    border: 0;
    padding: 20px 15px 0 !important;
  }
  .location-address-wrapper {
    flex-direction: column;
  }
  /*Inner page header*/
  .inner-page-header {
    padding-top: 4rem !important;
  }
}

@media (max-width: 430px) {
  .hero-image-wrap {
    top: 45vh;
  }
}

/* iPhone landscape */
@media (max-width: 932px) and (orientation: landscape) {
  .hero-image-wrap {
    display: none;
  }
  .site-header .phone-cta {
    display: none;
  }
}

/* ipad portraits landscape */
@media (max-width: 900px) {
  .site-header .phone-cta {
    display: none;
  }
}
