/* ============================================================
   UR-ARCHITECTURE — Services Page Custom Stylesheet
   Extends style.css · Integrates premium UI/UX and fallbacks
   ============================================================ */

/* ==========================================================
   1. SERVICES HERO (Background Image & Centered Column)
   ========================================================== */

.services-hero {
  position: relative;
  min-height: 80vh;
  padding: 10rem 0 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green-darkest);
  /* Fallback color if image fails. CSS background image below */
  background-image: url('assets/images/portfolio-meridian-residence.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  text-align: center;
}

.services-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 19, 10, 0.9) 0%,
    rgba(18, 43, 25, 0.85) 60%,
    rgba(252, 250, 242, 0.05) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

.services-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.services-hero-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--color-gold);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  background: rgba(197, 155, 39, 0.12);
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.05);
}

.services-badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-gold);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.services-hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  color: #FCFAF2; /* Always white-gold for contrast over background image */
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.services-hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(252, 250, 242, 0.85);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 700px;
  margin-bottom: 3rem;
}

.services-hero-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #FCFAF2;
  text-align: left;
}

.services-hero-bullet i {
  color: var(--color-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.services-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.services-hero-actions .btn-secondary {
  border-color: #FCFAF2;
  color: #FCFAF2;
}

.services-hero-actions .btn-secondary:hover {
  background-color: #FCFAF2;
  color: var(--color-green-primary);
  border-color: #FCFAF2;
}


/* ==========================================================
   2. IMAGE FALLBACKS (Smart CSS Fill Solution)
   ========================================================== */

.card-placeholder-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-tertiary);
  overflow: hidden;
}

.card-placeholder-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-placeholder-img-wrapper img.error {
  display: none !important;
}

.fallback-card-fill {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-green-primary) 0%,
    var(--color-green-dark) 100%
  );
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-gold);
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--color-glass-border);
}

.card-placeholder-img-wrapper img.error + .fallback-card-fill {
  display: flex;
}

.fallback-card-fill i {
  font-size: 2.25rem;
  opacity: 0.85;
  animation: float 6s ease-in-out infinite;
}

.fallback-card-fill span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* Link card styles */
.card-placeholder-link {
  display: block;
  margin-top: 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-glass-border);
}


/* ==========================================================
   3. SERVICES DETAILS SECTION (SEO/GEO/AEO Blocks)
   ========================================================== */

.services-details-section {
  background-color: var(--color-bg-primary);
  padding-bottom: 7rem;
}

.service-detail-block {
  padding: 6rem 0;
  border-bottom: 1px solid var(--color-glass-border);
}

.service-detail-block:last-of-type {
  border-bottom: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.detail-grid.row-reverse {
  grid-template-columns: 1.2fr 1fr;
  direction: ltr; /* Keeps text flowing normally */
}

.detail-grid.row-reverse .detail-image-box {
  order: 2;
}

.detail-grid.row-reverse .detail-content-box {
  order: 1;
}

/* Detail Image Container */
.detail-image-box {
  position: relative;
  width: 100%;
}

.detail-img-wrapper {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-glass-border);
}

.detail-img-wrapper .fallback-card-fill i {
  font-size: 4rem;
}

.detail-img-wrapper .fallback-card-fill span {
  font-size: 1.1rem;
}

/* Detail Content Container */
.detail-content-box {
  display: flex;
  flex-direction: column;
}

.detail-number {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-green-primary);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.detail-description {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.detail-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-green-primary);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.detail-process-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  background-color: var(--color-bg-secondary);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.detail-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.detail-deliverables li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.detail-deliverables li i {
  color: var(--color-gold);
  margin-top: 0.25rem;
  flex-shrink: 0;
}


/* ==========================================================
   4. CTA SECTION
   ========================================================== */

.cta-section {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-glass-border);
  padding: 8rem 0;
  text-align: center;
}

.cta-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-green-primary);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.cta-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* ==========================================================
   5. RESPONSIVE DESIGN
   ========================================================== */

@media (max-width: 1024px) {
  .detail-grid,
  .detail-grid.row-reverse {
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .services-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .services-hero {
    padding: 8rem 0 5rem;
  }

  .detail-grid,
  .detail-grid.row-reverse {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .detail-grid.row-reverse .detail-image-box {
    order: 1;
  }

  .detail-grid.row-reverse .detail-content-box {
    order: 2;
  }

  .detail-number {
    font-size: 2.75rem;
  }

  .service-detail-block {
    padding: 4.5rem 0;
  }
}
