/* ANM Restoration Services: additions on top of the shared ANM site.css */

/* Brand lockup: the logo's bold A N M with a small caption, coloured by the nav */
.brand { display: inline-grid; gap: 5px; color: currentColor; }
.brand__svg { display: block; width: 92px; height: auto; fill: currentColor; }
.brand__sub { display: grid; gap: 4px; font: 500 8.5px/1 var(--sans); text-transform: uppercase; }
.brand__ln { display: flex; justify-content: space-between; }

/* "Open now" marker beside the call button */
.nav__live { display: none; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); letter-spacing: 0.04em; margin-right: 10px; }
.nav__live i { width: 8px; height: 8px; border-radius: 50%; background: #3fae6a; box-shadow: 0 0 0 0 rgba(63, 174, 106, 0.5); animation: live 2.4s var(--ease) infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(63, 174, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 174, 106, 0); } }

/* Home hero caption under the wordmark */
/* Home hero: RESTORATION SERVICES spread letter by letter to the exact width of the wordmark; licence top-left */
.hero__lic--l { text-align: left; }
.hero__kicker { display: flex; justify-content: space-between; width: min(100%, (100svh - 360px) * 6.145); margin: 0.8em auto 0; font: 500 clamp(11px, 1.5vw, 22px)/1 var(--sans); text-transform: uppercase; opacity: 0; animation: fade 1.2s var(--ease) 0.5s forwards; }
.hero__kicker .sp { width: 0.6em; }

/* Page hero call row */
.phero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.phero__note { font: 400 15px/1.3 var(--sans); color: rgba(251, 250, 248, 0.88); }

/* Service page content blocks */
.blocks { display: grid; gap: clamp(72px, 9vw, 140px); }
.blk .h3 { max-width: 13ch; }
.blk.split, .blk > .split { display: grid; gap: 20px; }
.img--wide { aspect-ratio: 16 / 7; }

.tiles { display: grid; gap: 12px; }
.tile { background: var(--panel); padding: clamp(26px, 3vw, 44px); display: grid; gap: 14px; align-content: start; }
.tile .p { font-size: 16px; }
.tile__t { margin: 0; font: 300 clamp(26px, 2.3vw, 36px)/1.08 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.015em; }
.tile .ticks { margin-top: 4px; }
.tile--dont { background: var(--stone); }
.tile--dont .ticks li, .tile--dont .ticks li::before { color: var(--ink-stone); }
.tile--dont .ticks, .tile--dont .ticks li { border-color: rgba(46, 44, 39, 0.18); }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.step { display: grid; gap: 10px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.step__t { margin: 0; font: 300 clamp(28px, 2.6vw, 40px)/1.05 var(--serif); font-variation-settings: "opsz" 144; letter-spacing: -0.015em; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; font: 400 clamp(19px, 1.5vw, 22px)/1.3 var(--sans); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq__i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brass); }
.faq__i::before, .faq__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.4px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease); }
.faq__i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details .p { padding: 0 0 24px; }

/* Before / after comparison: the range input drives --x */
.bas { display: grid; gap: 24px; }
.ba { margin: 0; display: grid; gap: 12px; }
.ba__stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); user-select: none; }
.ba__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__tag { position: absolute; top: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(20, 19, 16, 0.55); color: var(--white); font: 500 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.ba__tag--l { left: 14px; }
.ba__tag--r { right: 14px; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba__handle i { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(20, 19, 16, 0.18); }
.ba__handle svg { width: 14px; height: 14px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__stage:has(.ba__range:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Home service panels carry a short description in place of thumbnails */
.pp__d { margin: 0; font: 400 17px/1.55 var(--sans); color: rgba(251, 250, 248, 0.92); max-width: 36ch; }

/* Footer: links stacked inside each contact group */
.footer__contact > div { display: grid; justify-items: start; gap: 2px; }

@media (min-width: 1000px) {
  /* Desktop: licence and RESTORATION SERVICES share one line under the wordmark, left and right */
  .hero__mark { display: grid; grid-template-columns: 1fr auto; align-items: center; width: min(100%, (100svh - 360px) * 6.145); margin: 0 auto; }
  .hero__mark .glass { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .hero__mark .hero__lic--l { grid-row: 2; width: auto; margin: 0.9em 0 0; }
  .hero__kicker { grid-row: 2; width: auto; margin: 0.9em 0 0; gap: 0.32em; font-size: clamp(11px, 1.1vw, 15px); }
  .nav__live { display: inline-flex; }
  .blk.split, .blk > .split { gap: 0 24px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles--2 { grid-template-columns: repeat(2, 1fr); }
  .bas { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: baseline; }
  .step .num { grid-column: 1 / span 1; }
  .step__t { grid-column: 2 / span 4; }
  .step .p { grid-column: 7 / span 6; }
  .pp__side { justify-items: end; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__live i { animation: none; }
}
