/*
Theme Name: Alshemoa Engineering WP
Theme URI: https://alshemoa.com
Author: Your Name
Author URI: https://www.facebook.com/sattarsarfraz
Description: Custom one-page corporate theme for Alshemoa Engineering
Version: 1.0
Text Domain: alshemoa
*/

/* call another css */
/* @import url('energy-gold.css'); */
/* @import url('energy-orange.css'); */

/* ================= NAVBAR ================= */
/* Logo base */
.navbar-brand .logo {
  display: none;
  transition: opacity 0.3s ease;
}

/* Default (top of page) */
.navbar:not(.navbar-scrolled) .logo-white {
  display: inline-block;
}

/* Scrolled / fixed navbar */
.navbar.navbar-scrolled .logo-other {
  display: inline-block;
}

.navbar-overlay {
  position: absolute;
  width: 100%;
  z-index: 20;
  padding-top: 12px;
  transition: all 0.35s ease;
}

.navbar.fixed {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.navbar.fixed .nav-link,
.navbar.fixed .navbar-brand {
  color: var(--text-dark) !important;
}

/* Nav links */
.navbar .nav-link {
  position: relative;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
}

/* Hover / Active */
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--main-color) !important;
}

/* Underline animation */
.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

/* ================= HERO SLIDER ================= */
.hero-carousel,
.hero-carousel .carousel-item {
  height: 100vh;
  position: relative;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25)
  );
}

/* Content box */
.hero-content-box {
  position: relative;
  z-index: 2;
  padding: 45px;
  max-width: 540px;
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
  border-left: 5px solid var(--main-color);
}

/* Typography */
.hero-content-box h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content-box p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 25px;
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

/* Indicators */
.carousel-indicators {
  bottom: 20%;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--main-color);
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

.carousel-indicators [data-bs-target]{
    border-top: 0;
    border-bottom: 0;
    border-radius: 2px;
}

/* Curve bottom */
.hero-carousel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 150px;
  background: var(--bg-white);    
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0% 100%);
  z-index: 3;
}



/* ================= ABOUT SECTION ================= */
.about-modern {
  background: var(--bg-white);
}

/* Image box */
.about-image-box {
  position: relative;
  height: 440px;
  border-radius: 24px;
  background: linear-gradient(
      rgba(0,0,0,0.35),
      rgba(0,0,0,0.35)
    ),
    url('https://picsum.photos/800/900?company') center/cover no-repeat;
  box-shadow: 0 30px 70px rgba(0,0,0,0.14);
  overflow: hidden;
}

/* Experience badge */
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--main-color);
  color: #fff;
  padding: 18px 26px;
  border-radius: 18px;
  text-align: center;
}

.about-badge strong {
  font-size: 1.9rem;
  display: block;
  line-height: 1;
}

/* Section headings */
.section-subtitle {
  color: var(--main-color);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 22px;
}

/* Stats */
.stat-box {
  /* background: var(--bg-section); */
  /* background: rgba(255, 255, 255, 0.75); */
  background: rgba(249,247,243, 0.5);
  padding: 38px 15px;
  border-radius: 20px;
  transition: all 0.35s ease;
}

.stat-box i {
  font-size: 2.2rem;
  color: var(--main-color);
  margin-bottom: 12px;
  display: block;
}

.stat-box h3 {
  font-size: 1.9rem;
  font-weight: 700;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

/* ================= Founder’s Legacy ================= */
.founder-legacy-section {
  /* background: var(--bg-section); */
  padding: 30px 0;
  position: relative;
}

/* subtle top divider for section separation */
.founder-legacy-section::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--main-color);
  border-radius: 50px;
}

.founder-legacy-wrap {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.founder-legacy-wrap .section-subtitle {
  margin-bottom: 12px;
}

.founder-legacy-wrap .section-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.founder-years {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.founder-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 22px;
}



/* ================= SERVICES SECTION ================= */
/* Counter reset */
.services-counter {
  counter-reset: service;
}

/* Card base */
.service-card-merged {
  background: var(--bg-white);
  padding: 44px 32px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
}

/* Accent bar */
.service-card-merged::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--main-color);
  opacity: 0;
  transition: 0.35s ease;
}

/* Number badge (Design-3 style) */
.service-number::before {
  counter-increment: service;
  content: counter(service, decimal-leading-zero);
}

.service-number {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(0,0,0,0.06);
  pointer-events: none;
}

/* Icon */
.service-card-merged i {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 15px;
  display: inline-block;
}

/* Title */
.service-card-merged h6 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Text */
.service-card-merged p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Hover */
.service-card-merged:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.service-card-merged:hover::before {
  opacity: 1;
}


/* ================= WHY US SECTION ================= */
.why-us-elegant {
 background: var(--bg-white);
}

/* Timeline Wrapper */
.timeline-elegant {
  position: relative;
  padding-left: 70px;
}

/* Vertical glowing line */
.timeline-elegant::before {
  content: '';
  position: absolute;
  left: 34px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--main-color),
    rgba(166,106,0,0.2)
  );
  box-shadow: 0 0 15px rgba(166,106,0,0.25);
}

/* Row */
.timeline-row {
  position: relative;
  display: flex;
  gap: 24px;
  margin-bottom: 45px;
}

/* Number */
.timeline-number {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(166,106,0,0.05);
  min-width: 50px;
}

/* Dot */
.timeline-dot {
  position: absolute;
  left: 28px;
  top: 14px;
  width: 14px;
  height: 14px;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(166,106,0,0.15),
    0 0 18px rgba(166,106,0,0.45);
}

/* Text */
.timeline-text h5 {
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
}

/* Remove last margin */
.timeline-row:last-child {
  margin-bottom: 0;
}


/* ================= PARTNERS  ================= */
#partners {
  background: var(--bg-white);
}
#partners {
  padding-top: 60px;
  padding-bottom: 60px;
}
.partner-tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 40px;
  border: 1px solid var(--border-light);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all 0.3s ease;
}

/* Hover */
.partner-tag:hover {
  color: var(--main-color);
  border-color: var(--main-color);
  transform: translateY(-3px);
}

/* ================= PORTFOLIO SECTION ================= */
.portfolio-section {
  background: #f8f9fa; /* soft separation */
}

.section-tag {
  color: var(--main-color);
  font-weight: 600;
  letter-spacing: 1px;
}

.section-title {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  margin: 10px 0;
}

.section-desc {
  max-width: 600px;
  margin: auto;
  color: #6c757d;
}

/* Filters */
.portfolio-filters button {
  border: none;
  background: transparent;
  margin: 0 12px;
  font-weight: 500;
  position: relative;
  padding-bottom: 6px;
  color: #555;
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
  color: var(--main-color);
}

.portfolio-filters button.active::after,
.portfolio-filters button:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--main-color);
  left: 0;
  bottom: 0;
}

/* Portfolio Card */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.portfolio-card img {
  width: 100%;
  transition: transform 0.6s ease;
}

.portfolio-card:hover img {
  transform: scale(1.1);
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7),
    rgba(0,0,0,0.1)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h5 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
}

.portfolio-overlay span {
  color: var(--main-color);
  font-size: 0.9rem;
}

.portfolio-item {
  transition: all 0.3s ease;
}

.fade-out {
  opacity: 0;
  transform: scale(0.95);
}


/* ================= Our Team ================= */
.team-section {
  background: var(--bg-section);
  padding: 120px 0;
  position: relative;
}

/* divider */
.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--main-color);
  border-radius: 50px;
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Team Member */
.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.team-member:hover img {
  transform: translateY(-6px);
}

.team-info {
  margin-top: 18px;
}

.team-info h5 {
  margin-bottom: 4px;
  font-weight: 600;
}

.team-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Team slider arrows */
#teamCarousel .carousel-control-prev,
#teamCarousel .carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

#teamCarousel .carousel-control-prev-icon,
#teamCarousel .carousel-control-next-icon {
  filter: invert(1);
}

/* Team slider indicators */
.team-indicators {
  position: relative;
  margin-top: 40px;
}

.team-indicators button {
    width: 25px !important;
    height: 5px !important;
    /* border-radius: 50% !important; */
    background-color: #928e89 !important;
    opacity: 0.35 !important;
    margin: 0 6px !important;
    border: 0 !important;
}

.team-indicators button.active {
  opacity: 1;
  background-color: #2c2b2a !important;
}



/* Improve spacing on mobile */
@media (max-width: 767px) {
  .team-member {
    margin-bottom: 30px;
  }
}


/* ================= CONTACT SECTION ================= */
.contact-section {
  background: linear-gradient(
    to bottom,
    #ffffff,
    #f9f7f3
  );
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--main-color);
  font-size: 1.1rem;
}

/* Form */
.contact-form .form-control {
  border-radius: 50px;
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.contact-form textarea.form-control {
  border-radius: 18px;
}

.contact-form .form-control:focus {
  border-color: var(--main-color);
  box-shadow: none;
}

/* ================= MAP SECTION ================= */
.map-section {
  background: #f9f7f3;
  padding: 0;
  position: relative;
}

/* Top divider for clear section start */
.map-section::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

/* Map styling */
.map-wrapper {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(95%);
}

/* ================= FOOTER ================= */
.site-footer {
  background: #1f1e1c;
  color: #cfcac2;
  padding: 80px 0 0;
  font-size: 15px;
}

.footer-title {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-text {
  max-width: 320px;
  line-height: 1.7;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cfcac2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #a66a00;
}

/* Bottom bar */
.footer-bottom {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
  color: #9c978f;
}


/* ================= PAGE HEADER ================= */
.page-header {
  position: relative;
  padding: 150px 0 70px;
 background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.04)
  );
  overflow: hidden;
}

/* Decorative background shape */
.page-header::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(13,110,253,0.15);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

/* Title */
.page-title {
  position: relative;
  font-size: 2.6rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 60px 0 50px;
  }

  .page-title {
    font-size: 2rem;
  }
}

.als_page .wp-block-button a {
  font-family: var(--heading-font);
  border-radius: 50px;
  background-color: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
  transition: all 0.3s ease;
}
.als_page .wp-block-button a:hover,
.als_page .wp-block-button a:focus {
  transform: translateY(-1px);
  background-color: var(--main-hover);
  border-color: var(--main-hover);
}