/* ==========================================================================
   Arbuda Engineering — Editorial Zig-Zag Services Showcase
   Senior Production-Grade Responsive 4x2 Architectural Feature Grid
   ========================================================================== */

.sva-section {
  position: relative;
  background-color: #ffffff;
  color: var(--color-text, #151717);
  padding: 11rem 0 10rem;
  overflow: hidden;
  z-index: 3;
}

/* Subtle Technical Drafting Watermark Grid */
.sva-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(21, 23, 23, 0.045) 1px, transparent 0);
  background-size: 3.6rem 3.6rem;
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
}

/* Accent Ambient Glow behind stage */
.sva-section::after {
  content: '';
  position: absolute;
  top: 25%;
  right: -10%;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle, rgba(21, 23, 23, 0.025) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.sva-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.sva-header {
  text-align: center;
  max-width: 88rem;
  margin: 0 auto 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sva-heading {
  font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
  font-size: clamp(3.6rem, 4.4vw, 5.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #151717;
  margin-bottom: 2rem;
}

.sva-heading--serif {
  font-family: var(--font-secondary, 'Lora', serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.sva-subheading {
  font-family: var(--font-primary, sans-serif);
  font-size: clamp(1.55rem, 1.3vw, 1.85rem);
  line-height: 1.6;
  color: rgba(21, 23, 23, 0.68);
  max-width: 68rem;
}

/* --------------------------------------------------------------------------
   Zig-Zag Grid & Rows
   -------------------------------------------------------------------------- */
.sva-grid {
  display: flex;
  flex-direction: column;
  /* gap: 11rem; */
}

.sva-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  /* gap: 7.5rem; */
  align-items: center;
  position: relative;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.sva-row.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternating Zig-Zag Order for Even Rows */
.sva-row--even {
  grid-template-columns: 1fr 1.05fr;
}

.sva-row--even .sva-visual {
  order: 1;
}

.sva-row--even .sva-content {
  order: 2;
  padding-left: 2rem;
  padding-right: 0;
}

/* --------------------------------------------------------------------------
   Row Content Side
   -------------------------------------------------------------------------- */
.sva-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 2rem;
  z-index: 2;
}

/* Title with #Number beside it (e.g. "#03 Interior Design") */
.sva-title {
  display: flex;
  align-items: baseline;
  gap: 1.8rem;
  font-family: 'Plus Jakarta Sans', var(--font-primary), sans-serif;
  font-size: clamp(4.2rem, 4.6vw, 6.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #151717;
  margin-bottom: 2.2rem;
}

.sva-num {
  font-family: var(--font-secondary, 'Lora', serif);
  font-size: clamp(3.4rem, 3.8vw, 5.2rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(21, 23, 23, 0.4);
  line-height: 1;
  flex-shrink: 0;
}

.sva-desc {
  font-family: var(--font-primary, sans-serif);
  font-size: clamp(1.6rem, 1.25vw, 1.8rem);
  line-height: 1.6;
  color: rgba(21, 23, 23, 0.72);
  margin-bottom: 2.6rem;
  max-width: 54rem;
}

.sva-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 3.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sva-highlights li {
  font-family: var(--font-primary, sans-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(21, 23, 23, 0.88);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.sva-highlights li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background-color: #151717;
  font-size: 0;
}

/* Call to Action Button */
.sva-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 2.8rem;
  border-radius: 100px;
  background-color: #151717;
  color: #ffffff;
  font-family: var(--font-primary, sans-serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px rgba(21, 23, 23, 0.28);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sva-btn svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sva-btn:hover {
  background-color: #2b2e2f;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(21, 23, 23, 0.36);
}

.sva-btn:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Visual Side: 3D Tilt Card (Sharp Corners & No Shadow per user specification)
   -------------------------------------------------------------------------- */
.sva-visual {
  position: relative;
  z-index: 2;
  perspective: 1400px;
}

.sva-card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sva-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.05;
  border-radius: 0;
  overflow: hidden;
  background-color: #181a1b;
  box-shadow: none;
  border: none;
  transform: translateZ(0);
}

.sva-card:hover .sva-card__inner {
  box-shadow: none;
}

.sva-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  transform: scale(1.01);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sva-card:hover .sva-img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Responsive Layout (Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .sva-container {
    padding: 0 3rem;
  }

  .sva-grid {
    gap: 8.5rem;
  }

  .sva-row,
  .sva-row--even {
    gap: 5rem;
  }

  .sva-title {
    font-size: 4.6rem;
  }

  .sva-num {
    font-size: 3.8rem;
  }
}

/* Mobile Screen View (< 900px):
   CRITICAL REQUIREMENT: Show image FIRST, then text below it for ALL rows */
@media (max-width: 899px) {
  .sva-section {
    padding: 7rem 0 6rem;
  }

  .sva-container {
    padding: 0 2.2rem;
  }

  .sva-header {
    margin-bottom: 5.5rem;
  }

  .sva-grid {
    gap: 7rem;
  }

  .sva-row,
  .sva-row--even {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  /* Force visual side first, content second on mobile */
  .sva-row .sva-visual,
  .sva-row--even .sva-visual {
    order: 1 !important;
  }

  .sva-row .sva-content,
  .sva-row--even .sva-content {
    order: 2 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .sva-card__inner {
    aspect-ratio: 16 / 10.5;
    border-radius: 0;
  }

  .sva-title {
    font-size: 3.4rem;
    gap: 1.4rem;
    margin-bottom: 1.6rem;
  }

  .sva-num {
    font-size: 2.8rem;
  }

  .sva-desc {
    font-size: 1.55rem;
    margin-bottom: 2.2rem;
  }

  .sva-btn {
    width: 100%;
    justify-content: center;
  }
}