/* ==========================================================================
   ALMAX ENGINEERS - Inner Pages Custom Stylesheet
   Compatible with: projects.html, project-details.html, contact.html
   ========================================================================== */

/* 1. INNER PAGE HERO SECTION */
.inner-hero {
  height: 300px;
  min-height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(18, 47, 105, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 0 0;
  text-align: center;
  color: var(--text-light);
}

.inner-hero-content {
  z-index: 5;
}

.inner-hero-eyebrow {
  font-family: var(--font-title);
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.inner-hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-light) !important;
  margin-bottom: 15px;
}

/* 2. BREADCRUMBS */
.breadcrumb-custom {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.breadcrumb-item-custom {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item-custom a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.breadcrumb-item-custom a:hover {
  color: #ffffff;
}

.breadcrumb-item-custom + .breadcrumb-item-custom::before {
  content: "/";
  display: inline-block;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-item-custom.active {
  color: #ffffff;
  font-weight: 600;
}

/* Breadcrumb for light background content areas */
.breadcrumb-light {
  justify-content: start;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.breadcrumb-light .breadcrumb-item-custom {
  color: var(--text-steel);
}
.breadcrumb-light .breadcrumb-item-custom a {
  color: var(--text-muted);
}
.breadcrumb-light .breadcrumb-item-custom a:hover {
  color: var(--accent-orange);
}
.breadcrumb-light .breadcrumb-item-custom + .breadcrumb-item-custom::before {
  color: var(--text-steel);
  opacity: 0.5;
}
.breadcrumb-light .breadcrumb-item-custom.active {
  color: var(--text-primary);
}

/* 3. INTRODUCTORY SECTION */
.page-intro-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* 4. EXPANDED PROJECTS GRID (projects.html) */
.project-card-wrapper {
  transition: var(--transition-smooth);
}

.projects-listing-section {
  padding-top: 60px;
}

.project-card-btn {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 4px;
  background-color: rgba(255,255,255,0.05);
  transition: var(--transition-smooth);
}

.project-card:hover .project-card-btn {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
}

/* 5. PROJECT DETAILS PAGE SPECIFICS */
.project-details-hero {
  height: 450px;
  background-image: linear-gradient(rgba(18, 47, 105, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%), url('../images/hero-bg.jpg');
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
}

.project-meta-grid-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-grid-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.project-meta-grid-val {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.project-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 30px;
  position: sticky;
  top: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.info-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.info-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 10px;
  font-size: 0.95rem;
}

.info-card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-card-label {
  color: var(--text-steel);
  font-weight: 500;
}

.info-card-value {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

/* Challenge & Solution blocks */
.challenge-box {
  background-color: #fff1f0;
  border-left: 4px solid #ff4d4f;
  border-radius: 4px;
  padding: 30px;
  height: 100%;
}

.solution-box {
  background-color: #f6ffed;
  border-left: 4px solid #52c41a;
  border-radius: 4px;
  padding: 30px;
  height: 100%;
}

.cs-icon {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.challenge-box .cs-icon { color: #ff4d4f; }
.solution-box .cs-icon { color: #52c41a; }

/* 6. BENTO / MASONRY GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-item {
  grid-column: span 4;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
  cursor: pointer;
  border: 1px solid var(--card-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 47, 105, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: #ffffff;
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Bento shape offsets */
.gallery-item.bento-wide {
  grid-column: span 8;
}

.gallery-item.bento-tall {
  grid-column: span 4;
  height: 520px;
}

.gallery-item.bento-big {
  grid-column: span 8;
  height: 520px;
}

@media (max-width: 991px) {
  .gallery-item {
    grid-column: span 6 !important;
    height: 240px !important;
  }
}

@media (max-width: 575px) {
  .gallery-item {
    grid-column: span 12 !important;
    height: 200px !important;
  }
}

/* 7. LIGHTWEIGHT LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox-modal.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.show .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10000;
}

.lightbox-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 15px 25px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* 8. FEATURE CARDS GRID */
.feature-grid-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 25px;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  transition: var(--transition-smooth);
}

.feature-grid-card:hover {
  border-color: rgba(249, 87, 56, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.feature-grid-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(24, 59, 122, 0.05);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 18px;
  transition: var(--transition-fast);
}

.feature-grid-card:hover .feature-grid-icon {
  background-color: var(--text-primary);
  color: #ffffff;
}

.feature-grid-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-grid-desc {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

/* 9. BOTTOM NAVIGATION SECTION */
.bottom-project-nav {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 30px 0;
  margin-top: 50px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bottom-nav-item.nav-prev {
  text-align: left;
}

.bottom-nav-item.nav-next {
  text-align: right;
}

.bottom-nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-steel);
  letter-spacing: 0.08em;
}

.bottom-nav-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.bottom-nav-title:hover {
  color: var(--accent-gold);
}

.bottom-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.bottom-nav-grid-icon {
  font-size: 1.25rem;
  color: var(--text-steel);
  transition: var(--transition-fast);
  padding: 12px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
}

.bottom-nav-grid-icon:hover {
  background-color: var(--text-primary);
  color: #ffffff;
}

/* 10. CONTACT PAGE SPECIFIC STYLES (contact.html) */
.contact-card-info {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-pill-card {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 25px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-pill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 87, 56, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-pill-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(24, 59, 122, 0.05);
  color: var(--text-primary);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 15px;
  transition: var(--transition-fast);
}

.contact-pill-card:hover .contact-pill-icon {
  background-color: var(--text-primary);
  color: #ffffff;
}

.contact-pill-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-pill-text {
  font-size: 0.85rem;
  color: var(--text-steel);
  margin-bottom: 15px;
}

.contact-pill-action {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-gold);
}

.contact-pill-action:hover {
  text-decoration: underline;
}

/* FAQ ACCORDION CUSTOM STYLES */
.faq-accordion .accordion-item {
  border: 1px solid var(--card-border);
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: var(--transition-fast);
}

.faq-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.faq-accordion .accordion-header {
  border-bottom: none;
}

.faq-accordion .accordion-button {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  padding: 20px 25px;
  border: none;
  box-shadow: none;
  transition: var(--transition-fast);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  background-size: 1rem;
  transition: var(--transition-fast);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
  padding: 20px 25px 25px 25px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* Form check custom styling */
.form-check-custom {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.form-check-custom input {
  margin-top: 4px;
}

.form-check-custom label {
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

/* 11. GENERAL UTILITY OVERRIDES FOR RESPONSIVE COMPACTNESS */
@media (max-width: 767px) {
  .inner-hero {
    height: 250px;
    padding-top: 90px;
  }
  .inner-hero-title {
    margin-bottom: 10px;
  }
  .project-details-hero {
    height: auto;
    padding: 120px 0 50px 0;
  }
  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
