/*
  Ascent Digital UK — shared stylesheet, LOCATION-PAGE family v2.

  A refined evolution of assets/styles-location.css used by a later
  batch of town pages (Lichfield, Loughborough, Tamworth). Renamed/
  reworked from v1: .value-name -> .value-title, .faq-question::after
  -> a separate .faq-icon element, .faq-item.open -> .faq-item.active,
  plus a hero .shimmer text effect, refined value-card hover animation,
  and a .section-full utility. The HTML on these 3 pages actually uses
  the new class names, so this is NOT a drop-in swap with v1's
  stylesheet or vice versa — verify markup before ever repointing a
  page between the two.

  Verified byte-identical: web-design-lichfield and
  web-design-loughborough (0 diff). web-design-tamworth is identical
  plus one extra utility class (.section-full).

  Reconciling v1 and v2 into one file is a further follow-up (rename
  classes in the older 9 pages' HTML) — not done here.
*/

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100000;
  background: #1D9E75;
  color: #050505;
  padding: 12px 20px;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

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

:root {
  --black: #050505;
  --card: #0a0a0a;
  --surface: #0e0e0e;
  --border: #1a1a1a;
  --teal: #1D9E75;
  --teal-bright: #25c28e;
  --teal-glow: rgba(29,158,117,0.15);
  --white: #ffffff;
  --dim: rgba(255,255,255,0.75);
  --muted: rgba(255,255,255,0.65);
  --ghost: rgba(255,255,255,0.07);
  --outfit: 'Outfit', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

a { text-decoration: none; color: inherit; }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(29,158,117,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s, transform 0.1s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 50px;
  height: 50px;
  background: rgba(29,158,117,0.1);
  border-color: var(--teal);
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 48px);
  background: transparent;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.logo-text {
  font-family: var(--outfit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-text span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.nav-links a {
  font-family: var(--outfit);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--outfit);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(29,158,117,0.3);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--teal);
  color: var(--black);
  box-shadow: 0 0 30px rgba(29,158,117,0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 clamp(24px, 4vw, 48px);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(29,158,117,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(29,158,117,0.14) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

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

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--outfit);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--teal);
}

.hero-title {
  font-family: var(--outfit);
  font-weight: 800;
  font-size: clamp(52px, 10vw, 140px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 48px;
  color: var(--white);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
}

.hero-title .accent {
  color: var(--teal);
}

.hero-title .shimmer {
  background: linear-gradient(90deg, var(--white) 0%, var(--teal) 50%, var(--white) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: -100% 0; }
  50% { background-position: 100% 0; }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  max-width: 480px;
}

.hero-desc strong {
  color: var(--white);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-main {
  font-family: var(--outfit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 40px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(29,158,117,0.4), 0 0 80px rgba(29,158,117,0.15);
}

.btn-main:hover::before {
  transform: translateX(100%);
}

.btn-line {
  font-family: var(--outfit);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s, gap 0.3s;
}

.btn-line:hover { color: var(--white); gap: 14px; }
.btn-line svg { transition: transform 0.3s; }
.btn-line:hover svg { transform: translateX(4px); }

/* ── SECTION SHARED ── */
.section {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 4vw, 48px);
  max-width: 1300px;
  margin: 0 auto;
}

.section-full {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 4vw, 48px);
}

.section-label {
  font-family: var(--outfit);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  font-family: var(--outfit);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 24px;
}

.section-title .thin {
  font-weight: 200;
  color: var(--dim);
}

.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--dim);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* ── REVEAL SYSTEM ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(29,158,117,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-card:hover {
  background: var(--surface);
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 40px rgba(29,158,117,0.08);
}

.service-card:hover::before { width: 100%; }
.service-card:hover::after { opacity: 1; }

.service-num {
  font-family: var(--outfit);
  font-size: 48px;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.3s;
}

.service-card:hover .service-num { color: var(--teal); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(29,158,117,0.08);
  border: 1px solid rgba(29,158,117,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(29,158,117,0.15);
  border-color: rgba(29,158,117,0.25);
  box-shadow: 0 0 24px rgba(29,158,117,0.15);
}

.service-name {
  font-family: var(--outfit);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white);
}

.service-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--outfit);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  transition: gap 0.3s;
}

.service-card:hover .service-arrow { gap: 14px; }
.service-arrow svg { transition: transform 0.3s; }
.service-card:hover .service-arrow svg { transform: translateX(4px); }

/* ── WHY CHOOSE US ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.value-card {
  background: var(--card);
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(29,158,117,0.15) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.value-card:hover {
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 30px rgba(29,158,117,0.08);
}
.value-card:hover::before { width: 100%; }
.value-card:hover::after { opacity: 1; }

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(29,158,117,0.08);
  border: 1px solid rgba(29,158,117,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s;
}

.value-card:hover .value-icon {
  background: rgba(29,158,117,0.15);
  border-color: rgba(29,158,117,0.3);
  box-shadow: 0 0 24px rgba(29,158,117,0.15);
}

.value-title {
  font-family: var(--outfit);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.value-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.7;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--outfit);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 28px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: color 0.3s;
}

.faq-question:hover { color: var(--teal); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item.active .faq-icon {
  background: var(--teal);
  border-color: var(--teal);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s;
}


.faq-answer-inner {
  padding-bottom: 28px;
  font-size: 14px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  max-width: 640px;
}

/* ── CTA ── */
.cta-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(29,158,117,0.08) 0%, transparent 70%);
  animation: ctaGlow 11s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

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

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(100px, 12vw, 180px) 24px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--outfit);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 24px;
}

.cta-title .accent { color: var(--teal); }

.cta-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 48px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-email {
  font-family: var(--outfit);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 32px;
}

.cta-email a {
  color: var(--teal);
  border-bottom: 1px solid rgba(29,158,117,0.3);
  transition: border-color 0.3s;
}

.cta-email a:hover { border-color: var(--teal); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(24px, 4vw, 48px);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  font-family: var(--outfit);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-left span { color: var(--teal); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-family: var(--outfit);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--teal); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.98);
  backdrop-filter: blur(20px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--outfit);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--teal); }

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 32px;
  font-weight: 200;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-title {
    font-size: clamp(36px, 9vw, 64px);
    line-height: 0.92;
    margin-bottom: 32px;
  }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── INLINE LINKS (added by local-seo-*/digital-marketing-* pages) ── */
.service-desc a, .faq-answer-inner a, .hero-desc a, .section-sub a { color: var(--teal); border-bottom: 1px solid rgba(29,158,117,0.3); transition: border-color .3s; } .service-desc a:hover, .faq-answer-inner a:hover, .hero-desc a:hover, .section-sub a:hover { border-color: var(--teal); }
