/* ============================================
   SPECIALISATIONS — Sticky scroll section
   ============================================ */

/* ── Section Container ── */
.specialisations {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 100%;
  background: var(--color-white);
  color: var(--color-black);
}

/* ── Section Header ── */
.spec__header {
  padding: 80px 60px 40px;
  max-width: 800px;
}

.spec__header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

/* ── Two-Column Layout ── */
.spec__columns {
  display: flex;
  align-items: flex-start;
  position: relative;
  width: 100%;
}

/* ── Left Column — Sticky Image ── */
.spec__left {
  width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 40px 40px;
  flex-shrink: 0;
}

.spec__image-stack {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  max-height: 520px;
  border-radius: 16px;
  overflow: hidden;
}

.spec__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 1;
  clip-path: circle(0% at 95% 50%);
}

.spec__image.active {
  z-index: 2;
  clip-path: circle(150% at 95% 50%);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.spec__image.prev {
  z-index: 1;
  clip-path: circle(150% at 95% 50%);
}

.spec__image.unreveal {
  z-index: 2;
  clip-path: circle(0% at 95% 50%);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Right Column — Scrollable Content ── */
.spec__right {
  width: 50%;
  padding-bottom: 0;
}

/* ── Sticky Sub-header ── */
.spec__subheader {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  padding-top: 32px;
  padding-left: 40px !important;
  padding-right: 40px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  margin-bottom: 0 !important;
}

.spec__subheader-row {
  display: flex;
  justify-content: space-between !important;
  align-items: baseline;
}

.spec__subheader-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.5px;
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.spec__counter {
  font-family: 'Google Sans', sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: #111111;
  line-height: 1;
  min-width: 30px;
  text-align: right;
  transition: all 0.3s ease;
}

.spec__subheader-line {
  display: none;
}

.spec__services-scroll {
  padding: 0 60px 0 40px;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ── Service Blocks ── */
.spec__service {
  padding: 36px 60px 36px 40px !important;
  border-bottom: 1px solid #eeeeee;
  min-height: auto !important;
  height: auto !important;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.spec__service.active {
  opacity: 1;
}

.spec__service:last-child {
  border-bottom: none;
  padding-bottom: 15vh !important;
}

.spec__service:first-child {
  padding-top: 32px !important;
}

/* ── Service Title ── */
.spec__service-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #999999;
  text-transform: uppercase;
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.spec__service.active .spec__service-title {
  color: #1e3a5f;
}

/* ── Service Description ── */
.spec__service-desc {
  font-family: 'Google Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: #333333;
  max-width: 420px;
  margin-bottom: 20px;
}

/* ── Quote Block ── */
.spec__quote {
  background: #f8f8f8;
  border-left: 3px solid #1e3a5f;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-top: 4px;
  max-width: 480px;
}

.spec__quote p {
  font-family: 'Google Sans', sans-serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 300;
  color: #555555;
  line-height: 1.7;
  margin: 0;
}

.spec__quote cite {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* ── Mobile Service Card Image (hidden on desktop) ── */
.spec__service-image-mobile {
  display: none;
}

/* ============================================
   RESPONSIVE — Specialisations
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .spec__header {
    padding: 60px 40px 32px;
  }

  .spec__header h2 {
    font-size: 2rem;
  }

  .spec__right {
    padding: 32px 32px 60px;
  }

  .spec__subheader-title {
    font-size: 1.375rem;
  }

  .spec__counter {
    font-size: 1.625rem;
  }
}

.spec__mobile-hero {
  display: none;
}

/* Mobile image stack — hidden by default, shown on mobile */
.spec__mobile-image-stack {
  display: none;
  position: relative;
  width: calc(100% - 40px);
  height: 240px;
  border-radius: 12px;
  margin: 20px 20px 0 20px;
  overflow: hidden;
}

.spec__mobile-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  clip-path: circle(0% at 95% 50%);
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

.spec__mobile-img.active {
  clip-path: circle(150% at 95% 50%);
  z-index: 2;
}

.spec__mobile-img.prev {
  clip-path: circle(150% at 95% 50%);
  z-index: 1;
}

.spec__mobile-img.unreveal {
  clip-path: circle(0% at 95% 50%);
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
}

/* Mobile — Swipe layout */
@media (max-width: 768px) {
  .specialisations {
    display: block !important;
    height: auto !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }
  .spec__left { display: none !important; }
  .spec__mobile-image-stack { display: block !important; }
  .spec__right {
    width: 100% !important;
    padding: 0 0 40px 0 !important;
  }
  .spec__subheader {
    position: relative !important;
    background: transparent !important;
    padding: 24px 20px 16px 20px !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }
  .spec__subheader-title {
    font-size: 20px !important;
  }
  .spec__counter { display: none !important; }
  
  .spec__mobile-hero {
    display: block !important;
    width: calc(100% - 40px) !important;
    height: 240px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 20px 20px 0 20px !important;
  }
  .spec__services-scroll {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 20px !important;
    background: #f5f5f5 !important;
    border-radius: 16px !important;
    margin: 20px !important;
    scrollbar-width: none !important;
  }
  .spec__services-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .spec__services-scroll::before {
    content: '➔\A SWIPE';
    white-space: pre;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 100px !important;
    background: #e0e0e0 !important;
    border-radius: 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    line-height: 2 !important;
    scroll-snap-align: start !important;
  }
  .spec__service {
    display: block !important;
    flex-shrink: 0 !important;
    width: 85vw !important; /* safer than 85% in flex */
    scroll-snap-align: center !important;
    background: transparent !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    padding: 0 12px !important; /* Add padding to prevent text merging */
    border: none !important;
    margin: 0 !important;
  }
  .spec__service:last-child {
    padding-bottom: 0 !important;
  }
  .spec__service::before { display: none !important; }
  .spec__service-title {
    font-size: 16px !important;
    margin-bottom: 12px !important;
    color: #1a365d !important;
  }
  .spec__service-desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }
  .spec__quote {
    background: #ffffff !important;
    padding: 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  }
  .spec__quote p {
    font-size: 13px !important;
    font-style: italic !important;
  }
  .spec__service-image-mobile { display: none !important; }
  .spec__service-content {
    opacity: 1 !important;
    transform: none !important;
  }
  .spec__service-content * {
    opacity: 1 !important;
    transform: none !important;
  }
}
