/* Digital service cards, accessible side preview and contextual mobile actions. */
.service-card.am-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  min-width: 0;
  background: linear-gradient(155deg, #fffefa, #f8faf3);
  border: 1px solid #e0e5d9;
  border-radius: 23px;
  box-shadow: 0 8px 25px rgb(3 42 37 / 4%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.am-service-card .service-top { align-items: flex-start; }
.am-service-card .service-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  color: #0c5948;
  border: 1px solid #ded5ba;
  border-radius: 21px;
  background: linear-gradient(140deg, #fbf5e7, #e9f0e5);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgb(3 42 37 / 5%);
}
.am-service-card .service-icon svg { width: 35px; height: 35px; }
.am-service-card h3 { margin-top: 25px; font-size: 24px; }
.am-service-card > p { flex: 1; }
.am-service-card .service-link { margin-top: 16px; padding-bottom: 14px; }
.am-card-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 17px;
  margin-top: 10px;
  border: 1px solid #d6dfcf;
  border-radius: 11px;
  background: #eef3e9;
  color: #0a4a3b;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.am-card-preview::after { content: '←'; margin-inline-start: 13px; font-size: 18px; }
.am-card-preview:hover, .am-card-preview:active { color: #fffdf6; background: #0b5745; border-color: #0b5745; }
.am-service-card:focus-within, .am-service-card.am-is-selected { border-color: #ba9a58; box-shadow: 0 0 0 2px rgb(216 183 121 / 15%), 0 18px 38px rgb(3 42 37 / 9%); }
.am-service-card:active { border-color: #b89d65; box-shadow: 0 10px 32px rgb(184 157 101 / 17%); }
.am-preview-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  display: none;
  flex-direction: column;
  width: min(540px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-inline-start: 1px solid rgb(216 183 121 / 45%);
  color: #153f36;
  background: #fffdf7;
  box-shadow: -25px 0 70px rgb(3 42 37 / 18%);
  z-index: 10030;
  text-align: start;
}
.am-preview-dialog[open] { display: flex; animation: am-preview-enter .25s ease both; }
.am-preview-dialog::backdrop { background: rgb(2 27 23 / 60%); backdrop-filter: blur(5px); }
.am-preview-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 15px; padding: 23px 28px; color: #e5cf9a; background: #063c34; }
.am-preview-eyebrow { font-size: 12px; font-weight: 700; line-height: 1.8; }
.am-preview-close { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid rgb(216 183 121 / 40%); border-radius: 50%; color: #fff9eb; background: transparent; font-size: 29px; font-family: inherit; line-height: 1; cursor: pointer; }
.am-preview-close:hover { background: rgb(216 183 121 / 16%); }
.am-preview-content { flex: 1 1 auto; padding: 35px 30px; overflow-y: auto; overscroll-behavior: contain; }
.am-preview-content h2 { margin: 0 0 16px; color: #063c34; font-size: clamp(27px, 4vw, 35px); line-height: 1.45; }
.am-preview-description { margin: 0; color: #617267; font-size: 15px; line-height: 1.95; }
.am-preview-content h3 { margin: 29px 0 14px; font-size: 19px; color: #153f36; }
.am-preview-requirements { display: grid; gap: 12px; margin: 0; padding-inline-start: 20px; color: #50685a; font-size: 14px; line-height: 1.9; }
.am-preview-requirements li::marker { color: #a78039; }
.am-preview-steps { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: am-step; }
.am-preview-steps li { display: flex; align-items: flex-start; gap: 12px; color: #50685a; font-size: 14px; line-height: 1.85; counter-increment: am-step; }
.am-preview-steps li::before { content: counter(am-step, arabic-indic); display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid #e3d8bd; border-radius: 9px; color: #8a682d; background: #f8f2e6; font-weight: 800; }
.am-preview-details { display: inline-flex; padding: 13px 0; margin-top: 20px; color: #87612b; font-size: 14px; font-weight: 800; }
.am-preview-details:hover { text-decoration: underline; text-underline-offset: 5px; }
.am-preview-footer { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 10px; padding: 19px 28px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #e4e5d9; background: #f6f5ed; }
.am-preview-call, .am-preview-follow { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 15px; border: 1px solid #0b5745; border-radius: 11px; font-size: 15px; font-weight: 800; text-align: center; }
.am-preview-call { color: #fff9ed; background: #0b5745; }
.am-preview-call:hover { background: #063c34; }
.am-preview-follow { color: #0b5745; background: #fffdf7; }
.am-preview-follow:hover { background: #e8eee1; }
.am-preview-note { grid-column: 1 / -1; margin: 2px 0 0; color: #6b786c; font-size: 11px; line-height: 1.85; }
.am-service-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.am-service-picker button { min-height: 69px; padding: 12px; border: 1px solid #dbe2d3; border-radius: 13px; color: #0b5745; background: #f2f5eb; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.am-service-picker button:hover { border-color: #b79c64; background: #ecefdc; }
.am-drawer-open { overflow: hidden; }
.am-preview-fallback-backdrop { position: fixed; inset: 0; z-index: 10020; background: rgb(2 27 23 / 60%); backdrop-filter: blur(5px); }
.am-mobile-service-bar { display: none; }
.am-card-preview:focus-visible, .am-preview-dialog a:focus-visible, .am-preview-dialog button:focus-visible, .am-mobile-service-bar a:focus-visible, .am-mobile-service-bar button:focus-visible { outline: 3px solid #b48738; outline-offset: 4px; }
@keyframes am-preview-enter { from { opacity: .7; transform: translateX(35px); } to { opacity: 1; transform: translateX(0); } }
@media (hover: hover) {
  .service-card.am-service-card:hover { transform: translateY(-6px); border-color: #c5ad79; box-shadow: 0 20px 45px rgb(3 42 37 / 11%), 0 0 35px rgb(216 183 121 / 9%); }
}
@media (max-width: 760px) {
  .am-has-service-bar body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .am-has-service-bar .floating-call { display: none !important; }
  .am-has-service-bar .back-top { bottom: calc(107px + env(safe-area-inset-bottom)); }
  .am-mobile-service-bar { position: fixed; z-index: 10010; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #cfbb88; background: rgb(255 253 246 / 97%); box-shadow: 0 -10px 35px rgb(3 42 37 / 12%); backdrop-filter: blur(14px); }
  .am-mobile-selection { min-width: 0; padding: 4px 0; border: 0; color: #063c34; background: transparent; text-align: start; font: inherit; cursor: pointer; }
  .am-mobile-selection small { display: block; color: #718071; font-size: 10px; line-height: 1.6; }
  .am-mobile-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 800; line-height: 1.9; }
  .am-mobile-follow, .am-mobile-call { display: grid; place-items: center; min-height: 44px; padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; }
  .am-mobile-follow { border: 1px solid #d9c79f; color: #765622; background: #f5ecda; }
  .am-mobile-call { border: 1px solid #0b5745; color: #fffdf3; background: #0b5745; }
  .am-preview-head { padding: 17px 20px; }
  .am-preview-content { padding: 26px 22px; }
  .am-preview-footer { padding-inline: 20px; }
  .am-service-card .service-icon { width: 65px; height: 65px; flex-basis: 65px; border-radius: 18px; }
  .am-service-card .service-icon svg { width: 31px; height: 31px; }
  .am-service-card h3 { font-size: 23px; }
}
@media (max-width: 380px) {
  .am-mobile-service-bar { padding-inline: 12px; gap: 7px; }
  .am-mobile-follow, .am-mobile-call { padding-inline: 11px; font-size: 12px; }
  .am-mobile-name { font-size: 12px; }
  .am-service-picker { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card.am-service-card, .am-card-preview { transition: none; }
  .service-card.am-service-card:hover { transform: none; }
  .am-preview-dialog[open] { animation: none; }
}
