/* ===================================================================
   MR ELECTRICIAN SOUTH EAST QUEENSLAND - PROJECTS PAGE STYLES
   Pixel-perfect match to the official Projects design mockup
   =================================================================== */

/* ===================================================================
   1. PROJECTS HERO SECTION (SPLIT FULL-BLEED)
   =================================================================== */
.projects-hero-section {
  position: relative;
  padding: 130px 0 0;
  background-color: var(--bg-dark);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(88vh - 130px);
  width: 100%;
}

.projects-hero-left-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 50px 80px max(24px, calc((100vw - var(--container-max-width)) / 2 + 24px));
  z-index: 2;
}

.projects-hero-content {
  max-width: 600px;
  width: 100%;
}

.section-supertitle-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-supertitle-line::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--accent-gold);
}

.projects-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 900;
  line-height: 1.16;
  color: var(--text-white);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.projects-hero-desc {
  font-size: 1.05rem;
  line-height: 1.68;
  color: #cbd5e1;
  margin-bottom: 34px;
  max-width: 580px;
}

.projects-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.projects-hero-right-col {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  background-color: #0b0c10;
}

.projects-hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.projects-hero-right-col::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  background: linear-gradient(90deg, var(--bg-dark) 0%, rgba(10, 11, 14, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ===================================================================
   2. PROJECTS GALLERY & FILTER SECTION
   =================================================================== */
/* Container Fallback */
.page-container,
.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.projects-gallery-section {
  padding: 80px 0 100px;
  background-color: #0c0e14;
  position: relative;
}

.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  background: #151821;
  border: 1px solid #242938;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn i {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.filter-btn:hover {
  background: #1e2230;
  border-color: rgba(250, 176, 5, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--accent-gold);
  color: #000000;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
}

.filter-btn.active i {
  color: #000000;
}

/* Projects 3x3 Grid */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-item-card {
  background: #11141c;
  border: 1px solid #1e2330;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  position: relative;
}

.project-item-card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 176, 5, 0.45);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.6), 0 0 20px rgba(250, 176, 5, 0.12);
}

.project-item-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0b0c10;
}

.project-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item-card:hover .project-item-media img {
  transform: scale(1.08);
}

.project-item-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.project-item-tag i {
  font-size: 0.8rem;
}

.project-item-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-item-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.55;
}

/* ===================================================================
   3. FEATURED PROJECT SECTION
   =================================================================== */
.featured-project-section {
  padding: 100px 0;
  background-color: #08090d;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.featured-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  aspect-ratio: 16 / 10;
  background-color: #12151e;
}

.featured-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.85);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(250, 176, 5, 0.4);
  transition: var(--transition-smooth);
}

.featured-media-card:hover .featured-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent-gold);
  color: #000000;
}

.featured-badge-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-badge-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.featured-badge-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Featured Content Right */
.featured-content {
  padding-left: 28px;
}

.featured-supertitle {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.2;
}

.featured-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.featured-specs-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.featured-spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-spec-icon {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.featured-spec-text {
  display: flex;
  flex-direction: column;
}

.featured-spec-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.featured-spec-lbl {
  font-size: 0.82rem;
  color: #94a3b8;
}

.featured-slider-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-dots .f-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.featured-dots .f-dot.active {
  width: 18px;
  border-radius: 10px;
  background-color: var(--accent-gold);
}

.featured-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.f-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e2230;
  border: none;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.f-arrow-btn:hover {
  background: var(--accent-gold);
  color: #000000;
}

/* ===================================================================
   4. OUR PROCESS (4 SIMPLE STEPS)
   =================================================================== */
.process-4steps-section {
  padding: 90px 0;
  background-color: #0c0e14;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.process-4steps-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: center;
}

.process-4steps-left {
  display: flex;
  flex-direction: column;
}

.process-4steps-super {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.process-4steps-super::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--accent-gold);
}

.process-4steps-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  line-height: 1.25;
}

.process-4steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.step-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  transition: transform 0.3s ease;
}

.step-flow-item:hover {
  transform: translateY(-5px);
}

.step-flow-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: #12151e;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(250, 176, 5, 0.1);
  transition: var(--transition-smooth);
}

.step-flow-item:hover .step-flow-circle {
  background: var(--accent-gold);
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(250, 176, 5, 0.5);
}

.step-flow-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.step-flow-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.step-flow-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 175px;
}

.step-flow-arrow {
  color: #475569;
  font-size: 1.1rem;
  margin-top: 22px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.step-flow-item:hover + .step-flow-arrow {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* ===================================================================
   5. PROJECTS CTA BANNER
   =================================================================== */
.projects-cta-banner-section {
  position: relative;
  padding: 64px 0;
  background-image: url('../images/hero_house.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-top: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  overflow: hidden;
}

.projects-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 11, 14, 0.96) 0%,
    rgba(10, 11, 14, 0.9) 45%,
    rgba(10, 11, 14, 0.6) 80%,
    rgba(10, 11, 14, 0.4) 100%
  );
  z-index: 1;
}

.projects-cta-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.projects-cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 580px;
}

.projects-cta-bolt {
  color: var(--accent-gold);
  font-size: 3.2rem;
  filter: drop-shadow(0 0 16px rgba(250, 176, 5, 0.7));
  animation: boltPulse 2.5s infinite ease-in-out;
  flex-shrink: 0;
}

.projects-cta-sub {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.projects-cta-main {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.projects-cta-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.projects-cta-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.projects-cta-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projects-cta-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-white);
  font-size: 0.94rem;
  font-weight: 600;
}

.projects-cta-contact-item i {
  color: var(--accent-gold);
  width: 16px;
}

.projects-cta-contact-item:not(.static):hover {
  color: var(--accent-gold);
}

/* ===================================================================
   6. RESPONSIVE ADJUSTMENTS FOR PROJECTS PAGE
   =================================================================== */
@media (max-width: 1024px) {
  .projects-hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .projects-hero-left-col {
    justify-content: flex-start;
    padding: 40px 24px 40px;
  }

  .projects-hero-right-col {
    min-height: 420px;
    height: 420px;
  }

  .projects-hero-right-col::before {
    display: none;
  }

  .projects-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .featured-project-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .featured-content {
    padding-left: 24px;
    padding-right: 16px;
  }

  .process-4steps-layout {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .process-4steps-left {
    align-items: center;
  }

  .process-4steps-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
    gap: 24px;
  }

  .step-flow-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .projects-hero-section {
    padding-top: 110px;
  }

  .projects-hero-right-col {
    min-height: 320px;
    height: 320px;
  }

  .projects-showcase-grid {
    grid-template-columns: 1fr;
  }

  .featured-project-section {
    padding: 60px 0;
  }

  .featured-project-grid {
    gap: 28px;
  }

  .featured-content {
    padding-left: 24px;
    padding-right: 16px;
  }

  .featured-title {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    line-height: 1.22;
    word-break: break-word;
  }

  .featured-desc {
    font-size: 0.94rem;
    line-height: 1.62;
    margin-bottom: 24px;
  }

  .featured-specs-row {
    gap: 22px;
    margin-bottom: 28px;
  }

  .process-4steps-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .projects-cta-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-cta-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .projects-cta-right .btn-hero-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-container,
  .page-container {
    padding: 0 18px;
  }

  .featured-content {
    padding-left: 18px;
    padding-right: 12px;
  }

  .featured-specs-row {
    gap: 16px;
  }
}
