/* Page shell */
.page-main {
  padding-top: var(--nav-h);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--hermes);
}

.breadcrumb span:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* Page heroes */
.page-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 0.85rem;
}

.page-hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  margin-bottom: 1.5rem;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero--light {
  background:
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero--dark {
  background:
    linear-gradient(135deg, rgba(26, 29, 35, 0.92) 0%, rgba(37, 43, 54, 0.88) 100%),
    url("https://images.unsplash.com/photo-1548337138-e87d889cc369?auto=format&fit=crop&w=1600&q=90") center/cover no-repeat;
  color: #fff;
}

.page-hero--dark .page-hero-lead,
.page-hero--dark .breadcrumb {
  color: rgba(255, 255, 255, 0.72);
}

.page-hero--dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero--dark h1 {
  color: #fff;
}

.page-hero--dark .breadcrumb span:last-child {
  color: #fff;
}

.page-hero--orange {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 55%, rgba(243, 112, 33, 0.08) 100%),
    url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=1600&q=90") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero--image {
  min-height: clamp(22rem, 50vh, 32rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 29, 35, 0.15) 0%, rgba(26, 29, 35, 0.55) 55%, rgba(26, 29, 35, 0.88) 100%);
  z-index: 1;
}

.page-hero--service::before {
  background: linear-gradient(
    180deg,
    rgba(26, 29, 35, 0.05) 0%,
    rgba(26, 29, 35, 0.35) 45%,
    rgba(26, 29, 35, 0.62) 100%
  );
}

.page-hero--service .page-hero-bg img {
  filter: saturate(1.05) contrast(1.02);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.03);
}

.page-hero--image h1,
.page-hero--image .breadcrumb span:last-child {
  color: #fff;
}

.page-hero--image .page-hero-lead,
.page-hero--image .breadcrumb {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-hero--split .page-hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  background: #e8e8e8;
}

.page-hero--split .page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
}

/* Hub cards (home) */
.page-hub {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 17rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0.75) 55%, rgba(255, 255, 255, 0.98) 100%);
  z-index: 0;
  transition: opacity 0.35s ease;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(243, 112, 33, 0.4);
}

.hub-card:hover::after {
  opacity: 0.85;
}

.hub-card-wide {
  grid-column: span 2;
  min-height: 20rem;
}

.hub-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hub-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hub-card:hover .hub-card-bg img {
  transform: scale(1.1);
}

.hub-card-icon,
.hub-card h3,
.hub-card p,
.hub-card-link {
  position: relative;
  z-index: 1;
}

.hub-card-icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--hermes-soft);
  color: var(--hermes);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.hub-card-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.hub-card h3 {
  position: relative;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hub-card p {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.hub-card-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hermes-deep);
}

.hub-card-link::after {
  content: " →";
}

/* Featured row */
.featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.featured-row .service-card {
  height: 100%;
}

.featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Service detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.detail-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0;
}

.detail-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hermes);
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.detail-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.detail-sidebar .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.related-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: rgba(243, 112, 33, 0.4);
}

.related-card strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.related-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Service page (ayrı sayfalar) */
.svc-page-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: start;
}

.svc-page-intro {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.svc-page-body p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 1rem;
}

.svc-page-visual {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.svc-page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
}

.svc-page-visual.svc-gallery-wrap {
  aspect-ratio: auto;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
}

.svc-gallery-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.svc-gallery-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.svc-gallery-item {
  flex: 0 0 min(88vw, 320px);
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}

.svc-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 720px) {
  .svc-gallery-item {
    flex-basis: min(42%, 360px);
  }
}

.svc-page-main h2 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.85rem;
}

.svc-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--hermes-soft);
  border: 1px solid rgba(243, 112, 33, 0.2);
}

.sidebar-note strong {
  display: block;
  font-size: 0.88rem;
  color: var(--hermes-deep);
  margin-bottom: 0.2rem;
}

.sidebar-note span {
  font-size: 0.82rem;
  color: var(--muted);
}

.detail-sidebar p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.related-services--grid .related-card--img {
  padding: 0;
  overflow: hidden;
}

.related-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card--img strong,
.related-card--img span {
  display: block;
  padding: 0 1rem;
}

.related-card--img strong {
  padding-top: 0.85rem;
}

.related-card--img span {
  padding-bottom: 1rem;
}

.nav a.is-active {
  color: var(--hermes-deep);
  font-weight: 600;
}

/* Mission cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mission-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}

.mission-card svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--hermes);
  margin-bottom: 0.85rem;
}

.mission-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.mission-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-card-wide {
    grid-column: span 2;
  }

  .page-hero--split {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .svc-page-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-sidebar {
    position: static;
  }

  .featured-row,
  .related-services,
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-card-wide {
    grid-column: span 1;
  }
}
