/* Nail it Malli Services — catalog layout (Framer-transferable) */
:root {
  --malli-olive: #5f6b4a;
  --malli-olive-deep: #4a5339;
  --malli-cream: #f3efe6;
  --malli-ink: #1f1f1f;
  --malli-muted: rgba(31, 31, 31, 0.62);
  --malli-gold: #c9a227;
  --malli-gold-soft: #d4af37;
  --malli-white: #fff;
  --malli-line: rgba(31, 31, 31, 0.1);
  --malli-radius: 10px;
  --malli-font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --malli-font-body: "DM Sans", "Segoe UI", sans-serif;
  --malli-sidebar: 220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body.malli-services-page {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--malli-olive);
  color: var(--malli-cream);
  font-family: var(--malli-font-body);
  -webkit-font-smoothing: antialiased;
}

.malli-svc-skip {
  position: absolute;
  left: -999px;
}
.malli-svc-skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}

/* Header — logo left, nav + one Book now clustered right (matches site chrome) */
.malli-svc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  max-width: 100%;
  min-width: 0;
  background: rgba(95, 107, 74, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Outer header Book is the only CTA; hide duplicate inside nav */
.malli-svc-nav .malli-svc-book {
  display: none !important;
}

.malli-svc-header a {
  color: var(--malli-cream);
  text-decoration: none;
}

.malli-svc-logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-right: auto;
}

.malli-svc-logo img {
  height: 40px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  background: transparent;
}

.malli-svc-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.malli-svc-nav a:hover,
.malli-svc-nav a.is-active {
  color: var(--malli-gold-soft);
}

.malli-svc-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.malli-svc-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--malli-ink);
  color: var(--malli-gold-soft) !important;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.malli-svc-book:hover {
  filter: brightness(1.08);
}

.malli-svc-menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--malli-cream);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

@media (max-width: 899.98px) {
  .malli-svc-header {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .malli-svc-logo {
    order: 1;
  }
  .malli-svc-menu-btn {
    display: inline-flex;
    order: 2;
  }
  .malli-svc-header > .malli-svc-book {
    order: 3;
    padding: 7px 11px;
    font-size: 10px;
    min-height: 32px;
  }
  .malli-svc-nav {
    display: none;
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    background: var(--malli-olive-deep);
    gap: 14px;
  }
  .malli-svc-nav.is-open {
    display: flex;
  }
}

/* Hero — title + description only (About-scale type, no portrait / no Malli) */
.malli-svc-hero {
  padding: clamp(48px, 8vh, 88px) clamp(16px, 4vw, 40px) clamp(28px, 4vh, 40px);
}

.malli-svc-hero__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.malli-svc-hero h1 {
  margin: 0;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--malli-cream);
}

.malli-svc-hero p {
  margin: 16px 0 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(243, 239, 230, 0.78);
}

/* Catalog shell: left categories, right grid */
.malli-svc-shell {
  width: min(1200px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 80px;
  display: grid;
  grid-template-columns: var(--malli-sidebar) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  overflow-x: clip;
}

.malli-svc-shell > * {
  min-width: 0;
  max-width: 100%;
}

.malli-svc-sidebar {
  position: sticky;
  top: 84px;
  padding: 8px 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  max-height: calc(100vh - 100px);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: thin;
}

.malli-svc-sidebar__label {
  margin: 0 0 12px;
  padding-right: 12px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.5);
}

/* Catalog search */
.malli-svc-search {
  margin: 0 0 16px;
  padding-right: 12px;
}

.malli-svc-search__label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.5);
}

.malli-svc-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.malli-svc-search__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: rgba(243, 239, 230, 0.55);
  pointer-events: none;
}

.malli-svc-search__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 36px 10px 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(31, 31, 31, 0.28);
  color: var(--malli-cream);
  font-family: var(--malli-font-body);
  font-size: 15px;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.malli-svc-search__input::placeholder {
  color: rgba(243, 239, 230, 0.45);
}

.malli-svc-search__input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(31, 31, 31, 0.36);
}

.malli-svc-search__input:focus {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(31, 31, 31, 0.42);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.18);
}

.malli-svc-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.malli-svc-search__clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(243, 239, 230, 0.7);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.malli-svc-search__clear:hover {
  color: var(--malli-gold-soft);
  background: rgba(255, 255, 255, 0.08);
}

.malli-svc-card.is-search-hidden,
.malli-svc-sidebar a.is-search-hidden,
.malli-svc-cat.is-search-empty {
  display: none !important;
}

.malli-svc-search-empty {
  margin: 8px 0 32px;
  padding: 28px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--malli-radius);
  text-align: center;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.72);
}

.malli-svc-search-empty[hidden] {
  display: none !important;
}

.malli-svc-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
}

.malli-svc-sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(243, 239, 230, 0.82);
  text-decoration: none;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.malli-svc-sidebar a:hover,
.malli-svc-sidebar a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--malli-gold-soft);
}

.malli-svc-sidebar a span {
  display: block;
  margin-top: 2px;
  font-family: var(--malli-font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(243, 239, 230, 0.45);
}

.malli-svc-content {
  min-width: 0;
}

.malli-svc-cat {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.malli-svc-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.malli-svc-cat h2 {
  margin: 0;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--malli-cream);
}

.malli-svc-cat__count {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.5);
}

.malli-svc-cat__note {
  margin: -6px 0 16px;
  max-width: 42rem;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.72);
}

.malli-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1099px) {
  .malli-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899.98px) {
  .malli-svc-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .malli-svc-sidebar {
    position: sticky;
    top: 68px;
    z-index: 30;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    overflow-x: clip;
    overflow-y: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(74, 83, 57, 0.96);
    margin: 0;
    padding: 10px 0 12px;
    box-sizing: border-box;
  }
  .malli-svc-search {
    padding-right: 0;
    margin-bottom: 12px;
    max-width: 100%;
    min-width: 0;
  }
  .malli-svc-search__input {
    font-size: 16px;
    max-width: 100%;
  }
  .malli-svc-sidebar__label {
    padding-right: 0;
  }
  .malli-svc-sidebar nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 0 0 4px;
    scrollbar-width: thin;
  }
  .malli-svc-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .malli-svc-sidebar a span {
    display: none;
  }
  .malli-svc-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .malli-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }
}

/* Cover cards — name + price on image; Details only */
.malli-svc-card {
  position: relative;
  display: block;
  border-radius: var(--malli-radius);
  overflow: hidden;
  background: var(--malli-olive-deep);
  aspect-ratio: 4 / 5;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.malli-svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.malli-svc-card__media {
  position: absolute;
  inset: 0;
}

.malli-svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.malli-svc-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.malli-svc-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}

.malli-svc-card__name {
  margin: 0;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
}

.malli-svc-card__meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.malli-svc-card__price {
  margin: 2px 0 8px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--malli-gold-soft);
}

.malli-svc-card__details {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--malli-ink);
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.malli-svc-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile catalog: short 2-col tiles (scan like desktop, not full-bleed) */
@media (max-width: 899.98px) {
  .malli-svc-cat {
    margin-bottom: 22px;
  }
  .malli-svc-cat__head {
    margin-bottom: 10px;
  }
  .malli-svc-cat h2 {
    font-size: 15px;
  }
  .malli-svc-cat__note {
    margin: -4px 0 10px;
    font-size: 12px;
  }
  .malli-svc-card {
    aspect-ratio: 5 / 4;
    border-radius: 8px;
  }
  .malli-svc-card:hover {
    transform: none;
    box-shadow: none;
  }
  .malli-svc-card__shade {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 35%,
      rgba(0, 0, 0, 0.58) 72%,
      rgba(0, 0, 0, 0.82) 100%
    );
  }
  .malli-svc-card__body {
    padding: 6px 8px 8px;
    gap: 2px;
  }
  .malli-svc-card__name {
    font-size: 11px;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .malli-svc-card__meta {
    display: none;
  }
  .malli-svc-card__price {
    margin: 0 0 4px;
    font-size: 11px;
  }
  .malli-svc-card__details {
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 10px;
  }
  .malli-svc-badge {
    font-size: 8px;
    padding: 1px 5px;
    margin-bottom: 0;
  }
}

/* Detail page */
.malli-svc-detail {
  padding: 28px clamp(16px, 4vw, 40px) 80px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.malli-svc-back {
  display: inline-flex;
  margin-bottom: 20px;
  color: rgba(243, 239, 230, 0.8);
  text-decoration: none;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.malli-svc-back:hover {
  color: var(--malli-gold-soft);
}

.malli-svc-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

@media (max-width: 899.98px) {
  .malli-svc-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.malli-svc-detail-media {
  border-radius: 14px;
  overflow: hidden;
  background: var(--malli-olive-deep);
  aspect-ratio: 4 / 5;
}

.malli-svc-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.malli-svc-detail-copy {
  color: var(--malli-cream);
}

.malli-svc-eyebrow {
  margin: 0 0 8px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--malli-gold-soft);
}

.malli-svc-detail-copy h1 {
  margin: 0 0 12px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.malli-svc-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(243, 239, 230, 0.78);
}

.malli-svc-detail-meta strong {
  color: var(--malli-cream);
  font-family: var(--malli-font-display);
  font-weight: 800;
}

.malli-svc-detail-copy > p {
  margin: 0 0 18px;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(243, 239, 230, 0.82);
}

.malli-svc-note {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(243, 239, 230, 0.78);
}

.malli-svc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.malli-svc-cta-row .malli-svc-book {
  min-width: 180px;
}

.malli-svc-related {
  margin-top: 56px;
}

.malli-svc-related h2 {
  margin: 0 0 16px;
  font-family: var(--malli-font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.malli-svc-footer {
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: rgba(243, 239, 230, 0.65);
  font-size: 12px;
}

.malli-svc-footer a {
  color: rgba(243, 239, 230, 0.85);
  text-decoration: none;
}

.malli-svc-footer a:hover {
  color: var(--malli-gold-soft);
}

/* Appear / reveal */
.malli-appear {
  opacity: 0;
  will-change: transform, opacity;
}
.malli-appear--from-up {
  transform: translateY(22px);
}
.malli-appear.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.malli-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.malli-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .malli-reveal,
  .malli-appear {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .malli-svc-card {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
