/* Up North Coding – basket styles (shared by every page) */

/* ---------- header basket icon ---------- */
.header-right { display: flex; align-items: center; gap: 20px; }
.basket-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; width: 46px; padding: 0; flex-shrink: 0;
  border-radius: 9999px; border: 1px solid #111; background: #111; color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.basket-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.basket-link:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.basket-link svg { width: 21px; height: 21px; flex-shrink: 0; }

/* remove the underline animation the nav links use */
nav.desktop-nav .basket-link::after, .header-right .basket-link::after { display: none; }
.basket-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; background: #fff; color: #111; border: 2px solid #111;
  font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0;
}
.basket-count.is-empty { display: none; }
.basket-link.bump { animation: basket-bump 0.45s ease; }
@keyframes basket-bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.12); } }

/* basket entry in the mobile menu */
.mobile-basket-link { display: flex !important; align-items: center; gap: 10px; }
.mobile-basket-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 9999px; background: #111; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0;
}
.mobile-basket-count.is-empty { display: none; }

/* ---------- buttons next to "Enquire About This Service" ---------- */
.svc-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media(min-width:640px){ .svc-actions { grid-template-columns: 1fr 1fr; } }
.svc-actions .svc-cta { margin-bottom: 0; }

.basket-btn {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
  border-radius: 9999px; border: 2px solid #111; background: #fff; color: #111;
  padding: 16px 24px; font: inherit; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.2s, color 0.2s;
}
.basket-btn:hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(0,0,0,0.18); }
.basket-btn:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.basket-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.basket-btn.is-added { background: #111; color: #fff; }

/* in the service pop-up on the home page */
.modal-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
@media(min-width:640px){ .modal-actions { grid-template-columns: 1fr 1fr; } }
.modal-actions .modal-enquire { margin-top: 0; padding: 20px 24px; }
.modal-actions .basket-btn { padding: 18px 24px; font-size: 13px; letter-spacing: 0.2em; }

/* ---------- "added" toast ---------- */
.basket-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); width: max-content;
  padding: 12px 12px 12px 18px; border-radius: 9999px;
  background: #111; color: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  font-size: 13px; line-height: 1.4;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.35s;
  pointer-events: none;
}
.basket-toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.basket-toast-tick { font-weight: 900; }
.basket-toast-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.basket-toast-link {
  flex-shrink: 0; border-radius: 9999px; background: #fff; color: #111;
  padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
}
@media (prefers-reduced-motion: reduce) {
  .basket-toast, .basket-btn, .basket-link { transition: none; }
  .basket-link.bump { animation: none; }
}

/* ---------- option drop-down ---------- */
.basket-option-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #737373; margin-bottom: 8px; }
.basket-option-wrap { position: relative; margin-bottom: 16px; }
.basket-option-wrap::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); pointer-events: none;
}
.basket-option {
  display: block; width: 100%; appearance: none; -webkit-appearance: none;
  border-radius: 9999px; border: 1px solid #d4d4d4; background: #fff; color: #111;
  padding: 15px 52px 15px 22px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: border-color 0.2s;
}
.basket-option:hover, .basket-option:focus { border-color: #111; outline: none; }
.basket-option:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

/* ---------- "enquire before purchasing" note ---------- */
.enquire-note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 1.25rem; border: 1px solid #111; background: #fff;
  padding: 14px 18px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.6; color: #404040;
}
.enquire-note strong { color: #111; }
.enquire-note-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: #111; color: #fff;
  font-size: 12px; font-weight: 900; font-style: normal;
}
.modal-body .enquire-note { margin-top: 28px; margin-bottom: 0; }
.modal-body .basket-option-wrap { margin-bottom: 0; }
.modal-options { margin-top: 20px; }
.modal-options:empty { display: none; }
.modal-actions { margin-top: 16px; }
.services-note { max-width: 760px; margin: -28px 0 32px; }

/* ---------- comfortable tap targets on phones (look unchanged) ---------- */
.mobile-menu-btn { flex-shrink: 0; }
.breadcrumb a { display: inline-block; padding: 14px 0; margin: -14px 0; }

/* ---------- header fits on smaller laptops (1024–1279px) ---------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-inner { padding-left: 28px; padding-right: 28px; }
  .logo-img { height: 104px; width: 104px; }
  .brand-name { font-size: 20px; white-space: nowrap; }
  nav.desktop-nav { gap: 9px; font-size: 12px; letter-spacing: 0.12em; }
  .header-right { gap: 14px; }
}

/* "Have you spoken with us first?" check before a service goes in the basket (js/basket.js) */
.enquire-check {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.enquire-check-card {
  position: relative; width: 100%; max-width: 440px; border-radius: 1.75rem; background: #fff;
  padding: 32px 24px 24px; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.enquire-check-card .enquire-note-icon { width: 36px; height: 36px; font-size: 18px; margin: 0 auto 14px; }
.enquire-check-card h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; color: #111; margin: 0 0 10px; }
.enquire-check-card p { font-size: 14px; line-height: 1.6; color: #525252; margin: 0 0 22px; }
.enquire-check-card p strong { color: #111; }
.enquire-check-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #e5e5e5; background: #fff; font-size: 20px; line-height: 1; color: #525252; cursor: pointer;
}
.enquire-check-actions { display: flex; flex-direction: column; gap: 10px; }
.enquire-check-yes, .enquire-check-no {
  display: flex; align-items: center; justify-content: center; border-radius: 9999px; padding: 15px 20px;
  font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; text-decoration: none;
}
.enquire-check-yes { border: 2px solid #111; background: #111; color: #fff; }
.enquire-check-no { border: 1px solid #d4d4d4; background: #fff; color: #111; }
.enquire-check-yes:focus-visible, .enquire-check-no:focus-visible, .enquire-check-close:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

/* part pages: Add to Basket while a part is "Coming soon" or price on request (js/basket.js) */
.basket-btn.is-soon, .basket-btn.is-soon:hover { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }
