.catering-case-page {
  --case-ink: #173f4d;
  --case-sea: #0f6c78;
  --case-mint: #dceee9;
  --case-cream: #f7f0e2;
  --case-paper: #fffdf8;
  --case-coral: #c95b43;
  --case-line: rgba(23, 63, 77, 0.16);
  color: var(--case-ink);
  background: var(--case-paper);
}

.catering-case-page .breadcrumbs {
  max-width: 1280px;
  margin-inline: auto;
}

.case-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2.2rem) 5vw clamp(2.8rem, 7vw, 6.4rem);
}

.case-hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: min(690px, calc(100vh - 132px));
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 28px;
  background: var(--case-cream);
  box-shadow: 0 24px 64px rgba(11, 52, 64, 0.12);
}

.case-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.case-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--case-sea);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-kicker::before {
  width: 2.2rem;
  height: 2px;
  content: "";
  background: var(--case-coral);
}

.case-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--case-ink);
  font-size: clamp(2.35rem, 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.case-hero h1 em {
  display: block;
  color: var(--case-coral);
  font-style: normal;
}

.case-hero-lead {
  max-width: 670px;
  margin: 1.4rem 0 0;
  color: #385d68;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}

.case-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.case-hero-meta span {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(15, 108, 120, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--case-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.case-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.case-hero-media {
  position: relative;
  min-height: 480px;
}

.case-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--case-cream) 0%, rgba(247, 240, 226, 0) 28%);
  pointer-events: none;
}

.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 50%;
}

.case-proof-strip {
  max-width: 1120px;
  margin: clamp(-4.2rem, -4vw, -2.1rem) auto clamp(3.2rem, 7vw, 6.8rem);
  padding-inline: 5vw;
  position: relative;
  z-index: 3;
}

.case-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 59, 70, 0.1);
}

.case-proof-item {
  min-width: 0;
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--case-line);
}

.case-proof-item:last-child {
  border-right: 0;
}

.case-proof-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--case-coral);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.case-proof-item span {
  color: #496a73;
  font-size: 0.88rem;
  line-height: 1.45;
}

.case-section {
  padding: clamp(3.2rem, 8vw, 7.2rem) 5vw;
}

.case-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.case-section-cream {
  background: var(--case-cream);
}

.case-section-mint {
  background: var(--case-mint);
}

.case-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 4.2rem);
}

.case-heading h2,
.case-story h2,
.case-order h2,
.case-cta h2 {
  margin: 0;
  color: var(--case-ink);
  font-size: clamp(2rem, 4.3vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.case-heading p {
  margin: 0;
  color: #456670;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.case-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(260px, 0.36fr);
  gap: clamp(2.2rem, 6vw, 6rem);
  align-items: start;
}

.case-story p {
  margin: 0 0 1.15rem;
  color: #365963;
  font-size: 1.04rem;
  line-height: 1.82;
}

.case-story p:first-of-type {
  margin-top: 1.5rem;
  color: var(--case-ink);
  font-size: clamp(1.14rem, 1.7vw, 1.34rem);
  line-height: 1.68;
}

.case-quote {
  margin: 2rem 0 0;
  padding: 1.7rem 1.8rem;
  border-left: 4px solid var(--case-coral);
  border-radius: 0 16px 16px 0;
  background: rgba(247, 240, 226, 0.72);
  color: var(--case-ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.65;
}

.case-aside-card {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 59, 70, 0.09);
}

.case-aside-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-aside-copy {
  padding: 1.35rem;
}

.case-aside-copy strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
}

.case-aside-copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
}

.case-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: case-step;
}

.case-step {
  min-height: 230px;
  padding: 1.45rem;
  border: 1px solid rgba(23, 63, 77, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  counter-increment: case-step;
}

.case-step::before {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1.35rem;
  place-items: center;
  border-radius: 50%;
  content: counter(case-step, decimal-leading-zero);
  background: var(--case-coral);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

.case-step h3 {
  margin: 0 0 0.55rem;
  color: var(--case-ink);
  font-size: 1.15rem;
}

.case-step p {
  margin: 0;
  color: #4d6c75;
  font-size: 0.9rem;
  line-height: 1.62;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 118px;
  gap: 1rem;
}

.case-gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--case-ink);
}

.case-gallery figure:nth-child(1) {
  grid-column: span 7;
  grid-row: span 4;
}

.case-gallery figure:nth-child(2) {
  grid-column: span 5;
  grid-row: span 2;
}

.case-gallery figure:nth-child(3) {
  grid-column: span 5;
  grid-row: span 2;
}

.case-gallery figure:nth-child(4),
.case-gallery figure:nth-child(5),
.case-gallery figure:nth-child(6) {
  grid-column: span 4;
  grid-row: span 3;
}

.case-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.case-gallery figure:nth-child(1) img {
  object-position: 52% 48%;
}

.case-gallery figure::after {
  position: absolute;
  inset: 48% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(8, 40, 49, 0.84));
  pointer-events: none;
}

.case-gallery figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.9rem;
  left: 1rem;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (hover: hover) and (pointer: fine) {
  .case-gallery figure:hover img {
    transform: scale(1.025);
  }
}

.case-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.case-order p {
  margin: 1.3rem 0 0;
  color: #385d67;
  font-size: 1.04rem;
  line-height: 1.78;
}

.case-order-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.case-order-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--case-ink);
  line-height: 1.55;
}

.case-order-list li::before {
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  content: "";
  background: var(--case-coral);
}

.case-order-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(17, 59, 70, 0.13);
}

.case-order-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.case-order-photo figcaption {
  padding: 1rem 1.15rem 1.2rem;
  color: #536f77;
  font-size: 0.82rem;
  line-height: 1.5;
}

.case-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.case-result-card {
  padding: 1.6rem;
  border: 1px solid rgba(23, 63, 77, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.case-result-card h3 {
  margin: 0 0 0.65rem;
  color: var(--case-ink);
  font-size: 1.2rem;
}

.case-result-card p {
  margin: 0;
  color: #46666f;
  line-height: 1.65;
}

.case-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.1rem, 5vw, 4.3rem);
  border-radius: 26px;
  background: var(--case-ink);
  color: #fff;
}

.case-cta::after {
  position: absolute;
  right: -5%;
  bottom: -58%;
  width: 380px;
  aspect-ratio: 1;
  border: 72px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.case-cta > * {
  position: relative;
  z-index: 1;
}

.case-cta h2 {
  max-width: 780px;
  color: #fff;
}

.case-cta p {
  max-width: 700px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.7;
}

.case-cta .case-kicker {
  color: #bfe0da;
}

.case-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.case-cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 700;
}

.case-mobile-actions {
  display: none;
}

@media (max-width: 980px) {
  .case-hero-shell {
    grid-template-columns: 1fr;
  }

  .case-hero-media {
    grid-row: 1;
    min-height: 380px;
  }

  .case-hero-media::after {
    background: linear-gradient(0deg, var(--case-cream) 0%, rgba(247, 240, 226, 0) 36%);
  }

  .case-hero-copy {
    grid-row: 2;
    margin-top: -3.4rem;
    padding-top: 1rem;
  }

  .case-proof-grid,
  .case-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-proof-item:nth-child(2) {
    border-right: 0;
  }

  .case-proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--case-line);
  }

  .case-heading,
  .case-story-layout,
  .case-order-layout {
    grid-template-columns: 1fr;
  }

  .case-aside-card {
    position: static;
    display: grid;
    grid-template-columns: 0.44fr 0.56fr;
    align-items: center;
  }

  .case-aside-card img {
    height: 100%;
    aspect-ratio: 1;
  }

  .case-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .catering-case-page {
    padding-bottom: 70px;
  }

  .case-hero {
    padding-top: 0.45rem;
  }

  .case-hero-shell {
    min-height: 0;
    border-radius: 20px;
  }

  .case-hero-media {
    min-height: 260px;
  }

  .case-hero-copy {
    margin-top: -2rem;
    padding: 1rem 1.15rem 1.65rem;
  }

  .case-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
  }

  .case-hero-actions .btn {
    flex: 1 1 100%;
  }

  .case-proof-strip {
    margin-top: -1.45rem;
    padding-inline: 8vw;
  }

  .case-proof-grid {
    grid-template-columns: 1fr;
  }

  .case-proof-item,
  .case-proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--case-line);
  }

  .case-proof-item:last-child {
    border-bottom: 0;
  }

  .case-section {
    padding-inline: 5vw;
  }

  .case-heading {
    gap: 1rem;
  }

  .case-aside-card {
    display: block;
  }

  .case-steps {
    grid-template-columns: 1fr;
  }

  .case-step {
    min-height: 0;
  }

  .case-gallery {
    display: flex;
    gap: 0.8rem;
    margin-right: -5vw;
    padding-right: 5vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .case-gallery::-webkit-scrollbar {
    display: none;
  }

  .case-gallery figure,
  .case-gallery figure:nth-child(n) {
    flex: 0 0 min(82vw, 340px);
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .case-gallery figure:nth-child(2),
  .case-gallery figure:nth-child(5) {
    aspect-ratio: 4 / 3;
  }

  .case-cta {
    border-radius: 20px;
  }

  .case-cta-actions .btn {
    flex: 1 1 100%;
  }

  .case-mobile-actions {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    padding: 0.65rem max(0.8rem, env(safe-area-inset-right)) calc(0.65rem + env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(23, 63, 77, 0.14);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 -12px 28px rgba(17, 59, 70, 0.13);
    backdrop-filter: blur(12px);
  }

  .case-mobile-actions .btn {
    min-height: 46px;
    padding-inline: 0.9rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-gallery img {
    transition: none;
  }
}
