/* ==========================================================================
   UNITED ECHOES — "Music" and "Digital Marketing" service menus (homepage).
   Markup: app/service_menus.php · Script: assets/js/service-menus.js
   Laptop / desktop: a dropdown card under the buttons (two columns when long).
   Phone: the menu opens in place under the buttons, full width, big tap areas.
   ========================================================================== */

.svm { position: relative; margin-top: 1.25rem; }   /* full width of the page, lined up with the sections above and below */
/* two big choices side by side: Music Production on the left, Digital Marketing on the right */
.svm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.svm-tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; width: 100%; min-height: 100%;
  padding: 1rem .95rem .95rem; border: 0; border-radius: 20px; text-align: left; cursor: pointer;
  color: #FFFFFF; font: inherit;
  box-shadow: 0 20px 40px -22px rgba(76, 29, 176, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s var(--ease, ease), box-shadow .25s ease, filter .25s ease;
}
.svm-tile--music { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(155deg, #8F5CF7 0%, #763AED 48%, #4A1BB0 100%); }
.svm-tile--marketing { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(155deg, #B15CF2 0%, #8A3DEB 45%, #4B1E9E 100%); }
:root[data-theme="dark"] .svm-tile { box-shadow: 0 22px 46px -20px rgba(118, 58, 237, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.svm-tile:hover { transform: translateY(-3px); box-shadow: 0 26px 48px -22px rgba(76, 29, 176, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.svm-tile:focus-visible { outline: 3px solid #B797F7; outline-offset: 3px; }
/* decoration behind the words */
.svm-tile-art { position: absolute; z-index: -1; right: -6px; bottom: -4px; width: 62%; color: rgba(255, 255, 255, .16); pointer-events: none; transition: transform .5s var(--ease, ease); }
.svm-tile--marketing .svm-tile-art { top: 0; right: 0; bottom: auto; width: 58%; }
.svm-tile-art svg { display: block; width: 100%; height: auto; }
.svm-tile:hover .svm-tile-art { transform: scale(1.06); }
.svm-tile-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: #FFFFFF; }
.svm-tile-txt { display: grid; gap: .3rem; min-width: 0; }
.svm-tile-name { font-weight: 700; font-size: 1.125rem; line-height: 1.15; letter-spacing: -.01em; }
.svm-tile-sub { color: rgba(255, 255, 255, .86); font-size: .8125rem; line-height: 1.38; }
.svm-tile-cta {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding: .45rem .7rem .45rem .8rem;
  border-radius: 999px; background: #FFFFFF; color: #4A1BB0; font-weight: 700; font-size: .8125rem; line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(20, 6, 60, .6);
}
.svm-tile-cta .svm-chev { width: 15px; height: 15px; transition: transform .25s var(--ease, ease); }
.svm-when-open { display: none; }
.svm-cta-more { display: none; }
@media (min-width: 600px) { .svm-cta-more { display: inline; } }
/* the open one: lifted with a light ring, arrow turned, "Close" */
.svm-tile[aria-expanded="true"] { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--bg, #FFFFFF), 0 0 0 6px #763AED, 0 26px 48px -22px rgba(76, 29, 176, .9); }
.svm-tile[aria-expanded="true"] .svm-chev { transform: rotate(180deg); }
.svm-tile[aria-expanded="true"] .svm-when-closed { display: none; }
.svm-tile[aria-expanded="true"] .svm-when-open { display: inline; }
@media (min-width: 600px) {
  .svm-row { gap: 1rem; }
  .svm-tile { gap: .85rem; padding: 1.4rem 1.4rem 1.3rem; border-radius: 22px; min-height: 13.5rem; }
  .svm-tile-ic { width: 54px; height: 54px; border-radius: 16px; }
  .svm-tile-name { font-size: 1.375rem; }
  .svm-tile-sub { font-size: .9375rem; max-width: 26ch; }
  .svm-tile-cta { font-size: .875rem; padding: .55rem .85rem .55rem .95rem; }
  .svm-tile-art { width: 48%; }
  .svm-tile--marketing .svm-tile-art { width: 40%; }
}

/* ---- The menu (phones first: opens in place) ------------------------------------------- */
.svm-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows .3s var(--ease, ease), opacity .2s ease, visibility 0s linear .3s; }
.svm-panel.is-open { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition: grid-template-rows .3s var(--ease, ease), opacity .2s ease, visibility 0s; }
.svm-panel-in { min-height: 0; overflow: hidden; }
.svm-card { margin-top: .6rem; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 12px); box-shadow: 0 18px 40px -24px rgba(60, 20, 140, .45); }
:root[data-theme="dark"] .svm-card { box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(183, 151, 247, .06); }
.svm-title { margin: .45rem .6rem .35rem; color: var(--text-muted); font-size: .8125rem; font-weight: 600; }
.svm-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.svm-link { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .55rem .6rem; border-radius: 10px; color: var(--text); text-decoration: none !important; transition: background-color .15s ease; }
.svm-link:hover, .svm-link:focus-visible { background: var(--brand-tint); color: var(--text); }
.svm-link:focus-visible { outline: 2px solid var(--btn-focus, #763AED); outline-offset: -2px; }
.svm-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-text); }
.svm-link:hover .svm-ic { background: #763AED; color: #FFFFFF; }
.svm-txt { display: grid; gap: .1rem; min-width: 0; }
.svm-name { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.svm-desc { color: var(--text-muted); font-size: .8125rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.svm-all { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px; margin-top: .4rem; padding: .6rem .7rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--brand-text); font-weight: 600; font-size: .9375rem; text-decoration: none !important; }
.svm-all:hover { background: var(--brand-tint); color: var(--brand-text); }
.svm-all:focus-visible { outline: 2px solid var(--btn-focus, #763AED); outline-offset: -2px; border-radius: 10px; }
.svm-all .icon { transition: transform .2s var(--ease, ease); }
.svm-all:hover .icon { transform: translateX(3px); }

/* ---- Tablets and up: a dropdown card under the buttons ------------------------------------ */
@media (min-width: 720px) {
  .svm-panel {
    position: absolute; z-index: 40; left: 0; top: 100%;
    width: 100%;
    display: block; transform: translateY(-6px);
    transition: opacity .18s ease, transform .22s var(--ease, ease), visibility 0s linear .22s;
  }
  .svm-panel.is-open { transform: none; transition: opacity .18s ease, transform .22s var(--ease, ease), visibility 0s; }
  .svm-panel-in { overflow: visible; }
  .svm-card { margin-top: .65rem; padding: .65rem; box-shadow: var(--shadow-float), 0 30px 60px -30px rgba(60, 20, 140, .35); }
  .svm-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .35rem; }
  .svm-desc { -webkit-line-clamp: 1; }
}

/* ---- Without JavaScript: both lists are simply shown, so every link can be reached ---------- */
html:not(.js) .svm-panel { position: static; transform: none; visibility: visible; opacity: 1; grid-template-rows: 1fr; width: auto; }
html:not(.js) .svm-chev { display: none; }
html:not(.js) .svm-btn { pointer-events: none; }
html:not(.js) .svm-tile .svm-chev, html:not(.js) .svm-tile-cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  .svm-panel, .svm-panel.is-open, .svm-chev, .svm-all .icon, .svm-link, .svm-tile { transition: none !important; }
}
