/* ==========================================================================
   Sovereign Press Print & Design — Responsive Design System & Rotary Dial UI
   Faithful modern recreation of the classic Sovereign Press rotary-dial card
   ========================================================================== */

:root {
  --sp-royal-bg: #3b4ca0;
  --sp-royal-bg-deep: #2b3980;
  --sp-banner-blue: #146eb8;
  --sp-banner-blue-deep: #0f5a99;
  --sp-ink-blue: #1e3a8a;
  --sp-red: #d61f26;
  --sp-red-bright: #ef2b2d;
  --sp-red-deep: #9e0e13;
  --sp-card-bg: #ffffff;
  --sp-surface-soft: #f5f7fc;
  --sp-text: #222b3a;
  --sp-text-muted: #4b566b;
  --sp-border: #dce3f0;
  --sp-shadow-card: 0 20px 50px rgba(12, 20, 56, 0.38);
  --sp-radius-card: 22px;
  --font-logo: 'Corben', 'Superclarendon', 'Clarendon', 'Bookman Old Style', Georgia, serif;
  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-condensed: 'Asap Condensed', 'Nunito', 'Arial Narrow', sans-serif;
  --font-script: 'Kalam', 'Segoe Script', 'Bradley Hand', cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--sp-text);
  background: radial-gradient(circle at 50% 0%, #4b5ec0 0%, var(--sp-royal-bg) 45%, var(--sp-royal-bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--sp-banner-blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--sp-red);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: #ffffff;
  color: var(--sp-ink-blue);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.skip-link:focus {
  left: 12px;
}

/* Outer Shell */
.page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

/* Main Classic Card */
.sp-card {
  background: var(--sp-card-bg);
  border-radius: var(--sp-radius-card);
  box-shadow: var(--sp-shadow-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Header Banner — Ready for Custom GIMP Transparent PNG (960x200 @ 2x -> 480x100) */
.sp-header {
  position: relative;
  background: linear-gradient(180deg, #1875c2 0%, var(--sp-banner-blue) 60%, var(--sp-banner-blue-deep) 100%);
  padding: 1.15rem 1.25rem 0.9rem;
  text-align: center;
  color: #ffffff;
  border-bottom: 2px solid rgba(10, 40, 76, 0.25);
}

.sp-header-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 100%;
}

.sp-logo-img-link {
  display: inline-block;
  line-height: 0;
  border-radius: 14px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.sp-logo-img-link:hover,
.sp-logo-img-link:focus-visible {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 12px rgba(4, 24, 54, 0.35));
}

.sp-logo-img {
  display: block;
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 960 / 200;
}

.sp-header-tagline {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 2.35vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
}

/* Quick Top Nav Bar */
.sp-topnav {
  background: #104570;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sp-topnav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sp-topnav a:hover,
.sp-topnav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Hero Intro Statement */
.sp-statement {
  padding: 1.45rem 1.5rem 0.5rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.sp-statement h1 {
  margin: 0;
  color: var(--sp-red);
  font-size: clamp(1.18rem, 2.55vw, 1.58rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sp-dial-hint {
  margin: 0.55rem auto 0;
  font-size: 0.9rem;
  color: var(--sp-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Interactive 3D Rotary Telephone Dial
   ========================================================================== */
.dial-section {
  padding: 0.5rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rotary-dial {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  user-select: none;
}

.rotary-dial-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(20, 30, 62, 0.22));
}

.dial-wheel-rotator {
  transform-origin: 320px 320px;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.rotary-dial.is-dialing .dial-wheel-rotator {
  transform: rotate(18deg);
}

/* Center Plate Overlay inside the Rotary Dial */
.dial-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45.5%;
  height: 45.5%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  z-index: 3;
}

.dial-script {
  font-family: var(--font-script);
  color: var(--sp-ink-blue);
  font-size: clamp(1.2rem, 3.8vw, 2.05rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.28rem;
}

.dial-phone-link {
  display: inline-block;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(0.72rem, 2.25vw, 1.24rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 0.15rem 0.3rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dial-phone-link:hover,
.dial-phone-link:focus-visible {
  color: var(--sp-red);
  background: rgba(214, 31, 38, 0.08);
  transform: scale(1.03);
}

.dial-center-sub {
  margin: 0.15rem 0 0;
  color: var(--sp-red);
  font-weight: 700;
  font-size: clamp(0.75rem, 2.15vw, 1.12rem);
  line-height: 1.15;
}

/* 11 Red Finger-Hole Buttons Positioned Exactly at 15° + k * 30° */
.dial-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.dial-buttons li {
  margin: 0;
  padding: 0;
}

.dial-btn {
  pointer-events: auto;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 15.8%;
  height: 15.8%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ff5a5c 0%, var(--sp-red-bright) 34%, var(--sp-red) 72%, var(--sp-red-deep) 100%);
  border: 2.5px solid #e6e9f0;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(90, 5, 10, 0.55),
    0 3px 7px rgba(20, 24, 40, 0.38);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4%;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(0.5rem, 1.48vw, 0.84rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(80, 0, 0, 0.65);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, filter 0.18s ease;
}

.dial-btn:hover,
.dial-btn:focus-visible {
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.11);
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.55),
    0 6px 16px rgba(214, 31, 38, 0.52),
    0 0 0 3px rgba(255, 255, 255, 0.9);
  outline: none;
  z-index: 6;
}

.dial-btn:active {
  transform: translate(-50%, -50%) scale(0.97);
}

/* Live Dial Preview Pill */
.dial-live-preview {
  min-height: 2.1rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: var(--sp-surface-soft);
  border: 1px solid var(--sp-border);
  font-size: 0.88rem;
  color: var(--sp-ink-blue);
  font-weight: 600;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Classic Search-Is-Over + Visiting Us Badge Section */
.sp-cta-band {
  padding: 0.6rem 1.5rem 1.4rem;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.sp-search-over {
  margin: 0 0 0.85rem;
  color: var(--sp-red);
  font-size: clamp(1.22rem, 2.8vw, 1.72rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.25;
}

.sp-bottom-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: center;
}

.sp-bottom-copy {
  flex: 1;
}

.sp-best-print {
  margin: 0;
  font-family: var(--font-condensed);
  color: var(--sp-banner-blue);
  font-size: clamp(1.4rem, 3.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.sp-digital-litho {
  margin: 0.4rem 0 0;
  font-family: var(--font-condensed);
  color: var(--sp-banner-blue);
  font-size: clamp(1.02rem, 2.05vw, 1.24rem);
  font-weight: 600;
}

/* Scalloped Red "Visiting us?" Stamp Badge */
.sp-visit-badge {
  flex-shrink: 0;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f43638 0%, var(--sp-red) 72%, #ab1318 100%);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  text-align: center;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.15;
  box-shadow:
    0 6px 16px rgba(180, 20, 26, 0.35),
    0 0 0 4px #ffffff,
    0 0 0 6px rgba(214, 31, 38, 0.35);
  border: 2px dashed rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-visit-badge strong {
  font-size: 1.12rem;
  display: block;
  margin-bottom: 0.15rem;
}

.sp-visit-badge:hover,
.sp-visit-badge:focus-visible {
  color: #ffffff;
  transform: scale(1.06) rotate(-3deg);
  box-shadow:
    0 10px 22px rgba(180, 20, 26, 0.45),
    0 0 0 4px #ffffff,
    0 0 0 7px rgba(214, 31, 38, 0.55);
}

/* Quick-Tap Service Directory (Always Crawl-Friendly + Effortless on Mobile) */
.sp-services-section {
  background: var(--sp-surface-soft);
  border-top: 1px solid var(--sp-border);
  padding: 1.75rem 1.5rem;
}

.sp-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.sp-section-head h2 {
  margin: 0 0 0.35rem;
  color: var(--sp-ink-blue);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
}

.sp-section-head p {
  margin: 0;
  color: var(--sp-text-muted);
  font-size: 0.96rem;
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: var(--sp-text);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.service-card:hover,
.service-card:focus-visible {
  color: var(--sp-text);
  border-color: var(--sp-banner-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 108, 168, 0.12);
}

.service-card-dot {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff5254, var(--sp-red));
  color: #ffffff;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(214, 31, 38, 0.32);
}

.service-card-body h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sp-ink-blue);
}

.service-card-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--sp-text-muted);
  line-height: 1.45;
}

/* Local SEO Trust Band */
.sp-trust-band {
  padding: 1.6rem 1.5rem;
  border-top: 1px solid var(--sp-border);
  background: #ffffff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.trust-item {
  background: var(--sp-surface-soft);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sp-border);
}

.trust-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--sp-banner-blue);
}

.trust-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sp-text-muted);
}

/* ==========================================================================
   Dedicated Service Detail & Location Inner Pages
   ========================================================================== */
.breadcrumb {
  padding: 0.85rem 1.5rem 0;
  font-size: 0.86rem;
  color: var(--sp-text-muted);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 0.35rem;
  color: #94a3b8;
}

.service-hero {
  padding: 1.1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--sp-border);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(214, 31, 38, 0.1);
  color: var(--sp-red);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.service-hero h1 {
  margin: 0 0 0.55rem;
  color: var(--sp-ink-blue);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.2;
}

.service-lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--sp-text-muted);
  max-width: 720px;
}

.service-content-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

.service-main h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  color: var(--sp-ink-blue);
}

.service-main h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.08rem;
  color: var(--sp-banner-blue);
}

.service-main p {
  margin: 0 0 0.9rem;
}

.spec-list {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.spec-list li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 2.15rem;
  background: var(--sp-surface-soft);
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  font-size: 0.93rem;
}

.spec-list li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  top: 0.65rem;
  color: var(--sp-red);
  font-weight: 800;
}

.use-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.use-tag {
  background: #eef3fb;
  color: var(--sp-ink-blue);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Sticky Quote Box on Service Pages */
.quote-panel {
  background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
  border: 2px solid var(--sp-banner-blue);
  border-radius: 14px;
  padding: 1.25rem;
  align-self: start;
}

.quote-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--sp-ink-blue);
}

.quote-panel p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--sp-text-muted);
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cta-btn-primary {
  background: var(--sp-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(214, 31, 38, 0.28);
}

.cta-btn-primary:hover,
.cta-btn-primary:focus-visible {
  color: #ffffff;
}

.cta-btn-secondary {
  background: var(--sp-banner-blue);
  color: #ffffff;
}

.cta-btn-secondary:hover,
.cta-btn-secondary:focus-visible {
  color: #ffffff;
}

.cta-btn-outline {
  background: #ffffff;
  color: var(--sp-ink-blue);
  border: 1.5px solid var(--sp-border);
}

.quote-checklist {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sp-border);
  font-size: 0.83rem;
  color: var(--sp-text-muted);
}

.quote-checklist strong {
  display: block;
  color: var(--sp-text);
  margin-bottom: 0.25rem;
}

/* Map Frame on Location Page */
.map-frame-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  box-shadow: 0 4px 16px rgba(15, 25, 55, 0.08);
  aspect-ratio: 16 / 10;
  background: #e5eaf3;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer Contact Bar (Faithful to Original + Click-to-Call) */
.sp-footer {
  background: linear-gradient(180deg, #f3f6fb 0%, #e7edf7 100%);
  border-top: 2px solid var(--sp-border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.94rem;
  color: #1f2937;
}

.sp-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.sp-footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sp-ink-blue);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-footer-pill:hover,
.sp-footer-pill:focus-visible {
  border-color: var(--sp-red);
  color: var(--sp-red);
  background: #fffafa;
}

.sp-footer-classic {
  margin: 0;
  line-height: 1.55;
}

.sp-footer-meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--sp-text-muted);
}

/* Responsive Adjustments */
@media (max-width: 760px) {
  .service-content-grid {
    grid-template-columns: 1fr;
  }

  .sp-bottom-callout {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0.65rem 0.5rem 2rem;
  }

  .sp-header {
    padding: 0.95rem 0.75rem 0.75rem;
  }

  .sp-statement {
    padding: 1.1rem 1rem 0.35rem;
  }

  .dial-section {
    padding: 0.35rem 0.35rem 0.6rem;
  }

  .dial-btn {
    width: 16.3%;
    height: 16.3%;
    font-size: clamp(0.44rem, 2.25vw, 0.62rem);
    padding: 2%;
  }

  .sp-services-section,
  .sp-trust-band,
  .service-hero,
  .service-content-grid,
  .sp-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dial-wheel-rotator,
  .dial-btn,
  .sp-visit-badge,
  .service-card {
    transition: none !important;
  }
}
