/* ==========================================================================
   Graham SEO - Local Landing Pages (extends homepage.css)
   Chester, Liverpool, Warrington, Southport, Runcorn, Wrexham
   ========================================================================== */

/* ---------- Hero tweaks ---------- */
.lp-page .hero-badge {
  font-size: 11px;
}

.lp-hero-title--long {
  font-size: clamp(30px, 3.2vw, 44px);
}

.lp-hero-rating {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-hero-rating .star-rating,
.lp-rating .star-rating,
.lp-review-foot .star-rating {
  margin: 0;
  font-size: 15px;
}

/* ---------- Typography helpers ---------- */
.lp-eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.lp-prose {
  max-width: 820px;
}

.section-header.text-center + .lp-prose,
.lp-prose.is-centred {
  margin-inline: auto;
}

.lp-prose > * + * {
  margin-top: 0;
}

.lp-prose h2 {
  margin: 28px 0 12px;
}

.lp-prose h3 {
  margin: 26px 0 8px;
}

.lp-prose h4 {
  font-size: 16px;
  margin: 20px 0 6px;
}

.lp-prose h2:first-child,
.lp-prose h3:first-child,
.lp-prose h4:first-child {
  margin-top: 0;
}

.lp-prose ul,
.lp-prose ol {
  margin: 0 0 18px 0;
  padding-left: 0;
  list-style: none;
}

.lp-prose ul li,
.lp-prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.lp-prose ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.lp-prose ol {
  counter-reset: lp-ol;
}

.lp-prose ol li {
  counter-increment: lp-ol;
}

.lp-prose ol li::before {
  content: counter(lp-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.lp-prose blockquote {
  border-left: 3px solid var(--blue-primary);
  background: var(--blue-ice);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 18px;
  font-style: italic;
  color: var(--text-main);
}

.lp-prose strong {
  color: var(--text-main);
}

.lp-figure {
  margin: 8px 0 20px;
}

.lp-figure img,
.lp-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.lp-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Split / columns ---------- */
.lp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.lp-split--media-right {
  grid-template-columns: 1.1fr 0.9fr;
}

.lp-split--media-right .lp-split-media {
  order: 2;
}

.lp-split-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.lp-split-media--stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lp-split-media--stack img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.lp-split-copy .lp-prose {
  max-width: none;
}

.lp-cols {
  display: grid;
  gap: 28px;
  align-items: start;
}

.lp-cols--2 {
  grid-template-columns: repeat(2, 1fr);
}

.lp-cols--3 {
  grid-template-columns: repeat(3, 1fr);
}

.lp-col .lp-prose {
  max-width: none;
}

.lp-cols + *,
.lp-split + *,
.lp-card-grid + *,
.lp-check-grid + *,
.lp-tabs + *,
.lp-gallery + *,
.lp-stat-grid + *,
.lp-link-grid + * {
  margin-top: 28px;
}

/* ---------- Tabs ---------- */
.lp-tabs {
  display: block;
}

.lp-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.lp-tab {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lp-tab:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.lp-tab:focus-visible {
  outline: 2px solid var(--blue-badge);
  outline-offset: 2px;
}

.lp-tab.is-active {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #ffffff;
  box-shadow: 0 6px 14px -6px rgba(10, 25, 47, 0.45);
}

.lp-tabs--vertical {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.lp-tabs--vertical .lp-tablist {
  flex-direction: column;
  flex-wrap: nowrap;
  margin-bottom: 0;
  position: sticky;
  top: 100px;
}

.lp-tabs--vertical .lp-tab {
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.lp-panel {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  animation: lpFade 0.25s ease;
}

.lp-panel.is-active {
  display: block;
}

.lp-panel > * + * {
  margin-top: 20px;
}

.lp-panel .lp-prose {
  max-width: none;
}

.lp-panel h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
}

.lp-panel h3 {
  font-size: 18px;
  line-height: 1.3;
}

@keyframes lpFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Check cards & card grids ---------- */
.lp-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lp-check-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.section-slate .lp-check-card {
  background: var(--bg-white);
}

.lp-check-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.lp-check-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.lp-check-card ul {
  padding-left: 18px;
  font-size: 14px;
}

.lp-card-grid {
  display: grid;
  gap: 20px;
}

.lp-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.lp-card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.lp-card-grid .service-card ul {
  padding-left: 18px;
  font-size: 14px;
}

.lp-emoji {
  font-size: 22px;
  line-height: 1;
}

/* ---------- Dark / case studies ---------- */
.lp-dark .section-header h2,
.lp-dark h2,
.lp-dark h3,
.lp-dark h4 {
  color: #ffffff;
}

.lp-dark .section-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.lp-dark .section-lead,
.lp-dark p,
.lp-dark li {
  color: var(--text-light);
}

.lp-dark strong {
  color: #ffffff;
}

.lp-dark a:not(.btn-pill-red):not(.view-all-link) {
  color: var(--blue-badge);
}

.lp-dark .lp-eyebrow {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-badge);
}

.lp-dark .service-card,
.lp-dark .lp-check-card,
.lp-dark .lp-stat {
  background: var(--navy-card);
  border-color: rgba(255, 255, 255, 0.12);
}

.lp-dark .lp-prose blockquote {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.lp-dark-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.lp-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.lp-case-card {
  background: var(--navy-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lp-case-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.lp-case-media {
  background: #ffffff;
  display: grid;
  gap: 1px;
}

.lp-case-media:empty {
  display: none;
}

.lp-case-media img {
  width: 100%;
  height: auto;
  display: block;
}

.lp-case-body {
  padding: 22px 24px;
  background: var(--navy-surface);
  flex-grow: 1;
}

.lp-case-body h3 {
  font-size: 17px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-case-body .lp-prose {
  font-size: 14px;
}

/* ---------- Reviews ---------- */
.lp-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-reviews .testimonial-quote {
  font-size: 14px;
}

.lp-review-foot,
.lp-rating {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.lp-rating {
  justify-content: flex-start;
  margin-top: 0;
}

/* ---------- Posts ---------- */
.lp-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.lp-post-media {
  aspect-ratio: 16 / 9;
  background: var(--blue-ice);
  overflow: hidden;
}

.lp-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-post-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.lp-post-body h3 {
  font-size: 16px;
  line-height: 1.4;
  flex-grow: 1;
}

.lp-read-more {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-primary);
}

/* ---------- Media rows ---------- */
.lp-gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 14px;
}

.lp-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.lp-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 20px;
}

.lp-logo-row img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.lp-logo-row img:hover {
  filter: none;
  opacity: 1;
}

/* ---------- Buttons, chips, alerts ---------- */
.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.lp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--navy-dark);
  color: var(--navy-dark);
  transition: background 0.18s ease, color 0.18s ease;
}

.lp-btn-outline:hover {
  background: var(--navy-dark);
  color: #ffffff;
}

.lp-dark .lp-btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.lp-chips span {
  background: var(--blue-ice);
  border: 1px solid #bae6fd;
  color: #075985;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.lp-alert {
  background: var(--blue-ice);
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.lp-alert .lp-prose {
  max-width: none;
}

/* ---------- Stats ---------- */
.lp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.lp-stat {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.lp-stat-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--blue-primary);
  line-height: 1.1;
}

.lp-dark .lp-stat-val {
  color: var(--blue-badge);
}

.lp-stat-label {
  font-size: 13px;
  margin-top: 6px;
}

/* ---------- Link cards ---------- */
.lp-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.lp-link-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-weight: 700;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-link-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.lp-link-card > span {
  padding: 14px 18px;
  font-size: 14.5px;
}

.lp-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

/* ---------- Tables ---------- */
.lp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.lp-table-wrap table,
.lp-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lp-table-wrap th,
.lp-table-wrap td,
.lp-prose th,
.lp-prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

.lp-table-wrap th,
.lp-prose th {
  background: var(--bg-slate);
  color: var(--text-main);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.lp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.lp-contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lp-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.lp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lp-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.lp-form input,
.lp-form textarea {
  font: inherit;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-slate);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
}

.lp-form input:focus,
.lp-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.lp-form textarea {
  resize: vertical;
  min-height: 110px;
}

.lp-form .btn-pill-red {
  align-self: flex-start;
  padding: 13px 30px;
  font-size: 15px;
}

.lp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .lp-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lp-split,
  .lp-split--media-right,
  .lp-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lp-split--media-right .lp-split-media {
    order: 0;
  }

  .lp-card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-card-grid--3,
  .lp-cols--3,
  .lp-reviews,
  .lp-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-tabs--vertical {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lp-tabs--vertical .lp-tablist,
  .lp-tablist {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    margin-bottom: 18px;
    padding-bottom: 6px;
  }

  .lp-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .lp-tabs--vertical .lp-tab {
    border-radius: var(--radius-pill);
    padding: 9px 18px;
  }
}

@media (max-width: 768px) {
  .lp-card-grid--3,
  .lp-card-grid--4,
  .lp-cols--2,
  .lp-cols--3,
  .lp-check-grid,
  .lp-reviews,
  .lp-post-grid,
  .lp-case-grid,
  .lp-form-row {
    grid-template-columns: 1fr;
  }

  .lp-panel {
    padding: 22px 18px;
  }

  .lp-form-card {
    padding: 22px 18px;
  }

  .lp-dark-foot {
    justify-content: flex-start;
  }

  .lp-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
