/*
 * services.css - Nottworks Child Theme
 *
 * Photographic Service Cards & Bento Introduction
 *
 * 1. Two-Part Balanced Desktop Composition:
 *    - Left: Bento Introduction Panel (~26% width) with pale-blue surface (#EAF4FF),
 *      crisp typography hierarchy (Manrope 800 title), and a refined minimal workspace photograph in the lower part
 *      blending seamlessly upward into the panel background.
 *    - Right: Service Grid (~74% width) with 6 photographic service cards (3 columns × 2 rows).
 * 2. Six Photographic Service Cards:
 *    - Full-bleed photographic backgrounds with subtle dark navy gradient overlay behind titles.
 *    - Small clean outline icon to the left of each heading.
 *    - Consistently aligned two-line title area.
 * 3. Sector Expertise Area:
 *    - Compact horizontal mint feature links (#EAF7F2) with delicate border and refined outline icons.
 */

/* =============================================================================
   1. SECTION CONTAINER & SECTION HEADER
   ============================================================================= */

.nw-services {
  background-color: var(--color-warm-white, #F5F3EE);
  padding-top: clamp(3.5rem, 5.5vw, 4.75rem);
  padding-bottom: clamp(80px, 5.5vw, 100px); /* Balanced bottom spacing */
  overflow: hidden;
  scroll-margin-top: 0 !important;
  box-sizing: border-box;
}

/* Left-aligned clean section header */
.nw-services__header {
  margin-bottom: clamp(24px, 3.2vw, 36px);
  text-align: left;
}

.nw-services__title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: clamp(1.85rem, 2.75vw, 2.65rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-ink-navy, #111827);
  margin-top: 0;
  margin-bottom: 0;
  max-width: 760px;
  text-align: left;
}

/* =============================================================================
   2. SERVICE GRID (Full-Width Desktop: 3 Columns × 2 Rows)
   ============================================================================= */

.nw-services__mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 22px);
  width: 100%;
  box-sizing: border-box;
}

/* Mobile carousel navigation is hidden on desktop */
.nw-services__mobile-nav {
  display: none !important;
}

/* =============================================================================
   3. PHOTOGRAPHIC SERVICE CARDS
   ============================================================================= */

.nw-mosaic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  padding: 20px 20px;
  text-decoration: none;
  color: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 250px;
  height: clamp(245px, 28vh, 270px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px -4px rgba(17, 24, 39, 0.18);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background-color: #0F172A;
}

.nw-mosaic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -6px rgba(17, 24, 39, 0.28);
  border-color: rgba(77, 155, 232, 0.45);
}

/* Full-bleed Photographic Background */
.nw-mosaic-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.nw-mosaic-card__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nw-mosaic-card:hover .nw-mosaic-card__bg-img {
  transform: scale(1.04);
}

/* Subtle Dark Navy Gradient Overlay Behind Titles for Readability */
.nw-mosaic-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.72) 36%,
    rgba(15, 23, 42, 0.25) 65%,
    rgba(15, 23, 42, 0.0) 100%
  );
}

/* Card Content: Icon + Consistently Aligned Two-Line Title Area */
.nw-mosaic-card__content {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: auto;
}

.nw-mosaic-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 2.85rem; /* Consistently aligns two-line title areas across all cards */
}

.nw-mosaic-card__icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.22s ease;
}

.nw-mosaic-card__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Ensure standardized menu SVG strokes on dark photographic card background render crisp white with vibrant cyan accents */
.nw-mosaic-card__icon svg [stroke="#111827"] {
  stroke: #ffffff;
  transition: stroke 0.22s ease;
}

.nw-mosaic-card__icon svg [stroke="#00A3E0"] {
  stroke: #38BDF8;
  transition: stroke 0.22s ease;
}

.nw-mosaic-card__icon svg [fill="#00A3E0"] {
  fill: #38BDF8;
  transition: fill 0.22s ease;
}

.nw-mosaic-card__icon svg [fill="#64748B"] {
  fill: rgba(255, 255, 255, 0.65);
}

.nw-mosaic-card:hover .nw-mosaic-card__icon {
  transform: scale(1.1);
}

.nw-mosaic-card:hover .nw-mosaic-card__icon svg [stroke="#00A3E0"] {
  stroke: #00A3E0;
}

.nw-mosaic-card:hover .nw-mosaic-card__icon svg [fill="#00A3E0"] {
  fill: #00A3E0;
}

.nw-mosaic-card__title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  flex: 1;
}

/* =============================================================================
   5. SECTOR EXPERTISE AREA (Polished Soft Mint Feature Links)
   ============================================================================= */

.nw-services__sectors {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.nw-services__sectors-header {
  margin-bottom: 12px;
}

.nw-services__sectors-eyebrow {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857; /* Deep emerald/mint for high contrast */
  display: block;
}

.nw-services__sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.nw-sector-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background-color: #EAF7F2; /* Soft mint background */
  border: 1px solid rgba(16, 185, 129, 0.22); /* Delicate mint border */
  text-decoration: none;
  color: var(--color-ink-navy, #111827);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
  box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.06);
  min-height: 60px;
  box-sizing: border-box;
  position: relative;
}

.nw-sector-link:hover {
  background-color: #E0F3EC;
  border-color: rgba(16, 185, 129, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.14);
}

.nw-sector-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #0D9488;
  flex-shrink: 0;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.nw-sector-link__icon svg {
  width: 22px;
  height: 22px;
  display: block;
  transition: transform 0.22s ease;
}

.nw-sector-link__icon svg [stroke="#111827"] {
  stroke: #111827;
  transition: stroke 0.22s ease;
}

.nw-sector-link:hover .nw-sector-link__icon {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
  transform: scale(1.05);
}

.nw-sector-link:hover .nw-sector-link__icon svg [stroke="#111827"] {
  stroke: #ffffff;
}

.nw-sector-link:hover .nw-sector-link__icon svg [stroke="#00A3E0"] {
  stroke: #A7F3D0;
}

.nw-sector-link:hover .nw-sector-link__icon svg [fill="#00A3E0"] {
  fill: #A7F3D0;
}

.nw-sector-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nw-sector-link__title {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-ink-navy, #111827);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.nw-sector-link__badge {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  line-height: 1.2;
}

.nw-sector-link__arrow {
  color: #0D9488;
  transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease;
  flex-shrink: 0;
  opacity: 0.75;
}

.nw-sector-link:hover .nw-sector-link__arrow {
  transform: translateX(3px);
  color: #047857;
  opacity: 1;
}

/* Subtle swipe hint hidden on desktop */
.nw-services__swipe-hint {
  display: none;
}

/* =============================================================================
   6. RESPONSIVE DESIGN: TABLET (max-width: 1024px)
   ============================================================================= */

@media (max-width: 1024px) {
  .nw-services__header {
    margin-bottom: 22px;
  }

  .nw-services__mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .nw-mosaic-card {
    min-height: 240px;
    height: clamp(230px, 30vw, 260px);
  }
}

/* =============================================================================
   5. RESPONSIVE DESIGN: MOBILE (max-width: 768px)
      Concept B: Horizontal Image-Card Carousel & Clean Section Header
   ============================================================================= */

@media (max-width: 768px) {
  .nw-services,
  #hizmetler,
  section#services {
    display: block !important;
    min-height: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-top: var(--nw-mobile-header-clearance, 86px) !important;
    padding-bottom: clamp(32px, 5vw, 40px) !important;
    scroll-margin-top: 0 !important;
    overflow-x: clip;
  }

  .nw-services__header {
    margin-bottom: 14px;
    text-align: left;
  }

  .nw-services__title {
    font-size: var(--nw-section-title-mobile, clamp(1.75rem, 7.2vw, 2.15rem)) !important;
    line-height: var(--nw-section-title-mobile-lh, 1.18) !important;
    letter-spacing: var(--nw-section-title-mobile-ls, -0.025em) !important;
    font-weight: var(--nw-section-title-mobile-weight, 800) !important;
    margin-bottom: 0;
    text-align: left;
  }

  /* ---------------------------------------------------------------------------
     Concept C: Horizontal Swipeable Compact Service Cards (2 Cards + Peek)
     --------------------------------------------------------------------------- */
  .nw-services__mosaic-grid {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    margin-left: calc(-1 * var(--section-padding-x, 16px));
    margin-right: calc(-1 * var(--section-padding-x, 16px));
    padding-left: var(--section-padding-x, 16px);
    padding-right: var(--section-padding-x, 16px);
    padding-top: 4px;
    padding-bottom: 8px;
    scroll-padding-left: var(--section-padding-x, 16px);
    scroll-padding-right: var(--section-padding-x, 16px);
    box-sizing: border-box;
  }

  .nw-services__mosaic-grid::-webkit-scrollbar {
    display: none;
  }

  /* Compact Service Cards: Two cards + peek of 3rd card */
  .nw-mosaic-card {
    flex: 0 0 38.5vw;
    width: 38.5vw;
    min-width: 140px;
    max-width: 154px;
    height: 195px;
    min-height: 195px;
    max-height: 195px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    border-radius: 16px;
    padding: 13px 11px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 16px -3px rgba(17, 24, 39, 0.2);
  }

  .nw-mosaic-card__overlay {
    background: linear-gradient(
      to top,
      rgba(11, 13, 16, 0.96) 0%,
      rgba(11, 13, 16, 0.76) 45%,
      rgba(11, 13, 16, 0.2) 75%,
      rgba(11, 13, 16, 0.0) 100%
    );
  }

  .nw-mosaic-card__content {
    margin-top: auto;
    width: 100%;
  }

  .nw-mosaic-card__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: auto;
    width: 100%;
  }

  .nw-mosaic-card__icon {
    width: 20px;
    height: 20px;
    color: #00A3E0;
    margin-top: 0;
    flex-shrink: 0;
  }

  .nw-mosaic-card__icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .nw-mosaic-card__title {
    font-size: 0.8125rem; /* ~13px */
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    word-break: break-word;
  }

  /* ---------------------------------------------------------------------------
     Concept C: Subtle Swipe Hint Line
     --------------------------------------------------------------------------- */
  .nw-services__swipe-hint {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 2px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
  }

  .nw-services__swipe-line {
    flex: 1;
    height: 1px;
    background: rgba(17, 24, 39, 0.08);
  }

  .nw-services__swipe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748B;
    user-select: none;
    flex-shrink: 0;
  }

  .nw-services__swipe-icon {
    width: 17px;
    height: 17px;
    color: #64748B;
    stroke: #64748B;
    flex-shrink: 0;
    display: block;
  }

  .nw-services__swipe-text {
    font-family: var(--font-body, 'Manrope', sans-serif);
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #64748B;
  }

  /* Sector specializations on mobile */
  .nw-services__sectors {
    margin-top: 18px;
    padding-top: 6px;
    border-top: none !important;
  }

  .nw-services__sectors-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .nw-sector-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .nw-sector-link__icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-shrink: 0 !important;
  }

  .nw-sector-link__body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  .nw-sector-link__title {
    font-size: clamp(0.8125rem, 3.4vw, 0.9375rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.015em !important;
  }

  .nw-sector-link__badge {
    font-size: 0.71875rem !important; /* ~11px */
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .nw-sector-link__arrow {
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
}

/* =============================================================================
   8. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .nw-mosaic-card,
  .nw-mosaic-card__bg-img,
  .nw-mosaic-card__icon,
  .nw-sector-link,
  .nw-sector-link__icon,
  .nw-sector-link__arrow {
    transition: none !important;
    transform: none !important;
  }
}
