/*
Theme Name: Liverpool Web Designers (MTC)
Theme URI: https://liverpoolwebdesigners.co.uk
Author: Marketing The Change
Author URI: https://marketingthechange.com
Description: Block theme for Liverpool Web Designers. Sister brand to Marketing The Change. Fixed-price web-build shop. Dockside dusky red on Cotton off-white, Slate anchor, DM Sans 700 headlines with Inter body and Fraunces accent. Rounded rectangle 12px buttons, no pills, no amber.
Version: 1.0.3
Requires at least: 6.5
Requires PHP: 8.1
Tested up to: 6.6
License: Proprietary
Text Domain: liverpoolwebdesigners-mtc
Tags: block-theme, one-column, custom-colors, custom-logo, editor-style, wide-blocks, block-styles
*/

/* Editor + front-end enhancements that theme.json cannot express cleanly. */

:root {
  --lwd-shadow-card: 0 2px 6px rgba(26, 32, 41, 0.05);
  --lwd-shadow-card-hover: 0 6px 20px rgba(26, 32, 41, 0.08);
  --lwd-radius-button: 12px;
  --lwd-radius-card: 12px;
  --lwd-radius-chip: 8px;
}

html { scroll-behavior: smooth; }
body { background-color: #FBFAF6; color: #1A2029; }

/* Skip link */
.skip-link:focus {
  background: #B44235;
  color: #FBFAF6;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  outline: 2px solid #3E748A;
  outline-offset: 2px;
}

/* Buttons: force 12px rounded rectangle everywhere, override anything pill-like. */
.wp-block-button__link,
.wp-element-button,
button.wp-block-search__button {
  border-radius: 12px !important;
  font-weight: 600;
  padding: 12px 24px;
  min-height: 44px;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}
.wp-block-button.is-style-lwd-primary .wp-block-button__link {
  background-color: #B44235;
  color: #FBFAF6;
}
.wp-block-button.is-style-lwd-primary .wp-block-button__link:hover,
.wp-block-button.is-style-lwd-primary .wp-block-button__link:focus {
  background-color: #8E3428;
  outline: 2px solid #3E748A;
  outline-offset: 2px;
}
.wp-block-button.is-style-lwd-secondary .wp-block-button__link {
  background-color: #FBFAF6;
  color: #1A2029;
  border: 1px solid #DEE1E5;
  font-weight: 500;
}
.wp-block-button.is-style-lwd-secondary .wp-block-button__link:hover {
  background-color: #EEF1F4;
}

/* Eyebrow label */
.lwd-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B44235;
  margin-bottom: 8px;
}

/* Price chip (copper, sparing) */
.lwd-price-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(201, 131, 46, 0.12);
  color: #A5701F;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
}

/* Pack card top border */
.lwd-pack-card {
  background: #FBFAF6;
  border: 1px solid #DEE1E5;
  border-top: 4px solid #B44235;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--lwd-shadow-card);
  transition: box-shadow 150ms ease;
}
.lwd-pack-card:hover { box-shadow: var(--lwd-shadow-card-hover); }
.lwd-pack-card .lwd-price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #1A2029;
}

/* Image treatments */
.img-slate-wash { position: relative; overflow: hidden; isolation: isolate; }
.img-slate-wash img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slate-wash::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(49,64,74,0.35) 0%, rgba(49,64,74,0.65) 100%);
  pointer-events: none;
}
.img-copper-warmth { position: relative; overflow: hidden; isolation: isolate; }
.img-copper-warmth img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.03) saturate(0.93); }
.img-copper-warmth::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(201,131,46,0.16) 100%);
  pointer-events: none; mix-blend-mode: multiply;
}
.img-paper-card {
  padding: 12px; background: #FBFAF6; border: 1px solid #DEE1E5;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(26,32,41,0.06); display: inline-block; max-width: 100%;
}
.img-paper-card img { width: 100%; height: auto; display: block; border-radius: 4px; }

/* Sister-brand callout */
.lwd-sister-callout {
  background: #31404A;
  color: #FBFAF6;
  padding: 20px 32px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.lwd-sister-callout a { color: #FBFAF6; text-decoration: underline; font-weight: 600; }
.lwd-sister-callout a:hover { color: #B44235; text-decoration: underline; }

/* Fraunces pull quote */
.lwd-pullquote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.35;
  color: #1A2029;
  border-top: 2px solid #3E748A;
  border-bottom: 2px solid #3E748A;
  padding: 24px 0;
  margin: 32px 0;
  text-align: center;
}

/* Trust strip tiles */
.lwd-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid #DEE1E5;
  border-bottom: 1px solid #DEE1E5;
}
.lwd-trust-strip__tile { font-family: 'Inter', sans-serif; }
.lwd-trust-strip__tile .lwd-eyebrow { color: #5A6A75; }
@media (max-width: 782px) { .lwd-trust-strip { grid-template-columns: repeat(2, 1fr); } }

/* Focus states, accessibility */
:focus-visible { outline: 2px solid #3E748A; outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------------------
   Footer contrast (WCAG AA on Slate #31404A background)
   Copper #C9832E on Slate  =  4.9:1  (AA)
   Cotton #FBFAF6 on Slate  = 10.8:1  (AAA)
--------------------------------------------------------------------------- */
footer.wp-block-group a,
footer.wp-block-group a:visited {
  color: #C9832E;
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer.wp-block-group a:hover,
footer.wp-block-group a:focus-visible {
  color: #FBFAF6;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Equal-height cards site-wide.
   Card grids inside wp:columns get their columns stretched so tiles at
   different content lengths still line up at the top and bottom.
--------------------------------------------------------------------------- */
.wp-block-columns > .wp-block-column {
  display: flex;
  flex-direction: column;
}
.wp-block-column > .wp-block-group,
.wp-block-column > figure {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.wp-block-column > .wp-block-group > * {
  flex: 0 0 auto;
}
/* Push button rows / CTAs to the bottom edge of the card so they line up */
.wp-block-column > .wp-block-group > .wp-block-buttons:last-child,
.wp-block-column > .wp-block-group > .wp-block-button:last-child {
  margin-top: auto;
}

/* Grid layout variant (used by testimonials + industry tiles) */
.wp-block-group.is-layout-grid {
  align-items: stretch;
}
.wp-block-group.is-layout-grid > * {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wp-block-group.is-layout-grid > .wp-block-group > .wp-block-buttons:last-child,
.wp-block-group.is-layout-grid > .wp-block-group > .wp-block-button:last-child {
  margin-top: auto;
}

/* Mobile: stacked columns should not force flex-stretched heights */
@media (max-width: 781px) {
  .wp-block-columns.is-stacked-on-mobile > .wp-block-column {
    display: block;
  }
  .wp-block-columns.is-stacked-on-mobile > .wp-block-column > .wp-block-group {
    display: block;
  }
}

/* ---------------------------------------------------------------------------
   Sister-brand callout MTC referral image
--------------------------------------------------------------------------- */
.lwd-mtc-referral-img img {
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
