/**
 * Prestations / à la carte — semantic hub grid
 *
 * Desktop: 3-col cards → gift → band
 * Tablet: 2-col · Mobile: 1-col
 */

.ac-carte {
  --ac-carte-muted: #727272;
  --ac-carte-max: 1140px;
  --ac-carte-wide: 1514px;
  --ac-carte-gap: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ac-carte-muted);
}

.ac-carte :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.ac-carte img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ac-carte a:not(.btn) {
  color: inherit;
}

.entry-content .ac-carte a.btn {
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.ac-carte__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 36vw, 400px);
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
  text-align: center;
  background-color: #e6e6e6;
  background-image: url("../../uploads/2023/10/jonas-jacobsson-I-5e-GggWCM-unsplash-scaled.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ac-carte__hero-inner {
  width: min(100%, var(--ac-carte-max));
}

.entry-content .ac-carte__hero-title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 200;
  line-height: 1.1;
  color: #fff;
}

.entry-content .ac-carte__hero-lead {
  margin-top: 0.75rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.45;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Intro                                                                      */
/* -------------------------------------------------------------------------- */

.ac-carte__intro {
  width: min(100%, var(--ac-carte-max));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) 1.25rem;
  text-align: center;
}

.ac-carte__prose {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: var(--ac-carte-muted);
}

.ac-carte__prose p + p {
  margin-top: 0.85em;
}

.ac-carte__intro .ac-carte__prose {
  max-width: 42rem;
  margin-inline: auto;
}

.ac-carte__cta {
  margin-top: 1.75rem;
}

.ac-carte__intro .ac-carte__cta {
  display: flex;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Service grid                                                               */
/* -------------------------------------------------------------------------- */

.ac-carte__grid {
  width: min(100%, var(--ac-carte-wide));
  margin: 0 auto;
  padding: 0 1.25rem clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.ac-carte__card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.entry-content .ac-carte__card-title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ac-carte-muted);
  text-align: center;
}

.entry-content .ac-carte__card-title a {
  color: inherit;
  text-decoration: none;
}

.entry-content .ac-carte__card-title a:hover,
.entry-content .ac-carte__card-title a:focus-visible {
  color: var(--ac-green, #9ab2a2);
}

.ac-carte__card-media {
  overflow: hidden;
  border-radius: 2px;
}

.ac-carte__card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ac-carte__card-media:hover img,
.ac-carte__card-media:focus-within img {
  transform: scale(1.03);
}

.ac-carte__card .ac-carte__prose {
  font-size: 1.05rem;
  font-weight: 300;
  flex: 1 1 auto;
  text-align: left;
}

.ac-carte__card .ac-carte__cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}

.ac-carte__card-aside {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(114, 114, 114, 0.18);
}

.entry-content .ac-carte__card-aside-title {
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ac-carte-muted);
  text-align: center;
}

.entry-content .ac-carte__card-aside-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ac-carte__card-aside-media {
  max-width: 220px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 2px;
}

.ac-carte__card-aside-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* -------------------------------------------------------------------------- */
/* Gift                                                                       */
/* -------------------------------------------------------------------------- */

.ac-carte__gift {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1.25rem clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: center;
}

.entry-content .ac-carte__gift-title {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ac-carte-muted);
}

.ac-carte__gift-media {
  overflow: hidden;
  border-radius: 2px;
}

.ac-carte__gift-media img {
  width: 100%;
  aspect-ratio: 1 / 0.97;
  object-fit: cover;
}

.ac-carte__gift .ac-carte__prose {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 300;
}

.ac-carte__gift .ac-carte__cta {
  display: flex;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Band                                                                       */
/* -------------------------------------------------------------------------- */

.ac-carte__band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 36vw, 400px);
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem 1.25rem;
  text-align: center;
  background-image: url("../../uploads/2023/09/119737319_2844237885860416_8102526639712277976_n-e1695396991100.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.entry-content .ac-carte__band-title {
  max-width: 18em;
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 200;
  letter-spacing: 0.5px;
  line-height: 1.25;
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .ac-carte__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ac-carte__grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .ac-carte__card .ac-carte__prose,
  .ac-carte__gift .ac-carte__prose {
    text-align: center;
  }
}

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

  .ac-carte__card-media:hover img,
  .ac-carte__card-media:focus-within img {
    transform: none;
  }
}
