/* ================================================
   Al Eid — Header Contrast Fix
   Transparent header over photographic hero images
   needs white text + a subtle gradient scrim so nav
   links stay readable on both light and dark images.
   ================================================ */

/* Gradient scrim behind header — subtle on dark backgrounds */
.tp-header-area.header-transparent::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 200px;
   background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.10) 60%,
      rgba(0, 0, 0, 0) 100%
   );
   pointer-events: none;
   z-index: -1;
}

/* White nav links */
.tp-header-area .tp-main-menu nav > ul > li > a {
   color: #fff;
}

.tp-header-area .tp-main-menu nav > ul > li > a:hover {
   background: rgba(255, 255, 255, 0.15);
   color: #fff;
}

.tp-header-area .tp-main-menu nav > ul > li:hover.has-dropdown > a {
   background: rgba(255, 255, 255, 0.15);
   color: #fff;
}

/* Search icon + hamburger in white */
.tp-header-area .tp-header-search-btn {
   color: #fff;
}

.tp-header-area .tp-header-sidebar-btn span {
   background: #fff;
}

/* Show colour logo in header — subtle lift on dark backgrounds */
.tp-header-area .tp-header-logo .logo-1 {
   display: block;
   filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.tp-header-area .tp-header-logo .logo-2 {
   display: none;
}

/* Mobile: shrink header + offcanvas logos by ~40% */
@media (max-width: 991.98px) {
   .tp-header-logo img,
   .tp-offcanvas-logo img {
      max-width: 84px !important;
      width: 84px !important;
      height: auto !important;
   }
}

/* Submenu dropdown stays readable (dark bg, white text) */
.tp-header-area .tp-main-menu nav ul li .submenu {
   backdrop-filter: blur(20px);
   background: rgba(20, 20, 24, 0.92);
}

.tp-header-area .tp-main-menu nav ul li .submenu li a {
   color: rgba(255, 255, 255, 0.8);
}

.tp-header-area .tp-main-menu nav ul li .submenu li:hover > a {
   background: rgba(255, 255, 255, 0.1);
   color: #fff !important;
}

/* ================================================
   Al Eid — Dark Hero Background Utility
   Add .aleid-hero-dark to any hero section that uses
   a dark generated background. Provides positioning,
   a subtle overlay, white text, and breathing space.
   ================================================ */
.aleid-hero-dark {
   position: relative;
   z-index: 1;
}

/* Light overlay — backgrounds are already dark,
   just a subtle film to unify any pattern seams */
.aleid-hero-dark .tp-breadcrumb-bg::after {
   content: "";
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, 0.15);
   z-index: 0;
}

.aleid-hero-dark .tp-breadcrumb-bg img {
   position: relative;
   z-index: -1;
}

/* White text overrides for dark hero */
.aleid-hero-dark .about-us-title,
.aleid-hero-dark .tp-breadcrumb-title,
.aleid-hero-dark .tp-breadcrumb-subtitle,
.aleid-hero-dark .tp-pd-3-title,
.aleid-hero-dark .tp-section-title,
.aleid-hero-dark .tp-pd-2-categories span,
.aleid-hero-dark .tp-pd-2-categories span a,
.aleid-hero-dark .tp-pd-2-bottom-item span,
.aleid-hero-dark .tp-pd-2-bottom-item h6,
.aleid-hero-dark .tp-service-details-hero-subtitle span,
.aleid-hero-dark .tp-service-details-hero-title h1,
.aleid-hero-dark .tp-service-details-hero-title h2,
.aleid-hero-dark .tp-career-title,
.aleid-hero-dark .tp-career-details-title,
.aleid-hero-dark .tp-pd-2-overview-title,
.aleid-hero-dark .inner-service-banner-title-wrap h1,
.aleid-hero-dark .inner-service-banner-title-wrap h2,
.aleid-hero-dark h1,
.aleid-hero-dark h2,
.aleid-hero-dark h3,
.aleid-hero-dark h4,
.aleid-hero-dark p,
.aleid-hero-dark span {
   color: #fff;
}

.aleid-hero-dark .tp-pd-2-categories span a:hover {
   color: var(--tp-theme-primary);
}

/* Ensure service-banner-bottom stays readable */
.aleid-hero-dark + .inner-service-banner-bottom span,
.aleid-hero-dark + .inner-service-banner-bottom a {
   color: inherit;
}

/* SVG arrows/icons inside dark heroes */
.aleid-hero-dark svg rect,
.aleid-hero-dark svg path {
   stroke: #fff;
   fill: currentColor;
}
.aleid-hero-dark .tp-service-details-hero-subtitle svg rect {
   fill: #fff;
}

/* ================================================
   Al Eid — Hero Breathing Space
   Generous padding around hero text so it doesn't
   feel cramped against header or edges.
   ================================================ */
.aleid-hero-dark.about-us-spacing {
   padding-top: 220px;
   padding-bottom: 80px;
}

.aleid-hero-dark.tp-service-details-banner-area {
   padding-bottom: 100px;
}

.aleid-hero-dark.inner-service-banner-area {
   padding-bottom: 100px;
}

.aleid-hero-dark.tp-breadcrumb-area {
   padding-bottom: 80px;
}

.aleid-hero-dark.tp-career-banner-area {
   padding-bottom: 100px;
}

.aleid-hero-dark.tp-pd-2-ptb {
   padding-top: 200px;
   padding-bottom: 70px;
}

/* Hero title extra spacing */
.aleid-hero-dark .about-us-title {
   line-height: 1.15;
   padding-right: 40px;
}

.aleid-hero-dark .tp-breadcrumb-title {
   letter-spacing: 0.02em;
}

.aleid-hero-dark .tp-service-details-hero-title h2 {
   line-height: 1.2;
}

@media (max-width: 991px) {
   .aleid-hero-dark.about-us-spacing {
      padding-top: 180px;
      padding-bottom: 60px;
   }
   .aleid-hero-dark .about-us-title {
      padding-right: 0;
   }
}

@media (max-width: 574px) {
   .aleid-hero-dark.about-us-spacing {
      padding-top: 160px;
      padding-bottom: 50px;
   }
}

/* Al Eid - Full Page YouTube Hero Video */
.tp-hero-area.tp-hero-has-video {
   position: relative;
   width: 100vw;
   height: 100vh;
   overflow: hidden;
   padding: 0;
   margin: 0;
}

.tp-hero-video-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   overflow: hidden;
   pointer-events: none;
}


.tp-hero-video-bg iframe {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 100vw;
   height: 100vh;
   min-width: 177.78vh;
   min-height: 56.25vw;
   transform: translate(-50%, -50%);
   border: 0;
}

/* ================================================
   Al Eid — Text-Based Client Logos Marquee
   ================================================ */
.aleid-clients-area {
   padding: 80px 0;
   overflow: hidden;
}

.aleid-clients-area .aleid-clients-title {
   text-align: center;
   margin-bottom: 50px;
}

.aleid-clients-area .aleid-clients-title span {
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--tp-grey-1);
}

.aleid-clients-marquee {
   display: flex;
   gap: 0;
   overflow: hidden;
   white-space: nowrap;
}

.aleid-clients-track {
   display: flex;
   gap: 0;
   animation: aleidMarquee 30s linear infinite;
   flex-shrink: 0;
}

.aleid-client-name {
   display: inline-flex;
   align-items: center;
   padding: 12px 40px;
   font-size: 18px;
   font-weight: 500;
   color: var(--tp-common-black);
   white-space: nowrap;
   opacity: 0.7;
   transition: opacity 0.3s ease;
   font-family: var(--tp-ff-heading);
}

.aleid-client-name:hover {
   opacity: 1;
}

.aleid-client-name::after {
   content: '\2022';
   margin-left: 40px;
   color: var(--tp-theme-primary);
   font-size: 10px;
}

@keyframes aleidMarquee {
   0% { transform: translateX(0); }
   100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
   .aleid-client-name {
      font-size: 15px;
      padding: 10px 25px;
   }
   .aleid-client-name::after {
      margin-left: 25px;
   }
}

/* ================================================
   Al Eid — Mid-Page CTA Section
   ================================================ */
.aleid-cta-area {
   padding: 100px 0 80px;
   background-color: var(--tp-common-black);
}

.aleid-cta-area .tp-section-title {
   color: #fff;
}

.aleid-cta-area .tp-btn {
   border-color: rgba(255, 255, 255, 0.3);
   color: #fff;
}

.aleid-cta-area .tp-btn:hover {
   border-color: var(--tp-theme-primary);
   background-color: var(--tp-theme-primary);
}

.aleid-cta-area .tp-btn i svg path {
   fill: #fff;
}

/* ================================================
   Al Eid — Vision / Mission / Values Section
   ================================================ */
.aleid-vision-area {
   padding: 120px 0 80px;
}

.aleid-vision-item {
   padding: 40px 35px;
   border: 1px solid rgba(30, 30, 30, 0.1);
   border-radius: 4px;
   margin-bottom: 30px;
   transition: all 0.3s ease;
   height: 100%;
}

.aleid-vision-item:hover {
   border-color: var(--tp-theme-primary);
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.aleid-vision-item .aleid-vision-label {
   display: inline-block;
   font-size: 12px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--tp-theme-primary);
   margin-bottom: 18px;
   font-family: var(--tp-ff-body);
}

.aleid-vision-item h4 {
   font-size: 22px;
   margin-bottom: 15px;
   font-family: var(--tp-ff-heading);
   color: var(--tp-common-black);
}

.aleid-vision-item p {
   font-size: 16px;
   line-height: 1.7;
   color: var(--tp-grey-1);
}

@media (max-width: 991px) {
   .aleid-vision-area {
      padding: 80px 0 40px;
   }
   .aleid-vision-item {
      padding: 30px 25px;
   }
}

/* ================================================
   Al Eid — Contact Support Banner
   ================================================ */
.aleid-support-banner {
   padding: 40px 0;
   position: relative;
   overflow: hidden;
}

.aleid-support-banner-bg {
   position: relative;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   border-radius: 8px;
   padding: 80px 40px;
   text-align: center;
   overflow: hidden;
}

.aleid-support-banner-bg::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: rgba(69, 77, 152, 0.85);
   border-radius: 8px;
}

.aleid-support-banner-text {
   position: relative;
   z-index: 1;
}

.aleid-support-banner-text span {
   font-size: 24px;
   line-height: 1.6;
   color: #fff;
   font-family: var(--tp-ff-heading);
}

@media (max-width: 767px) {
   .aleid-support-banner {
      padding: 60px 0;
   }
   .aleid-support-banner-bg {
      padding: 50px 20px;
   }
   .aleid-support-banner-text span {
      font-size: 18px;
   }
}

/* ================================================
   Al Eid — Contact Page Spacing Tightening
   ================================================ */
.tp-contact-map-ptb .tp-contact-map-wrapper {
   height: 400px;
}

/* ================================================
   Al Eid — Culture / Why Al Eid Section
   ================================================ */
.aleid-culture-area {
   padding: 100px 0 80px;
}

.aleid-culture-motto {
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 2px;
   color: var(--tp-theme-primary);
   margin-bottom: 20px;
   display: block;
   font-weight: 600;
}

.aleid-culture-title {
   font-size: 36px;
   font-family: var(--tp-ff-heading);
   color: var(--tp-common-black);
   margin-bottom: 25px;
   line-height: 1.3;
}

.aleid-culture-text {
   font-size: 16px;
   line-height: 1.8;
   color: var(--tp-grey-1);
   margin-bottom: 15px;
}

.aleid-culture-thumb {
   border-radius: 4px;
   overflow: hidden;
}

.aleid-culture-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   min-height: 400px;
}

@media (max-width: 991px) {
   .aleid-culture-area {
      padding: 60px 0 40px;
   }
   .aleid-culture-title {
      font-size: 28px;
   }
   .aleid-culture-thumb img {
      min-height: 300px;
   }
}

/* ================================================
   Al Eid — Breadcrumb / Hero Background Fix
   Original template uses a pattern texture; our
   photo replacements need explicit cover behaviour.
   ================================================ */
.tp-breadcrumb-bg img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
}

/* ar-banner-wrap: override the template's negative
   margin-top so the photo is centred in the container */
.ar-banner-wrap img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   margin-top: 0 !important;
}

/* ================================================
   Al Eid — Image Fit Safety Net
   Ensures all replaced images display correctly
   regardless of source dimensions
   ================================================ */
.tp-about-thumb img,
.tp-banner-thumb img,
.tp-portfolio-thumb img,
.tp-service-img-wrapper .hover-image img,
.about-me-slider-thumb img,
.tp-contact-us-thumb img,
.tp-pd-2-gallery-thumb img,
.tp-service-overview-thumb img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.tp-banner-thumb img.img-cover,
.tp-banner-thumb img.scale-up {
   object-fit: cover;
}

.tp-portfolio-item .tp-portfolio-thumb img {
   width: 100%;
   object-fit: cover;
   aspect-ratio: auto;
}

.about-me-slider-thumb img {
   width: 100%;
   height: auto;
   object-fit: cover;
   aspect-ratio: 1136 / 680;
}

.tp-service-overview-thumb img {
   aspect-ratio: 991 / 620;
}

/* ================================================
   Al Eid — Client Logo Marquee
   ================================================ */
.aleid-clients-marquee {
   overflow: hidden;
   width: 100%;
   padding: 30px 0;
}

.aleid-clients-track {
   display: flex;
   align-items: center;
   gap: 60px;
   animation: aleid-marquee-scroll 35s linear infinite;
   width: max-content;
}

.aleid-client-logo {
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   height: 60px;
   padding: 8px 16px;
   opacity: 0.7;
   transition: opacity 0.3s ease;
   filter: grayscale(100%);
}

.aleid-client-logo:hover {
   opacity: 1;
   filter: grayscale(0%);
}

.aleid-client-logo img {
   height: 44px;
   width: auto;
   max-width: 200px;
   object-fit: contain;
}

@keyframes aleid-marquee-scroll {
   0% { transform: translateX(0); }
   100% { transform: translateX(-50%); }
}

/* ================================================
   Al Eid — Contractor Logo Cards (Projects Page)
   ================================================ */
.aleid-contractor-card {
   border: 1px solid rgba(150,150,150,0.2);
   border-radius: 8px;
   padding: 24px 20px;
   text-align: center;
   transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.aleid-contractor-card:hover {
   border-color: var(--tp-theme-primary);
   box-shadow: 0 4px 20px rgba(237,127,32,0.08);
}

.aleid-contractor-logo {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 60px;
   margin-bottom: 16px;
}

.aleid-contractor-logo img {
   max-height: 50px;
   max-width: 160px;
   width: auto;
   height: auto;
   object-fit: contain;
   filter: grayscale(40%);
   transition: filter 0.3s ease;
}

.aleid-contractor-card:hover .aleid-contractor-logo img {
   filter: grayscale(0%);
}


/* ================================================
   Al Eid — Enhanced Footer Styles
   ================================================ */

/* Description text */
.aleid-footer-desc {
   color: rgba(255, 255, 255, 0.55);
   font-size: 14px;
   line-height: 1.7;
   max-width: 340px;
}

/* Contact items (phone, email, address) */
.aleid-footer-contact {
   display: flex;
   flex-direction: column;
   gap: 12px;
}

.aleid-footer-contact-item {
   display: flex;
   align-items: center;
   gap: 10px;
   color: rgba(255, 255, 255, 0.55);
   font-size: 14px;
}

.aleid-footer-contact-item svg {
   flex-shrink: 0;
   color: var(--tp-theme-primary);
}

.aleid-footer-contact-item a {
   color: rgba(255, 255, 255, 0.55);
   text-decoration: none;
   transition: color 0.3s ease;
}

.aleid-footer-contact-item a:hover {
   color: var(--tp-theme-primary);
}

/* Social icons in footer */
.aleid-footer-social {
   display: flex;
   gap: 12px;
}

.aleid-footer-social a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   border: 1px solid rgba(255, 255, 255, 0.12);
   color: rgba(255, 255, 255, 0.6);
   transition: all 0.3s ease;
}

.aleid-footer-social a:hover {
   border-color: var(--tp-theme-primary);
   color: var(--tp-theme-primary);
   background: rgba(237, 127, 32, 0.08);
}

/* Tweak footer link spacing for the enriched layout */
.tp-footer-area .tp-hero-social a {
   margin-bottom: 6px;
}

/* Footer column bottom margin for mobile */
@media (max-width: 767px) {
   .tp-footer-area .mb-50 {
      margin-bottom: 35px !important;
   }
   .aleid-footer-desc {
      max-width: 100%;
   }
}


/* ================================================
   Al Eid — SEO h1 Parity
   <h1> tags promoted from <h2>/<h3>/<h4> for SEO.
   Duplicate every element-scoped rule so h1 renders
   identically to the heading it replaced.
   ================================================ */

/* Base h1 override — match the h2 base size (36px)
   so pages without a class-specific font-size stay
   consistent. The class rules below will override
   this where needed. */
h1 {
   font-size: 36px;
}

/* Service-detail hero: main.css targets
   `.tp-service-details-hero-title h2` — replicate for h1 */
.tp-service-details-hero-title h1 {
   font-size: 92px;
   line-height: 98%;
   letter-spacing: -0.03em;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px),
       only screen and (min-width: 992px) and (max-width: 1199px),
       only screen and (min-width: 768px) and (max-width: 991px),
       only screen and (min-width: 576px) and (max-width: 767px),
       (max-width: 574.98px) {
   .tp-service-details-hero-title h1 {
      font-size: 70px;
   }
}
@media (max-width: 574.98px) {
   .tp-service-details-hero-title h1 {
      font-size: 60px;
   }
}

/* Dark-mode variant */
.cunnet-dark .tp-service-details-hero-title h1 {
   color: var(--tp-common-white);
}

/* Footer email — fit longer address on one line
   Use .cs-footer-style prefix to match/beat main.css specificity */
.cs-footer-style .tp-footer-email {
   font-size: 34px;
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
   .cs-footer-style .tp-footer-email { font-size: 28px; }
}
@media (max-width: 574.98px) {
   .cs-footer-style .tp-footer-email { font-size: 22px; }
}
